<!--

var arrPixOver= new Array();
var arrPixOut= new Array();

function preloadPix(pPath,pPixArr){	
	if (typeof(pPixArr) == "object"){
		for(p=0;p<pPixArr.length;p++){
			arrPixOver[pPixArr[p]]=new Image(); 
			arrPixOut[pPixArr[p]]=new Image();
			if (((pPath.length != 0)) && (pPath.substr(-1) != "/")) pPath=pPath+"/";			
			arrPixOver[pPixArr[p]].src=pPath+pPixArr[p]+"_o.gif";
			arrPixOut[pPixArr[p]].src=pPath+pPixArr[p]+".gif";
		}
		 
  }
}

function switchPix(btnInd,rcvState){
  if ((document.images) && (arrPixOut[btnInd])){
	if (rcvState == 1){
       if (document.images[btnInd]) document.images[btnInd].src=arrPixOver[btnInd].src;  	
	}else{
	   if (document.images[btnInd]) document.images[btnInd].src=arrPixOut[btnInd].src;		
	}
  }	
}


function switchLang(lang){
	dPage=document.location.toString();
	thePage=dPage.substr(dPage.lastIndexOf('/')+1);
	if (thePage.indexOf("?") > -1) thePage=thePage.substr(0,thePage.indexOf('?'));
	//alert(thePage);
	document.location=thePage+'?lang='+lang;
}

function spitQueryStr(qStr,qFind){	
	qStr = (qStr.indexOf('?') == 0) ? qStr.substr(1) : qStr;
	tmpArr=qStr.split('&');
	if (tmpArr.length > 0){
	   for (y=0;y<tmpArr.length;y++){		   
		   tmpRet=tmpArr[y].split('=');	
		   retVal=tmpRet[1];
		   if (tmpRet[0] == qFind){			   
			    return retVal;
	       }
	   }	   
   }    
}

function rebuildPixArr(){
	preloadPix(preloadPath,preloadPixArr);
	for (r=0;r<preloadPixArr.length;r++){
	   switchPix(preloadPixArr[r],0);
  }
}
//-->