
var d=document;
d.c_tab = 1;




//	preload images
	
if(d.images){

	var j=0, a = new Array();
	d.preload = new Array();
	
	//	images to preload, in order of requirement
	a[a.length] = 'back1.jpg';
	a[a.length] = 'back2.jpg';
	a[a.length] = 'back3.jpg';

	//	loop through images, making sourced objects of them
	for(i=0; i<a.length; i++) {
		d.preload[i]=new Image;
		d.preload[i].src=a[i];
		}
//	alert('preloaded '+a.length+' of '+d.preload.length);

	}

	


function tab(select) {
	
	$('tab'+select).blur();
	
	for(i=1; i<=3; i++){
		$('info'+i)[select==i ? 'show' : 'hide']();
		$('tab'+i)[select==i ? 'removeClassName' : 'addClassName']('fade');
		$('home_landscape').removeClassName('landscape'+i);
		}
	
	$('home_landscape').addClassName('landscape'+select);
	
	
	}



