
function gl(o){ var v=o.offsetLeft;while((o=o.offsetParent)!=null){if(o.tagName!='HTML')v+= o.offsetLeft;}return v;}
function change(x) {$('#'+x).hide();} 
function onClickbox(x){$('#'+x).show();} 

var timeOut=[];
function onMouseOutbox(x){
	timeOut[x]= window.setTimeout( function() {
		$('#'+x).hide();
	 },500);
} 
function onMouseOverbox(x){
	window.clearTimeout(timeOut[x]);
	$('#'+x).show();

} 
function getRandom(max) {return parseInt( Math.random() * (- max) + (max + 1));}
function indexJump(url){if(url.substr(0,4)!='http'){url='http://'+url;}location.href=url}