function hidePopUp(el){
	parent.parent.document.getElementById(el).style.display='none';
}

function showPopUp(type,popUpDivName,popUpInclude,width,height,topLeft,topRight,bottomLeft,bottomRight,content,offsetLeft,offsetTop) {	
	if (document.getElementById(popUpDivName)){
		url = site_url+'/php/'+popUpInclude+'?type='+type+'&popUpName='+popUpDivName+'&width='+width+'&height='+height+'&topLeft='+topLeft+'&topRight='+topRight+'&bottomLeft='+bottomLeft+'&bottomRight='+bottomRight+'&content='+content+'&offsetLeft='+offsetLeft+'&offsetTop='+offsetTop;
		document.getElementById(popUpDivName).style.width = '800px';
		document.getElementById(popUpDivName).style.height = height+'px';
		document.getElementById(popUpDivName).src=url;
		setTimeout("document.getElementById('"+popUpDivName+"').style.display='block'",500);
	}
}

function mo2(el){
    if(el.firstChild.src.match("_over.gif")) {
		el.firstChild.src=el.firstChild.src.replace("_over.gif","_off.gif");
	} else if(el.firstChild.src.match("_off.gif")) {
		el.firstChild.src=el.firstChild.src.replace("_off.gif","_over.gif");
	} else if (el.firstChild.src.match("_over.png")) {
		el.firstChild.src=el.firstChild.src.replace("_over.png","_off.png");
	} else if (el.firstChild.src.match("_off.png")) {
		el.firstChild.src=el.firstChild.src.replace("_off.png","_over.png");
	}        
}