/**************************************************************
*												              *
*   Copyright: TWIinteractive                                 *
*                                                             *
***************************************************************/


/*d = document;
function brow(){
this.ie = (d.all)? true:false;
this.ns = (d.layers)? true:false;
this.ns6 = (d.getElementById&&!document.all)? true:false
this.dom = (d.getElementById)? true:false;
this.mac = (navigator.appVersion.indexOf("Mac")!=-1)? true:false;
this.win = (navigator.appVersion.indexOf("win")!=-1)? true:false;
}
var bw = new brow()
*/
//********************************************************************************

var strImagePath = "";
strImagePath = "/";

function browser_Over(){
	if (document.images){return(true);}
	else{return(false);}
}
canRollover = browser_Over();

function img (name){this.name = name;}

if (canRollover){
	m = new Array();
	m['menuArrow'] = new img (strImagePath + "pix/menu/m_arrow");	
	m['more'] = new img (strImagePath + "pix/SPSLEPix/more");	
	m['go'] = new img (strImagePath + "pix/d_go");	
	m['dVoteNow'] = new img (strImagePath + "pix/SPSLEPix/d_vote_now")	;
	m['back'] = new img (strImagePath + "pix/SPSLEPix/title_back")	;
	m['next'] = new img (strImagePath + "pix/SPSLEPix/next")	;
	m['previous'] = new img (strImagePath + "pix/SPSLEPix/previous")	;
	m['send'] = new img (strImagePath + "pix/SPSLEPix/f_send")	;
	
	m['t_sub_teams'] = new img (strImagePath + "pix/SPSLEPix/t_sub_teams")	;
	m['t_sub_bio'] = new img (strImagePath + "pix/SPSLEPix/t_sub_bio")	;
	m['close'] = new img (strImagePath + "pix/SPSLEPix/d_close");
}

function flipIm(imageTag,imageArray,state){
	var tmp, o;
	tmp = '';
	tmp = tmp + '.gif';
	if (typeof(imageTag) == 'string'){
		o = eval('document.' + imageTag);
	}
	else{
		o = imageTag;
	}
	if (state == 0){o.src = m[imageArray].name + tmp }
	else if (state == 1){o.src = m[imageArray].name + '_on' + tmp}
	else if (state == 2){o.src = m[imageArray].name + '_sel' + tmp}
}
function flipImageOff(imgName){flipIm(imgName,imgName,0);}
function flipImageOn(imgName){flipIm(imgName,imgName,1);}
function flipImageSel(imgName){flipIm(imgName,imgName,2);}

function flipImageMenuOff(imgName){flipIm(imgName,'menuArrow',0);}
function flipImageMenuOn(imgName){flipIm(imgName,'menuArrow',1);}
function flipImageMenuSel(imgName){flipIm(imgName,'menuArrow',2);}

function flipImageMoreOff(imgName){flipIm(imgName,'more',0);}
function flipImageMoreOn(imgName){flipIm(imgName,'more',1);}

function flipImageBackOff(imgName){flipIm(imgName,'back',0);}
function flipImageBackOn(imgName){flipIm(imgName,'back',1);}

function flipImageNextOff(imgName){flipIm(imgName,'next',0);}
function flipImageNextOn(imgName){flipIm(imgName,'next',1);}

function flipImagePreviousOff(imgName){flipIm(imgName,'previous',0);}
function flipImagePreviousOn(imgName){flipIm(imgName,'previous',1);}

function flipImageSendOff(imgName){flipIm(imgName,'send',0);}
function flipImageSendOn(imgName){flipIm(imgName,'send',1);}

function flipImageGoOff(imgName){flipIm(imgName,'go',0);}
function flipImageGoOn(imgName){flipIm(imgName,'go',1);}

function flipImageSqOff(imgName){flipIm(imgName,'t_sub_teams',0);}
function flipImageSqOn(imgName){flipIm(imgName,'t_sub_teams',1);}

function flipImageSqOff2(imgName){flipIm(imgName,'t_sub_bio',0);}
function flipImageSqOn2(imgName){flipIm(imgName,'t_sub_bio',1);}

function flipImagedVoteNowOff(imgName){flipIm(imgName,'dVoteNow',0);}
function flipImagedVoteNowOn(imgName){flipIm(imgName,'dVoteNow',1);}

var popupWin
function openNewWindow(wfile,wtitle,wwidth,wheight){
	popupWin = window.open(wfile,wtitle,"toolbar=no,leftmargin=0,topmargin=0,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + wwidth + ",height=" + wheight);
	popupWin.focus();

}

function closeWindow(){
	if (window.opener){
		window.opener.focus();
	}
window.close();
}


function b_refer(){
	window.history.back ();
}

function openRMA(iAssetId){
return;
}

/*new poll-popup functionality*/
var pollWindow

function openPollWindow(wFile,wTitle){
	pollWindow =window.open(wFile,wTitle,"top=0,left=0,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=281,height=315");
	pollWindow.focus();
	}