	// Language selector		
	window.onerror=null;	
	var flag2=0; // to escape the error of undefined settimeout clockie1 in the very beginning
		
	function hide(katman) {	
		if (document.all) {document.all[katman].style.visibility="hidden";}
		else if (document.layers) {document.layers[katman].visibility="hide";}
		else {document.getElementById(katman).style.visibility="hidden";}	
	}
	
	function show(katman) {	
		if (document.all) {document.all[katman].style.visibility="visible";}
		else if (document.layers) {document.layers[katman].visibility="show";}
		else {document.getElementById(katman).style.visibility="visible";}
		if(flag2==1) {// if set timeout defined
			stopIt1();
		}
		flag2=1;	// timeout is defined after first showing
	}
	
	function showSimple(katman) {	
		if (document.all) {document.all[katman].style.visibility="visible";}
		else if (document.layers) {document.layers[katman].visibility="show";}
		else {document.getElementById(katman).style.visibility="visible";}		
	}
	
	function hideLater(katman){
		which=katman;
		clockie1 = setTimeout("hideFor(which);", 1000);		
	}
	
	function hideFor(which){
		hide(which);
		eval("hide('" + which + "Ghost')");
	}
	
	function stopIt1() {
		clearTimeout(clockie1);
	}
	
	
	function menuFor(which){
		// hide all the layers first
		hide('menu1');
		hide('menu1Ghost');
		//then show the specific ones
		show(which); 
		eval('showSimple("'+which+'Ghost")'); 
		
	}
	
	//** Menu **************************************
	var initialX=-700;
	var initialY=235;
	var kademe=45;
	var flag=0;
	var aktif;
	
	function verberg(katman) {
	
		if (document.all) {
			document.all[katman].style.visibility="hidden";
		}
		else if (document.layers) {
			document.layers.menu.document.layers[katman].visibility="hide";
		}
		else {
			document.getElementById(katman).style.visibility="hidden";
		}	
	}
	
	function toon(katman) {
	
		if (document.all) {
			document.all[katman].style.visibility="visible";
		}
		else if (document.layers) {
			document.layers.menu.document.layers[katman].visibility="show";
		}
		else {
			document.getElementById(katman).style.visibility="visible";
		}	
	}	
	
	function getToThere(katman,x,y) {
	
		if (document.all) {
			document.all[katman].style.pixelLeft = x;
			document.all[katman].style.pixelTop = y;
		}
		else if (document.layers) {
			document.layers[katman].moveTo(x,y);
		}
		else {
		    document.getElementById(katman).style.left = x +"px";
			document.getElementById(katman).style.top = y +"px";
		}
		
	}
	
	function kay(){
		if (flag==0){
			initialX=initialX+kademe;
		}
		else{
			initialX=baslangicX-kademe;
		}		
		getToThere('menu',initialX,initialY);		
	}
	
	function hereWeGo(){
		
		saat = setTimeout("hereWeGo()", 20);
		if (initialX>-3){
			hereWeStop();
			//flag=1;
		}
		kay();
		kademe=	Math.pow((700 - initialX)/120,2)-33;
		//window.status=kademe;
		
	}
	
	function hereWeStop() {
		clearTimeout(saat);
	}
	
	function resetting(){
		verberg('set1');
		verberg('set2');
		verberg('set3');
		verberg('set4');
		initialX=-700;
		getToThere('menu',initialX,initialY);
		aktif="";
	}
	
	function swapIt(hangi){
		if(aktif==hangi){}
		else {			
			resetting();
			toon(hangi);
			kademe=45;	
			hereWeGo();	
		}
		aktif=hangi;	
	}

