function showDiv (divId) {
	hideAllDivs();
	if (document.getElementById(divId)) {
		document.getElementById(divId).style.display = "block";
	}
}
function hideDiv (divId) {
	if (document.getElementById(divId)) {
		document.getElementById(divId).style.display = "none";
	}
}

function hideAllDivs(){
	var total = 7;
	for (i=1; i<(total+1); i++){
		//alert('page'+pageNum+'vidDescFull'+i)
		hideDiv('q'+i);
	}
}

// Sets the default page status
defaultStatus="Zimbo Photography"

function get_random(totalNo)
{
	if (Math.random && Math.round)
	{
	var randNum= Math.round(Math.random()*(totalNo-1));
	randNum+=1;
	return randNum;
	}else{
	today= new Date();
	hours= today.getHours();
	mins=   today.getMinutes();
	secn=  today.getSeconds();
	if (hours==19)
	hours=18;
	var randNum= (((hours+1)*(mins+1)*secn)%totalNo)+1;
	return randNum;
	}
}

function randomImage1()
{
	if (document.images){
	var selectedImg= get_random(10);  
	selectedImg--;

	var imageNo= new Array(10) 

	imageNo[0]="images/home/he_image01.jpg";  
	imageNo[1]="images/home/he_image02.jpg";  
	imageNo[2]="images/home/he_image03.jpg";
	imageNo[3]="images/home/he_image04.jpg";  
	imageNo[4]="images/home/he_image05.jpg";  
	imageNo[5]="images/home/he_image06.jpg";  
	imageNo[6]="images/home/he_image07.jpg";  
	imageNo[7]="images/home/he_image08.jpg";  
	imageNo[8]="images/home/he_image09.jpg";  
	imageNo[9]="images/home/he_image10.jpg";    
	document.write("<a href='events.html'><img src='"+imageNo[selectedImg]+"' width='273' height='410' alt='Events image' title='Events image' border='0'></a>");
 }
}

function randomImage2()
{
	if (document.images){
	var selectedImg= get_random(6);  
	selectedImg--;

	var imageNo= new Array(6) 

	imageNo[0]="images/home/hw_image01.jpg";  
	imageNo[1]="images/home/hw_image02.jpg";  
	imageNo[2]="images/home/hw_image03.jpg";  
	imageNo[3]="images/home/hw_image04.jpg";  
	imageNo[4]="images/home/hw_image05.jpg";  
	imageNo[5]="images/home/hw_image06.jpg";
	imageNo[6]="images/home/hw_image07.jpg";
	imageNo[7]="images/home/hw_image08.jpg";
	imageNo[8]="images/home/hw_image09.jpg";
	imageNo[9]="images/home/hw_image10.jpg";
	document.write("<a href='wedding-photographer.html'><img src='"+imageNo[selectedImg]+"' width='273' height='410' alt='Weddings image' title='Weddings image' border='0'></a>");
 }
}