var currentTab=0;

//generic function to get refs for a number of different browsers...good stuff.
function getRef(id) {


	var isDOM = (document.getElementById ? true : false);
	var isIE4 = ((document.all && !isDOM) ? true : false);
	var isNS4 = (document.layers ? true : false)

	if (isDOM)
		return document.getElementById(id);

	if(isIE4)
		return document.all[id];

	if(isNS4)
		return document.layers[id];

}

function selectTab(tabNum){

        var elem=getRef('nav'+tabNum);
        var cont=getRef('content'+tabNum);


	if(tabNum == currentTab)
		return;



        currentTab=tabNum;
	elem.className ="activelink";   
        cont.style.display='inline';

	if(tabNum == 0){
		var elemOther=getRef('nav1');
                elemOther.className ='';

		var contOther=getRef('content1');
                contOther.style.display='none';

		
        
         
        }

	if(tabNum == 1){
		var elemOther=getRef('nav0');
                elemOther.className ='';    

		var contOther=getRef('content0');
                contOther.style.display='none'; 
        }



}
// CREDITS: 
// Automatic Page Refresher by Peter Gehrig and Urs Dudli www.24fun.com 
// Permission given to use the script provided that this notice remains as is. 
// Additional scripts can be found at http://www.hypergurl.com 
// Configure refresh interval (in seconds) 
var refreshinterval=1; 
// Shall the coundown be displayed inside your status bar? Say "yes" or "no" below: 
var displaycountdown="yes";
// Do not edit the code below 
var starttime;
var nowtime; 
var reloadseconds=0;
var secondssinceloaded=0;
var r=1;
function mystarttime() { 
reloadseconds=0;
secondssinceloaded=0;
//alert ("Starting: r="+r); 
   starttime=new Date();
   starttime=starttime.getTime(); 
   countdown(); 
} 
function countdown() { 
nowtime= new Date(); 
nowtime=nowtime.getTime();
secondssinceloaded=(nowtime-starttime)/1000; 
reloadseconds=Math.round(refreshinterval-secondssinceloaded);
if (refreshinterval>=secondssinceloaded) { 
var timer=setTimeout("countdown()",1000); 
	if (displaycountdown=="yes"){ 
		 //alert ("Page refreshing in "+reloadseconds+ " seconds"); 
	} 
} 
else { 
	clearTimeout(timer); 
	//alert ("Page Done: r="+r); 
	showImage();
	//window.location.reload(true); 
	} 
} 


