//* image rollover *//
function overImg(obj) { obj.src = obj.src.replace('off.gif', 'on.gif')}
function outImg(obj) { obj.src = obj.src.replace('on.gif', 'off.gif')}

function quick_resize() { document.getElementById("quick").style.height = document.body.scrollHeight}

function popUp(width,height,URL,scroll)
{
	var path = URL;
	var popup = null;
	var w = width;
	var h = height;
	var s = scroll;
	if(scroll == null)
		s = 'yes';
	popup = window.open( path , w + h , 'width=' + w + ',height=' + h +',scrollbars=' + s + ',toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no' );
	popup.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
	popup.focus();
}



//function popUp_layer(layer_name)
//{
//	var path = layer_name;
//	var popup = null;
//	var w = width;
//	var h = height;
//	var left_in = (screen.availWidth-w)/2 ;
//	var top_in = (screen.availHeight-h)/2 ;
//	in_path = document.getElementById(path)
//	in_path.top = top_in;
//	in_path.left = left_in;
//	window.alert(w+"..."+h+"..."+in_path.top+"..."+in_path.left);
//	var s = scroll;
//	if(scroll == null)
//		s = 'yes';
//	back_in = document.getElementById("back_light");
//	back_in.style.display='none';
//	back_in.style.backgroundcolor='black';
//	path = document.getElementById(path).style.display='block';
//	path.moveTo((screen.availWidth-w)/2,(screen.availHeight-h)/2);
//	path.focus();
//}


var OpenLayer;
function open_lay(layerNO) {
	var Layer2 = document.getElementById(layerNO);

//	if(OpenLayer!=null)
//		OpenLayer.style.display="none";
//		Layer2.style.visibility="visible";

	var div=document.getElementById("div_base")
	div.style.display="block";
	Layer2.style.display="block";
	OpenLayer = Layer2;
}


function none_layer(layerNO) {
	//var Layer2 = document.getElementById(layerNO);
	OpenLayer.style.display="none";

	var div=document.getElementById("div_base")
	div.style.display="none";
}
