// JavaScript Document

function showT(n){

	var selectedItem=document.charts.chart.value;

	if (selectedItem=='1') {
		n = 1;
	}
	else if (selectedItem=='2') {
		n = 2;
	}
	else if (selectedItem=='3') {
		n = 3;
	}
	else if (selectedItem=='4') {
		n = 4;
	}
	else if (selectedItem=='5') {
		n = 5;
	}
	else if (selectedItem=='6') {
		n = 6;
	}
	else if (selectedItem=='7') {
		n = 7;
	}
	else if (selectedItem=='8') {
		n = 8;
	}
	else {
		n = 0;
	}
	
	/*alert(n);*/
	
	for(i=0;i<9;i++){
		document.getElementById("dropmsg"+i).style.display="none";
		document.getElementById("dropmsg"+n).style.display="block";
	}
}

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_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];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

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



/***********************************************
* DD Tab Menu script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//Set tab to intially be selected when page loads:
//[which tab (1=first tab), ID of tab content to display]:
var initialtab=[1, "nt1"]

//Turn menu into single level image tabs (completely hides 2nd level)?
var turntosingle=0 //0 for no (default), 1 for yes

//Disable hyperlinks in 1st level tab images?
var disabletablinks=0 //0 for no (default), 1 for yes

////////Stop editing////////////////

var previoustab=""

if (turntosingle==1)
document.write('<style type="text/css">\n#tabcontentcontainer{display: none;}\n</style>')

function expandcontent(cid, aobject){
if (disabletablinks==1)
aobject.onclick=new Function("return false")
if (document.getElementById){
highlighttab(aobject)
if (turntosingle==0){
if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
}
}
}

function highlighttab(aobject){
if (typeof tabobjlinks=="undefined")
collecttablinks()
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].className=""
aobject.className="current"
}

function collecttablinks(){
var tabobj=document.getElementById("tablist")
tabobjlinks=tabobj.getElementsByTagName("A")
}

function do_onload(){
collecttablinks()
expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

function openPictureWindow_Fever(imageName,alt,imageWidth,imageHeight) {
 
if ( (screen.width <= 800) )
{
windowleftposition = (screen.width) - (screen.width - 250);
windowtopposition = (screen.height) - (screen.height - 115);
}
 
if  (  ( screen.width > 800 ) && (screen.width <= 1024) )
{
windowleftposition = (screen.width) - (screen.width - 350);
windowtopposition = (screen.height) - (screen.height - 200);
}
 
if ( (screen.width > 1025 ) && ( screen.width <= 1152 ) )
{
windowleftposition = (screen.width) - (screen.width - 470);
windowtopposition = (screen.height) - (screen.height - 300);
}
 
if ( (screen.width > 1153 ) && ( screen.width <= 1280 ) )
{
windowleftposition = (screen.width) - (screen.width - 530);
windowtopposition = (screen.height) - (screen.height - 300);
}
 
if ( (screen.width > 1281 ) && ( screen.width <= 1600 ) )
{
windowleftposition = (screen.width) - (screen.width - 540);
windowtopposition = (screen.height) - (screen.height - 400);
}
if ( (screen.width > 1281 ) )
{
windowleftposition = (screen.width) - (screen.width - 640);
windowtopposition = (screen.height) - (screen.height - 500);
}

newWindow =	   window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+windowleftposition+",top="+windowtopposition);
newWindow.document.open();
newWindow.document.write('<html><Head><title>'+alt+'</title>'); 
newWindow.document.write('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">');
newWindow.document.write('</Head>');
newWindow.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+'>'); 
newWindow.document.write('</body></html>');
newWindow.document.close();
newWindow.focus();
  
}

if (window.Event) 
document.captureEvents(Event.MOUSEUP); 
function nocontextmenu()  
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)	
{
if (window.Event)	
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}	
}
document.oncontextmenu = nocontextmenu;		
document.onmousedown = norightclick;		

var message="Content Copyright Gold Letter, Inc. All rights reserved."; // Message for the alert box
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

