


if((jQuery.browser.msie == true)&&(	jQuery.browser.version < 7)){
	document.location.href="ie6.html";
}











function attachRollovers(){
	$("img.rollover").unbind('hover').hover(
		function(){
			//console.log("over: " + $(this).attr("src"));
			var $this = $(this);
			var currSrc = $this.attr("src");
			var newSrc = (currSrc.indexOf("_o.png") == -1) ? currSrc.replace(".png","_o.png") : currSrc;
			$this.attr("src",newSrc);
		},
		function(){
			//console.log("out: " + $(this).attr("src"));
			var $this = $(this);
			var currSrc = $this.attr("src");
			var newSrc = (currSrc.indexOf("_o.png") > -1) ? currSrc.replace("_o.png",".png"): currSrc;
			$this.attr("src",newSrc);
		}
	);	
}


function global_init(){

	//	resize content pane to available height
	if ($('#content').height() < $(window).height()){
		$('#content').height($(window).height());
	}
	
	$(window).resize(function(){
		if ($('#content').height() < $(window).height()){
			$('#content').height($(window).height());
		}
	});
	
	
	//	initialise image rollovers
	attachRollovers();


}



