var country = 'nl' ;
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1 ;

var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4))?true:false;
ver4 = (NS4 || IE4) ? true : false;

var EmailToAgents = "dlp.service.groupes@disney.com";

var EmailToCandidature = "DLP.FOLIO-CONCERTO@disney.com";

var EmailToDemande_informations = "dlp.service.groupes@disney.com";

var EmailToEductour = "dlp.service.groupes@disney.com";

var EmailToContact = "dlp.clientenservice@disney.com";

var EmailToDemande_brochure = "POSTDLP@softcomputing.com";

var EmailToReserver = "dlp.reservation.admin.nl@disney.com";

var EmailToNewsletter = "DLP.FOLIO-CONCERTO@disney.com";


if (document.location.protocol == 'http:') {
	var hostPath = document.location.protocol + '//' + document.location.hostname ;
} else if (document.location.protocol == 'file:') {
	i = document.location.href.indexOf('/' + country + '/') ;
	var hostPath = document.location.href.substring(0, i) ;
}

var source_menu = hostPath ;

// Handle all the the FSCommand messages in a Flash movie
function menu_DoFSCommand(command, args) {
  var menuObj = InternetExplorer ? menu : document.menu ;
  if (command == "host") menuObj.SetVariable(args, hostPath) ;
}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub menu_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call menu_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}


function roll_on_carte(num) {
	document.carteattractions.src = document.preloadArray_on[num].src;
}

function roll_off_carte() {
	document.carteattractions.src = "images/empty.gif";
}

function roll_on_home(num) {
	document.home.src = document.preloadArray_on[num].src;
}

function roll_off_home(default_image) {
	document.home.src = default_image;
}

function go_plan_crockett(adr) {
	newrub = window.open(adr,"plancrockett",'scrollbars=yes,screenX=0,screenY=0,status=1,resizable=1,width=720,height=530');
}

function go_plan_village(adr) {
	newrub = window.open(adr,"planvillage",'scrollbars=no,screenX=0,screenY=0,status=1,resizable=1,width=550,height=350');
}

function resize_plan_general(adr) {
	window.innerWidth=750;
	window.innerHeight=550;
	document.location ="../plan.htm";
}

function go_rubrique(adr) {
	newrub = window.open(adr,"newrub",'scrollbars=yes,screenX=0,screenY=0,status=1,resizable=1,width=518,height=530');
}

function go_rubrique2(adr) {
	newrub = window.open(adr,"newrub",'scrollbars=yes,screenX=0,screenY=0,status=1,resizable=1,width=530,height=530');
}

function go_rubrique3(adr) {
	newrub = window.open(adr,"newrub",'scrollbars=no,screenX=0,screenY=0,status=1,resizable=1,width=518,height=530');
}

function go_rubrique_golf(adr) {
	newrub = window.open(adr,"newrub",'scrollbars=yes,screenX=0,screenY=0,status=1,resizable=1,width=545,height=530');
}

function go_rubrique_vr(adr)
{
	newrub = window.open(adr,"newrubvr",'scrollbars=yes,screenX=0,screenY=0,status=1,resizable=1,width=518,height=530,left=30,top=30');
}

function go_promenade(adr) {
	newpromenade = window.open(adr,"newpromenade",'scrollbars=no,screenX=0,screenY=0,status=0,resizable=0,width=680,height=500');
}

function go_theme_hotel(adr) {
	newrub = window.open(adr,"themehotel",'scrollbars=no,screenX=0,screenY=0,status=1,resizable=0,width=500,height=510');
}

function go_plan_hotel(adr) {
	newrub = window.open(adr,"planhotel",'scrollbars=yes,screenX=0,screenY=0,status=1,resizable=0,width=650,height=530');
}

function go_plan_general(adr) {
	newrub = window.open(adr,"plangeneral",'scrollbars=yes,screenX=0,screenY=0,status=1,resizable=0,width=750,height=530');
}

function go_plan_lands_plan_general(lien) {
	var browserName = navigator.appName

	if (browserName == "Netscape") {  
		self.resizeTo(600,500);
		document.location=lien;
	} else {
		self.resizeTo(630,535);
		document.location=lien;
	}	
}

function go_alert(adr) {
	newoutils = window.open(adr,"newoutils",'scrollbars=yes,screenX=0,screenY=0,status=0,resizable=0,width=500,height=150');
}

function go_media(adr) {
	newtheme = window.open(adr,"newmedia",'scrollbars=0,screenX=0,screenY=0,status=1,resizable=0,width=360,height=300');
}

function go_outils(adr) {
	newoutils = window.open(adr,"newoutils",'scrollbars=yes,screenX=0,screenY=0,status=1,resizable=1,width=750,height=420');
}

function go_identification(adr) {
	newidentifiction = window.open(adr,"newoutils",'scrollbars=0,screenX=0,screenY=0,status=1,resizable=0,width=633,height=254');
}

function open_top(url) {
	top.opener.location.href=url;
}

function load_menu_outils() {
	document.preloadArray_Outils = new Array();
	preloadOutils('../images/browse_site_map.gif','../images/browse_leaflet.gif','../images/browse_search.gif','../images/browse_contact.gif','../images/browse_help.gif');
}

function preloadOutils() {
	if (document.images) {
		var imgFiles = preloadOutils.arguments;
		var i = document.preloadArray_Outils.length;
		with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#") {
			preloadArray_Outils[i] = new Image;
			preloadArray_Outils[i++].src = imgFiles[j];
		}
	}
}

function roll_on_Outils(num) {
	document.outils.src = document.preloadArray_Outils[num].src;
}

function roll_off_Outils(default_image) {
	document.outils.src = default_image;
}

function go_plan_land(land) {
	top.opener.location.href=land;
	self.close()
}

function open_close(lien) {
	top.opener.location.href=lien;
	self.close()
}

function open_close2(lien) {
	top.opener.location.href=lien;
	open_close(lien);
	self.close()
}

function go_quiz(adr) {
	newquiz = window.open(adr,"quiz",'scrollbars=0,screenX=0,screenY=0,status=1,resizable=0,width=645,height=485');
}

function go_memory(adr) {
	newmemory = window.open(adr,"memory",'scrollbars=yes,screenX=0,screenY=0,status=1,resizable=0,width=500,height=450');
}

function go_puzzle(adr) {
	newpuzzle = window.open(adr,"puzzle",'scrollbars=yes,screenX=0,screenY=0,status=1,resizable=0,width=610,height=550');
}

function go_services(adr) {
	newservices = window.open(adr,"services",'scrollbars=yes,screenX=0,screenY=0,status=1,resizable=0,width=670,height=520');
}

function go_access_golf(adr) {
	newaccess_golf = window.open(adr,"accessgolf",'scrollbars=0,screenX=0,screenY=0,status=1,resizable=0,width=450,height=250');
}

function open_popup(adr, winName, w, h) {
	var winOptions = 'width=' + w + ',height=' + h;
	if (arguments[6]) {
		var scroll = arguments[4];
		var xPos = arguments[5];
		var yPos = arguments[6];
		winOptions += ',scrollbars=' + scroll + ',screenX=' + xPos + ',screenY=' + yPos
			+ ',top=' + yPos + ',left=' + xPos;
	} else if (arguments[5]) {
		var scroll = 0;
		var xPos = arguments[4];
		var yPos = arguments[5];
		winOptions += ',screenX=' + xPos + ',screenY=' + yPos + ',top=' + yPos + ',left=' + xPos;
	} else if (arguments[4]) {
		var scroll = arguments[4];
		var xPos = 0;
		var yPos = 0;
		winOptions += ',scrollbars=' + scroll;
	}
	newWin = window.open(adr, winName, winOptions) ;
}

function open_back(adr) {
	top.opener.location.href = adr ;
}

function addToFavorites(pLink, pName) {
	if (InternetExplorer) {
		window.external.AddFavorite(pLink, pName);
	} else {
		alert('Druk op Ctrl+D om deze pagina aan uw favorieten toe te voegen.');
	}
}


// tracker ref org.
window.onerror=dierr;
var myURL=location.href;
var mysplittedURL=myURL.split("/");
var tiSiteID=290;
for (i=0;i<mysplittedURL.length;i++){
	if (mysplittedURL[i]=="fr"){tiSiteID = 290;continue;}
	if (mysplittedURL[i]=="de"){tiSiteID = 293;continue;}
	if (mysplittedURL[i]=="uk"){tiSiteID = 291;continue;}
	if (mysplittedURL[i]=="es"){tiSiteID = 292;continue;}
	if (mysplittedURL[i]=="it"){tiSiteID = 294;continue;}
	if (mysplittedURL[i]=="nl"){tiSiteID = 295;continue;}
	if (mysplittedURL[i]=="int"){tiSiteID = 291;continue;}
	if (mysplittedURL[i]=="dk"){tiSiteID = 291;continue;}
	if (mysplittedURL[i]=="ae"){tiSiteID = 291;continue;}
	if (mysplittedURL[i]=="cn"){tiSiteID = 291;continue;}
	if (mysplittedURL[i]=="gr"){tiSiteID = 291;continue;}
	if (mysplittedURL[i]=="jp"){tiSiteID = 291;continue;}
	if (mysplittedURL[i]=="no"){tiSiteID = 291;continue;}
	if (mysplittedURL[i]=="se"){tiSiteID = 291;continue;}
	if (mysplittedURL[i]=="pl"){tiSiteID = 291;continue;}
	if (mysplittedURL[i]=="pt"){tiSiteID = 291;continue;}
	if (mysplittedURL[i]=="ru"){tiSiteID = 291;continue;}
}
var tiComplement = "";
document.write('<sc'+'ript language=javascript1.1 src="'+((document.location.href.toString().indexOf("/")==5)?"http":"https")+'://go.atraxio.com/decisiveinsight/trjs.asp"></sc'+'ript>');
function dierr()
{return true;}
