//****************Flash Fix for IE****************

var bo_ns_id = 0;

function startIeFix(){
  if(isIE()){
    document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');
  }
}

function endIeFix(){
  if(isIE()){
    document.write('</div>');
    var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
    var theCode = theObject.innerHTML;
    theCode = theCode.substring(4 ,9+theCode.indexOf("</object>"))
    document.write(theCode);
  }
}

function isIE(){
  // only for Win IE 6+
  // But not in Windows 98, Me, NT 4.0, 2000
  var strBrwsr= navigator.userAgent.toLowerCase();
  if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){
    if(parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6){
      return false;
    }
    if(strBrwsr.indexOf("win98") > -1 ||
       strBrwsr.indexOf("win 9x 4.90") > -1 ||
       strBrwsr.indexOf("winnt4.0") > -1 ||
       strBrwsr.indexOf("windows nt 5.0") > -1)
    {
      return false;
    }
    return true;
  }else{
    return false;
  }
}



//****************Menu Hover Fix for IE****************
<!--//--><![CDATA[//><!--

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>




//****************Begin Make fullscreen script****************

//function makeFullscreen(){
//	window.moveTo(0,0);
//	window.resizeTo(screen.availWidth,screen.availHeight);
//}
//makeFullscreen();
//function NewWindow(mypage, myname, w, h, scroll) {
//var winl = 0;
//var wint = 0;
//winprops =
//'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=1'+scroll+',resizable=1'
//win = window.open(mypage, myname, winprops)
//if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//}
//function NewWindow_cr(mypage, myname, w, h, scroll) {
//var winl = ((screen.width - w) / 2)-196;
//var wint = ((screen.height - h) / 2)-51;
//winprops =
//'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=0,resizable=0'
//win = window.open(mypage, myname, winprops)
//if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//}
//function NewWindow_tc(mypage, myname, w, h, scroll) {
//var winl = 0;
//var wint = 0;
//winprops =
//'height='+500+',width='+screen.width+',top='+wint+',left='+winl+',scrollbars=1'+scroll+',resizable=0'
//win = window.open(mypage, myname, winprops)
//if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//}
//function closewindow() {
//window.parent.close();
//}
//  End -->

//function MM_preloadImages() { //v3.0
//  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];}}
//}
				
//****************End Make fullscreen script****************

//****************Start misc scripts****************
 // 4LevelWebs ver1.0 
function unblur() {
	this.blur();
} 
function blurLinks() {
	if (!document.getElementById) return;
	theLinks = document.getElementsByTagName("A");
	theAreas = document.getElementsByTagName("AREA");
	for(i=0; i<theLinks.length; i++) {theLinks[i].onfocus = unblur;}
	for(i=0; i<theAreas.length; i++) {theAreas[i].onfocus = unblur;}
  } 
//blurLinks End


