
var persistmenu="yes" //"yes" or "no". Make sure each DIV content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj)
{
	if(document.getElementById)
{
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("div"); //DynamicDrive.com change
		if(el.style.display != "block")
{ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++)
{
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}
	}
}




var persistmenu="yes" //"yes" or "no". Make sure each DIV content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.subtab{display: none;}\n')
document.write('</style>\n')
}

function SwitchTab(obj)
{
	if(document.getElementById)
{
	var ea = document.getElementById(obj);
	var ae = document.getElementById("commondiv").getElementsByTagName("div"); //DynamicDrive.com change
		if(ea.style.display != "block")
{ //DynamicDrive.com change
			for (var i=0; i<ae.length; i++)
{
				if (ae[i].className=="subtab") //DynamicDrive.com change
				ae[i].style.display = "none";
			}
			ea.style.display = "block";
		}
	}
}


//for bottom tab

function trade_tab1()
{
	document.getElementById("fair2").className = "t_fair1";
	document.getElementById("fair1").className = "t_fair";

}									 


function trade_tab2()
{
	document.getElementById("fair2").className = "t_fair";
	document.getElementById("fair1").className = "t_fair1";
}




//Box Script


document.write('<DIV CLASS="absoldiv1" ID="floatdiv" STYLE="top:0px; display:none; right:0px;"><table width="200" border="0" align="right" cellpadding="0" cellspacing="2" bgcolor="#FFFFFF"><tr><td bgcolor="#F0F0F0" align="center"><table width="200" border="0" cellspacing="2" cellpadding="0" align="right" bgcolor="#b2190d"><tr><td height="35" align="center" bgcolor="#FFFFFF"><b><a href="#booking" style="font-family:arial;font-size:12px;font-weight:bold;color:#b2190d;text-decoration:none;">FREE Quote / Request Info</a></b></td></tr></table></td></tr></table></DIV>')

function get()
{
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
   myWidth = document.body.clientWidth;
   myHeight = document.body.clientHeight;
  }
var ht = window.pageYOffset ||
	document.body.scrollTop ||
    document.documentElement.scrollTop;
var hp = document.body.offsetHeight;


var total = ht+myHeight;
padtotal =total-550;
padtotal1 =total;


if (ht <  myHeight)
{
document.getElementById('floatdiv').style.display="none";
}
else
	{
	document.getElementById('floatdiv').style.display="block";
document.getElementById('floatdiv').style.marginTop=padtotal+'px';

	}

}



function addEvent( obj, type, fn ){ 
   if (obj.addEventListener){ 
	  obj.addEventListener( type, fn, false );
   }
   else if (obj.attachEvent){ 
	  obj["e"+type+fn] = fn; 
	  obj[type+fn] = function(){ obj["e"+type+fn]( window.event ); } 
	  obj.attachEvent( "on"+type, obj[type+fn] ); 
   } 

}

addEvent(window, 'load', get);
addEvent(window, 'scroll', get);
addEvent(window, 'resize', get);


function show()
{

document.getElementById('divinfo').className="on";
document.getElementById('min').className="on";
document.getElementById('min1').className="off";

}


function hide()
{

document.getElementById('divinfo').className="off";
document.getElementById('min').className="off";
document.getElementById('min1').className="on";
}
//Box Script




if (document.images)
{
  pic1= new Image(); 
  pic1.src="/gifs/right-pan-bg.gif";
  
  pic2= new Image(); 
  pic2.src="/gifs/sendp.gif"; 
}
