	

// ROTATING KEY FACTS //

var curcontentindex=0;
var messages=new Array();

function getElementByClass(classname){
	var inc=0;
	var alltags=document.all? document.all : document.getElementsByTagName("*");
		for (i=0; i<alltags.length; i++){
		if (alltags[i].className==classname)
		 messages[inc++]=alltags[i];
		}
}

function rotatecontent(){
	//get current message index (to show it):
	curcontentindex=(curcontentindex<messages.length-1)? curcontentindex+1 : 0;
	//get previous message index (to hide it):
	prevcontentindex=(curcontentindex==0)? messages.length-1 : curcontentindex-1;
	messages[prevcontentindex].style.display="none"; //hide previous message
	messages[curcontentindex].style.display="block"; //show current message
}

function start_rotating_facts(){

    if ( document.all 
        || document.getElementById){
	    getElementByClass("dyncontent");
	    setInterval("rotatecontent()", 10000);
    }
}
// END ROTATING KEY FACTS //	


// ROTATING BANNERS //

// Now implemented in the pmc module

// END ROTATING BANNERS //


// QUICKLINKS //
function gourl() {
var b = document.urls.elements[0].options.selectedIndex;
	if (b != 0) {
		self.location = "http://74.205.39.4/" + document.urls.elements[0].options[b].value;
	}else {
		alert("Please select a destination");
	}
}

// END QUICKLINKS //



// QUICKLINKS 02 //

function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1) 
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}

// END QUICKLINKS 02 //


// POP UP EXTERIOR LINKS //
function PopUp(ref){	
	var strFeatures="toolbar=no,status=no,menubar=no,location=no" + ",scrollbars=yes,resizable=yes,height=400,width=780";
	newWin         = window.open(ref,"TellObj",strFeatures);
  newWin.opener  = top;
  newWin.focus();
}

// POP UP INTERIOR LINKS //
function popup(ref){	
	var strFeatures="toolbar=no,status=no,menubar=no,location=no" + ",scrollbars=yes,resizable=yes,height=320,width=500";
	newWin         = window.open(ref,"TellObj",strFeatures);
  newWin.opener  = top;
  newWin.focus();
}

// BOOKMARK US //
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Philip Myers :: http://virtualipod.tripod.com/bookmark.html */

function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}

// END BOOKMARK US //