// Rollovers and Browser Detect Scripts
<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src= arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src= changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		topmenu_home_over = newImage("/shared/images/topmenu_home-over.gif");
		topmenu_facts_over = newImage("/shared/images/topmenu_facts-over.gif");
		topmenu_activities_over = newImage("/shared/images/topmenu_activities-over.gif");
		topmenu_arts_over = newImage("/shared/images/topmenu_arts-over.gif");
		topmenu_entertainment_over = newImage("/shared/images/topmenu_entertainment-over.gif");
		topmenu_conference_over = newImage("/shared/images/topmenu_conference-over.gif");
		topmenu_volunteering_over = newImage("/shared/images/topmenu_volunteering-over.gif");
		topmenu_media_over = newImage("/shared/images/topmenu_media-over.gif");
		topmenu_sponsorship_over = newImage("/shared/images/topmenu_sponsorship-over.gif");
		topmenu_donate_over = newImage("/shared/images/topmenu_donate-over.gif");
		preloadFlag = true;
	}
}

<!-- submenu rollover script -->

var isNS4 = (document.layers) ? true : false;
var isIE4 = (document.all) ? true : false;
var isW3C = (document.getElementById) ? true : false;

var hideMenu = null;
function Hide(div){
if(isIE4) eval('document.all.'+div+'.style.visibility="hidden"');
if(isNS4) eval('document.layers.'+div+'.visibility="hide"');
if(isW3C) eval('document.getElementById("'+div+'").style.visibility="hidden"');
}
	
function Show(div){
if(isIE4) eval('document.all.'+div+'.style.visibility="visible"');
if(isNS4) eval('document.layers.'+div+'.visibility="show"');
if(isW3C) eval('document.getElementById("'+div+'").style.visibility="visible"');
}

function imgOn() {
hideAll();
}

//MenuMouseOver
function SubMenuOn() {
clearTimeout(hideMenu);
}

function SubMenuOff() {
hideMenu=setTimeout('hideAll()',500)
}

function hideAll(){
Hide('factsmenu');
Hide('activitiesmenu');
Hide('artmenu');
Hide('entertainmentmenu');
Hide('conferencemenu');
Hide('volunteermenu');
Hide('mediamenu');
Hide('supportersmenu');
}

// This script sets OSName
// "MacOS"      for all versions of Macintosh OS

var OSName="Unknown OS";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";


// begin absolutely positioned scrollable area object scripts 
/*
Extension developed by David G. Miles (www.z3roadster.net/dreamweaver)
Original Scrollable Area code developed by Thomas Brattli 
To add more shock to your site, visit www.DHTML Shock.com
*/

function verifyCompatibleBrowser(){ 
    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.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
 
    this.ns4=(document.layers && !this.dom)?1:0; 
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
    return this 
} 
bw=new verifyCompatibleBrowser() 
 
 
var speed=50 
 
var loop, timer 
 
function ConstructObject(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=MoveAreaUp;this.down=MoveAreaDown; 
    this.MoveArea=MoveArea; this.x; this.y; 
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this 
} 
function MoveArea(x,y){ 
    this.x=x;this.y=y 
    this.css.left=this.x 
    this.css.top=this.y 
} 
 
function MoveAreaDown(move){ 
	if(this.y>-this.scrollHeight+objContainer.clipHeight){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".down("+move+")",speed) 
	} 
} 
function MoveAreaUp(move){ 
	if(this.y<0){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".up("+move+")",speed) 
	} 
} 
 
function PerformScroll(speed){ 
	if(initialised){ 
		loop=true; 
		if(speed>0) objScroller.down(speed) 
		else objScroller.up(speed) 
	} 
} 
 
function CeaseScroll(){ 
    loop=false 
    if(timer) clearTimeout(timer) 
} 
var initialised; 
function InitialiseScrollableArea(){ 
    objContainer=new ConstructObject('divContainer') 
    objScroller=new ConstructObject('divContent','divContainer') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 
} 
// end absolutely positioned scrollable area object scripts 

// -->

/* 2010-04-20 */


function goLocation( thisFormSelect ){
  var thisSelection = thisFormSelect.options[thisFormSelect.selectedIndex].value;
  if (thisSelection != "") {
    location = thisSelection;
  }
}

if (window.screen){ 
var ranNum= Math.floor(Math.random()*8+1); 
document.write("<link rel='stylesheet' href='css/homephoto"+ranNum+".css' type='text/css'>"); 
}

