//////////////////////////////////////////////
//    BOOKMARK
//////////////////////////////////////////////
function addBookmark(url, title) 
{ 
  if (!url) url = location.href; 
  if (!title) title = document.title; 
  
  //Gecko 
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel ("FilmLivez", "http://www.filmlivez.com/", ""); 
  //IE4+ 
  else if (typeof window.external == "object") window.external.AddFavorite("http://www.filmlivez.com/", "Filmlivez"); 
  //Opera7+ 
  else if (window.opera && document.createElement) 
  { 
    var a = document.createElement('A'); 
    if (!a) return false; //IF Opera 6 
    a.setAttribute('rel','sidebar'); 
    a.setAttribute('href',url); 
    a.setAttribute('title',title); 
    a.click(); 
  } 
  else return false; 
  
  return true; 
} 


//////////////////////////////////////////////
//     CLEAR INPUT 
//////////////////////////////////////////////
function ClearInput(value, id){ // This calls our function ClearInput, and the two variables we will need for it to function the original value and the id.
var input = document.getElementById(id); // Gets the input field based on its id.
if(value == input.value){ // If the default value is equal to the current value.
input.value = ''; // Empty It.
}else{ // Else the value is not equal to the current input field value.
input.value = input.value; // Leave it the same.
} // End Else.
} // Close Function.


//////////////////////////////////////////////
//     AFFICHAGE VIDEO
//////////////////////////////////////////////
function loadVideo(abc,def)
{
	document.getElementById('vidz').innerHTML = '<iframe scrolling="no" frameborder="0" src="http://www.filmlivez.com/player.php?id=' + abc + '&partie=' + def + '" width="625" height="400"></iframe>';
}
