<!--
// IE is inconsistent on some pages
//var ie7 = (document.all && !window.opera && window.XMLHttpRequest) ? true : false;
//ie7 = true;
function getInternetExplorerVersion() {

    var rv = -1; // Return value assumes failure.

    if (navigator.appName == 'Microsoft Internet Explorer') {

        var ua = navigator.userAgent;

        var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");

        if (re.exec(ua) != null)

            rv = parseFloat(RegExp.$1);

    }

    return rv;

}

var iev = getInternetExplorerVersion();
//alert(iev);

//var workRound = true;
var workRound = false;
//	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"; display = "none";
if (MacNetscape) {hidden = "hide"; display = "none";}

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;
}

//ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
// Who we are
//________________________
function hideAL1(){ 
	
 PCwindowsForm = document.getElementById('ShowBox');

 document.getElementById('AL1Layer').style.display = "none"; 
 document.getElementById('AL1').style.color = '#FFFFFF';
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('ShowBox').style.display = "block";
}

function showAL1(){
if ((7==iev) && workRound){return;};
 PCwindowsForm = document.getElementById('ShowBox');

 var coords = getPageCoords('mainmenu');
 document.getElementById('AL1').style.color = '#000000';
// var xmainmenu = document.getElementById('mainmenu');
// var xAL1Layer = document.getElementById('AL1Layer');
// var coord = getPageCoords('AL1Layer');
// alert(xAL1Layer.style.left +' ' +coord.x);
 if (!(ie5mac) && !(op) && !(workRound))  document.getElementById('AL1Layer').style.left = coords.x;
// if (!(ie5mac) && !(op) )  document.getElementById('AL1Layer').style.left = coords.x;
// if (!(ie5mac))  document.getElementById('AL1Layer').style.left = coords.x;
 document.getElementById('AL1Layer').style.top = coords.y+61;
 document.getElementById('AL1Layer').style.display = "block"; 
 document.getElementById('AL1').style.color = '#000000';
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('ShowBox').style.display = "none";
}

//ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
// What we do
//________________________
function hideAL2(){
 PCwindowsForm = document.getElementById('ShowBox');

 document.getElementById('AL2Layer').style.display = "none";
 document.getElementById('AL2').style.color = '#FFFFFF';  
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('ShowBox').style.display = "block";
}

function showAL2(){
if ((7==iev) && workRound){return;};
 PCwindowsForm = document.getElementById('ShowBox');

 var coords = getPageCoords('mainmenu');
 document.getElementById('AL2').style.color = '#000000';
 if (!(ie5mac) && !(op) && !(workRound))  document.getElementById('AL2Layer').style.left = coords.x;
// if (!(ie5mac) && !(op))  document.getElementById('AL2Layer').style.left = coords.x;
// if (!(ie5mac)) document.getElementById('AL2Layer').style.left = coords.x;
 document.getElementById('AL2Layer').style.top = coords.y+61;
 document.getElementById('AL2Layer').style.display = "block"; 
 document.getElementById('AL2').style.color = '#000000';
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('ShowBox').style.display = "none";
}

//ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
// How we are different
//________________________
function hideAL3(){
 PCwindowsForm = document.getElementById('ShowBox');

 document.getElementById('AL3Layer').style.display = "none";
 document.getElementById('AL3').style.color = '#FFFFFF';  
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('ShowBox').style.display = "block";
}

function showAL3(){
if ((7==iev) && workRound){return;};
 PCwindowsForm = document.getElementById('ShowBox');

 var coords = getPageCoords('mainmenu');
 document.getElementById('AL3').style.color = '#000000';
  if (!(ie5mac) && !(op) && !(workRound))  document.getElementById('AL3Layer').style.left = coords.x;
//if (!(ie5mac) && !(op))  document.getElementById('AL3Layer').style.left = coords.x;
// if (!(ie5mac)) document.getElementById('AL3Layer').style.left = coords.x;
 document.getElementById('AL3Layer').style.top = coords.y+61;
 document.getElementById('AL3Layer').style.display = "block"; 
 document.getElementById('AL3').style.color = '#000000';
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('ShowBox').style.display = "none";
}

//ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
// Our heritage
//________________________
function hideAL4(){
 PCwindowsForm = document.getElementById('ShowBox');

 document.getElementById('AL4Layer').style.display = "none";
 document.getElementById('AL4').style.color = '#FFFFFF';  
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('ShowBox').style.display = "block";
}

function showAL4(){
if ((7==iev) && workRound){return;};
 PCwindowsForm = document.getElementById('ShowBox');

 var coords = getPageCoords('mainmenu');
 document.getElementById('AL4').style.color = '#000000';
 if (!(ie5mac) && !(op) && !(workRound))  document.getElementById('AL4Layer').style.left = coords.x;
// if (!(ie5mac) && !(op))  document.getElementById('AL4Layer').style.left = coords.x;
// if (!(ie5mac)) document.getElementById('AL4Layer').style.left = coords.x;
 document.getElementById('AL4Layer').style.top = coords.y+61;
 document.getElementById('AL4Layer').style.display = "block"; 
 document.getElementById('AL4').style.color = '#000000';
 if(( PCwindowsForm == '[object]' ) && (WinIE))  document.getElementById('ShowBox').style.display = "none";
}

-->
