//-- IMAGE PRELOADER v. 1.0
var imagenum = new Array("logotop.gif","logobottom-86.jpg","topbar-82.jpg","menubartop-82.jpg","menubarbot-82.jpg","fadebortop-82.jpg","fadeborbot-82.jpg","kom.jpg","shabdan-rain.jpg","studio.jpg");
for (var i = 0; i < imagenum.length; i++) {
	preloadImage = new Image();
	preloadImage.src = imagenum[i];
}
//-- VARIABLES
var col =  "navy";
var last = "0";

function on(what) {		//-- HILIGHT NAV
if (last == 0) {
	last = what.style.background;
	what.style.color = col;
}
else {
	what.style.color = col;
}
}

function off(what) {		//-- NAV UN-HILIGHT
	what.style.color = last;
}

function goto(where) {		//-- GOTO FUNCTION
	window.location.href = where;
}

//-- FRAME BUSTER v. 0.99
function goframes(where)  {
document.write('<HTML><HEAD><TITLE>Iona Light</TITLE></HEAD><frameset cols=21\%\,\* frameborder=0 framespacing=0 framepadding=0><frame src=men.htm name=One scrolling=no marginwidth=0 marginheight=0 noresize="true"><frame src='+where+' name=main scrolling=auto marginwidth=0 marginheight=0 noresize="true"></frameset><noframes>You need a frames capable browser to view this page or they are not currently enabled in your browser.</noframes></HTML>');
}

//-- for opening the intro newsletter window
function introductory_newsletter_window() {
var t = ((screen.height)/2)-350;
var l = ((screen.width)/2)-250;
	if (window.open("mailer/inputform.php","500x350","width=500px,height=350px,status=no,location=no,directories=no,toolbars=no,top="+t+",left="+l));
	else {
		if (window.confirm("It appears that your pop-up blocker may have prevented the window from opening. Click OK to proceed directly to the page.") == 1) {
			window.location.href = "mailer/inputform.php";
		}
	}
}

//-- Where's Shabdan toggle function
var visible = 1;
function toggle(e_id) {
if (visible == 1) {
	visible = 0;
	document.getElementById(e_id).style.display = "none";
	document.getElementById("current_location_toggle_link").innerHTML = "Show Location";
}
else {
	visible = 1;
	document.getElementById(e_id).style.display = "block";
	document.getElementById("current_location_toggle_link").innerHTML = "Hide";
}
}