﻿var CurrentPage = 'arp';
			
AC_FL_RunContent = 0;
			
function checkContact(Contact) {

	if(CurrentPage == 'arp'){
	
		document.getElementById("verwacht").className="Current";
		document.getElementById("verwacht").innerHTML="Contact";
		document.getElementById("ContactStyle").href='style/empty.css';
		
	} else if(Contact == true) {
	
		document.getElementById("verwacht").className="Current";
		document.getElementById("verwacht").innerHTML="Contact";
		document.getElementById("ContactStyle").href='style/contact.css';
		
	} else {
	
		document.getElementById("verwacht").innerHTML="Verwacht";
		document.getElementById("ContactStyle").href='style/empty.css';
	};
};
			
if (document.images) {
			
	preload_image_object = new Image();
    // set image url
	image_url = new Array();
	image_url[0] = "images/laseur/logo.png";
	image_url[1] = "images/overhorst/logo.png";
	image_url[2] = "images/horstbeek/logo.png";
	image_url[3] = "images/vallei/logo.png";
	image_url[4] = "images/laseur/body_background.jpg";
	image_url[5] = "images/overhorst/body_background.jpg";
	image_url[6] = "images/horstbeek/body_background.jpg";
	image_url[7] = "images/vallei/body_background.jpg";
	image_url[8] = "images/laseur/tab_back.jpg";
	image_url[9] = "images/laseur/tab_current.jpg";
	image_url[10] = "images/overhorst/tab_back.jpg";
	image_url[11] = "images/overhorst/tab_current.jpg";
	image_url[12] = "images/horstbeek/tab_back.jpg";
	image_url[13] = "images/horstbeek/tab_current.jpg";
	image_url[14] = "images/vallei/tab_back.jpg";
	image_url[15] = "images/vallei/tab_current.jpg";

	var i = 0;
       			
	for(i=0; i<=15; i++) {
	
	preload_image_object.src = image_url[i];
	
	};
};
			
function open_win(Link) {
			
	var img = new Image();
	img.src = Link;
	var wleft = (screen.width) / 2;
  	var wtop = (screen.height) / 5;
	var ImgHeight = img.height;
	var ImgWidth = img.width;
	wleft -= ImgWidth / 2;
	myWindow = window.open("","","toolbar=no, location=yno, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=" + ImgWidth + ", height=" + ImgHeight + ", left=" + wleft + ", top=" + wtop);
	myWindow.document.write("<html><head<title>ARP Groep</title><style>body{padding:0px; margin:0px; background-color: #000000;}img:hover{cursor:pointer;}</style></head><body><img src=\"" + Link + "\" onClick='window.close()'></body></html>");
};

function deleteLinks() {
		
	document.getElementById("gerealiseerd").href="javascript:;";
	document.getElementById("ontwikkeling").href="javascript:;";
	document.getElementById("verwacht").href="javascript:;";
	document.getElementById("contact").href="javascript:;";
	document.getElementById("arp").href="javascript:;";
	document.getElementById("laseur").href="javascript:;";
	document.getElementById("overhorst").href="javascript:;";
	document.getElementById("horstbeek").href="javascript:;";
	document.getElementById("fcontact").href="javascript:;";
	document.getElementById("vallei").href="javascript:;";

};

function getFlashMovie(movieName) {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
}

function callToActionscript(flash, str) {
		getFlashMovie(flash).sendToActionscript(str);
}
