// JavaScript Document
var showMenu = false;

window.onload = function() {
	if(showMenu) {
		 try {		
			 var mainTabInt  = menu.mainTabInt;
			 var subTabInt  = menu.subTabInt;
			 var subSubTabInt  = menu.subSubTabInt;
			 var mainMenuObj = document.getElementById("menu_" + mainTabInt);
			 var subMenuObj = document.getElementById("menu_" + mainTabInt + "_" + subTabInt);			 
			 if(subSubTabInt != null) {
				 var subSubMenuObj = document.getElementById("menu_" + mainTabInt + "_" + subTabInt + "_" + subSubTabInt);
				 if(subSubMenuObj) {
					 subSubMenuObj.childNodes[0].removeAttribute("href");
				 }			
 			 }
			 if(mainMenuObj) {
				 if(subTabInt==0) {
					 mainMenuObj.childNodes[0].removeAttribute("href");
				 }
			 }
			 if(subMenuObj) {
				 subMenuObj.childNodes[0].removeAttribute("href");
			 }			 
			 
		 } catch(e) {}
	}
}



var browser = new BrowserDetect();
function BrowserDetect() {
 	var ua = navigator.userAgent.toLowerCase();
    this.isGecko     = (ua.indexOf('gecko') != -1);
	this.isMozilla   = (this.isGecko && ua.indexOf("gecko/") + 14 == ua.length);
	this.isNS        = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) );
	this.isIE        = ( (ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1) );
	this.isOpera     = (ua.indexOf("opera") != -1);
	this.isKonqueror = (ua.indexOf("konqueror") != -1);
	this.isIcab      = (ua.indexOf("icab") != -1);
	this.isAol       = (ua.indexOf("aol") != -1);
	this.isWebtv     = (ua.indexOf("webtv") != -1);
	this.isFireFox   = (ua.indexOf("firefox") != -1);
	firefox_brwoser =  (ua.indexOf("firefox") != -1);;
	this.isSafari   = (ua.indexOf("safari") != -1);	
	this.versionMinor = parseFloat(navigator.appVersion);
}

var timerObj;

function showlanguage() {
	clearTimeout(timerObj);
	document.getElementById('lang_dropdown').style.display='block';
}
	
function hidelanguage() {
	timerObj  = setTimeout("hideMenu()",200);
}

function hideMenu() {
	document.getElementById('lang_dropdown').style.display='none';
}
 
function overLI(thisObj) { thisObj.className = 'lang_dropdown_over';  }
function outLI(thisObj) { thisObj.className = 'lang_dropdown_out';  }



function Login(login) {
	var done=0;
	var password=document.login.password.value;
	password = password.toLowerCase();
	if ( password == "50emp2008" ) 
	{ 
		window.location="youre_one.htm"; 
		done=1;
		return (false);
	}
	if (done==0) { 
		alert ("Invalid Login. Please enter the correct password.");
		login.password.value = "";
		login.password.focus();
		return (false);
	}
	return (true);
}

function change_language()
{
	location.href = "../polish/index.htm";
}



/*************Popup Code**************/
/*

function favpopup() {
	window.open("fav_popup.htm", "fav_popup", "width=370,height=130,top=200px,left:100px,toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=no")
	
	

}
function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
var detect_cookie = new checkCookie();
function checkCookie()
{
pg_visited=getCookie('pg_visited');
if (pg_visited!=null && pg_visited!="")
  {
var t;

}
else
  {
  pg_visited='yes';
  if (pg_visited!=null && pg_visited!="")
    {
    setCookie('pg_visited',pg_visited,365);
	favpopup();
    }
  }
}
 
*/

