function activateMenu(menuName)
{
	$('#link' + menuName).addClass('menuActive');
}

function activateAbout()
{
	activateMenu('About');
	showCarat('about');
}

function activateBeforeAfter()
{
	activateMenu('BeforeAfter');
	showCarat('befaft')
}

function activateTestimonials()
{
	activateMenu('Testimonials');
	showCarat('testimonials');
}

function enactDropdown() {
	dropdownDiv = document.getElementById('aboutDrop');

	if (dropdownDiv) {
		dropdownDiv.style.display = "block";
		dropdownDiv.style.visibility = "visible";
	}
	
}
function deactDropdown() {
	dropDiv = document.getElementById('aboutDrop') ;

	if (dropDiv) {
		dropDiv.style.display = "none";
		dropDiv.style.visibility = "hidden";
	}
}

function closePlayer() {
	var playerObj = document.getElementById('player_pop');
	playerObj.style.visibility = "hidden";
	playerObj.style.display = "none";
	playerObj.innerHTML = ' ';
}

function openPlayer(vid2show) {
	var playerObj = document.getElementById('player_pop');
	playerObj.style.visibility = "visible";
	playerObj.style.display = "block";
	//swfobject rewrites the video div with its own div, so our video div has to be written back in every time
	playerObj.innerHTML = '<table cellpadding="0" cellspacing="0" border="0" style="width:100%; height:100%;"><tr><td align="right" valign="top" style="height:24px;"><a href="javascript:closePlayer();"><img src="/images/spacer.gif" alt="Close Video Player" width="24" height="24" border="0" /></a></td></tr><tr><td align="center" valign="middle"><div id="videoPop"></div></td></tr></table>';
	switch (vid2show) {
	case "saying":
	videoSWF = "http://www.lumineersbycerinatevipclub.com/testimonial_video.swf"
	vidWidth = "550";
	vidHeight = "400";
	break;
	case "tv":
	videoSWF = "Lumineers-2min_2.swf"
	vidWidth = "480";
	vidHeight = "388";
	break;
	case "ad":
	videoSWF = "Lumineers-2min_2.swf" //note: temp video, this is Testimonials Video from TV Campaign
	vidWidth = "480";
	vidHeight = "388";
	break;
	}

	swfobject.embedSWF(videoSWF, "videoPop", vidWidth, vidHeight, "9.0.0", "expressInstall.swf", {wmode:"transparent"});
}

function showCarat(caratDiv) {
	caratDiv = caratDiv + "_carat"
	var caratObj = document.getElementById(caratDiv);
	caratObj.style.visibility = "visible";
	caratObj.style.display = "block";
}

function clearDefault(objName, defaultValue) { 
	var htmlObj = document.getElementById(objName); 
	if ( htmlObj.value == defaultValue ) 
				
		htmlObj.value = "" ;
	
}

function setDefault(objName, defaultValue) { 
	var htmlObj = document.getElementById(objName); 
	if ( htmlObj.value == "" ) 
				
		htmlObj.value = defaultValue ;
	
}

function playCommercial(videoName, videoDiv, vidWidth, vidHeight) {
       swfobject.embedSWF(videoName, videoDiv, vidWidth, vidHeight, "9.0.0", "expressInstall.swf", {wmode:"transparent"});
}