// JavaScript Document



	var timeOutID = Array();

	

	function loadMenuByID(parentID){

		rs(parentID);

		$('#menuID'+parentID).fadeIn("normal");

	}

	

	function cl(menuID){	

		timeOutID[menuID] = setTimeout('$("#menuID'+menuID+'").fadeOut("slow");',1500);	

	}

	

	function rs(menuID){

		

		clearTimeout(timeOutID[menuID]);

	}

	

	function equalHeight(group) {

		var tallest = 0;

		

		group.each(function() {

			var thisHeight = $(this).height();

			

			if(thisHeight > tallest) {

				tallest = thisHeight;

			}

			

		});

		

		group.height(tallest); 

		

	}

	

	function getHash(form){



 		var dataString = "srvOption=getHash&";



	 	for(var i = 0;i<form.elements.length;i++){

	 		if(form.elements[i].type != "submit"){

	 			dataString = dataString + form.elements[i].name + "=" + form.elements[i].value + "&";

	 		}

	 	}



	 	$.ajax({

	 		type: "POST",

	 		url: "server.php",

	 		data: dataString,

	 		cache: false,

	 		async: false,

	 		success: function(html){

	 			form.hash.value = html;

	 		}

	 	});

	

	 	return true;

	} 

	

	function resizeArea(){

		//var width = screen.availWidth - 270;
		var width = window.innerWidth - 270;

		//alert(screen.availWidth);

		$('#Area').width(width);

	}
	
	window.onresize = function(){
		//alert(screen.availWidth);
		//alert(window.innerWidth);
		resizeArea();
	};



	

	