function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.pc=(navigator.appVersion.indexOf("Mac") == -1)
	this.iepc=(this.pc &&  (this.ie4 || this.ie5)==1)
	this.ie4mac=((!this.pc) &&  (this.ie4)==1)
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns5mac=((!this.pc) && (this.ns5)==1)
	this.iemac=((!this.pc) && (this.ie5 || this.ns5)==1)
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this;
}
bw=new checkBrowser()
var oreda; var oredb; var oredc; var oredd; var orede; var oredf; var oredg; var oredh; var oredi; var oredj; var oredk; var oredl; var oredm;
function rewriteObj(code,div,nest){
	this.el=bw.dom?document.getElementById(div):bw.ie4?document.all[div]:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	if (bw.ns4){		this.el.document.open(); this.el.document.write(code); this.el.document.close();	}
	else{ this.el.innerHTML = code; }
}
function move(l,t,div,nest){ 	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 	
obj.left=l;	obj.top=t;
}
function dshow(div,nest){	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 	
obj.visibility='visible';
}
function dhide(div,nest){	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 	
obj.visibility='hidden';
}
function CheckforDiv(obj,nest){
	nest=(!nest) ? '':'document.'+nest+'.'
	this.exists=(bw.dom && (document.getElementById(obj)))?1:(bw.ie4 && (document.all[obj]))?1:(bw.ns4 && (eval(nest+'document.'+obj)))?1:0;
	this.exists=(this.exists == "undefined" || this.exists == null)?false:this.exists;
	return this.exists
}
function makeObj(obj,nest){
	nest=(!nest) ? '':'document.'+nest+'.'
	this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
  	this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
	this.height=bw.ns4?this.css.document.height:this.el.offsetHeight
	this.width=bw.ns4?this.css.document.width:this.el.offsetWidth
	this.cx=(this.width/2)
	this.cy=(this.height/2)
	if (firsttime){
		this.origtop=(bw.ns4 || (bw.iemac && !bw.ie5))?this.css.top:eval(this.css.top.slice(0,this.css.top.length-2));
		this.origleft=(bw.ns4 || (bw.iemac && !bw.ie5))?this.css.left:eval(this.css.left.slice(0,this.css.left.length-2));
		if (bw.ns5mac){
			this.origtop=eval(this.css.top.slice(0,this.css.top.length-2));
			this.origleft=eval(this.css.left.slice(0,this.css.left.length-2));
		}
		OrigX[this.el.id]=this.origleft;	OrigY[this.el.id]=this.origtop;
	}
	else{	  		this.origleft=OrigX[this.el.id];	this.origtop=OrigY[this.el.id];	}
	if (page.width>magickx && page.height>magicky){
		this.newleft=page.cx-magickcx+this.origleft;
		this.newtop=page.cy-magickcy+this.origtop;
	}
	else if (page.width>magickx && page.height<magicky){
		this.newleft=page.cx-magickcx+this.origleft;
		this.newtop=this.origtop;
	}
	else if (page.width<magickx && page.height>magicky){
		this.newleft=this.origleft;
		this.newtop=page.cy-magickcy+this.origtop;
	}
	else{
		this.newleft=this.origleft;
		this.newtop=this.origtop;
	}
	move(this.newleft,this.newtop,this.el.id);
	if (this.el.id !="atab" || this.el.id !="plus1" || this.el.id !="plus2" || this.el.id !="plus3" || this.el.id !="arrow1" || this.el.id !="arrow2" || this.el.id !="arrow3"){  this.css.visibility="visible";}
	if (this.el.id.slice(0,this.el.id.length-1)=="plus" || this.el.id.slice(0,this.el.id.length-1)=="arrow"){ this.css.visibility="hidden";}
//	if (this.el.id =="main"){
//		secondload();
//  }
	return this;
}
function makeNObj(obj,nest,lvl){
	nest=(!nest) ? '':'document.'+nest+'.'
	this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
  this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
	this.height=bw.ns4?this.css.document.height:this.el.offsetHeight
	this.width=bw.ns4?this.css.document.width:this.el.offsetWidth
	this.cx=(this.width/2)
	this.cy=(this.height/2)
	this.level=lvl;
	if (firsttime){
		this.origtop=(bw.ns4 || (bw.iemac && !bw.ie5))?this.css.top:eval(this.css.top.slice(0,this.css.top.length-2));
		this.origleft=(bw.ns4 || (bw.iemac && !bw.ie5))?this.css.left:eval(this.css.left.slice(0,this.css.left.length-2));
		if (bw.ns5mac){
			this.origtop=eval(this.css.top.slice(0,this.css.top.length-2));
			this.origleft=eval(this.css.left.slice(0,this.css.left.length-2));
		}
		OrigX[this.el.id]=this.origleft;	OrigY[this.el.id]=this.origtop;
	}
	else{	  		this.origleft=OrigX[this.el.id];	this.origtop=OrigY[this.el.id];	}
	if (page.width>magickx && page.height>magicky){
		this.newleft=page.cx-magickcx+this.origleft;
		this.newtop=page.cy-magickcy+this.origtop;
	}
	else if (page.width>magickx && page.height<magicky){
		this.newleft=eval(page.cx-magickcx+this.origleft);
		this.newtop=this.origtop;
	}
	else if (page.width<magickx && page.height>magicky){
		this.newleft=this.origleft;
		this.newtop=eval(page.cy-magickcy+this.origtop);
	}
	else{
		this.newleft=this.origleft;
		this.newtop=this.origtop;
	}
	move(this.newleft,this.newtop,this.el.id);
	return this;
}
function makeSObj(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.'
	this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
	this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
	this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
	this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
	this.up=goUp;this.down=goDown;
	this.moveIt=moveIt; this.x; this.y;
  this.obj = obj + "Object"
  eval(this.obj + "=this")
	this.firstime=true;
	this.css.visibility="visible";
	if (this.el.id.slice(0,7)=="divText" ){	this.moveIt(0,0);}
	if (this.el.id=="divText" ){	if (this.scrollHeight>oCont.clipHeight){ dshow("arrow1"); dshow("plus1"); } this.factor=this.scrollHeight-oCont.clipHeight }
	if (this.el.id=="divText2" ){	if (this.scrollHeight>oCont2.clipHeight){ dshow("arrow2"); dshow("plus2"); } this.factor=this.scrollHeight-oCont2.clipHeight}
	if (this.el.id=="divText3" ){	if (this.scrollHeight>oCont3.clipHeight){ dshow("arrow3"); dshow("plus3"); }	this.factor=this.scrollHeight-oCont3.clipHeight}
  return this;
}
function pageinfo(){
	this.x=0; 	this.y=0;
	this.width=(bw.ns4 || bw.ns5)?window.innerWidth:document.body.clientWidth;
	this.height=(bw.ns4 || bw.ns5)?window.innerHeight:document.body.clientHeight;
	this.cy=Math.round(this.height/2);	this.cx=Math.round(this.width/2);
	return this;
}

function netscapeCssFix() {
	if (bw.ns4) {  	if (document.OSCOPE.OSCOPE_netscapeCssFix.initWindowWidth != window.innerWidth || document.OSCOPE.OSCOPE_netscapeCssFix.initWindowHeight != window.innerHeight) {			history.go(0);  	}	}
	else{
		if (bw.ie4 || bw.ns4){	history.go(0);	}
		else	{		history.go(0); }
	}
}
function netscapeCssFixCheckIn() {
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {    if (typeof document.OSCOPE == 'undefined'){      document.OSCOPE = new Object;    }
    if (typeof document.OSCOPE.OSCOPE_scaleFont == 'undefined') {      document.OSCOPE.OSCOPE_netscapeCssFix = new Object;      document.OSCOPE.OSCOPE_netscapeCssFix.initWindowWidth = window.innerWidth;	      document.OSCOPE.OSCOPE_netscapeCssFix.initWindowHeight = window.innerHeight;    }
    window.onresize = netscapeCssFix;
  }
	else{ window.onresize = netscapeCssFix;}
}
netscapeCssFixCheckIn()
function mLover(id,div){ 
	if (document.images){
			if (bw.ns4){  document.layers[div].document[id].src=eval(id+"_z.src");	}
			else {	document[id].src=eval(id+"_z.src");	}
	}
}
function mLout(id,div){
	if (document.images){
			if (bw.ns4){  document.layers[div].document[id].src=eval(id+".src");  }
			else {	document[id].src=eval(id+".src");  }
	}
}
function clipem(div,y1,x2,y2,x1,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;
	if (bw.ns4){ obj.clip.top = y1;	obj.clip.bottom = y2; obj.clip.right = x2;	obj.clip.left = x1;  }
	else { 	obj.clip = "rect(" + y1 + "px " + x2 + "px " + y2 + "px " + x1 + "px)"	}
}
//var activetab="";
function navstab(tab){	dshow(tab);	}
function navhtab(tab){	dhide(tab);	}

oNavObj= new Object;
var divs; var idvalue;
//var active=''; 
var index="1";
//var active2='';
//var active3='';

function zeromo(){
	dhide("zero");
	for (var i=0; i<j;i++){
		dhide(oNavObj[i]);
	}
	if (CheckforDiv("newsContTCCC")){
		dshow("newsContTCCC")
	}
	if (CheckforDiv("countrySelect")){
		dshow("countrySelect")
	}
}
var j=0;
function navsetup(){
	oZero=(CheckforDiv("zero"))?new makeNObj("zero"):false;
	oZero.el.onmouseover = function(){ 		zeromo(); };
	divs = (bw.ie4)?document.all.tags("div"):(bw.ns4)?document.layers:document.getElementsByTagName("div");
	for (var i=0; i<divs.length;i++){
		idvalue = divs[i].id;
		if (idvalue.slice(idvalue.length-3,idvalue.length)=="tab"){
			oNavObj[j]=idvalue;
			j++;
		}
	}

	oLogo=(CheckforDiv("logo"))?new makeObj("logo"):false;	
	oNav=(CheckforDiv("navigation"))?new makeObj("navigation"):false;
//	oNav2=(CheckforDiv("navigation2"))?new makeObj("navigation2"):false;
}
var dnarrow1 =  new Image(13,13);	dnarrow1.src = "images/dnarrow.gif";
var dnarrow1_z =  new Image(13,13);	  dnarrow1_z.src = "images/dnarrow_z.gif";
var uparrow1 =  new Image(13,13);	uparrow1.src = "images/uparrow.gif";
var uparrow1_z =  new Image(13,13);	  uparrow1_z.src = "images/uparrow_z.gif";

//If you want it to move faster you can set this lower:
var speed=50
//Sets variables to keep track of what's happening
var loop, timer
function scroll(speed,type){
	if(loaded){
		loop=true;
		if (type == "divText"){
			if(speed>0) oScroll.down(speed)
			else oScroll.up(speed)
		}
		if (type == "divText2"){
			if(speed>0) oScroll2.down(speed)
			else oScroll2.up(speed)
		}
		if (type == "divText3"){
			if(speed>0) oScroll3.down(speed)
			else oScroll3.up(speed)
		}
	}
}
//Makes the object go up
function goDown(move){
if (this.el.id =="divText"){	if(this.y>-this.scrollHeight+oCont.clipHeight){
		this.moveIt(0,this.y-move)
			if(loop) setTimeout(this.obj+".down("+move+")",speed)
}	}
if (this.el.id =="divText2"){	if(this.y>-this.scrollHeight+oCont2.clipHeight){
		this.moveIt(0,this.y-move)
			if(loop) setTimeout(this.obj+".down("+move+")",speed)
}	}
if (this.el.id =="divText3"){	if(this.y>-this.scrollHeight+oCont3.clipHeight){
		this.moveIt(0,this.y-move) 
			if(loop) setTimeout(this.obj+".down("+move+")",speed)
}	}
}
//Makes the object go down
function goUp(move){
	if(this.y<0){
		this.moveIt(0,this.y-move)
		if(loop) setTimeout(this.obj+".up("+move+")",speed)
	}
}
var num=0;
function moveIt(x,y){
	if(!firsttime) { 
		num=(-y)*(14/this.factor);
		if (this.el.id=="divText"){		oPlus.top=oPlus.strtY+Math.round(num);
			if (oPlus.top>oPlus.lmtY){oPlus.top=oPlus.lmtY;}
			if (oPlus.top<oPlus.strtY){oPlus.top=oPlus.strtY; }
			if (y<(-this.scrollHeight+oCont.clipHeight)){ y=-this.scrollHeight+oCont.clipHeight			}
			if (isNaN(oPlus.top) && bw.iemac){ history.go(0); }
			else{oPlus.css.top=oPlus.top;}
		}
		if (this.el.id=="divText2"){
			oPlus2.top=oPlus2.strtY+Math.round(num);
			if (oPlus2.top>oPlus2.lmtY){oPlus2.top=oPlus2.lmtY; }
			if (oPlus2.top<oPlus2.strtY){  oPlus2.top=oPlus2.strtY; }
			if (y<(-this.scrollHeight+oCont2.clipHeight)){
				 y=-this.scrollHeight+oCont2.clipHeight
			}
			if (isNaN(oPlus2.top) && bw.iemac){ history.go(0); }
			else{oPlus2.css.top=oPlus2.top;}
		}
		if (this.el.id=="divText3"){
			oPlus3.top=oPlus3.strtY+Math.round(num);
			if (oPlus3.top>oPlus3.lmtY){oPlus3.top=oPlus3.lmtY;}
			if (oPlus3.top<oPlus3.strtY){oPlus3.top=oPlus3.strtY;}
			if (y<(-this.scrollHeight+oCont3.clipHeight)){
				 y=-this.scrollHeight+oCont3.clipHeight
			}
			if (isNaN(oPlus3.top) && bw.iemac){ history.go(0); }
			else{oPlus3.css.top=oPlus3.top;}
		}
	}
	if (y>0){y=0;}
	this.x=x; this.y=y
	this.css.left=this.x
	this.css.top=this.y
}
function noScroll(){
	loop=false
	if(timer) clearTimeout(timer)
}
function gothere() {
  if (document.layers) {
    location = document.layers['countrySelect'].document.sel.edu.options[document.layers['countrySelect'].document.sel.edu.selectedIndex].value
  }
  else {
    location = document.sel.edu.options[document.sel.edu.selectedIndex].value;
  }
}