//<![CDATA[

if(typeof sIFR == "function"){

// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({sSelector:"#wrap h1", sFlashSrc:"/flash/arena.swf", sColor:"#2f4c76", sLinkColor:"#000000", sBgColor:"#000000", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetTop=0"}));
	sIFR.replaceElement(named({sSelector:"#wrap h2", sFlashSrc:"/flash/arena.swf", sColor:"#2f4c76", sLinkColor:"#000000", sBgColor:"#000000", sHoverColor:"#CCCCCC", nPaddingTop:2, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetTop=0"}));
	sIFR.replaceElement(named({sSelector:"#wrap-inside h1", sFlashSrc:"/flash/arena.swf", sColor:"#2f4c76", sLinkColor:"#000000", sBgColor:"#000000", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetTop=0"}));
	sIFR.replaceElement(named({sSelector:"#wrap-inside h1 #subtitle", sFlashSrc:"/flash/arena.swf", sColor:"#000000", sLinkColor:"#000000", sBgColor:"#000000", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetTop=0"}));
	sIFR.replaceElement(named({sSelector:"",sFlashSrc:"/flash/arena.swf",sColor:"#000000",sLinkColor:"#000000", sBgColor:"#000000",sHoverColor:"#CCCCCC",nPaddingTop:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetTop=0"}));
        sIFR.replaceElement(named({sSelector:"",sFlashSrc:"/flash/arena.swf", sColor:"#000000", sLinkColor:"#000000", sBgColor:"#000000", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetTop=0"}));		
	sIFR.replaceElement(named({sSelector:"p #sSubtitle", sFlashSrc:"/flash/arena.swf", sColor:"#000000", sLinkColor:"#000000", sBgColor:"#000000", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingBottom:0, sWmode:"transparent", sFlashVars:"textalign=left&offsetTop=0"}));
};


//]]>


// opens new window
// -----------------------------------------------------------------
var newWindow = null;

function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}

function popUpWin(url, type, strWidth, strHeight){
	closeWin()
	if (type == "fullScreen"){
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}
	var tools="";
	if (type == "standard" || type == "fullScreen") tools = "resizable=no,toolbar=no,location=no,directories=no,status=no,scroll=yes,scrollbars=yes,menubar=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
	if (type == "console") tools = "resizable=no,toolbar=no,location=no,directories=no,status=no,scroll=no,scrollbars=no,menubar=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
}


// clears and replaces text in form input fields and textareas
// -----------------------------------------------------------------
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
} 
function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}



// Son-Of-Sucker-Fish IE Hack
// -----------------------------------------------------------------
sfHover = function() {
  var sfEls = document.getElementById("nav").getElementsByTagName("LI");
  for (var i=0; i < sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
      this.className+=" sfhover";
    }
    sfEls[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
  }
 }
 if (window.attachEvent) window.attachEvent("onload", sfHover);



// Creates & writes out formatted date
// -----------------------------------------------------------------
function date(){
	var mydate = new Date();
	var year = mydate.getYear();
	if (year < 1000) year += 1900;
	var day = mydate.getDay();
	var month = mydate.getMonth();
	var daym = mydate.getDate();
	if (daym < 10) daym = "0" + daym;
	var dayarray = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
	var montharray = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
	document.write("<p>"+dayarray[day]+" "+montharray[month]+" "+daym+", "+year+"</p>");
}


function verifyexchange() {
var themessage = "You are required to complete the following fields: ";
if (document.contact_main.Title.value=="Your company name") {
themessage = themessage + " - Link Title";
}
if (document.contact_main.Url.value=="") {
themessage = themessage + " -  Link URL";
}
if (document.contact_main.Description.value=="Your company description") {
themessage = themessage + " -  Description";
}


if (document.contact_main.Name.value=="") {
themessage = themessage + " - Your Name";
}
if (document.contact_main.Email.value=="") {
themessage = themessage + " -  Email";
}
if (document.contact_main.Recip.value=="http://") {
themessage = themessage + " -  Reciprocal URL";
}

//alert if fields are empty and cancel form submit
if (themessage != "You are required to complete the following fields: ") {
alert(themessage);
return false;
}
return true;
}
//  End -->

