//main functions

 	bname = navigator.appName;
     bver = parseFloat(navigator.appVersion);    
     home = 'http://www.direct-hotels.com/devel3/';
     v4=false;
     if (bver >= 4)
     	{
 		v4=true;

		
 		ba1=new Image(); ba2=new Image ();
 		ba1.src=home + "pic/m/b1.gif"; ba2.src=home + "pic/m/b1a.gif";		
 		bb1=new Image(); bb2=new Image ();
 		bb1.src=home + "pic/m/b2.gif"; bb2.src=home + "pic/m/b2a.gif";		
 		bc1=new Image(); bc2=new Image ();
 		bc1.src=home + "pic/m/b3.gif"; bc2.src=home + "pic/m/b3a.gif";		
 		bd1=new Image(); bd2=new Image ();
 		bd1.src=home + "pic/m/b4.gif"; bd2.src=home + "pic/m/b4a.gif";				
								
				
		
		
 	}
     else (alert("WARNING !!! Your browser is too old and will not display the page optimally !\n           Please upgrade to Netscape Communicator 4.X\n        Download it FREE from http://home.netscape.com !"));
     
 	function s1(imagE)
     	{
    		if (v4) document [imagE].src=eval(imagE+"2.src");
    	}
 
        function s2(imagE)
        {
      		if (v4) document  [imagE].src=eval(imagE+"1.src");
     	}

// pop up window

function openWindow(URL, h, w, s) 
	{
  	var gg = typeof (popupWin);
  	if (gg =='object')
  		{ 
  		if (popupWin.closed ) {}
			else { popupWin.close();  }
		};
  	popupWin = window.open(URL, 'popup', 'dependent=0,height='+h+',width='+w+',screenX=20,left=10,screenY=150,top=10,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars='+s+',status=0,toolbar=0', 'launcher');

	if (window.focus)
		{
     	popupWin.focus();
    	}
	}
	

// email cloaking function
function	cloak( c_user , c_domain_sld , c_domain_tld , c_caption , c_class )
{
	c_mail = c_user + '@' + c_domain_sld + '.' + c_domain_tld;

	if( c_caption == '' )
	{
		c_caption = c_mail;
	}

	if( c_class != '' )
	{
		c_cls = ' class="' + c_class + '"';
	}
	else
	{
		c_cls = '';
	}
	document.write( '<a href="mailto:' + c_mail + '"'+ c_cls +'>'+ c_caption + '</a>'  );
}

