
/* rollover header images preload */
image1 = new Image();
image1.src = "/portals/0/skins/2006_skin/images/global_btns_03.jpg";

image2 = new Image();
image2.src = "/portals/0/skins/2006_skin/images/global_btns_04.jpg";

image3 = new Image();
image3.src = "/portals/0/skins/2006_skin/images/global_btns_05.jpg";

image4 = new Image();
image4.src = "/portals/0/skins/2006_skin/images/global_btns_06.jpg";

image5 = new Image();
image5.src = "/portals/0/skins/2006_skin/images/global_btns_07.jpg";

var clicked=new Array();
var orgSrc=new Array();
/* end rollover header images preload */

/* rollover image functions to set the clicked image and turn off the onMouseOut event at that point */
function setNull(who,what){
	imgs=document.images;
	for (var i=0;i<imgs.length;i++){
		if(who==imgs[i]){
			if(!what)clicked[i]=true;
			else return clicked[i];
		}
	}
}

function init(val,who){
	imgs=document.images;
	for (var i=0;i<imgs.length;i++){
		clicked[i]=false;
		if(val==1)orgSrc[i]=imgs[i].src;
		if(who!=imgs[i])imgs[i].src=orgSrc[i];
	}
}
/* end rollover onMouseOut disabled function */



/* ########################## */
/* various globally used javascript functions used below */
/* ########################## */


/* construct email address : prevent spam */
function constructAddy(name, domain, cssClass, sLabel) {
	var mLabel, mCssClass
	if(sLabel == '') { //set label to email addy if none specified
		mLabel = name + '@' + domain
	} else {
		mLabel = sLabel
	}
	if(cssClass != '') {
		mCssClass = 'class=' + cssClass + ' ';
	} else {
		mCssClass = '';
	}
	document.write('<a ' + mCssClass + 'href=\"mailto:' + name + '@' + domain + '\">');
	document.write(mLabel + '</a>');
}


/*  */
function popup(thisUrl,thisWidth,thisHeight,thisTop,thisLeft) {
	optionString = ('width=' + thisWidth + ',height=' + thisHeight + ',top=' + thisTop + ',left=' + thisLeft + ',toolbar=no, location=no, directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes');
	mainWin = window.open(thisUrl,"newwin",optionString);
	mainWin.opener = self;
} 
/*  */



/* construct email address using image link : prevent spam */
function constructAddyImg(name, domain) {
	document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
	document.write('<img align=absbottom src=\"images/icon_email.gif\" width=18 height=18 alt=\"send feedback\" border=0></a>');
}


// Amazing Frameless Popup Window - Version I
// (C) 2000 www.CodeLifter.com
// Free for all users, but leave in this  header

/*
Add the following call to the <body> tag of the page that
will open in the popup *if* your popup does not come to the
front after it loads.  This is occasionally needed in early
versions of IE4, and with certain types of page content that
manipulate focus. If in doubt, put it in -- it can't hurt.

<body onload="top.window.focus()">
*/

// set the popup window width and height

var windowW=214 // wide
var windowH=398 // high

// set the screen position where the popup should appear

var windowX = 260 // from left
var windowY = 100 // from top

/*
use these to center popup
// var windowX = (screen.width/2)-(windowW/2);
// var windowY = (screen.height/2)-(windowH/2);
*/

// set the url of the page to show in the popup

//var urlPop = "yourpage.html"

// set the title of the page

//var title =  "This Is A Frameless Popup Window"

// set this to true if the popup should close
// upon leaving the launching page; else, false

//var autoclose = true

// ============================
// do not edit below this line
// ============================

s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false

function openFrameless(urlPop, title, autoclose){
  if (beIE){
    NFW = window.open("","popFrameless","fullscreen,"+s)     
    NFW.blur()
    window.focus()       
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
    var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
    NFW.document.open();
    NFW.document.write(frameString)
    NFW.document.close()
  } else {
    NFW=window.open(urlPop,"popFrameless","scrollbars,"+s)
    NFW.blur()
    window.focus() 
    NFW.resizeTo(windowW,windowH)
    NFW.moveTo(windowX,windowY)
  }   
  NFW.focus()   
  if (autoclose){
    window.onunload = function(){NFW.close()}
  }
}

