/*

 * 

 * Part of article How to detect screen size and apply a CSS style

 * http://www.ilovecolors.com.ar/detect-screen-size-css-style/

 *

 */



$(document).ready(function() {

	if ((screen.width==1366) && (screen.height==768))

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.bar').addClass("barr"); 

	}

	else

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.bar').addClass("bar"); 

	}

});



$(document).ready(function() {

	if ((screen.width==1366) && (screen.height==768))

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.about').addClass("aboutt"); 

	}

	else

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.about').addClass("about"); 

	}

});



$(document).ready(function() {

	if ((screen.width==1366) && (screen.height==768))

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.patient').addClass("patientt"); 

		//alert('hi');

	}

	else

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.patient').addClass("patient"); 

	}

	});



$(document).ready(function() {

	if ((screen.width==1366) && (screen.height==768))

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.contactus').addClass("contactus1"); 

		//alert('hi');

	}

	else

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.contactus').addClass("contactus"); 

	}

	});

	

//Code for Resolution of 1280px X 800px



$(document).ready(function() {

	if ((screen.width==1280) && (screen.height==800))

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.bar').css('margin-left','124px'); 

	}

	else

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.bar').addClass("bar"); 

	}

});





$(document).ready(function() {

	if ((screen.width==1280) && (screen.height==800))

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.about').css('margin-left','124px'); 

	}

	else

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.about').addClass("about"); 

	}

});



$(document).ready(function() {

	if ((screen.width==1280) && (screen.height==800))

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.patient').css('margin-left','124px'); 

	}

	else

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.patient').addClass("patient"); 

	}

});



$(document).ready(function() {

	if ((screen.width==1280) && (screen.height==800))

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.contactus').css('margin-left','124px'); 

	}

	else

	{

		//alert('Screen size: 1024x768 or larger');

		$('div.contactus').addClass("contactus"); 

	}

});



 // Internet Explorer code	

 $(document).ready(function() {

 if($.browser.msie)

	{

		//alert("Your are Using Intenet Explorer");

		$('div.about').css("margin-left","-3px"); 

		}

	else

	{

		//alert("Your are Using Other Browser");

		$('div.about').addClass("about"); 

	}

							});

	

	  $(document).ready(function() {

 if($.browser.msie)

	{

		//alert("Your are Using Intenet Explorer");

		$('div.bar').css("margin-left","-7px"); 

		}

	else

	{

		//alert("Your are Using Other Browser");

		$('div.bar').addClass("bar"); 

	}

	});

	

	

	  $(document).ready(function() {

	 if($.browser.msie)

	{

		//alert("Your are Using Intenet Explorer");

		$('div.patient').css("margin-left","-3px"); 

		}

	else

	{

		//alert("Your are Using Other Browser");

		$('div.patient').addClass("patient"); 

	}

	

});





	  $(document).ready(function() {

	 if($.browser.msie)

	{

		//alert("Your are Using Intenet Explorer");

		$('div.contactus').css("margin-left","-3px"); 

		}

	else

	{

		//alert("Your are Using Other Browser");

		$('div.contactus').addClass("contactus"); 

	}

	

});





//Browsers and Screen Detection

 $(document).ready(function() {

     //alert(screen.width);

	 if(($.browser.mozilla) && (screen.width==1280))

	    {

		//alert("Your are Using Intenet Explorer");

		$('div.bar').css("margin-left","124px"); 

		}	

	 else if((!$.browser.mozilla) && (screen.width==1280))

	   {

		//alert("Your are Using Intenet Explorer");

		$('div.bar').css("margin-left","123px");  

		}

	 else

	{

	//alert("Your are Using Other Browser");

		$('div.bar').addClass("bar");  

	}

});

 

 

// Code 2



 $(document).ready(function() {

     //alert(screen.width);

	 if(($.browser.mozilla) && (screen.width==1280))

	    {

		//alert("Your are Using Intenet Explorer");

		$('div.about').css("margin-left","124px"); 

		}	

	 else if((!$.browser.mozilla) && (screen.width==1280))

	   {

		//alert("Your are Using Intenet Explorer");

		$('div.about').css("margin-left","123px");  

		}

	 else

	{

	//alert("Your are Using Other Browser");

		$('div.about').addClass("about");  

	}

});

 

// Code 3



 $(document).ready(function() {

     //alert(screen.width);

	 if(($.browser.mozilla) && (screen.width==1280))

	    {

		//alert("Your are Using Intenet Explorer");

		$('div.patient').css("margin-left","124px"); 

		}	

	 else if((!$.browser.mozilla) && (screen.width==1280))

	   {

		//alert("Your are Using Intenet Explorer");

		$('div.patient').css("margin-left","123px");  

		}

	 else

	{

	//alert("Your are Using Other Browser");

		$('div.patient').addClass("patient");  

	}

});

 

 // Code 4



 $(document).ready(function() {

     //alert(screen.width);

	 if(($.browser.mozilla) && (screen.width==1280))

	    {

		//alert("Your are Using Intenet Explorer");

		$('div.contactus').css("margin-left","128px"); 

		}	

	 else if((!$.browser.mozilla) && (screen.width==1280))

	   {

		//alert("Your are Using Intenet Explorer");

		$('div.contactus').css("margin-left","127px");  

		}

	 else

	{

	//alert("Your are Using Other Browser");

		$('div.contactus').addClass("contactus");  

	}

});




