// mouseover preloads
if (document.images) {
//    var homeOn = new Image();
//    homeOn.src = "/images/home-on.gif";
//    var homeOff = new Image();
//    homeOff.src = "/images/home-off.gif";
}

// mouseover image functions
function imgOn(imgName,curPage) {
    // don't turn on current page's nav link
    if (document.images && (imgName != curPage)) { document[imgName].src = eval(imgName+"On.src"); }
}

function imgOff(imgName,curPage) {
    // don't turn off current page's nav link
    if (document.images && (imgName != curPage)) { document[imgName].src = eval(imgName+"Off.src"); }
}

function alternate_views_popup(src) {
	winWidth = 500;
	winHeight = 600;
	ImageWindow=window.open(src,"alternate_view","toolbar=no,scrollbars=yes,menubar=no,width=" + winWidth + ",height=" + winHeight);
	ImageWindow.focus();
}

function prices_popup(src) {
	winWidth = 500;
	winHeight = 250;
	ImageWindow=window.open(src,"alternate_view","toolbar=no,scrollbars=yes,menubar=no,width=" + winWidth + ",height=" + winHeight);
	ImageWindow.focus();
}

function ideas_popup(idea) {
	winWidth = 300;
	winHeight = 180;

	var t1 = "<HTML><HEAD><TITLE>you're invited</TITLE><LINK REL='stylesheet' TYPE='text/css' HREF='/includes/youreinvited.css'></HEAD><BODY><TABLE CELLPADDING=8 WIDTH=100%><TR><TD>";
	var t2 = idea;
	var t3 = "<CENTER><P><A HREF='#' onClick='self.close()'>Close Window</A></P></CENTER></TD></TR></TABLE></BODY></HTML>";

	ImageWindow=window.open("","ideas","toolbar=no,scrollbars=no,menubar=no,width=" + winWidth + ",height=" + winHeight);
	ImageWindow.document.write(t1+t2+t3)
	ImageWindow.focus();
	ImageWindow.document.close()
}

function alt_view(newImage,text) {
	eval("document.getElementById('popupMain').src='/images/invitations/full/"+newImage+"'");
	eval("document.getElementById('popupName').innerHTML='"+text+"'");
}

function genericPopup(src,width,height) {
	ImageWindow=window.open(src,"","toolbar=no,scrollbars=yes,menubar=no,width=" + width + ",height=" + height);
	ImageWindow.focus();
}

function genericPopupNoScroll(src,width,height) {
	ImageWindow=window.open(src,"","toolbar=no,scrollbars=no,menubar=no,width=" + width + ",height=" + height);
	ImageWindow.focus();
}	