// JavaScript Document
<!--
	var timeoutMoveUp=null;
	function startMoveUp(obj,e){
		var moveUp=function(){
			var parent = $("centerLeftChildDiv");
			var child = $("centerLeftChildChildDiv");
			//var posParent = Element.cumulativeOffset(parent);
			//var posChild = Element.cumulativeOffset(child);
			var heightParent = parent.offsetHeight;
			var heightChild = child.offsetHeight;
			var diff = heightChild - heightParent;
			var top = parseInt(child.style.top);
			if(Math.abs(top)<diff){
				child.style.top=parseInt(child.style.top)-5+"px";
				timeoutMoveUp=setTimeout(moveUp,50);
			}
		};
		timeoutMoveUp=setTimeout(moveUp,50);
	}
	
	function stopMoveUp(){
		clearTimeout(timeoutMoveUp);
	}
	
	var timeoutMoveDown=null;
	function startMoveDown(obj,e){
		var moveDown=function(){
			var parent = $("centerLeftChildDiv");
			var child = $("centerLeftChildChildDiv");
			//var posParent = Element.cumulativeOffset(parent);
			//var posChild = Element.cumulativeOffset(child);
			var heightParent = parent.offsetHeight;
			var heightChild = child.offsetHeight;
			var diff = heightChild - heightParent;
			var top = parseInt(child.style.top);
			if(top<0){
				child.style.top=parseInt(child.style.top)+5+"px";
				timeoutMoveDown=setTimeout(moveDown,50);
			}
		};
		timeoutMoveDown=setTimeout(moveDown,50);
	}
	
	function stopMoveDown(){
		clearTimeout(timeoutMoveDown);
	}
	
	
	function showAboutUs(){
	
	var tW = $jquery(document).width();
	var tH = $jquery(document).height();
	
	var divBg = document.createElement("div");
	divBg.style.cssText="position:absolute;left:0px;top:0px;width:"+tW+"px;height:"+tH+"px;background-color:rgb(28,28,28);z-index:10;";
	
	$(divBg).setOpacity(0.9);
	divBg.onclick=function(){
		document.body.removeChild(this);
		if($(divParent)){
			document.body.removeChild(divParent);
		}
	};
	document.body.appendChild(divBg);
	
	var divParent  =document.createElement("div");
	divParent.style.cssText="position:absolute;z-index:11;width:784px;height:height:550px;margin:0px;padding:0px;";
	
	var aboutOptions = {
		method:'get',
		onCreate:function(){
		},
		onSuccess:function(transport){
			divParent.innerHTML = transport.responseText;
			document.body.appendChild(divParent);
			var pW = divParent.offsetWidth;
			var pH = divParent.offsetHeight;
			divParent.style.left=tW/2-pW/2+"px";
			divParent.style.top="20px";
			$("close_aboutus").onclick=function(){
				document.body.removeChild(divParent);
				document.body.removeChild(divBg);
			};
		},
		onFailure:function(){}
	};
	var ajaxAbout = new Ajax.Request("aboutus.php",aboutOptions);
}


function showContact(){
	
	var tW = $jquery(document).width();
	var tH = $jquery(document).height();
	
	var divBg = document.createElement("div");
	divBg.style.cssText="position:absolute;left:0px;top:0px;width:"+tW+"px;height:"+tH+"px;background-color:rgb(28,28,28);z-index:10;";
	
	$(divBg).setOpacity(0.9);
	divBg.onclick=function(){
		document.body.removeChild(this);
		if($(divParent)){
			document.body.removeChild(divParent);
		}
	};
	document.body.appendChild(divBg);
	
	var divParent  =document.createElement("div");
	divParent.style.cssText="position:absolute;z-index:11;width:574px;height:height:489px;margin:0px;padding:0px;";
	
	var contactOptions = {
		method:'get',
		onCreate:function(){
		},
		onSuccess:function(transport){
			divParent.innerHTML = transport.responseText;
			document.body.appendChild(divParent);
			var pW = divParent.offsetWidth;
			var pH = divParent.offsetHeight;
			divParent.style.left=tW/2-pW/2+"px";
			divParent.style.top="20px";
			$("close_contact").onclick=function(){
				document.body.removeChild(divParent);
				document.body.removeChild(divBg);
			};
		},
		onFailure:function(){}
	};
	var contactAbout = new Ajax.Request("contact.php",contactOptions);
}

function showPassword(id){
	tooltipShow=true;
	
	var tW = $jquery(document).width();
	var tH = $jquery(document).height();
	
	var divBg = document.createElement("div");
	divBg.style.cssText="position:absolute;left:0px;top:0px;width:"+tW+"px;height:"+tH+"px;background-color:rgb(28,28,28);z-index:10;";
	
	$(divBg).setOpacity(0.9);
	divBg.onclick=function(){
		document.body.removeChild(this);
		if($(divParent)){
			document.body.removeChild(divParent);
		}
	};
	document.body.appendChild(divBg);
	
	var divParent  =document.createElement("div");
	divParent.style.cssText="position:absolute;z-index:11;width:430px;height:height:395px;margin:0px;padding:0px;";
	
	var passwordOptions = {
		method:'get',
		onCreate:function(){
		},
		onSuccess:function(transport){
			divParent.innerHTML = transport.responseText;
			document.body.appendChild(divParent);
			var pW = divParent.offsetWidth;
			var pH = divParent.offsetHeight;
			divParent.style.left=tW/2-pW/2+"px";
			divParent.style.top="170px";
			$("close_password_window").onclick=function(){
				document.body.removeChild(divParent);
				document.body.removeChild(divBg);
			};
		},
		onFailure:function(){}
	};
	var passwordAjax = new Ajax.Request("password.php",passwordOptions);
}
//-->