function JumpURL(selection) {
var tempIndex, selectedURL;
tempIndex = selection.selectedIndex;
selectedURL = selection.options[tempIndex].value;
window.open(selectedURL, 'netselect');
//window.top.location.href = selectedURL;
}
function openPoll()
{
window.open('sportvote/poll_working.swf','Poll','scrollbars=no,top=20,left=300, width=240,height=350')
}
function newWindow(newContent)
{
winContent = window.open(newContent, 'nextWin', 'left=300, top=20, width=495, height=540, toolbar=no,scrollbars=no, resizable=no')
}
function jumpPage(newLoc)
{
newPage = newLoc.options[newLoc.selectedIndex].value
	if (newPage != "")
	{
	window.location = newPage
	}
}
function eventWindow(newContent)
{
winContent = window.open(newContent, 'nextWin', 'left=50, top=50, width=600, height=400, toolbar=no,scrollbars=no, resizable=no');
}
function emailArticle (url)
{
window.open(url,'miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=350,height=400');
}
function bookmarkIt(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

	function switchMenu(obj)
	{
	var el = document.getElementById(obj);
		if(el.style.display != "block")
		{
		el.style.display = "block";
		}
		else
		{
		el.style.display = "none";
		}
	}

/**/
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("sitenav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace
	(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

function setStyle(obj)
{
var newImg = document.getElementById(obj);
newImg.style.listStyleImage = "url(images/nav-star.gif)";
newImg.style.cursor = "pointer";
}
function removeStyle(obj)
{
var newImg = document.getElementById(obj);
newImg.style.listStyleImage = "url(images/s.gif)";
newImg.style.cursor = "default";
}

function noStyle(obj)
{
var none = document.getElementById(obj);
none.style.listStyle = "none";
none.style.cursor = "default";
}

function checkForm(formName)
{
	if(formName == 'newsForm')
	{
	if(chkField('your_name','Your Name',formName)) return false;
	if(chkField('your_email','Your Email',formName)) return false;
	if(validEmail('your_email',formName)) return false;
	if(chkField('name','Name',formName)) return false;
	if(chkField('email','Email',formName)) return false;
	if(validEmail('email',formName)) return false;
	if(chkField('message','Message',formName)) return false;
	}

	if(formName == 'emailForm')
	{
	// Contact Form
	if(chkField('email','Email',formName)) return false;
	if(validEmail('email',formName)) return false;
	if(chkField('subject','Subject',formName)) return false;
	if(chkField('message','Message',formName)) return false;
	}

	if(formName == 'galleryForm')
	{
	// Popup
	if(chkField('sender_name','Your Name',formName)) return false;
	if(chkField('sender_email','Your Email',formName)) return false;
	if(validEmail('sender_email',formName)) return false;
	if(chkField('recipient_name','Name',formName)) return false;
	if(chkField('recipient_email','Email',formName)) return false;
	if(validEmail('recipient_email',formName)) return false;
	if(chkField('message','Message',formName)) return false;
	}
	
	if(formName == 'addtonewsletter')
	{
	if(chkField('name','Name',formName)) return false;
	if(chkField('email','Email',formName)) return false;
	if(validEmail('email',formName)) return false;		
	}
}

