// JavaScript Document

pic=Array();

function preload_image(index, location){
	
	pic[index] = new  Image();
	pic[index].src=location;
	
}
function highlightBorder(x, total, start, pics_per_page){
	
	page_limit=start+pics_per_page;
				
	if(total >= page_limit){
			pics_per_page = page_limit;
	}else{
			pics_per_page = total;
	}

	
	for(i=(start); i<pics_per_page; i++){
		
	//	container=document.getElementById('container'+i);
		
	//	container.style.border="6px solid #eae0ce";
	//	container.style.filter="alpha(opacity=50)";
	//	container.style.opacity="0.5";
		
	}
	
	
	current_container=document.getElementById('container'+x);
	
		current_container.style.border="6px solid #eae0ce";
		current_container.style.filter="alpha(opacity=100)";
		current_container.style.opacity="1.0";
		
}

function playVideo(){
//document.getElementById('photo-container').innerHTML="<object width='361' height='280'><param name='movie' value='/common/video/rmh_vid.swf'></param><param name='wmode' value='#000000'></param><embed src='/common/video/rmh_vid.swf' type='application/x-shockwave-flash' wmode='#000000' width='361' height='280'></embed></object>";

	var so = new SWFObject("/common/flash/tour_video.swf", "video", "361", "241", "8.0.23", "#ffffff");

		// category name of photos you would like to randomly show up in header
		// leave empty if you want to randomize all photos
	//	so.addVariable("pageID","");
			
		// title that appears in the flash
//		so.addVariable("pageTitle", "Obasa Experience");			

		so.write("photo-container");


}






