// SonaVco JavaScript

function emailPass()
{
win = window.open("forgotpass.php","forgotpass","width=550,height=225,status=yes,scrollbars=yes,resizable=yes");
win.focus();
}

function popupVideo()
{
	window.open("SonaVid/index.html","SonaVid","width=340,height=250,scrollbars=auto,addressbar=no,resize=yes","yes");
	win.focus();
}

function popupPhotos(photo)
{
	var width  = 675;
 	var height = 625;
	var left   = (screen.width  - width)/2;
 	var top    = (screen.height - height)/2;
	window.open("listingphotos.php?id="+photo+"","SonaVid","width=675,height=625,scrollbars=auto,addressbar=no,resizable=no, left="+left+"", "top="+top+"");
	win.focus();
}

function RemoveContent(d) {

document.getElementById(d).style.display = "none";

}

function InsertContent(d) {

document.getElementById(d).style.display = "";

}

function submitMe() {
	document.forms[0].submit();
}	

navHover = function() {
	var lis = document.getElementById("navmenu").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

var mselect = true;
function mselected(fld) {
if(fld.options.selectedIndex > -1) mselect = false;
for(i = 0; i < fld.options.length; i ++) {
fld.options[i].selected = mselect ? true : false;
}
mselect = !mselect;
}