function jumpMenu(targ,selObj,restore)
{
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function loadSplash(){
	
	$('bigj').setStyle({opacity: 0.0});
		
	$('nature').setStyle({opacity: 0.0});
		
	$('places').setStyle({opacity: 0.0});
	
	new Effect.Opacity('bigj',{duration:0.8, delay:0.8, from:0.0, to:0.7});
	
	new Effect.Opacity('nature',{duration:0.8, delay:1.0, from:0.0, to:0.7});
	
	new Effect.Opacity('places',{duration:0.8, delay:1.2, from:0.0, to:0.7});
		
}

function toggleLink(obj){
	
	if(Element.getOpacity(obj) == 1.0){
		
		new Effect.Opacity(obj,{duration:0.3, from:1.0, to:0.8});
			
	}else{
		
		new Effect.Opacity(obj,{duration:0.3, from:0.8, to:1.0});
				
	}
	
}


// make site background white or black depending on local time

function timeDay(hour){
	
	if(hour > 5 && hour < 18){
		
		document.body.style.backgroundColor = "#FFFFFF";
		
		$('header').style.backgroundImage = "url(images/branding.gif)";
		
		$('byline').src = "images/designed_by_line.gif";
		
		$('colourbutton').innerHTML='<a href="#" onclick="night();"><img src="images/dark_but.gif" alt="Switch to black background" title="Lights Off" /></a>';
		
	} else {
		
		document.body.style.backgroundColor = "#000000";
		
		$('header').style.backgroundImage = "url(images/branding_dark.gif)";
		
		$('byline').src = "images/designed_by_line_dark.gif";
		
		$('colourbutton').innerHTML='<a href="#" onclick="day();"><img src="images/white_but.gif" alt="Switch to white background" title="Lights On" /></a>';
		
	}
	
}


// manually make background black

function night(){
	
	new Effect.Highlight('mainbody', {duration:0.3, startcolor:'#ffffff', endcolor:'#000000', restorecolor:'#000000'});
	
	setTimeout("nightImages()",150);
	
}

function nightImages(){
	
	$('header').style.backgroundImage = "url(images/branding_dark.gif)";
	
	$('byline').src = "images/designed_by_line_dark.gif";
	
	$('colourbutton').innerHTML='<a href="#" onclick="day();"><img src="images/white_but.gif" alt="Switch to white background" title="Lights On" /></a>';
	
}

// manually make background white

function day(){
	
	new Effect.Highlight('mainbody', {duration:0.3, startcolor:'#000000', endcolor:'#ffffff', restorecolor:'#ffffff'});
	
	setTimeout("dayImages()",150);
	
}

function dayImages(){
	
	$('header').style.backgroundImage = "url(images/branding.gif)";
	
	$('byline').src = "images/designed_by_line.gif";
	
	$('colourbutton').innerHTML='<a href="#" onclick="night();"><img src="images/dark_but.gif" alt="Switch to black background" title="Lights Off" /></a>';
	
}
