// JavaScript Document
<!--
function browser(){
	this.ver=navigator.appVersion;
	this.agent=navigator.userAgent.toLowerCase();
	this.dom=document.getElementById?1:0;
	this.op=window.opera;
	this.moz=(this.agent.indexOf("gecko")>-1||window.sidebar);
	this.ie=this.agent.indexOf("msie")>-1&&!this.op;
	if(this.ie){
		this.ie5=(this.agent.indexOf("msie 5")>-1);
		this.ie55=(this.ie5&&this.agent.indexOf("msie 5.5")>-1);
		this.ie6=this.dom&&!this.ie4&&!this.ie5&&!this.ie55;
	}
	this.mac=(this.agent.indexOf("mac")>-1);
	return this;
}
var b=new browser();
function toggleTargets(){
	domain=location.href.replace(/http:\/\/(www\.)?/i,"").substring(0,location.href.indexOf(".")+1);
	url=location.href.substring(location.href.indexOf(domain),location.href.lastIndexOf('/')+1);
	if(document.getElementById("content")) for(a=0,anc=document.getElementById("content").getElementsByTagName("a");a<anc.length;a++) if(anc[a].href.replace(/http:\/\/(www\.)?/i,"").substr(0,domain.length)!=domain&&anc[a].href.substr(0,7)!="mailto:") anc[a].onclick=function(){window.open(this.href);return false;};
}
function syncHeightWidth(){
	contentDiv=new Array(document.getElementById("main"),document.getElementById("content").lastChild);
	if(contentDiv[0].offsetHeight<contentDiv[1].offsetHeight) contentDiv[0].style[b.moz?"minHeight":"height"]=contentDiv[1].offsetHeight+"px";
	return;
}
function init(){
	if(screen.height<=768) document.getElementsByTagName("table")[0].style.marginTop="10px";
	if(document.getElementById("slidecontainer")){
		document.getElementById("slidecontainer").style.backgroundImage="url("+fadeimages[fadeimages.length-1]+")";
		if(b.ie||b.moz) setTimeout("initSlide();",pause);
		else setInterval("rotateimage();",pause);
	}
	else{
		toggleTargets();
		syncHeightWidth();
	}
	return;
}
window.onload=init;
//-->