//============================ write Cookie ============================
function set_cookie( name, value, exp_y, exp_m, exp_d, path, domain, secure ){
	
  var cookie_string = name + "=" + escape ( value );
  if ( exp_y )
  {
    var expires = new Date ( exp_y, exp_m, exp_d );
    cookie_string += "; expires=" + expires.toGMTString();
  }

  if ( path )
        cookie_string += "; path=" + escape ( path );

  if ( domain )
        cookie_string += "; domain=" + escape ( domain );
  
  if ( secure )
        cookie_string += "; secure";
  
  document.cookie = cookie_string;
}
//=========================== read Cookie ================================
function get_cookie ( cookie_name )
{
  var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );

  if ( results )
    return ( unescape ( results[2] ) );
  else
    return null;
}
//======================================delete Cookie =====================
function delete_cookie ( cookie_name )
{
  var cookie_date = new Date ( );  // current date & time
  cookie_date.setTime ( cookie_date.getTime() - 1 );
  document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}

//menu cookie
/*
function menu5Link(e){	
	//delete_cookie ("");
	//delete_cookie("testez_gratuitement");
	//set_cookie("calulateur_de_cibles","CALCULATEUR_DE_CIBLES");
	//alert(get_cookie ("calulateur_de_cibles"));
	//alert('Testing');
	
}
*/
// JavaScript Document
function goto(l){
	window.location = l;	
}
function box1over(e){
	e.className = "box1over";
}
function box1(e){
	e.className = "box1";
}
function box1Link(e){
	//delete_cookie ("");
	//delete_cookie("calulateur_de_cibles");
	//set_cookie("testez_gratuitement","TESTEZ_GRATUITEMENT");
	//alert(get_cookie ("testez_gratuitement"));
	window.location.href="/testez_gratuitement.html";
	//eraseCookie("testez_gratuitement");
}
function box2over(e){
	e.className = "box2over";
}
function box2(e){
	e.className = "box2";
}
function box2Link(){
    window.location.href="/contactez-nous.html";
}
function box3over(e){
	e.className = "box3over";
}
function box3(e){
	e.className = "box3";
}
function box3Link(){
       window.location.href="/newsletters.html";
}
function box4over(e){
	e.className = "box4over";
}
function box4(e){
	e.className = "box4";
}
function box4Link(){
       window.location.href="/vous_faire_rappeler.html";
}
function news(e){
	e.className = "bigboxright";
	}
function newsOver(e){
	e.className = "bigboxrightover";
	}
function newsLink(){
       //window.location.href="##";
}
/*
function rss(e){
	e.className = "boxrss";
	}
function rssover(e){
	e.className = "boxrssover";
	}

function rssLink(){ 
       window.location.href="/rsslist.php";
}

*/
function rss(e){
	e.className = "boxrss";
	}
function rssover(e){
	e.className = "boxrssover";
	}

function rssLink(){
       window.location.href="/actuses.html";
}

//-------------------ACTUALIT?S 

function wrapNews(e){
	e.className = "wrapNews";
	}
function wrapNewsOver(e){
	e.className = "wrapNewsOver";
	}
function wrapNewsLink(){
       window.location.href="#";
}

//---------------- SUCCES STORIES

function usefullbox(e){
	e.className = "usefullbox";
	}
function usefullboxOver(e){
	e.className = "usefullboxOver";
	}
function wrapNewsLink(){
       window.location.href="#";
}

//---------------- Phone 
function phone(){
       window.location.href="/contactez-nous.html";
}




//onMouseOver="tr_mouse_over(this)" onMouseOut="tr_mouse_out(this)

/*document.write("<script language=\"javascript\" type=\"text/javascript\" src=\""+_URL+"/scripts/prototype.js\"></script>");
document.write("<script language=\"javascript\" type=\"text/javascript\" src=\""+_URL+"/scripts/delete.js\"></script>");*/


//var myCookie  = Cookie.write('username', 'JackBauer', {duration: 1});
