window.onerror=stoperror

function PopupCentrer(page,largeur,hauteur,options) {
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

function stoperror(){
 return true
}

function voyages(id)
{
	window.open('http://www.voyages-voyage.com');
}

function hebergement(id)
{
	window.open('http://sivit.fr/index-fr.php?click=12144');
}
 
 
 
 function f_select(action)
{
 chemin = location.href;
 pos = chemin.lastIndexOf('/');
 chemin = chemin.substring(pos+1);
 pos = chemin.indexOf('?');
 if (pos != -1) chemin = chemin.substring(0, pos);
 if (navigator.userAgent.indexOf('MSIE') != -1 && chemin != 'voyages') // IE
 {
  if (action == 0) action = 'hidden'; else action = 'visible';
  calque = document.getElementsByTagName('select'); 
 }
}
// SPECIAL MENU
sfHover = function()
{
  var sfEls = document.getElementById("nav").getElementsByTagName("LI");
  for (var i=0;i<sfEls.length;i++)
  {
   sfEls[i].onmouseover = function()
   {
    this.className += " sfhover";
   }
   sfEls[i].onmouseout = function()
   {
    this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
   }
  }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


function r_over(lr){
		lr.className = "Out";
}
		
function r_out(lr){
	lr.className = "In";
}

function r_over_theme(lr){
		lr.className = "Out_theme_voyage";
}
		
function r_out_theme(lr){
	lr.className = "In_theme_voyage";
}

function r_over_vol(lr){
		lr.className = "Out_vol";
}
		
function r_out_vol(lr){
	lr.className = "In_vol";
}

function r_over_hotel(lr){
		lr.className = "Out_hotel";
}
		
function r_out_hotel(lr){
	lr.className = "In_hotel";
}

function r_over_week_end(lr){
		lr.className = "Out_week_end";
}
		
function r_out_week_end(lr){
	lr.className = "In_week_end";
}

function r_over_billet_avion(lr){
		lr.className = "Out_billet_avion";
}
		
function r_out_billet_avion(lr){
	lr.className = "In_billet_avion";
}

function r_over_disneyland(lr){
		lr.className = "Out_disneyland";
}
		
function r_out_disneyland(lr){
	lr.className = "In_disneyland";
}

function r_over_center_parcs(lr){
		lr.className = "Out_center_parcs";
}
		
function r_out_center_parcs(lr){
	lr.className = "In_center_parcs";
}

function r_over_alpes_trekking(lr){
		lr.className = "Out_alpes_trekking";
}
		
function r_out_alpes_trekking(lr){
	lr.className = "In_alpes_trekking";
}

function r_over_wonderbox(lr){
		lr.className = "Out_wonderbox";
}
		
function r_out_wonderbox(lr){
	lr.className = "In_wonderbox";
}

function r_over_produit(lr){
		lr.className = "Out_produit";
}
		
function r_out_produit(lr){
	lr.className = "In_produit";
}


num_days = 50;

function newCookie(seenurl){
	document.cookie = "seenit=" + seenurl +"; expires=" + ged(num_days);
}
function ged(noDays){
    var today = new Date();
    var expr = new Date(today.getTime() + noDays*24*50*50*1000);
    return  expr.toGMTString();
}
function readCookie(cookieName){
    var start = document.cookie.indexOf(cookieName);
	var len = start + cookieName.length + 1;	
	var end = document.cookie.indexOf( ";", len );
    if (start == -1){ 
        document.cookie ="seenit=moteur-multi/moteur-vol.php; expires=" + ged(num_days);
    } else {
		var newurl = unescape( document.cookie.substring( len, end ) );
		var defaulturl = 'moteur-multi/moteur-vol.php';

		if (newurl.substring(0,4) == "moteur-multi/moteur-vol.php") {
			document.getElementById("contentFRM").src = newurl;
		} else {
			document.getElementById("contentFRM").src = defaulturl;
			newCookie(defaulturl);
		}
    }
}
readCookie("seenit");