function showVideo() {

 var videoEmbed = document.createElement("embed");
 videoEmbed.setAttribute("id", "popup-content");
 videoEmbed.setAttribute("width", 360);
 videoEmbed.setAttribute("height", 300);
 videoEmbed.setAttribute("src", "/Flash/Video/vbVideoPlayer");
 videoEmbed.setAttribute("type", "application/x-shockwave-flash");
  videoEmbed.setAttribute("wmode", "transparent");
 videoEmbed.setAttribute("debugmode", "No");
  videoEmbed.setAttribute("style", "position: relative;");
 videoEmbed.setAttribute("name", "flashDisplay1");
 document.getElementById('inner').replaceChild(videoEmbed, document.getElementById("popup-content"));

 document.getElementById('popup-download').style.display='block';
}

function cacherVoir(theDIV){
	leStyle = document.getElementById(theDIV).style ;
	if(leStyle.display == "block") {
		leStyle.display = "none";
	} else {
		leStyle.display = "block";
	}
}

function change_tab(id) {
  var d = document;
  for (i=1; i <= 4; i++) {
    d.getElementById('tab_btn_' + i).className = '';
    d.getElementById('tab_' + i).style.display = 'none';
  }
  d.getElementById('tab_btn_' + id).className = 'active';
  d.getElementById('tab_' + id).style.display = 'block';
  return false;
}

function getParam( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

function smallContactFormSubmit()
{
    if($('custom_lead_source_hidden') != null)
    {
        $('lead_source_hidden').value = $('custom_lead_source_hidden').value; 
    }
    validation.validate(); 
    if(formValidationResult == false)
    {
        return false;
    }
    document.forms[0].action = 'http://now.eloqua.com/e/f2.aspx';
}
