// JavaScript Document

function imageOver(name){
	if(overImgs[name]!=null){
		document.images[name].src=overImgs[name].src;
	}
}

function imageRestore(name){
	if(imgs[name]!=null){
		document.images[name].src=imgs[name].src;
	}
}

function imageOverLeft(name){
	if(overImgs['left']!=null){
		document.images[name].src=overImgs['left'].src;
	}
}

function imageRestoreLeft(name){
	if(imgs['left']!=null){
		document.images[name].src=imgs['left'].src;
	}
}

function showPics(url) {
	window.open(url,"", 'menubar=0,toolbar=0,width=720,height=500,scrollbars=no,resizable=yes');
}

function showPagesPics(url) {
	window.open("pages/show_pics.php?"+url,"", 'menubar=0,toolbar=0,width=720,height=500,scrollbars=no,resizable=yes');
}

function panaram(url) {
	urll = "panaram.php?url="+url;
	window.open(urll,"", 'width=250,height=200');
}

function show(id){
	p_sub = document.getElementById(id+"_sub").style;
	p_m=document.getElementById(id);
	
	h = p_m.scrollTop;
	w = p_m.clientLeft;
	alert(w+" : "+h);
	if(p_sub.visibility=="hidden") {
			p_sub.visiblity='visible';
		} else {
			p_sub.visiblity='hidden';
			}
	}
