plogin = new Image();
plogin.src = "images/pageElements/plogin_on.gif";

//makes sifr work
if(typeof sIFR == "function"){
sIFR.replaceElement(named({sSelector:"#content h1",  sFlashSrc:"trajanpro.swf", sColor:"#282A65", sWmode:"transparent"}));
sIFR.replaceElement(named({sSelector:"#content h2",  sFlashSrc:"trajanpro.swf", sColor:"#454082", sWmode:"transparent"}));
};

//opens new windows
function OpenChildWin(nurl,nname, nwidth,nheight) {
  popupWin = window.open(nurl, nname, 'scrollbars=1,width=' + nwidth +',height=' + nheight)
}

//makes png's work in ie6
//  onload="fixPNG(this)"
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function fixPNG(myImage) 
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML	  
    }
}

//makes topflash and active hovers subordinate
function runSiteScripts() {
	
	//var so = new SWFObject("topflash.swf", "flashheader", "849", "354", "7", "#ffffff");
  	//so.addParam("wmode","transparent");
	//so.write("topflash");
	
// gets rid of focus box on click
if(document.getElementsByTagName) {
var a = document.getElementsByTagName("a");
//collect all anchors A
for(var i = 0; i < a.length; i++){
// mouse onfocus, blur anchors
a[i].onfocus = function(){this.blur();};
}
}

}
