


var state1 = 1;
var state2 = 1;
var state3 = 1;
var state4 = 1;
var state5 = 1;
var state6 = 1;
var state7 = 1;
var state8 = 1;
var state9 = 1;
var state10 = 1;

function slideme(index) {

		eval ('tmpstate = state' + index + ';');
	
		
		if (tmpstate == 1) {
        document.getElementById("slideme" + index).src="/build/images/buttons/more-minus.gif";
		//state + i = 2;
		eval ('state' + index + ' = 2;');
	
		
  		} else if (tmpstate == 2) {
        
		 document.getElementById("slideme" + index).src="/build/images/buttons/more-plus.gif";
		// state + i  = 1;
		eval ('state' + index + ' = 1;');
  		
		}


}

// Jump Menu
function P7_JumpMenu(selObj,restore){ //v1.4 by Project Seven
	var theName="MyWindow";
	var theParams='resizable=yes, status=yes, resizable=yes, width=790, height=555, top=10, left=10';
	var theFullString = selObj.options[selObj.selectedIndex].value;
	if (restore) selObj.selectedIndex=0;
		var theLength = theFullString.length;
		var endPos = theFullString.lastIndexOf("~");
		var theUrl, theTarget, theParent;
	if (endPos > 0) 
		{theUrl = theFullString.substring(0,endPos);}
	else 
		{theUrl = theFullString;}
	endPos++
	if (endPos < theLength) 
		{theTarget = theFullString.substring(endPos,theLength)}
	else 
		{theTarget = "window:Main";}
	if (theTarget == "window:New")
		{window.open(theUrl,theName,theParams);}
	else if (theTarget == "window:Main") 
		{eval("parent.location='"+theUrl+"'");}
	else 
		{eval("parent.frames[\'"+theTarget+"\'].location='"+theUrl+"'");}
} 
function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

//YEAR.JS
function thisYear() {
	var mydate=new Date();
	var year=mydate.getYear();
	if (year < 1000)
		year+=1900;
		document.write(" "+year+" ");
}

// OPENWINDOW.JS
function OpenWindow(url) {
	var width = 795;
	var height = 560;
	var newWin1 
	newWin1 = window.open(url, "", "status=yes,scrollbars=yes,resizable=yes,location=yes,width=" + width + ",height=" + height + ",top=5,left=5");
}
