	
	function BrowserDetection(){
		//
		// Browser Detection
		//
		isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
		NS4 = (document.layers) ? true : false;
		IEmac = ((document.all)&&(isMac)) ? true : false;
		IE4plus = (document.all) ? true : false;
		IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
		IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
		IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
		ver4 = (NS4 || IE4plus) ? true : false;
		NS6 = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;
		
		IE5plus = IE5 || IE6;
		IEMajor = 0;
		
		if (IE4plus){
			return('IE');
		} else {
			return('other');
		}
	}
	
	function setContentHeight() {
		if(BrowserDetection()=='IE'){
			return;
		}
		if (document.getElementById) {
			var windowHeight=getWindowHeight();
			if (windowHeight>0) {
				document.getElementById('contentcontainer').style.height=(windowHeight-60)+'px';  // offset from top - footer - footerborder
			}
			var windowWidth=getWindowWidth();
			if (windowWidth>0) {
				document.getElementById('contentcontainer').style.width=(windowWidth-30)+'px';  // offset from top - footer - footerborder
			}
		}
	}
	function getWindowHeight() {
		var windowHeight=0;
		if (typeof(window.innerHeight)=='number') {
			windowHeight=window.innerHeight;
		} else {
			if (document.documentElement&&
				document.documentElement.clientHeight) {
				windowHeight=
				document.documentElement.clientHeight;
			} else {
				if (document.body&&document.body.clientHeight) {
					windowHeight=document.body.clientHeight;
				}
			}
		}
		return windowHeight;
	}
	
	function getWindowWidth() {
		var windowWidth=0;
		if (typeof(window.innerWidth)=='number') {
			windowWidth=window.innerWidth;
		} else {
			if (document.documentElement&&
				document.documentElement.clientWidth) {
				windowWidth=
				document.documentElement.clientWidth;
			} else {
				if (document.body&&document.body.clientWidth) {
					windowWidth=document.body.clientWidth;
				}
			}
		}
		return windowWidth;
	}
	
	function RandomImage() {
	var imagenumber = 3 ;
	var randomnumber = Math.random() ;
	var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
	images = new Array;
	images[1] = "/images/campimage01.jpg";
	images[2] = "/images/campimage02.jpg";
	images[3] = "/images/campimage03.jpg";
	var image = images[rand1];
	document.write('<IMG SRC="' + image + '">');
}

function stopClick(e)
{
	if (!e) var e = window.event;
	e.cancelBubble = true;
	if (e.stopPropagation) e.stopPropagation();
}

