// ----------------------------------------
// Mouse-overs
// ----------------------------------------

function hiLite(imgName,imgObjName) {
	if (document.images) {
	document.images[imgName].src = eval(imgObjName + ".src");
	}}

// ----------------------------------------
// Open new window - scrollbars and resize
// ----------------------------------------

function openInfoWin(url,name) {
	if (screen) {
		w = screen.width
		h = screen.height
		}
	else {
		w = 640
		h = 480
		}
      var att = "WIDTH="+ w +",HEIGHT="+ h +",LOCATION=yes,TOOLBAR=YES,SCROLLBARS=YES,MENU=yes,STATUS=yes,RESIZABLE=YES,TOP=0,LEFT=0"
      extrawindow = window.open(url,name,att);
      extrawindow.focus()
      }

// ----------------------------------------
// Create page headers
// Assumes Valier logo and rule
// Needs name of page graphic and alt text
// ----------------------------------------

function header(filename, alt) {
	if (filename.length > 0 ) {
	  document.write("<TABLE WIDTH=740 HEIGHT=132 ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=0>")
	  } else {
	  document.write("<TABLE WIDTH=740 HEIGHT=98 ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=0>")
	  }
	document.write("<TR><TD><IMG SRC=\"gfx/header01.gif\" WIDTH=740 HEIGHT=90 ALT=\"Valier\"></TD></TR>")
	document.write("<TR><TD><IMG SRC=\"gfx/header02.gif\" WIDTH=740 HEIGHT=8></TD></TR>")
	if (filename.length > 0) {document.write("<TR><TD><IMG SRC=\"gfx/" + filename + "\" WIDTH=740 HEIGHT=34 ALT=\"" + alt + "\"></TD></TR>")}
	document.write("</TABLE>")
}

// ----------------------------------------
// Add nav footer to end of page
// ----------------------------------------

function footer(urhere)  {
	var footlinks
	var pagepath
	document.write("<DIV CLASS=\"minor\" ALIGN=CENTER>")

	if (urhere=='home') {
	  pagepath="valier/"
	  document.write("<CENTER><A HREF=\"valier/index.html\"><IMG SRC=\"valier/gfx/logo150black.gif\" WIDTH=150 HEIGHT=60 BORDER=0></A></CENTER>")
	}
	else  {
	  pagepath=""
	  document.write("<BR><CENTER><A HREF=\"../index.html\"><IMG SRC=\"gfx/1330sld-100.gif\" WIDTH=100 HEIGHT=60 BORDER=0></A></CENTER>")
	}

	footlinks="<BR>"
       if (urhere!='home')  {footlinks=footlinks + "<A HREF=\"http://www.1330networks.com\">1330 Home</A> | "}
       footlinks=footlinks+"<A HREF=\"" + pagepath + "index.html\">Valier Home</A> "
	if (urhere!='reasons')  {footlinks=footlinks + "| <A HREF=\"" + pagepath + "reasons.html\">Reasons to Affiliate</A> "}
	if (urhere!='bio')  {footlinks=footlinks + "| <A HREF=\"" + pagepath + "bio.html\">Meet the Team</A> "}
       if (urhere!='clock')  {footlinks=footlinks + "| <A HREF=\"javascript:openInfoWin('" + pagepath + "Valier-clock.pdf','InfoWin')\">Hourly Clock</A> "}
	if (urhere!='demo')  {footlinks=footlinks + "| <A HREF=\"" + pagepath + "demo.html\">Hear the Show</A> "}
	if (urhere!='1330')  {footlinks=footlinks + "| <A HREF=\"" + pagepath + "1330.html\">1330 News</A> "}
	if (urhere!='contact')  {footlinks=footlinks + "| <A HREF=\"" + pagepath + "contact.html\">Contact Us</A>"}	
	footlinks=footlinks + "</DIV>"
	document.write(footlinks)
	document.write("<BR><DIV CLASS=\"tiny\" ALIGN=CENTER>&copy; 2009 1330 Networks, LLC</DIV>")
}

