// JavaScript Document

function toggleLayer(id){
	var d = document.getElementById(id);
	if(d.style.display == 'none'){
		d.style.display = 'block';
	} else {
		d.style.display = 'none';
	} 
}

function setOverImgBG(id){
	var d = document.getElementById(id);
	d.style.width = 550 +"px";
	d.style.height = document.getElementById("home_main_desc").offsetHeight + 15;
	d.style.left = 20 +"px";
	d.style.padding = 0 +"px";
	
	//alert( document.getElementById("home_main_desc").offsetHeight );
	
}



function resetOverImgBG(id){
	var d = document.getElementById(id);
	d.style.width = 530 +"px";
	d.style.height = 20+"px";
	d.style.left = 20 +"px";
	d.style.padding = 10 +"px";
	
}

function popCenter(URL,name,w,h,sc,rs) {
	if (sc=="") { //scrollbars?
		var sc=0;
	}
	if (rs=="") { //resizable?
		var rs=1;
	}

	l = (screen.width - w) / 2;

	t = (screen.height - h) / 2;

	window.open(URL,name,"width="+w+",height="+h+",left="+l+",top="+t+",scrollbars="+sc+",toolbars=1,location=0,statusbars=0,menubars=1,resizable="+rs+""); 
}