// JavaScript Document
<!--
function JN_openFullWindow(theURL,winName) {
        var w = window.screen.availWidth;
		var h = window.screen.availHeight;
		w -= 9;
		h -= 61;
		fullscreenWin = window.open(theURL,winName,'toolbar=0,menubar=0,location=0,directories=0,status=1,resizable=1,scrollbars=0,top=0,left=0,width='+ w +',height=' + h );
}
	
function addBookmark(title,url) {
if (window.sidebar) {
alert("please press Ctrl and D to add our site") 
//window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}

function jn_notesFrame(){
var objn = document.getElementById("notesDiv").style;
if (objn.visibility != 'visible') {
  objn.visibility = 'visible';
} else {
  objn.visibility = 'hidden';
}
}

function jn_notesiFrame(){
var objn = parent.window.document.getElementById("notesDiv").style;
if (objn.visibility != 'visible') {
  objn.visibility = 'visible';
} else {
  objn.visibility = 'hidden';
}
}

function jn_frameSrc(showThis) {
    var obj = window.document.getElementById("partnersWin");
    obj.src = showThis;
}

function jn_iframeSrc(showThis) {
    var obj = parent.window.document.getElementById("partnersWin");
    obj.src = showThis;
}

// changes src of iframe inside productsView and alerts user to
function jn_frameSrc2(showThis,partnerName) {
	alert("Our partner "+partnerName+" requires their website to open in a new window"); 
    window.open(showThis,"partnerWin");
}

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 jn_ieFrameFix(){
 if (navigator.appName.indexOf("Microsoft")!=-1) {

   var obj2 = document.getElementById("middleDiv").style;
   if (obj2.visibility == 'visible') {
     var w = document.body.offsetWidth;
    var h = document.body.offsetHeight;
	var calch = Math.round(((h-150)/h)*100);
	var pch= calch+"%";
	var calcw = Math.round(((w-150)/w)*100);
	var pcw= calcw+"%";
	document.getElementById("middleDiv").style.height = pch;
	document.getElementById("middleDiv").style.width = pcw;
    }
  }
}


//-->