// JavaScript Document
// JavaScript Document
			

			function EO_GroupListJumpMenu(targ,selObj,restore)
			{ //v3.0
			// the fix below is only necessary due to id and 
			// name properties of the GroupList srop down being different
			// once renamed to be the same we can just use the getelementById method
			// can we reference this in IE?
			if (document.getElementById("GroupList")){
				selObj = document.getElementById("GroupList");
			}
			// can we reference this in FF etc?
			if (document.getElementById("GroupList1")){
				selObj = document.getElementById("GroupList1");
			}
			// if this has the class of a link then we want to navigate to the market
			if (selObj) {
				if (selObj.options[selObj.selectedIndex].className == "setlvl"){
					eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
					if (restore) selObj.selectedIndex=0;
					} 				
				}
			}
// JavaScript Document
			function BB_jumpMenu(targ,selObj,restore){ //v4.0
			// Go to the selected link (if a link exists)
			var strtext = selObj.options[selObj.selectedIndex].text ;
			var strval= selObj.options[selObj.selectedIndex].value ;
			if ((strval != "") && (strval != strtext)) {
			eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
			if (restore) selObj.selectedIndex=0;
			} 
			}
<!--
var OrderItemToToggle;
 

/*function toggleVisibility(ULItemName){
	li2tog = document.getElementById(ULItemName);
	im2tog = document.getElementById("im" + ULItemName);

	if (li2tog.style.display == 'none') {
		li2tog.style.display = 'block';
		im2tog.src = '/images/common/OP_MN_close.gif';
		// adjust the window position in case we are off the bottom
		//window.scrollBy(0,40) ;

	} else {
		li2tog.style.display = 'none';
		im2tog.src = '/images/common/OP_MN_Open.gif';
		//window.scrollBy(0,-40) ;
	}
	
}*/
function toggleVisibility(ULItemName){
	li2tog = document.getElementById(ULItemName);
	im2tog = document.getElementById("im" + ULItemName);
	if (li2tog.style.display == 'none') {
		li2tog.style.display = 'block';
		im2tog.src = '/images/common/OP_MN_close.gif';
		// adjust the window position in case we are off the bottom
			var aReturn=li2tog.getElementsByTagName("li");
			var y = posBottom() ;
			if (aReturn.length == 1)  {
				x = findPosY(li2tog) + 10;
			} else {
				lastobj = aReturn[aReturn.length-1] ;				
				x = findPosY(lastobj) ;
			}
    		z = x-y ;
			if ((x > y) || (x==y)) {
			// not fully visible on screen
     			window.scrollBy(0,z+20)
			}
	} else {
		li2tog.style.display = 'none';
		im2tog.src = '/images/common/OP_MN_Open.gif';
	}
}


function openTogs(){
   var oWorkItem=document.getElementById("OPMN");
   if (oWorkItem) {
	var aReturn=oWorkItem.getElementsByTagName("UL");
		for (var i = 0; i < aReturn.length; i++) { 
		if (aReturn[i].style.display == 'none') {
			aReturn[i].style.display = 'block';
			im2tog = document.getElementById("im" + aReturn[i].id);
			im2tog.src = '/images/common/OP_MN_close.gif';
			}
		} 
	}
}
function closeTogs(){
   var oWorkItem=document.getElementById("OPMN");
   if (oWorkItem) {
	var aReturn=oWorkItem.getElementsByTagName("UL");
		for (var i = 0; i < aReturn.length; i++) { 
		if (aReturn[i].style.display == 'block') {
			aReturn[i].style.display = 'none';
			im2tog = document.getElementById("im" + aReturn[i].id);
			im2tog.src = '/images/common/OP_MN_open.gif';
			}
		} 
	}
}
// Two new opn/close tog functions to close togs for a control
function openCtrlTogs(actrl){
   var oWorkItem=document.getElementById(actrl);
   if (oWorkItem) {
	var aReturn=oWorkItem.getElementsByTagName("UL");
		for (var i = 0; i < aReturn.length; i++) { 
		if (aReturn[i].style.display == 'none') {
			aReturn[i].style.display = 'block';
			im2tog = document.getElementById("im" + aReturn[i].id);
			im2tog.src = '/images/common/OP_MN_close.gif';
			}
		} 
	}
}
function closeCtrlTogs(actrl){
   var oWorkItem=document.getElementById(actrl);
   if (oWorkItem) {
	var aReturn=oWorkItem.getElementsByTagName("UL");
		for (var i = 0; i < aReturn.length; i++) { 
		if (aReturn[i].style.display == 'block') {
			aReturn[i].style.display = 'none';
			im2tog = document.getElementById("im" + aReturn[i].id);
			im2tog.src = '/images/common/OP_MN_open.gif';
			}
		} 
	}
}
function openFirstTog(){
   var oWorkItem=document.getElementById("mn");
   if (oWorkItem) {
	var aReturn=oWorkItem.getElementsByTagName("UL");
		
		if (aReturn[0].style.display == 'none') {
			aReturn[0].style.display = 'block';
			im2tog = document.getElementById("im" + aReturn[0].id);
			im2tog.src = '/images/common/OP_MN_close.gif';
			}
		 
	}
}

function closeFirstTog(){
   var oWorkItem=document.getElementById("mn");
   if (oWorkItem) {
	var aReturn=oWorkItem.getElementsByTagName("UL");
		
		if (aReturn[0].style.display == 'block') {
			aReturn[0].style.display = 'none';
			im2tog = document.getElementById("im" + aReturn[0].id);
			im2tog.src = '/images/common/OP_MN_close.gif';
			}
		 
	}
}

function LimitListToMax(strElement,imax){

var oWorkItem=document.getElementById(strElement);
   if (oWorkItem) {
	var aReturn=oWorkItem.getElementsByTagName("li");
	if (aReturn.length > imax) {
		for (var i = imax; i < aReturn.length; i++) { 
			aReturn[i].style.display = 'none';
		
		}
	} 
	
   } 
}
function ToggleshowAllItems(strElementtoOpen,imax){
var oWorkItem=document.getElementById(strElementtoOpen);
   if (oWorkItem) {
	var aReturn=oWorkItem.getElementsByTagName("li");
		for (var i = imax+1; i < aReturn.length; i++) { 
			if (aReturn[i].style.display == 'none') {
					aReturn[i].style.display = 'block';
				}
				else
				{
					aReturn[i].style.display = 'none'
				}
	
		} 
   } 
}
//
function hideEmptyGrabs() {
  var oWorkItem=document.getElementById("grabs");
  if (oWorkItem) {
	  var aReturn=oWorkItem.getElementsByTagName("div") ;
	  if (aReturn.length == 0) {
	    oWorkItem.style.display = 'none';
	  }
  }	
}

function hideEmptyDiv(divID) {
  var oWorkItem=document.getElementById(divID);
  if (oWorkItem) {
	  var aReturn=oWorkItem.getElementsByTagName("div") ;
	  if (aReturn.length == 0) {
	    oWorkItem.style.display = 'none';
	  }
  }	
}


function insertIt() {
	  if (parent.document.getElementById("framediv")) {
	   parent.document.getElementById("framediv").innerHTML = document.getElementById("OPMN").innerHTML;
	  }
	 }
	 
function openGame(url,name){
w=800;h=710;
var scrnw = window.screen.width;
var scrnh = window.screen.height;
if(scrnw<1000){ w=650; h=580}
 window.open(url, name, "toolbar=no, status=yes, history=no, width="+w+", height="+h+", resize=yes");}
	 
/*function sitestat(ns_l){ns_l+='&amp;ns__t='+(new Date()).getTime();ns_pixelUrl=ns_l;
ns_0=document.referrer;
ns_0=(ns_0.lastIndexOf('/')==ns_0.length-1)?ns_0.substring(ns_0.lastIndexOf('/'),0):ns_0;
if(ns_0.length>0)ns_l+='&amp;ns_referrer='+escape(ns_0);
if(document.images){ns_1=new Image();ns_1.src=ns_l;}else
document.write('<img src="'+ns_l+'" width="1" height="1" alt="">');}
// redundant
*/
function sitestat(ns_l){} 

function MM_swapImgRestore() { var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}
function MM_swapImage() { var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}
function MM_reloadPage(init) { if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}
function MM_preloadImages() {var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}
function MM_findObj(n, d) { var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x;}
// JavaScript Document
// Browser Window Size and Position
// copyright Stephen Chapman, 3rd Jan 2005, 8th Dec 2005
// you may copy these functions but please keep the copyright notice as well
function pageWidth() {return window.innerWidth != null? window.innerWidth: document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body != null? document.body.clientWidth:null;}
function pageHeight() {return window.innerHeight != null? window.innerHeight: document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight:document.body != null? document.body.clientHeight:null;}
function posLeft() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset:document.documentElement && document.documentElement.scrollLeft? document.documentElement.scrollLeft:document.body.scrollLeft? document.body.scrollLeft:0;}
function posTop() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement && document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}
function posRight() {return posLeft()+pageWidth();}
function posBottom() {return posTop()+pageHeight();}
function findPosY(obj) {var curtop = 0;	if (obj.offsetParent){ while (obj.offsetParent){curtop += obj.offsetTop;obj = obj.offsetParent;	}	} else if (obj.y)curtop += obj.y; return curtop;}
function findPosX(obj) {var curleft = 0;if (obj.offsetParent){while (obj.offsetParent){	curleft += obj.offsetLeft ; obj = obj.offsetParent;}} else if (obj.x)	curleft += obj.x;return curleft;}
function TT(selID,MID) {
	strref = "/toolbox/toptipster/addTip.aspx?S=" + selID + "&MID=" + MID;
    topslip=window.open(strref,"TopTipster","width=494,height=640,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no");
    if (topslip.opener == null) topslip.opener = self;
}

function GS(BPID) {
	var aref = "/signup/apply/index.html?BP=" + BPID ;
	var target ; target = top.opener ;	target.window.location.href = aref ;target.window.focus(); window.close();
}
//-->