/*	
Scripting (c) 2006 Jeroen Thoolen
Niet jatten zonder toestemming
*/

// Importje van Dreamweaver tbv wat oudere pagina's
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function HalloBreda(){
		window.open('http://www.hallobreda.nl/hallobreda_recent.php', 'Nieuwsbrief', "height=400,width=640,status=yes,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=yes");
}
function Jt360(source) {
	window.open("/mov.php?source="+source, "360Graden", "height=400,width=410,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no");
}
function JtView360(source) {
	document.write('<OBJECT CLASSID=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" WIDTH=\"320\"HEIGHT=\"240\" CODEBASE=\"http://www.apple.com/qtactivex/qtplugin.cab\"> ');
	document.write('<PARAM name=\"SRC\" VALUE=\"/mov/'+source+'\">');
	document.write('<PARAM name=\"AUTOPLAY\" VALUE=\"true\"> ');
	document.write('<PARAM name=\"CONTROLLER\" VALUE=\"false\"> ');
	document.write('<EMBED SRC=\"/mov/'+source+'\" WIDTH=\"320\" HEIGHT=\"240\" AUTOPLAY=\"true\" CONTROLLER=\"false\" pan=\"180\"');
	document.write('PLUGINSPAGE=\"http://www.apple.com/quicktime/download/\"> ');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}
function email(gebruiker,domeinnaam) {
    window.location = "mailto:" + gebruiker + "@" + domeinnaam;
}

function Zetterug() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
// Stokfoto.nl popup-plaatjesresizer
	PositionX = 100;
	PositionY = 100;

	defaultWidth  = 500;
	defaultHeight = 500;

	var AutoClose = true;
	
	if (parseInt(navigator.appVersion.charAt(0))>=4){
	var isNN=(navigator.appName=="Netscape")?1:0;
	var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
	var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
	var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
	
	function PopStokFoto(imageURL,imageTitle){
	if (isNN){imgWin=window.open('about:blank','',optNN);}
	if (isIE){imgWin=window.open('about:blank','',optIE);}
	with (imgWin.document){
	writeln('<html><head><title>Stokfoto.nl resize-engine...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
	writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
	writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
	writeln('function Resize(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
	writeln('width=100-(document.body.clientWidth-document.images[0].width);');
	writeln('height=100-(document.body.clientHeight-document.images[0].height);');
	writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
	writeln('window.innerWidth=document.images["Stokfoto"].width;');writeln('window.innerHeight=document.images["Stokfoto"].height;}}');
	writeln('function Titeltje(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
	if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="Resize();Titeltje();self.focus()">')
	else writeln('</head><body bgcolor=000000 scroll="no" onload="Resize();Titeltje();self.focus()" onblur="self.close()">');
	writeln('<a href="javascript:window.close();"><img name="Stokfoto" src="'+imageURL+'" style="display:block" alt="JeroenThoolen.nl \n'+imageURL+' \n&copy; Jeroen Thoolen\nKlik hier om het venster te sluiten" border="0"></a></body></html>');
	close();		
	}
}
/*

	var ThooltjeShowSpeed = 10000;
	var crossFadeDuration = 20;

	var t;
	var j = 0;
	var p = Pic.length;
	
	var preLoad = new Array();
	for (i = 0; i < p; i++){
		preLoad[i] = new Image();
		preLoad[i].src = Pic[i];
	}
	
function ThooltjeSlide(){
	if (document.all){
		document.images.ThooltjeShow.style.filter="blendTrans(duration=crossFadeDuration)";
		document.images.ThooltjeShow.filters.blendTrans.Apply();
	}
	document.images.ThooltjeShow.src = preLoad[j].src;
	if (document.all) document.images.ThooltjeShow.filters.blendTrans.Play();
	j = j + 1;
	if (j > (p-1)) j = 0;
	t = setTimeout('ThooltjeSlide()', ThooltjeShowSpeed);
}

*/
function NietKlikken() { 
  status="http://www.postelmans.nl/";
  document.postelmans = true;
  //alert('IK ZEI TOCH NIET KLIKKEN!');
}
function HEENIETKLIKKEN() {
	alert('IK ZEI TOCH NIET KLIKKEN!');
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function KlapKlapKlap() { //v3.0
  var i,j=0,x,a=KlapKlapKlap.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
var supported = (document.getElementById || document.all);
	if (supported)
	{
		document.write("<STYLE TYPE='text/css'>");
		document.write(".para {display: none}");
		document.write("</STYLE>");
	
		var max = 7;
		var shown = new Array();
		for (var i=1;i<=max;i++)
		{
			shown[i+1] = false;
		}
	
	}
	
function StokFotoMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function blocking(i)
	{
		if (!supported)
		{
			alert('This link does not work in your browser, please contact webmaster@stokfoto.nl!');
			return;
		}
		shown[i] = (shown[i]) ? false : true;
		current = (shown[i]) ? 'block' : 'none';
		if (document.getElementById)
		{
			document.getElementById('number'+i).style.display = current;
		}
		else if (document.all)
		{
			document.all['number'+i].style.display = current;
		}
	}
	
function sli(iurl,iw,ih) {
		var ileft=(screen.width/2)-(iw/2);
		var itop=(screen.height/2)-(ih/2);
		var nurl = 'popup.php?image='+iurl;
		var nwidth = 'width='+iw;
		var nheight = 'height='+ih;
		var nproperties = nwidth+','+nheight+',scrollbars=no,left='+ileft+',top='+itop;
		window.open(nurl,'Image',nproperties);
	}

function zetopjenetvlies(sURL)
	{
	newwindow=open(sURL,"newwin","directories=no,width=611,height=318,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
	}

	var fotolabs = Array(
		new Array("--Kies een fotovakhandel--|"),
		new Array("--Kies een fotovakhandel--|", "Pico Print|afdrukservices_detail.php?detail=pico#begin", "Fotohome|afdrukservices_detail.php?detail=fotohome#begin","Fotoquelle|afdrukservices_detail.php?detail=fotoquelle#begin", "Color Mailer|afdrukservices_detail.php?detail=colormailer#begin"),
		new Array("--Kies een fotovakhandel--|", "Verschuren foto video|afdrukservices_detail.php?detail=verschuren#begin", "HEMA|afdrukservices_detail.php?detail=hema","Presto Print|afdrukservices_detail.php?detail=verschuren#begin", "Fotovak Engel|afdrukservices_detail.php?detail=verschuren#begin", "BCC|afdrukservices_detail.php?detail=verschuren#begin", "Combi Photo|afdrukservices_detail.php?detail=verschuren#begin", "Colorado|afdrukservices_detail.php?detail=verschuren#begin", "Media Markt|afdrukservices_detail.php?detail=verschuren#begin"),
		new Array("--Kies een fotovakhandel--|", "Makro|afdrukservices_detail.php?detail=makro#begin", "Kral Superphoto|afdrukservices_detail.php?detail=makro#begin","ETOS|afdrukservices_detail.php?detail=makro#begin"),
		new Array("--Kies een fotovakhandel--|", "Albert Heijn|afdrukservices_detail.php?detail=ah#begin", "Kruidvat|afdrukservices_detail.php?detail=ah#begin","Primera|afdrukservices_detail.php?detail=ah#begin","Kijkshop|afdrukservices_detail.php?detail=ah#begin","Pixum|afdrukservices_detail.php?detail=pixum#begin")
	);

function merken(index) {
	f = document.formulier;
	onderdlopties = fotolabs[index];
	for(i = 0; i < onderdlopties.length; i++) {
	optie = onderdlopties[i].substring(0, onderdlopties[i].indexOf('|'));
	url = onderdlopties[i].substring(onderdlopties[i].indexOf('|')+1);
	f.onderdeel.options[i] = new Option(optie, url);
	}
	f.onderdeel.selectedIndex = 0;
	f.onderdeel.options.length = onderdlopties.length;
	if(onderdlopties.length == 1) onderdl();
	}

function onderdl() {
	url = document.formulier.onderdeel.options[document.formulier.onderdeel.selectedIndex].value;
	if(url.length > 7) document.location.href = url;
	}
	
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function BestelMadonnaHungUpRingtone() {
 window.open('http://www.ringtonio.nl/play/?id=57735&amp;rtaff=7978&amp;clx=1&amp;rtlo=21103','MadonnaHungUp','width=350,height=200');
}
function BestelYoupFlappieRingtone() {
 window.open('http://www.ringtonio.nl/play/?id=81506&amp;rtaff=7978&amp;clx=1&amp;rtlo=21103','MadonnaHungUp','width=350,height=200');
}
function BestelMarcoBorsatoRoodRingtone() {
 window.open('http://www.ringtonio.nl/play/?id=14316&amp;rtaff=7978&amp;clx=1&amp;rtlo=21103','MarcoBorsatoRood','width=350,height=200');
}
function HenkieLiefKleinKonijntje() {
 window.open('http://www.ringtonio.nl/play/?id=62018&amp;rtaff=7978&amp;clx=1&amp;rtlo=21103','MarcoBorsatoRood','width=350,height=200');
}
function Toppertje() {
 window.open('http://www.ringtonio.nl/play/?id=67169&amp;rtaff=7978&amp;clx=1&amp;rtlo=21103','Toppertje','width=350,height=200');
}
function PrinsenkadePano() {
  window.open('http://www.nieuwemark.com/20030903_Prinsenkade_360/','Prinsenkade','width=380,height=420');
}



//
// google.js
// Google Highlighter
//
// Copyright(C)2001 - 2003
// Cal Henderson <cal@iamcal.com>
//
// Thanks to Ian Beveridge for bugfixes
//
// This code may be freely redistributed,
// providing this message remains intact.
//

var google_text_color = '#ffffff';

// var google_link_colors = new Array('#ffff66','#a0ffff','#99ff99','#ff9999','#ff66ff');

var google_link_colors = new Array('#FF6600','#FF6600','#FF6600','#FF6600','#FF6600');


function init_google(){
	var pattern = /google\./i;
	if (pattern.exec(document.referrer) != null){
		var url_parts = document.referrer.split('?');
		if (url_parts[1]){ 
			var url_args = url_parts[1].split('&');
			for(var i=0; i<url_args.length; i++){
				var keyval = url_args[i].split('=');
				if (keyval[0] == 'q'){
					go_google(decode_url(keyval[1]));
					return;
				}
			}
		}
	}
}

function decode_url(url){
	return unescape(url.replace(/\+/g,' '));
}

function go_google(terms){
	terms = terms.replace(/\"/g,"");
	var terms_split = terms.split(' ');
	var c = 0;
	for(var i=0; i<terms_split.length; i++){
		highlight_goolge(terms_split[i], document.body,google_link_colors[c]);
		c = (c == google_link_colors.length-1)?0:c+1;
	}
}

function highlight_goolge(term, container, color){
	var term_low = term.toLowerCase();

	for(var i=0; i<container.childNodes.length; i++){
		var node = container.childNodes[i];

		if (node.nodeType == 3){
			var data = node.data;
			var data_low = data.toLowerCase();
			if (data_low.indexOf(term_low) != -1){
				//term found!
				var new_node = document.createElement('SPAN');
				node.parentNode.replaceChild(new_node,node);
				var result;
				while((result = data_low.indexOf(term_low)) != -1){
					new_node.appendChild(document.createTextNode(data.substr(0,result)));
					new_node.appendChild(create_node_google(document.createTextNode(data.substr(result,term.length)),color));
					data = data.substr(result + term.length);
					data_low = data_low.substr(result + term.length);
				}
				new_node.appendChild(document.createTextNode(data));
			}
		}else{
			//recurse
			highlight_goolge(term, node, color);
		}
	}
}

function create_node_google(child, color){
	var node = document.createElement('SPAN');
	node.style.backgroundColor = color;
	node.style.color = google_text_color;
	node.appendChild(child);
	return node;
}

function Kaartcheck() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=Kaartcheck.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='Het ingevoerde e-mailadres is ongeldig.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += 'Veld '+nm+' is vereist.\n'; }
  } if (errors) alert('Er is een fout opgetreden:\n'+errors);
  document.MM_returnValue = (errors == '');
}

/*	Unobtrusive Flash Objects (UFO) v3.21 <http://www.bobbyvandersluis.com/ufo/>
	Copyright 2005, 2006 Bobby van der Sluis
	This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
*/

var UFO = {
	req: ["movie", "width", "height", "majorversion", "build"],
	opt: ["play", "loop", "menu", "quality", "scale", "salign", "wmode", "bgcolor", "base", "flashvars", "devicefont", "allowscriptaccess", "seamlesstabbing", "allowfullscreen"],
	optAtt: ["id", "name", "align"],
	optExc: ["swliveconnect"],
	ximovie: "ufo.swf",
	xiwidth: "215",
	xiheight: "138",
	ua: navigator.userAgent.toLowerCase(),
	pluginType: "",
	fv: [0,0],
	foList: [],
		
	create: function(FO, id) {
		if (!UFO.uaHas("w3cdom") || UFO.uaHas("ieMac")) return;
		UFO.getFlashVersion();
		UFO.foList[id] = UFO.updateFO(FO);
		UFO.createCSS("#" + id, "visibility:hidden;");
		UFO.domLoad(id);
	},

	updateFO: function(FO) {
		if (typeof FO.xi != "undefined" && FO.xi == "true") {
			if (typeof FO.ximovie == "undefined") FO.ximovie = UFO.ximovie;
			if (typeof FO.xiwidth == "undefined") FO.xiwidth = UFO.xiwidth;
			if (typeof FO.xiheight == "undefined") FO.xiheight = UFO.xiheight;
		}
		FO.mainCalled = false;
		return FO;
	},

	domLoad: function(id) {
		var _t = setInterval(function() {
			if ((document.getElementsByTagName("body")[0] != null || document.body != null) && document.getElementById(id) != null) {
				UFO.main(id);
				clearInterval(_t);
			}
		}, 250);
		if (typeof document.addEventListener != "undefined") {
			document.addEventListener("DOMContentLoaded", function() { UFO.main(id); clearInterval(_t); } , null); // Gecko, Opera 9+
		}
	},

	main: function(id) {
		var _fo = UFO.foList[id];
		if (_fo.mainCalled) return;
		UFO.foList[id].mainCalled = true;
		document.getElementById(id).style.visibility = "hidden";
		if (UFO.hasRequired(id)) {
			if (UFO.hasFlashVersion(parseInt(_fo.majorversion, 10), parseInt(_fo.build, 10))) {
				if (typeof _fo.setcontainercss != "undefined" && _fo.setcontainercss == "true") UFO.setContainerCSS(id);
				UFO.writeSWF(id);
			}
			else if (_fo.xi == "true" && UFO.hasFlashVersion(6, 65)) {
				UFO.createDialog(id);
			}
		}
		document.getElementById(id).style.visibility = "visible";
	},
	
	createCSS: function(selector, declaration) {
		var _h = document.getElementsByTagName("head")[0]; 
		var _s = UFO.createElement("style");
		if (!UFO.uaHas("ieWin")) _s.appendChild(document.createTextNode(selector + " {" + declaration + "}")); // bugs in IE/Win
		_s.setAttribute("type", "text/css");
		_s.setAttribute("media", "screen"); 
		_h.appendChild(_s);
		if (UFO.uaHas("ieWin") && document.styleSheets && document.styleSheets.length > 0) {
			var _ls = document.styleSheets[document.styleSheets.length - 1];
			if (typeof _ls.addRule == "object") _ls.addRule(selector, declaration);
		}
	},
	
	setContainerCSS: function(id) {
		var _fo = UFO.foList[id];
		var _w = /%/.test(_fo.width) ? "" : "px";
		var _h = /%/.test(_fo.height) ? "" : "px";
		UFO.createCSS("#" + id, "width:" + _fo.width + _w +"; height:" + _fo.height + _h +";");
		if (_fo.width == "100%") {
			UFO.createCSS("body", "margin-left:0; margin-right:0; padding-left:0; padding-right:0;");
		}
		if (_fo.height == "100%") {
			UFO.createCSS("html", "height:100%; overflow:hidden;");
			UFO.createCSS("body", "margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;");
		}
	},

	createElement: function(el) {
		return (UFO.uaHas("xml") && typeof document.createElementNS != "undefined") ?  document.createElementNS("http://www.w3.org/1999/xhtml", el) : document.createElement(el);
	},

	createObjParam: function(el, aName, aValue) {
		var _p = UFO.createElement("param");
		_p.setAttribute("name", aName);	
		_p.setAttribute("value", aValue);
		el.appendChild(_p);
	},

	uaHas: function(ft) {
		var _u = UFO.ua;
		switch(ft) {
			case "w3cdom":
				return (typeof document.getElementById != "undefined" && typeof document.getElementsByTagName != "undefined" && (typeof document.createElement != "undefined" || typeof document.createElementNS != "undefined"));
			case "xml":
				var _m = document.getElementsByTagName("meta");
				var _l = _m.length;
				for (var i = 0; i < _l; i++) {
					if (/content-type/i.test(_m[i].getAttribute("http-equiv")) && /xml/i.test(_m[i].getAttribute("content"))) return true;
				}
				return false;
			case "ieMac":
				return /msie/.test(_u) && !/opera/.test(_u) && /mac/.test(_u);
			case "ieWin":
				return /msie/.test(_u) && !/opera/.test(_u) && /win/.test(_u);
			case "gecko":
				return /gecko/.test(_u) && !/applewebkit/.test(_u);
			case "opera":
				return /opera/.test(_u);
			case "safari":
				return /applewebkit/.test(_u);
			default:
				return false;
		}
	},
	
	getFlashVersion: function() {
		if (UFO.fv[0] != 0) return;  
		if (navigator.plugins && typeof navigator.plugins["Shockwave Flash"] == "object") {
			UFO.pluginType = "npapi";
			var _d = navigator.plugins["Shockwave Flash"].description;
			if (typeof _d != "undefined") {
				_d = _d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
				var _m = parseInt(_d.replace(/^(.*)\..*$/, "$1"), 10);
				var _r = /r/.test(_d) ? parseInt(_d.replace(/^.*r(.*)$/, "$1"), 10) : 0;
				UFO.fv = [_m, _r];
			}
		}
		else if (window.ActiveXObject) {
			UFO.pluginType = "ax";
			try { // avoid fp 6 crashes
				var _a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
			}
			catch(e) {
				try { 
					var _a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
					UFO.fv = [6, 0];
					_a.AllowScriptAccess = "always"; // throws if fp < 6.47 
				}
				catch(e) {
					if (UFO.fv[0] == 6) return;
				}
				try {
					var _a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
				}
				catch(e) {}
			}
			if (typeof _a == "object") {
				var _d = _a.GetVariable("$version"); // bugs in fp 6.21/6.23
				if (typeof _d != "undefined") {
					_d = _d.replace(/^\S+\s+(.*)$/, "$1").split(",");
					UFO.fv = [parseInt(_d[0], 10), parseInt(_d[2], 10)];
				}
			}
		}
	},

	hasRequired: function(id) {
		var _l = UFO.req.length;
		for (var i = 0; i < _l; i++) {
			if (typeof UFO.foList[id][UFO.req[i]] == "undefined") return false;
		}
		return true;
	},
	
	hasFlashVersion: function(major, release) {
		return (UFO.fv[0] > major || (UFO.fv[0] == major && UFO.fv[1] >= release)) ? true : false;
	},

	writeSWF: function(id) {
		var _fo = UFO.foList[id];
		var _e = document.getElementById(id);
		if (UFO.pluginType == "npapi") {
			if (UFO.uaHas("gecko") || UFO.uaHas("xml")) {
				while(_e.hasChildNodes()) {
					_e.removeChild(_e.firstChild);
				}
				var _obj = UFO.createElement("object");
				_obj.setAttribute("type", "application/x-shockwave-flash");
				_obj.setAttribute("data", _fo.movie);
				_obj.setAttribute("width", _fo.width);
				_obj.setAttribute("height", _fo.height);
				var _l = UFO.optAtt.length;
				for (var i = 0; i < _l; i++) {
					if (typeof _fo[UFO.optAtt[i]] != "undefined") _obj.setAttribute(UFO.optAtt[i], _fo[UFO.optAtt[i]]);
				}
				var _o = UFO.opt.concat(UFO.optExc);
				var _l = _o.length;
				for (var i = 0; i < _l; i++) {
					if (typeof _fo[_o[i]] != "undefined") UFO.createObjParam(_obj, _o[i], _fo[_o[i]]);
				}
				_e.appendChild(_obj);
			}
			else {
				var _emb = "";
				var _o = UFO.opt.concat(UFO.optAtt).concat(UFO.optExc);
				var _l = _o.length;
				for (var i = 0; i < _l; i++) {
					if (typeof _fo[_o[i]] != "undefined") _emb += ' ' + _o[i] + '="' + _fo[_o[i]] + '"';
				}
				_e.innerHTML = '<embed type="application/x-shockwave-flash" src="' + _fo.movie + '" width="' + _fo.width + '" height="' + _fo.height + '" pluginspage="http://www.macromedia.com/go/getflashplayer"' + _emb + '></embed>';
			}
		}
		else if (UFO.pluginType == "ax") {
			var _objAtt = "";
			var _l = UFO.optAtt.length;
			for (var i = 0; i < _l; i++) {
				if (typeof _fo[UFO.optAtt[i]] != "undefined") _objAtt += ' ' + UFO.optAtt[i] + '="' + _fo[UFO.optAtt[i]] + '"';
			}
			var _objPar = "";
			var _l = UFO.opt.length;
			for (var i = 0; i < _l; i++) {
				if (typeof _fo[UFO.opt[i]] != "undefined") _objPar += '<param name="' + UFO.opt[i] + '" value="' + _fo[UFO.opt[i]] + '" />';
			}
			var _p = window.location.protocol == "https:" ? "https:" : "http:";
			_e.innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + _objAtt + ' width="' + _fo.width + '" height="' + _fo.height + '" codebase="' + _p + '//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + _fo.majorversion + ',0,' + _fo.build + ',0"><param name="movie" value="' + _fo.movie + '" />' + _objPar + '</object>';
		}
	},
		
	createDialog: function(id) {
		var _fo = UFO.foList[id];
		UFO.createCSS("html", "height:100%; overflow:hidden;");
		UFO.createCSS("body", "height:100%; overflow:hidden;");
		UFO.createCSS("#xi-con", "position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#fff; filter:alpha(opacity:75); opacity:0.75;");
		UFO.createCSS("#xi-dia", "position:absolute; left:50%; top:50%; margin-left: -" + Math.round(parseInt(_fo.xiwidth, 10) / 2) + "px; margin-top: -" + Math.round(parseInt(_fo.xiheight, 10) / 2) + "px; width:" + _fo.xiwidth + "px; height:" + _fo.xiheight + "px;");
		var _b = document.getElementsByTagName("body")[0];
		var _c = UFO.createElement("div");
		_c.setAttribute("id", "xi-con");
		var _d = UFO.createElement("div");
		_d.setAttribute("id", "xi-dia");
		_c.appendChild(_d);
		_b.appendChild(_c);
		var _mmu = window.location;
		if (UFO.uaHas("xml") && UFO.uaHas("safari")) {
			var _mmd = document.getElementsByTagName("title")[0].firstChild.nodeValue = document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0, 47) + " - Flash Player Installation";
		}
		else {
			var _mmd = document.title = document.title.slice(0, 47) + " - Flash Player Installation";
		}
		var _mmp = UFO.pluginType == "ax" ? "ActiveX" : "PlugIn";
		var _uc = typeof _fo.xiurlcancel != "undefined" ? "&xiUrlCancel=" + _fo.xiurlcancel : "";
		var _uf = typeof _fo.xiurlfailed != "undefined" ? "&xiUrlFailed=" + _fo.xiurlfailed : "";
		UFO.foList["xi-dia"] = { movie:_fo.ximovie, width:_fo.xiwidth, height:_fo.xiheight, majorversion:"6", build:"65", flashvars:"MMredirectURL=" + _mmu + "&MMplayerType=" + _mmp + "&MMdoctitle=" + _mmd + _uc + _uf };
		UFO.writeSWF("xi-dia");
	},

	expressInstallCallback: function() {
		var _b = document.getElementsByTagName("body")[0];
		var _c = document.getElementById("xi-con");
		_b.removeChild(_c);
		UFO.createCSS("body", "height:auto; overflow:auto;");
		UFO.createCSS("html", "height:auto; overflow:auto;");
	},

	cleanupIELeaks: function() {
		var _o = document.getElementsByTagName("object");
		var _l = _o.length
		for (var i = 0; i < _l; i++) {
			_o[i].style.display = "none";
			for (var x in _o[i]) {
				if (typeof _o[i][x] == "function") {
					_o[i][x] = null;
				}
			}
		}
	}

};

if (typeof window.attachEvent != "undefined" && UFO.uaHas("ieWin")) {
	window.attachEvent("onunload", UFO.cleanupIELeaks);
}

function jeroentube(id,width,height,source){
document.write('<p id=\"'+id+'\" align=\"center\"><script type=\"text/javascript\">');
document.write('var FO ='); document.write('{movie:\"http://media.jeroenthoolen.nl/player/jtplayer.swf\",width:\"350\",height:\"242\",majorversion:\"7\",build:\"0\",bgcolor:\"#FFFFFF\",allowfullscreen:\"true\",flashvars:\"file=http://media.jeroenthoolen.nl/'+source+'.flv&image=http://media.jeroenthoolen.nl/'+source+'.jpg\" }; ');
document.write('UFO.create(FO,\"'+id+'\");');
document.write('</scri'+'pt></p>');
document.write('<p align=\"center\"><input type=\"text\" name=\"textfield\" value=\"http://www.jeroenthoolen.nl/jeroentube.php?view='+source+'\" class=\"content\" style=\"width:350px;\" disabled></p>');
}

function init() {
	init_google();
	// ThooltjeSlide();
}