var video_url = "http://www.youtube.com/v/5k9Jbh8P4zw&hl=fr&fs=1&rel=0&showsearch=0&egm=0&&autoplay=1&loop=1&showinfo=0";
var video_height = 146;
var video_width = 195;

function switchPictures(img){
	
}

function hideTextBoxText(elementID, elementName)
{
	if(document.getElementById(elementID).value == elementName){
		document.getElementById(elementID).value = "";
	document.getElementById(elementID).style.color = "#000000";
	}
};

function showTextBoxText(elementID, elementName)
{
	if(document.getElementById(elementID).value == "")
{
	document.getElementById(elementID).value= elementName;
	document.getElementById(elementID).style.color = "#AAAAAA";
	}		
};	
function show_form(){
	document.getElementById("activation_form").style.visibility = "visible";
};

function hide_form(){
	document.getElementById("activation_form").style.visibility = "hidden";
};	

function switch_form_state(id){

	var ids = new Array('activation_form', 'services_form', 'user_account_form', 'subscription_form', 'special_actions_form');

for(var i = 0; i < ids.length; i++){
	if(ids[i] == id){
		if(document.getElementById(id).style.display == "table-row-group"){
			document.getElementById(id).style.display = "none";
		}else{
			document.getElementById(id).style.display = "table-row-group";
		}				
	}else{
		document.getElementById(ids[i]).style.display = "none";
		}
	}		
};

function hideUsernameTextBoxText()
{
	if(document.getElementById("<?php echo $this->css_prefix;?>_username").value == "<?php echo $this->site->translate('username')?>"){
	document.getElementById("<?php echo $this->css_prefix;?>_username").value="";
	document.getElementById("<?php echo $this->css_prefix;?>_username").style.color = "black";
	}
};

function hideEmailTextBoxText()
{
	if(document.getElementById("<?php echo $this->css_prefix;?>_email").value == "<?php echo $this->site->translate('email')?>"){
	document.getElementById("<?php echo $this->css_prefix;?>_email").value="";		
	document.getElementById("<?php echo $this->css_prefix;?>_email").style.color = "black";
	}
};

function displayUsernameTextBoxText()
{
	if(document.getElementById("<?php echo $this->css_prefix;?>_username").value == "")
{
	document.getElementById("<?php echo $this->css_prefix;?>_username").value="<?php echo $this->site->translate('username'); ?>";
	document.getElementById("<?php echo $this->css_prefix;?>_username").style.color = "#AAAAAA";
	}		
};

function displayEmailTextBoxText()
{
	if(document.getElementById("<?php echo $this->css_prefix;?>_email").value == "")
{
	document.getElementById("<?php echo $this->css_prefix;?>_email").value="<?php echo $this->site->translate('email'); ?>";
	document.getElementById("<?php echo $this->css_prefix;?>_email").style.color = "#AAAAAA";
	}		
};
