function setZindex(obj, val){
	obj.style.zIndex = val;
/*	obj.style.sty = val;
*/}
function setVisi(objn, val){
	
	//alert(objn);
	obj = document.getElementById(objn)
	obj.style.visibility = val==0 ? 'hidden' : 'visible';
}
function setDisplay(objn, val){
	
	obj = document.getElementById(objn)
	obj.style.display = val==0 ? 'none' : 'block';
}
nllayer = 0;
maillayer = 0;
implayer = 0;
anflayer = 0;
function setFlashVisi(obj, val, objname){
	if(val==0){
		eval(objname+'layer = 1');
		obj.style.visibility = 'hidden';
	} else {
		eval(objname+'layer = 0');
		obj.style.visibility = !nllayer && !maillayer && !implayer && !anflayer ? 'visible' : 'hidden';
	}
}
function openBrWindow(theURL,winName,features) { //v2.0
	the_window = window.open(theURL,winName,features);
	//the_window.moveTo((screen.width/2)-490,(screen.height/2)-326);
	//the_window.moveTo(screen.width/2-510,screen.height/2-302);
}
function MakeItSo(theURL, theName, theWidth, theHeight){
	openBrWindow(theURL,theName,'width='+theWidth+',height='+theHeight+',left='+(screen.width/2-(theWidth/2))+',top='+(screen.height/2-(theHeight/2))+'resizable=no,scrollbars=yes');
} 
function arrayShuffle(){
  var tmp, rand;
  for(var i =0; i < this.length; i++){
    rand = Math.floor(Math.random() * this.length);
    tmp = this[i]; 
    this[i] = this[rand]; 
    this[rand] =tmp;
  }
}
Array.prototype.shuffle =arrayShuffle;



	
	
	
	
	


