var page_number = 2;
		function hover( list )
		{
			document.body.style.cursor = "hand";
			document.body.style.cursor = "pointer";
			list.className = "hover"; 
		}
		function unhover( list )
		{
			list.className = "unhover";	
			document.body.style.cursor = "auto";
		}
		function imgHover(list)
		{
			document.body.style.cursor = "hand";
			document.body.style.cursor = "pointer";
			list.className = "printer_icon_hover";
		}
		function imgunHover(list)
		{
			document.body.style.cursor = "auto";
			list.className = "printer_icon";
		}
function img_hover(list)
{
	var i =  document.getElementById("show");
	document.body.style.cursor = "hand";
	document.body.style.cursor = "pointer";
	list.className = "nun_selected";
}
function img_unhover(list)
{
	document.body.style.cursor = "auto";
	list.className = "un_selected";
}

function chkLoading()
{
	if(preloaded[aIndex].complete==true) {  }
	else{setTimeout("chkLoading()",100) }
}
var time_out_check;
function getLoad( locator ) {
	var img01 = loadImage( locator );
	setTimer( img01 );
}

function setTimer( image_name )
{
	time_out_check = setTimeout(function(){checkProgress(image_name)},100);
}
function clearVisible ( )
{
	for ( var i = 1; i < 59; i++ )
	{
		var xlmns = ( "a" + i );
		var e =  document.getElementById( xlmns );
		e.style.visibility = "hidden";
		e.style.top = "1180px";
		e.style.left = "260px";
	}
}
function makeVisible( xlts )
{
	var xwinos = ( "a" + xlts );
	var xdiv =  document.getElementById( xwinos );
	xdiv.style.visibility = "visible";
}
function checkProgress( image_name )
{	
	if ( image_name.complete ) 
	{ 		
		if ( page_number != 1 && page_number < 7 ) {
			var showelement =  document.getElementById("show");
			showelement.style.backgroundColor = "#feff99";
			clearTimeout(time_out_check); 
			showelement.style.backgroundImage = "url(" + image_name.src + ")";
			showelement.style.visibility = "visible";
		}
		else
		{
			if ( page_number == 1 )
			{
				var img_element = document.getElementById("select_img");
			}
		}			
	}
	else
	{
		setTimer( image_name );
	}
}
function loadImage( xMin ) {
	var a01 = new Image();
	a01.src = xMin;
	return a01;
}
function moveImage( image_number ) { 
	var i =  document.getElementById("show");
	i.style.backgroundColor = "#b6b7ad";
	var image_increment = image_number + 30;
	var from = "images/bcha_concert_3rdOct2009/" + image_increment + ".jpg";
	getLoad( from );
	document.body.style.cursor = "auto";
	clearVisible();
	makeVisible( image_number );
}




