// nav.js
// by eddie, 2005; updated 2006/04/04

var opera = (navigator.userAgent.indexOf('Opera 7')!=-1);
var msie  =  (navigator.userAgent.indexOf('MSIE')!=-1);
if (msie && !opera){msie=1;}
if (msie && opera){msie=-1;}
if (msie == 1){
/*
0 Box in : 1 Box out
2 Circle in : 3 Circle out
4 Wipe up: 5 Wipe down
6 Wipe right : 7 Wipe left
8 Vertical blinds : 9 Horizontal blinds
10 Checkerboard across : 11 Checkerboard down
12 Random dissolve 
13 Split vertical in : 14 Split vertical out
15 Split horizontal in : 16 Split horizontal out
17 Strips left down : 18 Strips left up
19 Strips right down : 20 Strips right up
21 Random bars horiz : 22 Random bars vert
23 Random
*/
  delay=0.7;
  var effectOver=12;
  var effectOut=12;
  var curNav = null;
  document.write("<style type=\"text/css\">");
  document.write(".nav a {filter:revealTrans(duration="+delay+", transition="+effectOver+");");
  document.write("<\/style>");
}


function doovernav(what){
  //if (what.navSelected) return false;
  if (msie == 1){
    what.filters.revealTrans.Transition=effectOver;
    what.filters.revealTrans.apply();
    what.filters.revealTrans.play();
  }else
    return false;
}


function dooutnav(what){
  //if (what.navSelected) return false;
  if (msie == 1){
    what.filters(0).transition=effectOut;
    what.filters(0).apply(); 
    what.filters(0).play(); 
    //what.filters.revealTrans.Transition=effectOut;
    //what.filters.revealTrans.apply();
    //what.filters.revealTrans.play();
  }else
    return false;
}

function doClick(obj, noResetBtnFlag){
  obj.blur();
  if(curNav){
    dooutnav(curNav);
    curNav.className="";
    curNav.navSelected=false;
    //with(curNav.style) {color="#888"; fontweight="bold";}
  }
  curNav = obj;
  obj.className="selected";
  obj.navSelected=true;
  //with(obj.style) {color="#000"; fontweight="bold";}
  
  if(noResetBtnFlag)
    return;
 
  if(parent.frFooter.btnTotal>0){
  	parent.frFooter.btnClearStatus();
  }
}


function clearContents(frTarget, newUrl){
	frTarget.location = (newUrl)? newUrl : "Content0.htm";
	//window.open( (newUrl)? newUrl : "Content0.htm", frTarget);
	//frTarget.location="Content0.htm";
}

