browserName=navigator.appName;browserName1=navigator.userAgent;browserVer=parseInt(navigator.appVersion);condition=!(((browserName.indexOf("Explorer")>=0)&&(browserVer<4))||((browserName.indexOf("Netscape")>=0)&&(browserVer<2))||((browserName1.indexOf("Firefox")!=-1)));if(condition==true)
CanAnimate=true;else
CanAnimate=false;function translator(pattern)
{var open_in_same_window=1;var my_location=unescape(document.location.toString());var new_location='';var new_pattern='';if(my_location.indexOf('translate_c?')!=-1){var indexof_u=my_location.indexOf('u=');if(indexof_u==-1){new_location=document.location;}
else{var subs=my_location.substring(indexof_u,my_location.length);var ss=subs.split('&');new_location=ss[0].substring(2,ss[0].length);}}
else{new_location=document.location;}
indexof_p=pattern.indexOf('|');var isen='';if(indexof_p==-1){indexof_p1=pattern.indexOf('><');if(indexof_p1==-1){new_pattern=pattern;if(pattern=='en'){isen=1;}}
else{var psplit=pattern.split('><');new_pattern=psplit[0]+'|'+psplit[1];if(psplit[1]=='en'){isen=1;}}}
else{var psplit=pattern.split('|');new_pattern=psplit[0]+'|'+psplit[1];if(psplit[1]=='en'){isen=1;}}
var thisurl='';if(isen==1){thisurl=new_location;}
else{thisurl='http://translate.google.com/translate_c?langpair='+new_pattern+"&u="+new_location;}
if(open_in_same_window==1){window.location.href=thisurl;}
else{if(CanAnimate){msgWindow=window.open('','subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');msgWindow.focus();msgWindow.location.href=thisurl;}
else{msgWindow=window.open(thisurl,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');}}}
var is_input=document.URL.indexOf('?');var tour_value='Send Your Requirement Now';var city_Cnt=0;if(is_input!=-1){addr_str=document.URL.substring(is_input+1,document.URL.length);strarr=addr_str.split("&");var param_name=unescape((strarr[0].split("="))[0]);if(param_name=="tour"){tour_value=unescape((strarr[0].split("="))[1]);tour_value=tour_value.replace(/\+/g," ");}}

/*===== script for lightbox========*/
function show(li,fd)
{document.getElementById(li).style.display='block';document.getElementById(fd).style.display='block'}
function hide(li,fd)
{document.getElementById(li).style.display='none';document.getElementById(fd).style.display='none'}

function getScrollTop() {
        if(typeof pageYOffset!= 'undefined') {
            //most browsers
			//alert(pageYOffset);
            return pageYOffset;
        }
        else {
            var b = document.body; //IE 'quirks'
            var d = document.documentElement; //IE with doctype
            d = (d.clientHeight) ? d : b;
           return d.scrollTop;
        }
    }
    function onScroll() {
        var menu = document.getElementById('divMyMenu');
        var headerAndNavHeight = document.getElementById('divHeader').clientHeight
            + document.getElementById('tsMain').clientHeight;
			//alert(headerAndNavHeight);
		if (getScrollTop() < headerAndNavHeight) {
            menu.style.top = headerAndNavHeight + 'px';
            menu.style.position = 'absolute';
			pos = 'absolute';
			document.getElementById('datepicker').style.position='absolute';
			document.getElementById('datepicker').style.top='298px';
        }
        else {
            menu.style.top = '0px';
            menu.style.position = 'fixed';
			pos = 'fixed';
			document.getElementById('datepicker').style.position='fixed';
			document.getElementById('datepicker').style.top='168px';
		}
    }

var unknown;
window.onload=function() {
el=document.body.getElementsByTagName('input');
for(c=0;c<el.length;c++) {
el[c].onclick=function() {
unknown=this.id;
type=this.type;
//alert(type);
//if ((unknown == 'tarrival0') && (type != button))
//								 {
//									alert('done'); 
//									 }
//									else
//									{
//										alert('not done');
//										}
if (unknown == 'tarrival0')
//if ((unknown == 'tarrival0') && (type!='button'))
	{
		displayDatePicker('tarrival0','','','','absolute');
		var menu = document.getElementById('divMyMenu');
        var headerAndNavHeight = document.getElementById('divHeader').clientHeight
            + document.getElementById('tsMain').clientHeight;
			//alert(headerAndNavHeight);
		if (getScrollTop() < headerAndNavHeight) {
            menu.style.top = headerAndNavHeight + 'px';
            menu.style.position = 'absolute';
			document.getElementById('datepicker').style.position='absolute';
			document.getElementById('datepicker').style.top='298px';
        }
        else {
            menu.style.top = '0px';
            menu.style.position = 'fixed';
			document.getElementById('datepicker').style.position='fixed';
			document.getElementById('datepicker').style.top='168px';
		}
		//alert('done');
		}
		else
		{
			if(type == 'button')
			{
			return product_code_check(0);
			}
		}
/*document.getElementById('tarrival0');
b = this.a;
alert(b);
if (a == b)

	{
		alert('hmmm');
		}*/



}
}
}
