function go2page(formName,selectName) {
script = 'hrefval=document.'+formName+'.'+selectName+'.options[document.'+formName+'.'+selectName+'.options.selectedIndex].value; if(hrefval==\'\') hrefval=window.location.href; window.location.href=hrefval;';
eval(script);
}

function paCreateRollOvers(){
	if(document.getElementById){
		var paImages = document.getElementsByTagName('IMG');
		var paButtons = document.getElementsByTagName('INPUT');
	}else if(document.all && navigator.userAgent.indexOf('Mac')==-1){
		var paImages = document.all['mouseovers'].all.tags('IMG');
		var paButtons = document.all['mouseovers'].all.tags('INPUT');
	}else return;
	paPreloads = new Object();

	for (var i = 0; i < paImages.length; i++){
		var paImageOffSrc = paImages[i].src + "";
		if(paImageOffSrc.indexOf("_off.") != -1){
			var paImageOnSrc = paImageOffSrc.replace(/_off\./g, "_on.");
			paPreloads['paImageOff_' + i] = new Image();
			paPreloads['paImageOff_' + i].src = paImageOffSrc;
			paPreloads['paImageOn_' + i] = new Image();
			paPreloads['paImageOn_' + i].src = paImageOnSrc;
			/*paPreloads['paImageOn_' + i].onerror = function(){this.src='/images/blank.gif';}*/
			paImages[i].onmouseover = function(){this.src = this.src.replace(/_off\./g, "_on.");}
			paImages[i].onmouseout = function(){this.src = this.src.replace(/_on\./g, "_off.");}
		}
	}

	for (var i = 0; i < paButtons.length; i++){
		if(paButtons[i].src){
		var paImageOffSrc = paButtons[i].src + "";
		if(paImageOffSrc.indexOf("_off.") != -1){
			var paImageOnSrc = paImageOffSrc.replace(/_off\./g, "_on.");
			paPreloads['paImageOff_' + i] = new Image();
			paPreloads['paImageOff_' + i].src = paImageOffSrc;
			paPreloads['paImageOn_' + i] = new Image();
			paPreloads['paImageOn_' + i].src = paImageOnSrc;
			/*paPreloads['paImageOn_' + i].onerror = function(){this.src='/images/blank.gif';}*/
			paButtons[i].onmouseover = function(){this.src = this.src.replace(/_off\./g, "_on.");}
			paButtons[i].onmouseout = function(){this.src = this.src.replace(/_on\./g, "_off.");}
		}
		}
	}
}

function changeFaqTab(tabToOpen) {
	if (tabToOpen != openedTab ) {
		document.getElementById(openedTab).style.display = "none";
		openedTabImg = document.getElementById(openedTab + "Img");
		openedTabImg.src = openedTabImg.src.replace(/_active\./g, "_off.");
		openedTab = tabToOpen;
		openedTabImg = document.getElementById(openedTab + "Img");
		openedTabImg.src = openedTabImg.src.replace(/_on\./g, "_active.");
		document.getElementById(openedTab).style.display = "block";
	}
}

function tabInit() {
	if(typeof openedTab != 'undefined') {
		openedTabImg = document.getElementById(openedTab + "Img");
		openedTabImg.src = openedTabImg.src.replace(/_off\./g, "_active.");
	}
}

function initPage() {
	paCreateRollOvers();
	tabInit();
	//initAutoHeader();
}

window.onload = initPage;

var timerID = null; 
var timerOn = false; 
var timecount = 140; 
var what = null; 
var newbrowser = true; 
var check = false; 

function hide(id){ 
if (document.getElementById){ 
obj = document.getElementById(id); 
obj.style.display = "none"; 
} 
} 
function show(id){ 
if (document.getElementById){ 
obj = document.getElementById(id); 
obj.style.display = ""; 
} 
}
function hideshow(id1, id2) {
	hide(id1);
	show(id2);
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
   if (restore) selObj.selectedIndex=0;
   }

function MM_findObj(n, d) { //v4.01
  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;
}

function show_div(obj){
	o=MM_findObj(obj);
	o.style.display="block";
}

function hide_div(obj){
	o=MM_findObj(obj);
	o.style.display="none";

}



function rotateHeader(id) {
	for (i=1 ; i<= maxHeaders; i++) {
		if (i==id) { 
			show('header' + id);
			currentHeader = id;
			// clearTimeout(timeoutID);
			// initAutoHeader();
		}
		else hide('header' + i);
	}

}

function autoNextHeader () {
	rotateHeader( (currentHeader == maxHeaders) ? 1 : (currentHeader+1) );
}

var currentHeader = 1;
var maxHeaders = 5;
var timeoutID;

function initAutoHeader() {
	if ( document.getElementById('header' + currentHeader) ) timeoutID = setTimeout(autoNextHeader, 8000);
}