﻿// -- Rollover Image Swap Code
function showDiv(id) {
		divId = "text"+id;
		document.getElementById(divId).style.display='block';
		for (i=1; document.getElementById("text"+i); i++) {
			setId = "text"+i;
			if (i != id) {
				document.getElementById(setId).style.display='none';
			}
		}
	}

//Nav Rollovers

var home_on = new Image()
home_on.src = "http://www.geneautry.com/images/subpage/on_home.jpg"

var home_off = new Image()
home_off.src = "http://www.geneautry.com/images/subpage/off_home.jpg"

var gene_on = new Image()
gene_on.src = "http://www.geneautry.com/images/subpage/on_gene.jpg"

var gene_off = new Image()
gene_off.src = "http://www.geneautry.com/images/subpage/off_gene.jpg"

var musi_on = new Image()
musi_on.src = "http://www.geneautry.com/images/subpage/on_musi.jpg"

var musi_off = new Image()
musi_off.src = "http://www.geneautry.com/images/subpage/off_musi.jpg"

var club_on = new Image()
club_on.src = "http://www.geneautry.com/images/subpage/on_club.jpg"

var club_off = new Image()
club_off.src = "http://www.geneautry.com/images/subpage/off_club.jpg"

var faqs_on = new Image()
faqs_on.src = "http://www.geneautry.com/images/subpage/on_faqs.jpg"

var faqs_off = new Image()
faqs_off.src = "http://www.geneautry.com/images/subpage/off_faqs.jpg"

var muse_on = new Image()
muse_on.src = "http://www.geneautry.com/images/subpage/on_muse.jpg"

var muse_off = new Image()
muse_off.src = "http://www.geneautry.com/images/subpage/off_muse.jpg"

var news_on = new Image()
news_on.src = "http://www.geneautry.com/images/subpage/on_news.jpg"

var news_off = new Image()
news_off.src = "http://www.geneautry.com/images/subpage/off_news.jpg"

var stor_on = new Image()
stor_on.src = "http://www.geneautry.com/images/subpage/on_store.jpg"

var stor_off = new Image()
stor_off.src = "http://www.geneautry.com/images/subpage/off_store.jpg"

var emai_on = new Image()
emai_on.src = "http://www.geneautry.com/images/subpage/on_email.jpg"

var emai_off = new Image()
emai_off.src = "http://www.geneautry.com/images/subpage/off_email.jpg"

function rollOver(imgName) {

	eval("document." + imgName + ".src=" + imgName + "_on.src")

}

function rollOut(imgName) {

	eval("document." + imgName + ".src=" + imgName + "_off.src")

}

// Send to a friend

function doMailNew()
{

	var screenWidth		=	(screen.width - 600) / 2;
	var screenHeight	=	(screen.height - 380) / 2;

	var url = "http://www.geneautry.com/site/EmailPage/EmailPage.php";

	newwin = window.open(url,"emailpage","width=600,height=380,toolbar=no,resizable=no,scrollbars=no,location=no,directories=no,menubar=no,top="+screenHeight+",left="+screenWidth+"");
}

function doMail()
{

	var screenWidth		=	(screen.width - 600) / 2;
	var screenHeight	=	(screen.height - 380) / 2;

	var url = "http://www.geneautry.com/site/EmailPage/EmailPage.php" + "?title=" + escape (document.title) + "&url=" + escape (document.location);

	newwin = window.open(url,"emailpage","width=600,height=380,toolbar=no,resizable=no,scrollbars=no,location=no,directories=no,menubar=no,top="+screenHeight+",left="+screenWidth+"");
}


// Television Popups

function popUp(URL)
{

day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=560,height=500,left = 500,top = 407');");
}


// Melody Ranch Popups

function popUpMR(URL)
{

day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=460,left = 500,top = 407');");
}

// Personal Appearance Popups

function popUpPA(URL,winHEIGHT)
{
if(!winHEIGHT){
	winHEIGHT = 500;
}

day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=' + winHEIGHT + ',left = 500,top = 407');");
}

