// JavaScript Document

function getRefToElement (elementID) {
	if( document.getElementById ) {return document.getElementById(elementID);}
	if( document.layers ) {return document.layers[elementID];}
	if( document.all ) {return document.all[elementID];}
	if( document[elementID] ) {return document[elementID];} return false;
}

function showSubMenus (elementID) {
	var services = getRefToElement('services'); services.style.display = 'none';
	var pricing = getRefToElement('pricing'); pricing.style.display = 'none';
	var websiteExamples = getRefToElement('websiteExamples'); websiteExamples.style.display = 'none';
	var printExamples = getRefToElement('printExamples'); printExamples.style.display = 'none';
	var contactUs = getRefToElement('contactUs'); contactUs.style.display = 'none';
	
	switch (elementID) {
		case 'services': services.style.display = 'block'; break;
		case 'pricing': pricing.style.display = 'block'; break;
		case 'websiteExamples': websiteExamples.style.display = 'block'; break;
		case 'printExamples': printExamples.style.display = 'block'; break;
		case 'contactUs': contactUs.style.display = 'block'; break;
	}
}