function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function GoSelect(TargetFormItem) {
	this.location.href = document.getElementById(TargetFormItem).value
}



function showhide(layer) {
	if (document.getElementById("DIV" + layer).style.display == "block") {
		document.getElementById("DIV" + layer).style.display = "none";
		document.getElementById("Image" + layer).src = "../gfx/Menu_Main_Inactive_Parent.gif";
	} else {
		document.getElementById("DIV" + layer).style.display = "block";
		document.getElementById("Image" + layer).src = "../gfx/Menu_Main_Active_Parent.gif";
	}
}







var startopacity = 40; // Set this variable between 1 and 100 as the standard opacity

function fadeIt(obj,direct){ 
if(window.timer) { clearInterval(timer); } 
tobj=obj; drct=direct; 
timer=setInterval("flowfilter(tobj,drct);",5); }

function flowfilter(thing,dct){
if(dct==1) { if (thing.filters.alpha.opacity<100) { thing.filters.alpha.opacity+=5; } else { clearInterval(timer); } }
if(dct==2) { if (thing.filters.alpha.opacity>startopacity) { thing.filters.alpha.opacity-=5; } else { clearInterval(timer); } }
}





function button_over(eButton)
	{
	eButton.style.backgroundColor = "#EEEEEE";
	eButton.style.borderColor = "#AAAAAA #AAAAAA #AAAAAA #AAAAAA";
	}
function button_out(eButton)
	{
	eButton.style.backgroundColor = "#DDDDDD";
	eButton.style.borderColor = "#DDDDDD";
	}
function button_down(eButton)
	{
	eButton.style.borderColor = "#000000";
	eButton.style.backgroundColor = "#FFFFFF";
	eButton.style.LinkColor = "#000000";
  document["flashen"].GotoFrame(2);
//  document["flashen"].play();
	}
function button_up(eButton)
	{
	eButton.style.backgroundColor = "#EEEEEE";
	eButton.style.borderColor = "#AAAAAA #AAAAAA #AAAAAA #AAAAAA";
	eButton = null; 
	}













function MenuOver() {
  document["Console01"].TGotoFrame("sfx_menuOver", 0) 
  document["Console01"].TPlay("sfx_menuOver");
}

function MenuDown() {
  document["Console01"].GotoFrame(1)
  document["Console01"].TGotoFrame("sfx_menuDown", 0) 
  document["Console01"].TPlay("sfx_menuDown");
}

function ButtonDown() {
  document["Console01"].GotoFrame(2)
  document["Console01"].TGotoFrame("sfx_buttonDown", 0) 
  document["Console01"].TPlay("sfx_buttonDown");
}

function MenuOut() {
  document["Console01"].TGotoFrame("sfx_menuOut", 0) 
  document["Console01"].TPlay("sfx_menuOut");
}









function playmovie() {
  document["flashen"].xGotoFrame(0);
//  document["flashen"].play();
}

function playmovie2() {
  document["flashen"].xGotoFrame(1);
//  document["flashen"].play();
}

function playmovie3() {
  document["flashen"].xGotoFrame(3);
//  document["flashen"].play();
}







function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  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();
}
MM_reloadPage(true);

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 MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}








function MoveToolTip(layerName)
	{
	eval("document.all." + layerName + ".style" + ".top = "  + (eval("event.y") + document.body.scrollTop))
	eval("document.all." + layerName + ".style" + ".left = " + (eval("event.x") + 15))
	}
function Activate(Grejj)
	{
	eval("document.all." + Grejj + ".style" + ".visibility = 'visible'")
	}
function deActivate(Grejj2)
	{
	eval("document.all." + Grejj2 + ".style" + ".visibility = 'hidden'")
	}
function overhere(LName)
	{
	MoveToolTip(LName)
	}




nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

/* object - image to be faded (actual object, not name);
 * destop - destination transparency level (ie 80, for mostly solid)
 * rate   - time in milliseconds between trasparency changes (best under 100)
 * delta  - amount of change each time (ie 5, for 5% change in transparency)
 */

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
        
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}









function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v4.0
  var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
  if (app.indexOf('Netscape') != -1) {
    if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
  } else if (app.indexOf('Microsoft') != -1) {
    if (version >= IEvers || verStr.indexOf(IEvers) != -1)
     {if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
  } else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
  if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}


function DoFocus(FocusTarget)

{
	if (document.getElementById(FocusTarget).type != "hidden" ) 
		{
		document.getElementById(FocusTarget).focus()			
		}


}



function validateIconON(targetIcon) {
	document.getElementById(targetIcon).src = "../gfx/Form_Item_Highlight.gif"	
}

function validateIconOFF(targetIcon,targetIconState) {

	if (targetIconState == 1) {
		document.getElementById(targetIcon).src = "../gfx/Form_Item_Required_Error.gif"	

	} else {
		document.getElementById(targetIcon).src = "../gfx/Form_Item_Error.gif"	
	}

}

