var brWidth;
var brHeight;
var ver = parseInt(navigator.appVersion);
var platform = navigator.userAgent;

function DoStart() {
	
}
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
}	
is = new BrowserCheck()	

 // Browsers storlek   
 function getBrowserWidthAndHeight(){
   brWidth = (is.ie)? document.body.clientWidth:window.innerWidth
   brHeight = (is.ie)? document.body.clientHeight:window.innerHeight
  } 
//getBrowserWidthAndHeight();

function GoBack(){
	if (navigator.appName == "Netscape") window.back();
	else history.back();
}

function titleOver	(nodeid) {
	oDiv = (is.ns4)? document.layers['NodeID'+nodeid]:document.all['NodeID'+nodeid];
	oDivBgColor =  (is.ns4)? oDiv.bgColor:oDiv.style.backgroundColor;      
	oDivBgColor = '#CC3300' 
}
function titleOut	(nodeid) {
	oDiv = (is.ns4)? document.layers['NodeID'+nodeid]:eval('document.all["NodeID'+nodeid+'"]');
	oDivBgColor =  (is.ns4)? oDiv.bgColor:oDiv.style.backgroundColor;   
	oDivBgColor = '' 
}


function setCookie(sName, sValue) { 

	var dDate = new Date();
	dDate.setUTCFullYear(dDate.getUTCFullYear() + 5);
	document.cookie = sName + "=" + escape(sValue) + ";	expires=" + dDate.toUTCString() + "; path=/";

}
function GetCookie(sName)
{
	// Cookies are separated by semicolons.
	var aCookie = document.cookie.split("; ");

	for (var i=0; i < aCookie.length; i++)
	{
		
		// A name/value pair (a crumb) is separated by an equal sign.
		var aCrumb = aCookie[i].split("=");
		if (sName == aCrumb[0])
			return unescape(aCrumb[1]);
	}

	// A cookie with the requested name does not exist
	return null;
}

function loadPage(url,target) {
	
	
	   window.open(url,"mpopup"); ///WARNING!!!
		/*
       if(target=='') window.open(url,"mpopup"); ///WARNING!!!
       else{
               switch (target) {
                       case '_blank':
                               window.open(url);
                               break;
                       case '_parent':
                               parent.location.href = url;
                               break;
                       case '_top':
                               top.location.href = url;
                               break;
                       default:
                               //self.location.href = url; 
                               window.open(url,"mpopup");
               }
       }*/
}
function loadPage2(url,target) {
	
	   window.open(url,"_self"); ///WARNING!!!
}

function changeClassName(oElem,oClass){
	oElem.className = oClass;					
}
function buttonOn(tr){
	tr.className = 'button-on'
}
function buttonGreen(tr){
	tr.className = 'button-green'
}
function buttonYellow(tr){
	tr.className = 'button-yellow'
}
function buttonBlueLight(tr){
	tr.className = 'button-blue-light'
}
function topNavOver(table){
	table.className = "topNav-over"
}
function topNavOff(table){
	table.className = "topNav-off"
}
function navLevel4(table){
	if(table.className == "navLevel4-off"){
		table.className = "navLevel4-on"
	}
	else{
		table.className = "navLevel4-off"
	}
}

function navLevel41(td){
	if(td.className == "item"){
		td.className = "activeitem"
	}
	else{
		td.className = "item"
	}
}
function MObutton(table){
	if (table.className == "button-on"){
		table.className = "button-off";
	}
	else {
		table.className = "button-on"
	}
}
function buttonTop(){
	if (navigator.appName == "Netscape" && ver <= 4 && platform != "Mac"){
		document.write("<tr><td class='top'><img src='/MPNet3/Images/pixel.gif' width='1' height='1' alt='' border='0' /></td></tr>")
	}
}
function buttonBottom(){
	if (navigator.appName == "Netscape" && ver <= 4 && platform != "Mac"){
		document.write("<tr><td class='bottom'><img src='/MPNet3/Images/pixel.gif' width='1' height='1' alt='' border='0' /></td></tr>")
	}
}
function NavigateToAboutManpower(){
	top.objHeaderNavigation.activeItem = "PGPGEN_AboutManpower";
	top.objHeaderNavigation.ShowNavigation();
}

function loadMiniSite(ref, langid)
{
    if(ref=='belgium' && langid=='nl')
    {
        //window.open("sm_contenttemplates/be/home_nl.html","Belgium","toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=no,resizable=yes,width=500,height=480");
	window.open("http://62.213.240.136/wdyd/mpp.html","Belgium","toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=no,resizable=yes,width=561,height=461");
    }
}

