//Global varsvar enl_buttonurl = new Array(),enl_buttontxt = new Array(),enl_buttonoff = new Array(); //for imagezoomvar pathname = window.location.pathname.toLowerCase();var path = pathname.substring(0,(pathname.lastIndexOf('.nsf')+4));var _sitelanguage='nl';/**** Function to open in popup***/function showPopup(url, width, height) {	var pu=window.open(url, 'popup','toolbar=no,statusbar=no,scrollbars,width=' + width + ',height=' + height);	try {			pu.focus();			} catch(e) {		alert('De pagina kan niet geopend worden in een nieuw scherm. Controleer of uw pop-up blokker dit blokkeert.');	}			}/**** Function to open content in contentonly iframe for flashbased websites* called once on initial load of the flashpage***/function openContentOnly(theurl) {	//first check if iframe exists	var coiframe = $('coiframe');	if(coiframe) {		//alert('iframe bestaat wel. url=' + theurl );	} else {		//iframe bestaat nog niet, aanmaken		//alert('iframe bestaat niet, aanmaken. url=' + theurl);		var el = new Element('iframe', {id: 'coiframe', name: 'coiframe', width: '100%', frameborder: '0', scrolling: 'no'});		//el.addEvent('load', function(e) {resizeCOFrame();});		el.inject(elcontainer,'before');		var elcontainer = $('co-container');		elcontainer.dispose(); //verwijderen uit de DOM	}	//then open url in de contentonly iframe	$('coiframe').src=theurl;	return false;}/**** Function to check all links and append co=1 to querystring* and make them open in contentonly iframe for flashbased websites* only called once on intial load on the flashpage* pages in iframe call the appendCOQueryString() function onload***/function initFlashPage() {	//get all links	$each($$('a'), function(link, index) {		var theurl = link.getProperty('href');		//check if url is content from this db		if(theurl.indexOf('.nsf')>-1) {			//check nu of er ?open in de url staat toegevoegd			var qs=''; //the querystring			if(theurl.indexOf('?open')==-1) {				//toevoegen 				qs = '?open';			}			//en voeg de querystring co=1 toe			//zodat enkel de contentonly tekst van de pagina wordt geopend (zonder de flash)			qs+='&co=1';				theurl+=qs;			//alert(theurl);			//en link openen in de contentonly iframe			link.addEvent('click', function(e) {				e.stop();				openContentOnly(theurl);				return false;			})		} 	});		//create the contentonly iframe and make it hidden//	var el = new Element('iframe', {id: 'coiframe', name: 'coiframe', width: '100%', frameborder: '0', scrolling: 'no'});	//el.addEvent('load', function(e) {resizeCOFrame();});//	el.setStyle('display','none');//	var elcontainer = $('co-container');//	el.inject(elcontainer,'before');	}/**** Function to check all links and append co=1 to querystring* and make them open in contentonly iframe for flashbased websites* called onload on the content only pages in the coiframe* since the links are already in the iframe, no target is needed***/function appendCOQueryString() {	//get all links	$each($$('a'), function(link, index) {		var theurl = link.getProperty('href');		//check if url is content from this db		if(theurl.indexOf('.nsf')>-1) {			//check nu of er ?open in de url staat toegevoegd			var qs=''; //the querystring			if(theurl.indexOf('?open')==-1) {				//toevoegen 				qs = '?open';			}			//en voeg de querystring co=1 toe			//zodat enkel de contentonly tekst van de pagina wordt geopend (zonder de flash)			qs+='&co=1';				//en querystring toevoegen aan de href			link.setProperty('href',theurl + qs);		} 	})	resizeCOFrame(); //tevens iframe resizen	}/**** Function to check all links in the searchresults and append co=1 to querystring* and make them open in contentonly iframe for flashbased websites* called onload on the searchresult page in the coiframe* since the links are in the searchresult iframe, targeting to coiframe is  needed***/function appendCOSearchQueryString() {	//get all links	$each($$('a'), function(link, index) {		var theurl = link.getProperty('href');		//check if url is content from this db		if(theurl.indexOf('.nsf')>-1) {			//check nu of er ?open in de url staat toegevoegd			var qs=''; //the querystring			if(theurl.indexOf('?open')==-1) {				//toevoegen 				qs = '?open';			}			//en voeg de querystring co=1 toe			//zodat enkel de contentonly tekst van de pagina wordt geopend (zonder de flash)			qs+='&co=1';				//en link openen in de contentonly iframe			link.addEvent('click', function(e) {				e.stop();				parent.location.href=theurl + qs;				return false;			})					} 	})	resizeCOFrame(); //tevens iframe resizen	}/**** Function to resize height for ContentOnly frame* so content always fits in the iframe without scrollbars***/function resizeCOFrame() {	if(self==parent) return false; //zit niet in een iframe	//De evt aanwezige co-container verwijderen	var elcontainer = parent.$('co-container');	if(elcontainer) {		//indien aanwezig, dan co-container verwijderen		//hierin staat namelijk nog de initiele content van de pagina		elcontainer.dispose(); //verwijderen uit de DOM	}	//var myIframe = parent.document.getElementById("coiframe");	var myIframe = parent.$("coiframe");	if (myIframe) {		//iframe unhiden		myIframe.setStyle('display','block');		 if (myIframe.contentDocument && myIframe.contentDocument.body.offsetHeight) {		 //w3c and mozilla		 var w3cHeight=myIframe.contentDocument.body.offsetHeight;		 myIframe.height=w3cHeight;		 //myIframe.height = myIframe.contentDocument.body.offsetHeight;		} else if (myIframe.Document && myIframe.Document.body.scrollHeight) {		 //ie		 var ieHeight=myIframe.Document.body.scrollHeight;		 myIframe.height=ieHeight;		 //myIframe.height = myIframe.Document.body.scrollHeight;		}	}}function resizeContentFrame() {	if(self==parent) return false; //zit niet in een iframe	var myIframe = parent.document.getElementById("contentframe");	if (myIframe) {		 if (myIframe.contentDocument && myIframe.contentDocument.body.offsetHeight) {		 //w3c and mozilla		 var w3cHeight=myIframe.contentDocument.body.offsetHeight + 10;		 w3cHeight<480?myIframe.height=480:myIframe.height=w3cHeight;		 //myIframe.height = myIframe.contentDocument.body.offsetHeight;		} else if (myIframe.Document && myIframe.Document.body.scrollHeight) {		 //ie		 var ieHeight=myIframe.Document.body.scrollHeight;		 ieHeight<480 ? myIframe.height=480:myIframe.height=ieHeight;		 //myIframe.height = myIframe.Document.body.scrollHeight;		}	}}/**** Function to disable user created links when in preview mode***/function resetLinks() {	for(var x=0;x<document.links.length;x++) {		document.links[x].href="javascript: void(0)";	}}/**** Function to fix basketback link in webwinkel***/function basketBackLink() {	var sysC = $('#sysContinue'), myC = $('#myContinue');    if (sysC) {		var oc = sysC.attr('onclick').toString(), bu = oc.match(/\b(https?|ftp|file):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i)[0];	}    if (sysC && myC) {        sysC.hide();        myC.attr('href', bu).show();    }}//TRIM STRING PROTOTYPEString.prototype.trim = function(){	  return( this.replace(/^\s*([\s\S]*\S+)\s*$|^\s*$/,'$1') ); }/**** Send Initial Search for Flash website in order to create coiframe***/function doSearchCO(url){	var fld = document.forms[0].Query ? document.forms[0].Query : document.forms[1].Query;	if(fld.value=="" || fld.value=="Zoeken...") {		return false;	} else {		//indien een flashheader, dan dient de zoekresultaten in het coiframe geopend te worden		//indien coiframe niet bestaat, dan eerst aanmaken		var thequery = buildQuery();		//check ofcoiframe bestaat		if($('coiframe')) {		} else {				//iframe bestaat nog niet, aanmaken				var el = new Element('iframe', {id: 'coiframe', width: '100%', frameborder: '0', scrolling: 'no'});				//el.addEvent('load', function(e) {resizeCOFrame();});				var elcontainer = $('co-container');				el.inject(elcontainer,'before');				elcontainer.dispose(); //verwijderen uit de DOM		}		//then open searchresults in de contentonly iframe		$('coiframe').src=url + thequery ;		return false; // see NOTE	}}/**** Send Search for Non-Flash website en Flash Website second searches***/function doSearch(url){	var fld = document.forms[0].Query ? document.forms[0].Query : document.forms[1].Query;	if(fld.value=="" || fld.value=="Zoeken...") {		//return false;	} else {		location.href= url + buildQuery();	}}/**** Send Search for Non-Flash website en Flash Website second searches* Identiek aan doSearch, but uses unigue name***/function doSearchSite(url){	var fld = document.forms[0].Query ? document.forms[0].Query : document.forms[1].Query;	if(fld.value=="" || fld.value=="Zoeken...") {		//return false;	} else {		location.href= url + buildQuery();	}}/**** Function to build domino search query***///Rewrites a search query to a Lotus Domino search queryfunction buildQuery(){	var fld = document.forms[0].Query ? document.forms[0].Query : document.forms[1].Query;	var q = fld.value;	//PUT # IN FRONT AND AFTER QUOTES FOR SPLITTING	var s = (" " + q).replace(/-\"/g,"#-\"");	s = s.replace(/ \"/g," #\"");	s = s.replace(/\" /g,"\"# ");	//HANDLE + e.g. mike+golding  e.g. news +it	s = s.replace(/ \+/g," ");	s = s.replace(/\+/g," AND ");		s = s.trim();	//CHECK FOR FIRST CHARACTER BEING A #	if(s.substring(0,1) == "#"){		var s = s.substring(1,s.length);	}	//alert("|" + s + "|");		//SPLIT ELEMENTS INTO AN ARRAY    var array = s.split("#");		//REPLACE KEYWORDS NOT, AND, OR WHEN NOT IN A QUOTED STRING	for(var i=0;i<array.length;i++){		var e = array[i].replace(/\$1/g,"").trim();			//alert("|" + e + "|");			if(e.indexOf("\"") < 0){			//REPLACE - (minus) WITH NOT (CLOSED SPACES)			e = (" " + e).replace(/ -/g," NOT");				//CLOSE SPACES BETWEEN ORs SO ANDs ARE NOT PUT IN			e = e.replace(/ OR /g,"OR");			//REMOVE EXISTING ANDs for SPACES or ""			e = e.replace(/ AND /g," ");			e = e.replace(/ AND/g,"");			e = e.replace(/AND /g,"");									//REPLACE ALL SPACES FOR ANDs			e = e.trim().replace(/ /g," AND ");						//PUT NOTs BACK IN			e = e.replace(/NOT/g," NOT ");			//PUT ORs BACK IN			e = e.replace(/OR/g," OR ");			  		}else{			//REPLACE ANY - AT START OF QUOTED STRING			e = e.replace(/-\"/g,"NOT \"");		}		array[i] = e;		//alert(array[i]);	}			//JOIN ARRAY WITH ANDs	var domQ = array.join(" AND ").trim();	//REPLACE DOUBLE KEYWORDS ARFTER JOINING EVERYTHING WITH AND	domQ = domQ.replace(/  AND/g, "").replace(/AND  /g, "");	domQ = domQ.replace(/ AND OR/g, " OR");	domQ = domQ.replace(/ AND NOT/g, " NOT");	domQ = domQ.replace(/ AND AND/g, " AND");				//alert( domQ);	return domQ;	}function noCache() {		var datum  = new Date();		return datum.getTime();}/* ************************************************************************************* *\ * Functions to handle Mootools v1.2 XHR requests * \* ************************************************************************************* */function handleRequest(req) {	$('frmflds').set('styles', {'display': 'none'});	var msgelm = new Element('div', {id: 'waitmsg'});	msgelm.inject($('submitmsg'),'top');	if(_sitelanguage=='en' || _sitelanguage=='us') {		$('waitmsg').set('html','Please wait a moment...');	} else {		$('waitmsg').set('html','Bezig met verzenden<br><br>Een ogenblik geduld...');	}}function handleFailure(obj) {	$('waitmsg').destroy();	$('frmflds').set('styles', {'display': 'block'});	if(_sitelanguage=='en' || _sitelanguage=='us') {			$('errormsg').set('html','An error has occured.<br>Please try again later.');	} else { 		$('errormsg').set('html','Er is een fout opgetreden tijdens het verzenden. <br>Probeer het later nog eens.');	}		$('errormsg').set('styles', {'background-color': 'red', 'color': '#fff', 'padding':'4px'});	return false;};function handleXMLResponse(responseText, responseXML) {		$('waitmsg').destroy();		try {			var result = responseXML.documentElement;			var statustext= result.getElementsByTagName('status')[0].firstChild.nodeValue;			var statusmsg=decodeURIComponent(result.getElementsByTagName('msg')[0].firstChild.nodeValue);			if(statustext=='ok') {				$('submitmsg').set('html',statusmsg);			} else {				$('frmflds').set('styles', {'display': 'block'});				$('errormsg').set('html',statusmsg);				$('errormsg').set('styles', {'background-color': 'red', 'color': '#fff', 'padding':'4px'});			}		} catch(e) {				$('frmflds').set('styles', {'display': 'block'});				if(_sitelanguage=='en' || _sitelanguage=='us') {					$('errormsg').set('html','An error has occured.<br>Please try again later.');				} else { 					$('errormsg').set('html','Er is een fout opgetreden tijdens het verzenden. <br>Probeer het later nog eens.');				}					$('errormsg').set('styles', {'background-color': 'red', 'color': '#fff', 'padding':'4px'});					    	}    							}	/* ************************************************************************************* *\ * Mootools v1.2 field validation * \* ************************************************************************************* */var fValidator = new Class({	options: {		msgContainerTag: "div",		msgClass: "fValidator-msg",		styleNeutral: {"background-color": "#fff", "border-color": "#ccc"},		styleInvalid: {"background-color": "#fcc", "border-color": "#c00"},		styleValid: {"background-color": "#cfc", "border-color": "#0c0"},		required: {type: "required", re: /[^.*]/, msg: "Dit veld is verplicht."},		alpha: {type: "alpha", re: /^[a-z ._-]+$/i, msg: "Alleen het gebruik van letters is toegestaan."},		alphanum: {type: "alphanum", re: /^[a-z0-9 ._-]+$/i, msg: "U dient een geldige waarde in te vullen."},		integer: {type: "integer", re: /^[-+]?\d+$/, msg: "U dient een geldige waarde in te vullen."},		real: {type: "real", re: /^[-+]?\d*\.?\d+$/, msg: "U dient een geldig nummer in te vullen."},		date: {type: "date", re: /^(((((0[1-9])|(1\d)|(2[0-8]))-((0[1-9])|(1[0-2])))|((31-((0[13578])|(1[02])))|((29|30)-((0[1,3-9])|(1[0-2])))))-((20[0-9][0-9]))|(29-02-20(([02468][048])|([13579][26]))))$/, msg: "U dient een geldige datum in te vullen!"},		date2: {type: "date2", re: /^((((0[13578])|([13578])|(1[02]))[\/](([1-9])|([0-2][0-9])|(3[01])))|(((0[469])|([469])|(11))[\/](([1-9])|([0-2][0-9])|(30)))|((2|02)[\/](([1-9])|([0-2][0-9]))))[\/]\d{4}$|^\d{4}$/, msg: "Please enter a valid date (mm/dd/yyyy)."},		email: {type: "email", re: /^[a-z0-9._%-]+@[a-z0-9.-]+\.[a-z]{2,4}$/i, msg: "U dient een geldig e-mail adres in te vullen."},		phone: {type: "phone", re: /([0]{1}[6]{1}[-\s]*[1-9]{1}[\s]*([0-9]{1}[\s]*){7})|([0]{1}[1-9]{1}[0-9]{1}[0-9]{1}[-\s]*[1-9]{1}[\s]*([0-9]{1}[\s]*){5})|([0]{1}[1-9]{1}[0-9]{1}[-\s]*[1-9]{1}[\s]*([0-9]{1}[\s]*){6})/, msg: "U dient een geldig telefoonnummer in te vullen."},		postcode: {type: "postcode", re: /^[1-9]{1}[0-9]{3}\s{0,1}?[a-zA-Z]{2}$/, msg: "U dient een geldige postcode in te vullen!"},		url: {type: "url", re: /^(http|https|ftp)\:\/\/[a-z0-9\-\.]+\.[a-z]{2,3}(:[a-z0-9]*)?\/?([a-z0-9\-\._\?\,\'\/\\\+&amp;%\$#\=~])*$/i, msg: "U dient een geldige url in te vullen."},		confirm: {type: "confirm", msg: "De ingevulde waardes komen niet overeen."},		onValid: Class.empty,		onInvalid: Class.empty	},	initialize: function(form, options) {		this.form = $(form);							this.setOptions(options);		this.fields = this.form.getElements("*[class^=fValidate]");		this.validations = [];		this.fields.each(function(element) {			if(!this._isChildType(element)) element.setStyles(this.options.styleNeutral);			element.cbErr = 0;			var classes = element.getProperty("class").split(' ');			classes.each(function(klass) {				if(klass.match(/^fValidate(\[.+\])$/)) {					var aFilters = eval(klass.match(/^fValidate(\[.+\])$/)[1]);					for(var i = 0; i < aFilters.length; i++) {						if(this.options[aFilters[i]]) this.register(element, this.options[aFilters[i]]);						if(aFilters[i].charAt(0) == '=') this.register(element, $extend(this.options.confirm, {idField: aFilters[i].substr(1)}));					}				}			}.bind(this));		}.bind(this));		this.form.addEvents({			"submit": this._onSubmit.bind(this),			"reset": this._onReset.bind(this)		});	},	register: function(field, options) {		field = $(field);		this.validations.push([field, options]);		field.addEvent("blur", function() {			this._validate(field, options);		}.bind(this));	},	_isChildType: function(el) {		var elType = el.type.toLowerCase();		if((elType == "radio") || (elType == "checkbox")) return true;		return false;	},	_validate: function(field, options) {		switch(options.type) {			case "confirm":				if($(options.idField).get('value') == field.get('value')) this._msgRemove(field, options);				else this._msgInject(field, options);				break;			default:				if(options.re.test(field.get('value'))) this._msgRemove(field, options);				else this._msgInject(field, options);		}	},	_validateChild: function(child, options) {		var nlButtonGroup = this.form[child.getProperty("name")];		var cbCheckeds = 0;		var isValid = true; 		for(var i = 0; i < nlButtonGroup.length; i++) {			if(nlButtonGroup[i].checked) {				cbCheckeds++;				if(!options.re.test(nlButtonGroup[i].get('value'))) {					isValid = false;					break;				}			}		}		if(cbCheckeds == 0 && options.type == "required") isValid = false;		if(isValid) this._msgRemove(child, options);		else this._msgInject(child, options);	},	_msgInject: function(owner, options) {		if(!$(owner.getProperty("id") + options.type +"_msg")) {			var msgContainer = new Element(this.options.msgContainerTag, {"id": owner.getProperty("id") + options.type +"_msg", "class": this.options.msgClass, "html": options.msg, "styles": {"opacity":0} })			//	.setHTML(options.msg)			//	.setStyle("opacity", 0)			//	.injectAfter(owner)			msgContainer.inject(owner, 'after');		//	msgContainer.effect("opacity", {		//			duration: 500,		//			transition: Fx.Transitions.linear		//		}).start(0, 1);		msgContainer.fade('in');			owner.cbErr++;			this._chkStatus(owner, options);		}	},	_msgRemove: function(owner, options, isReset) {		isReset = isReset || false;		if($(owner.getProperty("id") + options.type +"_msg")) {			var el = $(owner.getProperty("id") + options.type +"_msg");		//	el.effect("opacity", {		//		duration: 500,		//		transition: Fx.Transitions.linear,		//		onComplete: function() {el.remove()}		//	}).start(1, 0);		el.fade('out');		el.destroy();			if(!isReset) {				owner.cbErr--;				this._chkStatus(owner, options);			}		}	},	_chkStatus: function(field, options) {		if(field.cbErr == 0) {			//field.effects({duration: 500, transition: Fx.Transitions.linear}).start(this.options.styleValid);			field.set('morph', {duration: 500, transition: Fx.Transitions.linear});			field.morph(this.options.styleValid);			this.fireEvent("onValid", [field, options], 50);		} else {			//field.effects({duration: 500, transition: Fx.Transitions.linear}).start(this.options.styleInvalid);			field.set('morph', {duration: 500, transition: Fx.Transitions.linear});			field.morph(this.options.styleInvalid);			this.fireEvent("onInvalid", [field, options], 50);		}	},	_doValidate: function() {		//event = new Event(event);		var isValid = true;		this.validations.each(function(array) {			if(this._isChildType(array[0])) this._validateChild(array[0], array[1]);			else this._validate(array[0], array[1]);			if(array[0].cbErr > 0) isValid = false;		}.bind(this));		//if(!isValid) event.stop();		return isValid;	},	_onSubmit: function(event) {		event = new Event(event);		var isValid = true;		this.validations.each(function(array) {			if(this._isChildType(array[0])) this._validateChild(array[0], array[1]);			else this._validate(array[0], array[1]);			if(array[0].cbErr > 0) isValid = false;		}.bind(this));		if(!isValid) event.stop();		return isValid;	},	_onReset: function() {		this.validations.each(function(array) {			if(!this._isChildType(array[0])) array[0].setStyles(this.options.styleNeutral);			array[0].cbErr = 0;			this._msgRemove(array[0], array[1], true);		}.bind(this));	}});fValidator.implement(new Events); // Implements addEvent(type, fn), fireEvent(type, [args], delay) and removeEvent(type, fn)fValidator.implement(new Options);// Implements setOptions(defaults, options)/*** Occasion module script* Send Occasion Search***/function doOccasionSearch(){	//bouw de searchquery voor de occasions	var merk = $('AutoMerk').get('value');	var model = $('AutoModel').get('value');	var brandstof = $('AutoBrandstof').get('value');	var q = merk=='0' ? '' : merk + '&';	q += model=='0' ? '' : model + '&';	q += brandstof=='0' ? '' : brandstof;	if(q=='') {		location.href= _dbpath + 'occasions?readform';	} else {		location.href= _dbpath + 'searchoccasions?readform&search=' + q;	}}/** * Occasion module script * * Add click to Occasions tablerows to open oaccsions info doc *  * */var rowSelect = {        showInfo:function(details) {				if(details.row) {						 if(details.row.getElementsByTagName("th").length != 0) {                                // return false to tell the script not to select this row                                return false;                        };						if(details.cell.className!="fotolink" && details.cell.className!="foto") {							top.location.href= path + '/vcontent/' + details.row.id;						}				}                	}};/** * Occasion module script * * Toont grote thumbnail in occasion info bij mouseover *  * */var showThumbAuto = function(imgsrc) {	$('thumb-big').set('html','<img src="' + imgsrc + '" width="300">');}	/** * Occasion module script * * Toont occasion modellen bij selecteren merk (onchange) *  * */var getOccasionModel = function() {	var merk = $('AutoMerk').get('value');		if(merk=='0') {				thehtml='<select name="AutoModel" id="AutoModel">';				thehtml+='<option value="0">Kies eerst het merk</select>';				$('fldModel').set('html',thehtml);						} else {			var occRequest = new Request({url: _dbpath + 'getOccModel?readform&merk=' + merk + '&nc=' + noCache(), method: 'get', evalScripts: false, onFailure: occFailure, onSuccess: occSuccess});			occRequest.setHeader('Last-Modified','Sat, 1 Jan 2005 05:00:00 GMT');			occRequest.setHeader('Cache-Control', 'no-cache');			occRequest.send();		}}//-- bouw de selectbox voor het model var occSuccess = function(responseText, responseXML){			 	 	//'$('waitmsg').destroy();	 	thehtml='<select name="AutoModel" id="AutoModel">';	 	thehtml+=responseText;		thehtml+='</select>';		$('fldModel').set('html',thehtml);		return false;	 }; var occFailure = function(o){		//'$('waitmsg').destroy();		thehtml='<select name="AutoModel" id="AutoModel">';		thehtml+='<option value="0">Er kan geen model gevonden worden van dit merk</select>';		$('fldModel').set('html',thehtml);		return false;	 };Input = {	text: {		onFocus: function() {			if (!this.defaultValue)				this.defaultValue = this.value;						if (this.value === this.defaultValue)				this.value = '';		},				onBlur: function() {			if (this.value === '')				this.value = this.defaultValue;		}	}} /** * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * */if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
