<!--

//	Cross Browser Tweaks
var d, dom, ie, ie4, ie5x, moz, mac, win, lin, old, ie5mac, ie5xwin, op;

d = document;
n = navigator;
na = n.appVersion;
nua = n.userAgent;
win = ( na.indexOf( 'Win' ) != -1 );
mac = ( na.indexOf( 'Mac' ) != -1 );
lin = ( nua.indexOf( 'Linux' ) != -1 );

if ( !d.layers ){
	dom = ( d.getElementById );
	op = ( nua.indexOf( 'Opera' ) != -1 );
	konq = ( nua.indexOf( 'Konqueror' ) != -1 );
	saf = ( nua.indexOf( 'Safari' ) != -1 );
	moz = ( nua.indexOf( 'Gecko' ) != -1 && !saf && !konq);
	ie = ( d.all && !op );
	ie4 = ( ie && !dom );
	ie5x = ( d.all && dom );
	ie5mac = ( mac && ie5x );
	ie5xwin = ( win && ie5x );
        MacNetscape = ( mac && moz );
	WinIE = ( win && ie5x );
}
hidden="hidden";visible="visible";
if (MacNetscape) {hidden = "hide" ;visible = "show";}

//Where is the bottom table?
function getPageCoords (elementId) {
     var coords = {x: 0, y: 0}
     var element;
     if (document.all)
       element = document.all[elementId];
     else if (document.getElementById)
       element = document.getElementById(elementId);
     while (element) {
       coords.x += element.offsetLeft;
       coords.y += element.offsetTop;
       element = element.offsetParent;
     }
     return coords;
   }

function hideDestinations(){ 
	
 PCwindowsForm = document.getElementById('searchChoices');
 //alert(PCwindowsForm);


 document.getElementById('DestinationsLayer').style.visibility=hidden; 
 document.getElementById('link1').style.color = '#FFFFFF';
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('searchChoices').style.visibility=visible;
}

function showDestinations(){
 PCwindowsForm = document.getElementById('searchChoices');
 //alert(PCwindowsForm);

 var coords = getPageCoords('bottom');
 document.getElementById('link1').style.color = '#000000';
 if (!(ie5mac))  document.getElementById('DestinationsLayer').style.left = coords.x;
 document.getElementById('DestinationsLayer').style.top = coords.y;
 document.getElementById('DestinationsLayer').style.visibility=visible; 
 document.getElementById('link1').style.color = '#000000';
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('searchChoices').style.visibility=hidden;
}

function hideThemes(){
 PCwindowsForm = document.getElementById('searchChoices');
 //alert(PCwindowsForm);

 document.getElementById('ThemesLayer').style.visibility=hidden;
 document.getElementById('link2').style.color = '#FFFFFF';  
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('searchChoices').style.visibility=visible;
}

function showThemes(){
 PCwindowsForm = document.getElementById('searchChoices');
 //alert(PCwindowsForm);

 var coords = getPageCoords('bottom');
 document.getElementById('link2').style.color = '#000000';
 if (!(ie5mac)) document.getElementById('ThemesLayer').style.left = coords.x;
 document.getElementById('ThemesLayer').style.top = coords.y;
 document.getElementById('ThemesLayer').style.visibility=visible; 
 document.getElementById('link2').style.color = '#000000';
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('searchChoices').style.visibility=hidden;
}

-->

