function showMenu(menuname)
{
	document.getElementById(menuname).style.display = 'block';
}

function hideMenu(menuname)
{
	document.getElementById(menuname).style.display = 'none';
}


function weddingImage()
{
	//to work with the script, naming convention for images should be wedding1.jpg, wedding2.jpg...  etc.
	//They should all be stored in images/homepage, dimensions are 375x247px
	var random_num = 0;
	
	//we need to know how many images there are, in order to set the randomizer correctly.
	var number_of_images = 3;
	random_num = (Math.floor((Math.random()*number_of_images)+1));

	document.write("<img src='/images/homepage/wedding" +random_num+ ".jpg' alt='Weddings and Events' />");
	
}


function portraitImage()
{
	//to work with the script, naming convention for images should be portrait1.jpg, portrait2.jpg...  etc.
	//They should all be stored in images/homepage, dimensions are 375x247px
	var random_num = 0;
	
	//we need to know how many images there are, in order to set the randomizer correctly.
	var number_of_images = 3;
	random_num = (Math.floor((Math.random()*number_of_images)+1));

	document.write("<img src='/images/homepage/portrait" +random_num+ ".jpg' alt='Family and Senior Portraits' />");
	
}


function talentImage()
{
	//to work with the script, naming convention for images should be talent1.jpg, talent2.jpg...  etc.
	//They should all be stored in images/homepage, dimensions are 375x247px
	var random_num = 0;
	
	//we need to know how many images there are, in order to set the randomizer correctly.
	var number_of_images = 3;
	random_num = (Math.floor((Math.random()*number_of_images)+1));

	document.write("<img src='/images/homepage/talent" +random_num+ ".jpg' alt='Commercial, Editorial, and Talent' />");
	
}

function specialImage()
{
	//to work with the script, naming convention for images should be special1.jpg, special2.jpg...  etc.
	//They should all be stored in images/homepage, dimensions are 375x247px
	var random_num = 0;
	
	//we need to know how many snippets there are, in order to set the randomizer correctly.
	var number_of_snippets = 5;
	random_num = (Math.floor((Math.random()*number_of_snippets)+1));

	if (random_num == 1) {
		// snippet for special #1
		document.write("<a href='http://www.etsy.com/shop.php?user_id=642791'><img src='images/homepage/special1.jpg' alt='Art Prints by Enko are available on Etsy!' /></a>");
	}
	else if (random_num == 2) {
		// snippet for special #2
		document.write("<a href='http://www.enkoweddings.com'><img src='images/homepage/special4.jpg' alt='Our new all-weddings website: EnkoWeddings.com!' /></a>");	
	}
	else if (random_num == 3) {
		// snippet for special #3
		document.write("<a href='http://enkophoto.wordpress.com/'><img src='images/homepage/special3.jpg' alt='Read our photography blog' /></a>");	
		}	
	else if (random_num == 4) {
		// snippet for special #4
		document.write("<a href='http://www.facebook.com/pages/Portland-OR/Enko-Photography/44123459454'><img src='images/homepage/special5.jpg' alt='Join us on Facebook' /></a>");	
		}	
	else {
		// default snippet for Wedding and Event Proofs
		document.write("<a href='http://images.enkophoto.com/Proofs'><img src='images/homepage/special2.jpg' alt='View Wedding and Event Proofs' /></a>");	
	}


}