/*
 * jQuery 1.2.3 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
 * $Rev: 4663 $
 */

// Secondary Nav
function borderit(which,color){
if (document.all||document.getElementById){
which.style.borderColor=color
}
}

	// Create nav items
	function windowOpener(url,width,height,name,scrolls) 
{
		browserName = navigator.appName;
		browserVer = navigator.appVersion.substring(0,1);
		if (width==null) {width=460;}
		if (height==null) {height=400;}
		if (name==null) {name="globaltPopup"}
		if (scrolls==true) {
							scrollsOption="yes";
						}
						else {
								scrollsOption="no";
						}
		if (browserName != "Netscape" || browserVer != 2) { controlWindow=window.open(url,name,"toolbar=no,height="+height+",width="+width+",location=no,directories=no,status=no,menubar=no,scrollbars=" + scrollsOption + ",resizable=no");
}}
	// Shows and hides selected navs
	
	messageObj = new DHTML_modalMessage();	
messageObj.setShadowOffset(5);	


function displayMessage(url)
{
	
	messageObj.setSource(url);
	messageObj.setCssClassMessageBox(false);
	messageObj.setSize(500,485);
	messageObj.setShadowDivVisible(true);	
	messageObj.display();
}

function displayStaticMessage(messageContent,cssClass)
{
	messageObj.setHtmlContent(messageContent);
	messageObj.setSize(500,485);
	messageObj.setCssClassMessageBox(cssClass);
	messageObj.setSource(false);	
	messageObj.setShadowDivVisible(false);	
	messageObj.display();
	
	
}

function closeMessage()
{
	messageObj.close();	
}
/***********************************************
*  KING NETWORK COMPANY (www.kingnet-co.com)
***********************************************/

//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
	