/*
 * Popup Height - jQuery Fancy Box
 * Simple and fancy lightbox alternative
 *
 * Examples and documentation at: http://fancybox.net
 * 
 * Copyright (c) 2008 - 2010 Janis Skarnelis
 *
 * Version: 1.3.1 (05/03/2010)
 * Requires: jQuery v1.3+
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 * Created By :Prabhu Chinna samy
 * Its used to set the height of popup depends upon the resolution
*/

var contactus_height;
contactus_height='90%';
if (screen.width==1152 && screen.height==864)
{
	contactus_height='85%';
}
else if (screen.width==1024 && screen.height==768)
{
	contactus_height='100%';
}
else if (screen.width==800 && screen.height==600)
{
	contactus_height='150%';
}
else if (screen.width==1280 && screen.height==720)
{
	contactus_height='105%';
}
else if (screen.width==1280 && screen.height==768)
{
	contactus_height='100%';
}
else if (screen.width==1280 && screen.height==600)
{
	contactus_height='128%';
}
else if (screen.width==1280 && screen.height==960)
{
	contactus_height='75%';
}
else if (screen.width==1280 && screen.height==1024)
{
	contactus_height='68%';
}
else if (screen.width==1350 && screen.height==1080)
{
	contactus_height='63%';
}
else if (screen.width==1080 && screen.height==810)
{
	contactus_height='93%';
}
else if (screen.width==1215 && screen.height==911)
{
	contactus_height='78%';
}
else if (screen.width==1350 && screen.height==760)
{
	contactus_height='98%';
}

//javascript to check the browser
 if(navigator.userAgent.indexOf('Chrome')!=-1 || navigator.userAgent.indexOf('chrome')!=-1)
{
	contactus_height=contactus_height.replace("%","");
 	contactus_height=contactus_height-15	;
	contactus_height=contactus_height+'%';	
 }