var xmlHttp;function GetXmlHttpObject( handler ) {var objXmlHttp = null;
if (navigator.userAgent.indexOf("MSIE") >= 0) {var strName = "Msxml2.XMLHTTP";if (navigator.appVersion.indexOf("MSIE 5.5") >= 0) {strName = "Microsoft.XMLHTTP";}
try {objXmlHttp = new ActiveXObject('Microsoft.XMLHTTP');objXmlHttp.onreadystatechange = handler;return objXmlHttp;}
catch(e) {alert("Activeer ActiveX om gebruik te kunnen maken van deze knop.\nZie de helppagina (onderdeel instellingen) voor uitleg.");return;}}
if (navigator.userAgent.indexOf("Mozilla") >= 0 || navigator.userAgent.indexOf("Opera") >= 0) {objXmlHttp = new XMLHttpRequest();objXmlHttp.onload = handler;objXmlHttp.onerror = handler;return objXmlHttp;}}
function changeinfo() {if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {if ( xmlHttp.status == 200 ) {TINY.box.show(xmlHttp.responseText,0,0,0,0,7);} else {alert ( xmlHttp.statusText );}}}


var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-18178393-2']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

function printlijst(){var prtContent = document.getElementById('printdiv');var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');WinPrint.document.write('<link rel="stylesheet" href="http://www.reischeckers.nl/print.css" type="text/css">' + prtContent.innerHTML);WinPrint.document.close();WinPrint.focus();WinPrint.print();WinPrint.close();}

function Chide(contentid){document.getElementById(contentid).style.display="block";}
function Reload(bannerid){var banner = document.getElementById(bannerid);banner.src = banner.src;}

function m(id){for(i=1;i<=8;i++){eval("document.getElementById('m"+i+"').style.display='none'");if(id!=i){eval("document.getElementById('li"+i+"').className=''");}
else{eval("document.getElementById('li"+i+"').className='mo'");}}eval("document.getElementById('m"+id+"').style.display='block'");}

function nieuwsbriefaanmelden() {if(emailcheck(document.getElementById('nieuwsbrief').value)==false){TINY.box.show('Ongeldig e-mailadres!',0,0,0,0,7);return false;}
else{var url = "js/edit.php?sid=" + Math.round(999*Math.random()) + "&nieuwsbrief=" + document.getElementById('nieuwsbrief').value;
xmlHttp = GetXmlHttpObject( changeinfo );xmlHttp.open("GET", url , true);xmlHttp.send( null );document.getElementById('nieuwsbrief').value='';}}

function ster(aanb,aantal){geen=5-aantal;for (i=1;i<=5;i++){if(i<=aantal){document.getElementById(aanb + i).src="img/icons/star.png";}
else{document.getElementById(aanb + i).src="img/icons/star_none.png";}}}

function stem(aanbieder,cijfer) {var url = "js/edit.php?stem=1&sid=" + Math.round(999*Math.random()) + '&aanbieder=' + aanbieder + '&cijfer=' + cijfer;
xmlHttp = GetXmlHttpObject( changeinfo );xmlHttp.open("GET", url , true);xmlHttp.send( null );}

function stuurdoor() {if(emailcheck(document.getElementById('adres0').value)==false){TINY.box.show('Ongeldig e-mailadres!',0,0,0,0,7);return false;}
else if(emailcheck(document.getElementById('adres1').value)==false){TINY.box.show('Ongeldig e-mailadres!',0,0,0,0,7);return false;}
else if (document.getElementById('bericht').value.length<'1'){TINY.box.show('Je hebt geen bericht ingevuld!',0,0,0,0,7);return false;}
else if (document.getElementById('bericht').value.length>'2000'){TINY.box.show('Het bericht mag maximaal uit 2000 tekens bestaan.',0,0,0,0,7);return false;}
else{document.getElementById('bericht').value = document.getElementById('bericht').value.replace(/\n/g,'nextrule');
var url = "js/edit.php?stuurdoor=1&sid=" + Math.round(999*Math.random()) + "&accnaam1=" + document.getElementById('accnaam1').value + "&accnaam2=" + document.getElementById('accnaam2').value + "&accid=" + document.getElementById('accid').value + "&adres0=" + document.getElementById('adres0').value + "&adres1=" + document.getElementById('adres1').value + "&tekst=" + document.getElementById('bericht').value;
xmlHttp = GetXmlHttpObject( changeinfo );xmlHttp.open("GET", url , true);xmlHttp.send( null );
document.getElementById('adres0').value='';document.getElementById('adres1').value='';document.getElementById('bericht').value='';}}

function beoordelen(){if(document.form.naam.value.length==0){TINY.box.show('Je hebt je naam niet ingevuld.',0,0,0,0,7);return false;}
else if(naamcheck(document.form.naam.value)==false){TINY.box.show('Je naam mag geen speciale tekens bevatten!',0,0,0,0,7);return false;}
else if(emailcheck(document.form.mail.value)==false){TINY.box.show('Je e-mailadres is ongeldig.',0,0,0,0,7);return false;}
else if((document.form.prijs[10].checked==true) && (document.form.ligging[10].checked==true) && (document.form.serv[10].checked==true) && (document.form.kind[10].checked==true) && (document.form.verz[10].checked==true) && (document.form.voor[10].checked==true)){TINY.box.show('Geef tenminste 1 onderdeel een cijfer.',0,0,0,0,7);return false;}
else if(document.form.bericht.value.length > '3000'){TINY.box.show('Het bericht mag maximaal uit 3000 tekens bestaan.',0,0,0,0,7);return false;}
else if(document.form.bericht.value.length < '100'){TINY.box.show('Het bericht moet minimaal uit 100 tekens bestaan.',0,0,0,0,7);return false;}}

function fototoevoegen(){if(document.form.naam.value.length==0){TINY.box.show('Je hebt je naam niet ingevuld.',0,0,0,0,7);return false;}
else if(naamcheck(document.form.naam.value)==false){TINY.box.show('Je naam mag geen speciale tekens bevatten!',0,0,0,0,7);return false;}
else if(emailcheck(document.form.mail.value)==false){TINY.box.show('Je e-mailadres is ongeldig.',0,0,0,0,7);return false;}
else if(document.form.bericht.value.length > '150'){TINY.box.show('De omschrijving mag maximaal uit 150 tekens bestaan.',0,0,0,0,7);return false;}}

function accommodatieinzenden(){if(document.form.accommodatie.value.length==0){TINY.box.show('Je hebt geen accommodatie ingevuld.',0,0,0,0,7);return false;}
else if(document.form.land.value.length==0){TINY.box.show('Je hebt geen land ingevuld.',0,0,0,0,7);return false;}
else if(document.form.plaats.value.length==0){TINY.box.show('Je hebt geen plaatsnaam ingevuld.',0,0,0,0,7);return false;}
else if(document.form.naam.value.length==0){TINY.box.show('Je hebt je naam niet ingevuld.',0,0,0,0,7);return false;}
else if(naamcheck(document.form.naam.value)==false){TINY.box.show('Je naam mag geen speciale tekens bevatten!',0,0,0,0,7);return false;}
else if(emailcheck(document.form.mailadres.value)==false){TINY.box.show('Je e-mailadres is ongeldig.',0,0,0,0,7);return false;}
else if(document.form.bericht.value.length > '2000'){TINY.box.show('Het bericht mag maximaal uit 2000 tekens bestaan.',0,0,0,0,7);return false;}}

function docheck(){
char = eval(document.form.bericht.value.length);var dif = eval(char-3000);var value = document.form.bericht.value.substr(0,char-dif);document.form.bericht.value = value;var left = '0';}
function doleft(){total = eval('3000');char = eval(document.form.bericht.value.length);left = eval(total - char);
if (left<='-1'){var dif = eval(char - 3000);var value = document.form.bericht.value.substr(0,char-dif);document.form.bericht.value = value;var left = '0';}
document.getElementById('left').innerHTML = left + ' tekens over';}

function docheck2(){
char = eval(document.form.bericht.value.length);var dif = eval(char-150);var value = document.form.bericht.value.substr(0,char-dif);document.form.bericht.value = value;var left = '0';}
function doleft2(){total = eval('150');char = eval(document.form.bericht.value.length);left = eval(total - char);
if (left<='-1'){var dif = eval(char - 150);var value = document.form.bericht.value.substr(0,char-dif);document.form.bericht.value = value;var left = '0';}
document.getElementById('left').innerHTML = left + ' tekens over';}

function contact() {
if (document.getElementById('uwnaam').value.length<'1'){TINY.box.show('Je hebt geen naam ingevuld!',0,0,0,0,7);return false;}
else if(naamcheck(document.getElementById('uwnaam').value)==false){TINY.box.show('Je naam mag geen speciale tekens bevatten!',0,0,0,0,7);return false;}
else if (document.getElementById('uwemail').value.length<'1'){TINY.box.show('Je hebt geen e-mailadres ingevuld!',0,0,0,0,7);return false;}
else if(emailcheck(document.getElementById('uwemail').value)==false){TINY.box.show('Ongeldig e-mailadres!',0,0,0,0,7);return false;}
else if (document.getElementById('onderwerp').value.length<'1'){TINY.box.show('Je hebt geen onderwerp gekozen!',0,0,0,0,7);return false;}
else if (document.getElementById('bericht').value.length<'1'){TINY.box.show('Je hebt geen bericht ingevuld!',0,0,0,0,7);return false;}
else if (document.getElementById('bericht').value.length<'10'){TINY.box.show('Je bericht is te kort!',0,0,0,0,7);return false;}
else if (document.getElementById('bericht').value.length>'5000'){TINY.box.show('Je bericht is te lang!',0,0,0,0,7);return false;}
else{document.getElementById('bericht').value = document.getElementById('bericht').value.replace(/\n/g,'nextrule');
var url = "js/edit.php?contact=1&sid=" + Math.round(999*Math.random()) + '&uwnaam=' + document.getElementById('uwnaam').value + '&uwemail=' + document.getElementById('uwemail').value + '&onderwerp=' + document.getElementById('onderwerp').value + '&bericht=' + document.getElementById('bericht').value + '&kopie=' + document.getElementById('kopie').checked + '&geenreactie=' + document.getElementById('geenreactie').checked;
xmlHttp = GetXmlHttpObject( changeinfo );xmlHttp.open("GET", url , true);xmlHttp.send( null );
document.getElementById('uwnaam').value='';document.getElementById('uwemail').value='';document.getElementById('onderwerp').options[0].selected='true';document.getElementById('bericht').value='';document.getElementById('kopie').checked=false;document.getElementById('geenreactie').checked=false;}}

if (!document.getElementById) {if(!document.all) {if(!document.layers) {event = "";}}}function hideTip() {}
var tooltip;function doTooltip(evt,txt) {if (!tooltip) return;var cntnt = wrapTip(txt);goTooltip(evt,cntnt);}function wrapTip(txt) {var cntnt = "";if (document.layers) {
cntnt = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + tipBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td><div style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + tipFontColor + '">' + txt  + '</div></td></tr></table></td></tr></table>';} else cntnt = txt;return cntnt;}
var tipFollowMouse = true;var tipWidth = 150;var tipOffX= 8;var tipOffY= 12;var tipFontFamily = "Verdana";var tipFontSize= "11px";
var tipLineHeight= 1.2;var tipFontColor = "#0E2C47";var tipBgColor = "#ffffff";var tipBgImg = "";var tipPadding = 2;var tipBorderColor = "#E4F0FA";
var tipBorderWidth = 1;var tipBorderStyle = "solid";

function dynObj(id,x,y,w,h) {this.el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? getLyrRef(id,document): null;
if (!this.el) return null;this.doc = (document.layers)? this.el.document: this.el;
this.css = (this.el.style)? this.el.style: this.el;var px = (document.layers)? "": "px";this.x = x || 0;if (x) this.css.left = this.x+px;this.y = y || 0;if (y) this.css.top = this.y+px;
this.width = w? w: (this.el.offsetWidth)? this.el.offsetWidth: (this.css.clip.width)? this.css.clip.width: 0;
this.height = h? h: (this.el.offsetHeight)? this.el.offsetHeight: (this.css.clip.height)? this.css.clip.height: 0;
if (w){ (document.layers)? this.css.clip.width=w+px: this.css.width=w+px;}if (h){ (document.layers)? this.css.clip.height=h+px: this.css.height=h+px;}
this.obj = id + "dynObj"; eval(this.obj + "=this");}function dw_show() { this.css.visibility = "visible"; }function dw_hide() { this.css.visibility = "hidden"; }
function dw_shiftTo(x,y) {if (x!=null) this.x=x; if (y!=null) this.y=y;
if (this.css.moveTo) {this.css.moveTo(Math.round(this.x),Math.round(this.y));} else {this.css.left=Math.round(this.x)+"px";this.css.top=Math.round(this.y)+"px";}}
function dw_shiftBy(x,y) {this.shiftTo(this.x+x,this.y+y);}
function dw_writeLyr(cntnt) {if (typeof this.doc.innerHTML!="undefined") {this.doc.innerHTML = cntnt;} else if (document.layers) {this.doc.write(cntnt);this.doc.close();}}
function dw_setBgClr(bg) {if (document.layers) this.doc.bgColor=bg;else this.css.backgroundColor=bg;}
dynObj.prototype.show = dw_show;dynObj.prototype.hide = dw_hide;dynObj.prototype.shiftTo = dw_shiftTo;
dynObj.prototype.shiftBy = dw_shiftBy;dynObj.prototype.writeLyr = dw_writeLyr;dynObj.prototype.setBgClr=dw_setBgClr;
function getLyrRef(lyr,doc) {if (document.layers) {var theLyr;for (var i=0; i<doc.layers.length; i++) {theLyr = doc.layers[i];if (theLyr.name == lyr) return theLyr;
else if (theLyr.document.layers.length > 0)if ((theLyr = getLyrRef(lyr,theLyr.document)) != null)return theLyr;}return null;}}
dynObj.prototype.centerIn = function(outer) {var outWd, outHt, inWd, inHt, x, y;
if (eval(outer)==window) {outWd=getWinWidth();outHt=getWinHeight();} else {outWd=outer.width;outHt=outer.height;}
inWd=this.width;inHt=this.height;x=Math.round((outWd-inWd)/2);y=Math.round((outHt-inHt)/2);this.shiftTo(x,y);}
function getWidth(obj,id) {var wd=0;if (document.getElementById||document.all) {var elem;
if (id)elem = (document.getElementById)? document.getElementById(id): document.all[id];else elem = obj;
if (elem.offsetWidth) wd = elem.offsetWidth;  } else if (obj.document) wd = obj.document.width;return wd;}
function getHeight(obj,id) {var ht=0;if (document.getElementById||document.all) {var elem;if (id)elem = (document.getElementById)? document.getElementById(id): document.all[id];
else elem = obj;if (elem.offsetHeight) ht = elem.offsetHeight;  } else if (obj.document) ht = obj.document.height;return ht;}
function getWinWidth() {var winWd = 0;if (document.documentElement && document.documentElement.clientWidth)winWd = document.documentElement.clientWidth;
else if (document.body && document.body.clientWidth)winWd = document.body.clientWidth;else if (document.body && document.body.offsetWidth)
winWd = document.body.offsetWidth;else if (window.innerWidth) winWd = window.innerWidth-18;return winWd;}
function getWinHeight() {var winHt = 0;if (document.documentElement && document.documentElement.clientHeight)winHt = document.documentElement.clientHeight;
else if (document.body && document.body.clientHeight)winHt = document.body.clientHeight;else if (window.innerHeight) winHt = window.innerHeight-18;return winHt;}
function getScrollY() {var scroll_y = 0;if (document.documentElement && document.documentElement.scrollTop)scroll_y = document.documentElement.scrollTop;
else if (document.body && document.body.scrollTop)scroll_y = document.body.scrollTop;
else if (window.pageYOffset)scroll_y = window.pageYOffset;else if (window.scrollY)scroll_y = window.scrollY;return scroll_y;}
function getScrollX() {var scroll_x = 0;if (document.documentElement && document.documentElement.scrollLeft)scroll_x = document.documentElement.scrollLeft;
else if (document.body && document.body.scrollLeft)scroll_x = document.body.scrollLeft;else if (window.pageXOffset)scroll_x = window.pageXOffset;
else if (window.scrollX)scroll_x = window.scrollX;return scroll_x;}
var win_width, win_height, vert_scroll, hor_scroll;var tip_t1, tip_t2;var mouseX, mouseY;window.onload = initTip;window.onresize = to_do_onresize;
var origWidth, origHeight;if (document.layers) {  origWidth = window.innerWidth;  origHeight = window.innerHeight;}
function to_do_onresize() {if (document.layers) {if (window.innerWidth != origWidth || window.innerHeight != origHeight) window.location.reload();}
else {win_width = getWinWidth();win_height = getWinHeight();}}
function initTip() {tooltip = new dynObj('tipDiv');if (!tooltip) return;if (!document.layers && typeof tooltip.doc.innerHTML == "undefined"){tooltip = null;return;}
if (tooltip.el.style) {tooltip.css.width = tipWidth+"px";tooltip.css.fontFamily = tipFontFamily;tooltip.css.fontSize = tipFontSize;tooltip.css.lineHeight = tipLineHeight;tooltip.css.color = tipFontColor;
tooltip.css.backgroundColor = tipBgColor;tooltip.css.borderColor = tipBorderColor;tooltip.css.borderWidth = tipBorderWidth+"px";tooltip.css.padding = tipPadding+"px";
tooltip.css.borderStyle = tipBorderStyle;if (tipBgImg) tooltip.css.backgroundImage = "url("+tipBgImg+")";}win_width = getWinWidth();win_height = getWinHeight();}
function goTooltip(evt,cntnt) {if (tip_t1) clearTimeout(tip_t1);if (tip_t2) clearTimeout(tip_t2);
if (tipFollowMouse) {if (document.addEventListener) {document.addEventListener("mousemove",trackMouse,true);} else if (document.attachEvent) {
document.attachEvent("onmousemove",trackMouse);} else {if (document.layers && document.captureEvents)
document.captureEvents(Event.MOUSEMOVE);document.onmousemove = trackMouse;}}tooltip.writeLyr(cntnt);vert_scroll = getScrollY();hor_scroll = getScrollX();
evt = (window.event)? window.event: evt;if (evt) {mouseX = getMouseX(evt);mouseY = getMouseY(evt);}
tooltip.width = getWidth(tooltip.el);tooltip.height = getHeight(tooltip.el);
if (!document.layers)setTimeout("tooltip.height=getHeight('','tipDiv')",100);setTimeout("positionTip()",120);tip_t1=setTimeout(tooltip.obj+".show()",200);}
function positionTip() {var x, y;if ((mouseX + tipOffX + tooltip.width) > win_width + hor_scroll)x = mouseX - (tooltip.width + tipOffX);else x = mouseX + tipOffX;
if ((mouseY + tipOffY + tooltip.height) > win_height + vert_scroll)
y = (mouseY - (tooltip.height + tipOffY) > vert_scroll)?  mouseY - (tooltip.height + tipOffY): win_height + vert_scroll - (tooltip.height + tipOffY);else y = mouseY + tipOffY;tooltip.shiftTo(x,y);}
function hideTip() {if (!tooltip) return;tip_t2=setTimeout(tooltip.obj+".hide()",200);if (tipFollowMouse) {
if (document.removeEventListener) {document.removeEventListener("mousemove",trackMouse,true);} else if (document.detachEvent) { document.detachEvent("onmousemove",trackMouse);
} else {if (document.layers && document.releaseEvents)document.releaseEvents(Event.MOUSEMOVE);document.onmousemove = null;}}}
function trackMouse(evt) {evt = (window.event)? window.event: evt;if (evt) {mouseX = getMouseX(evt);mouseY = getMouseY(evt);}positionTip();}
function getMouseX(evt) {return (evt.pageX)? evt.pageX: evt.clientX + getScrollX();}function getMouseY(evt) {return (evt.pageY)? evt.pageY: evt.clientY + getScrollY();}

var TINY={};function T$(i){return document.getElementById(i)}TINY.box=function(){var p,m,b,fn,ic,iu,iw,ih,ia,f=0;return{show:function(c,u,w,h,a,t){if(!f){p=document.createElement('div');p.id='tinybox';m=document.createElement('div');m.id='tinymask';b=document.createElement('div');b.id='tinycontent';document.body.appendChild(m);document.body.appendChild(p);p.appendChild(b);m.onclick=TINY.box.hide;window.onresize=TINY.box.resize;f=1}if(!a&&!u){p.style.width=w?w+'px':'auto';p.style.height=h?h+'px':'auto';p.style.backgroundImage='none';b.innerHTML=c}else{b.style.display='none';p.style.width=p.style.height='100px'}this.mask();ic=c;iu=u;iw=w;ih=h;ia=a;this.alpha(m,1,80,3);if(t){setTimeout(function(){TINY.box.hide()},1000*t)}},fill:function(c,u,w,h,a){if(u){p.style.backgroundImage='';var x=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP');x.onreadystatechange=function(){if(x.readyState==4&&x.status==200){TINY.box.psh(x.responseText,w,h,a)}};x.open('GET',c,1);x.send(null)}else{this.psh(c,w,h,a)}},psh:function(c,w,h,a){if(a){if(!w||!h){var x=p.style.width,y=p.style.height;b.innerHTML=c;p.style.width=w?w+'px':'';p.style.height=h?h+'px':'';b.style.display='';w=parseInt(b.offsetWidth);h=parseInt(b.offsetHeight);b.style.display='none';p.style.width=x;p.style.height=y}else{b.innerHTML=c}this.size(p,w,h,4)}else{p.style.backgroundImage='none'}},hide:function(){TINY.box.alpha(p,-1,0,3)},resize:function(){TINY.box.pos();TINY.box.mask()},mask:function(){m.style.height=TINY.page.theight()+'px';m.style.width='';m.style.width=TINY.page.twidth()+'px'},pos:function(){var t=(TINY.page.height()/2)-(p.offsetHeight/2);t=t<10?10:t;p.style.top=(t+TINY.page.top())+'px';p.style.left=(TINY.page.width()/2)-(p.offsetWidth/2)+'px'},alpha:function(e,d,a,s){clearInterval(e.ai);if(d==1){e.style.opacity=0;e.style.filter='alpha(opacity=0)';e.style.display='block';this.pos()}e.ai=setInterval(function(){TINY.box.twalpha(e,a,d,s)},20)},twalpha:function(e,a,d,s){var o=Math.round(e.style.opacity*100);if(o==a){clearInterval(e.ai);if(d==-1){e.style.display='none';e==p?TINY.box.alpha(m,-1,0,2):b.innerHTML=p.style.backgroundImage=''}else{e==m?this.alpha(p,1,100,5):TINY.box.fill(ic,iu,iw,ih,ia)}}else{var n=o+Math.ceil(Math.abs(a-o)/s)*d;e.style.opacity=n/100;e.style.filter='alpha(opacity='+n+')'}},size:function(e,w,h,s){e=typeof e=='object'?e:T$(e);clearInterval(e.si);var ow=e.offsetWidth,oh=e.offsetHeight,wo=ow-parseInt(e.style.width),ho=oh-parseInt(e.style.height);var wd=ow-wo>w?-1:1,hd=(oh-ho>h)?-1:1;e.si=setInterval(function(){TINY.box.twsize(e,w,wo,wd,h,ho,hd,s)},20)},twsize:function(e,w,wo,wd,h,ho,hd,s){var ow=e.offsetWidth-wo,oh=e.offsetHeight-ho;if(ow==w&&oh==h){clearInterval(e.si);p.style.backgroundImage='none';b.style.display='block'}else{if(ow!=w){e.style.width=ow+(Math.ceil(Math.abs(w-ow)/s)*wd)+'px'}if(oh!=h){e.style.height=oh+(Math.ceil(Math.abs(h-oh)/s)*hd)+'px'}this.pos()}}}}();TINY.page=function(){return{top:function(){return document.body.scrollTop||document.documentElement.scrollTop},width:function(){return self.innerWidth||document.documentElement.clientWidth},height:function(){return self.innerHeight||document.documentElement.clientHeight},theight:function(){var d=document,b=d.body,e=d.documentElement;return Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight))},twidth:function(){var d=document,b=d.body,e=d.documentElement;return Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth))}}}();

var loadedobjects="";var rootdomain="http://"+window.location.hostname;function ajaxpage(url, containerid){var page_request = false;
if (window.XMLHttpRequest){page_request = new XMLHttpRequest();}
else if (window.ActiveXObject){try {page_request = new ActiveXObject("Msxml2.XMLHTTP");} catch (e){try{page_request = new ActiveXObject("Microsoft.XMLHTTP");}catch (e){}}}
else
return false
page_request.onreadystatechange=function(){loadpage(page_request, containerid);}
page_request.open('GET', url, true);page_request.send(null);
}
function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){document.getElementById(containerid).innerHTML=page_request.responseText;}}
function loadobjs(){
if (!document.getElementById)
return
for (i=0; i<arguments.length; i++){var file=arguments[i];var fileref="";
if (fileref!=""){document.getElementsByTagName("head").item(0).appendChild(fileref);loadedobjects+=file+" ";
}}}

var timeout = 500;var closetimer = 0;var ddmenuitem = 0;
function mopen(id){mcancelclosetime();if(ddmenuitem){ddmenuitem.style.visibility = 'hidden';}
ddmenuitem = document.getElementById(id);ddmenuitem.style.visibility = 'visible';}
function mclose(){if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';}
function mclosetime(){closetimer = window.setTimeout(mclose, timeout);}
function mcancelclosetime(){if(closetimer){window.clearTimeout(closetimer);closetimer = null;}}
document.onclick = mclose;

if(typeof(bsn)=="undefined")_b=bsn={};if(typeof(_b.Autosuggest)=="undefined")_b.Autosuggest={};else alert("Autosuggest is already set!");_b.AutoSuggest=function(b,c){if(!document.getElementById)return 0;this.fld=_b.DOM.gE(b);if(!this.fld)return 0;this.sInp="";this.nInpC=0;this.aSug=[];this.iHigh=0;this.oP=c?c:{};var k,def={minchars:1,meth:"get",varname:"input",className:"autosuggest",timeout:3500,delay:100,offsety:-5,shownoresults:true,noresults:"No results!",maxheight:250,cache:true,maxentries:25};for(k in def){if(typeof(this.oP[k])!=typeof(def[k]))this.oP[k]=def[k]}var p=this;this.fld.onkeypress=function(a){return p.onKeyPress(a)};this.fld.onkeyup=function(a){return p.onKeyUp(a)};this.fld.setAttribute("autocomplete","off")};_b.AutoSuggest.prototype.onKeyPress=function(a){var b=(window.event)?window.event.keyCode:a.keyCode;var c=13;var d=9;var e=27;var f=1;switch(b){case c:this.setHighlightedValue();f=0;break;case e:this.clearSuggestions();break}return f};_b.AutoSuggest.prototype.onKeyUp=function(a){var b=(window.event)?window.event.keyCode:a.keyCode;var c=38;var d=40;var e=1;switch(b){case c:this.changeHighlight(b);e=0;break;case d:this.changeHighlight(b);e=0;break;default:this.getSuggestions(this.fld.value)}return e};_b.AutoSuggest.prototype.getSuggestions=function(a){if(a==this.sInp)return 0;_b.DOM.remE(this.idAs);this.sInp=a;if(a.length<this.oP.minchars){this.aSug=[];this.nInpC=a.length;return 0}var b=this.nInpC;this.nInpC=a.length?a.length:0;var l=this.aSug.length;if(this.nInpC>b&&l&&l<this.oP.maxentries&&this.oP.cache){var c=[];for(var i=0;i<l;i++){if(this.aSug[i].value.substr(0,a.length).toLowerCase()==a.toLowerCase())c.push(this.aSug[i])}this.aSug=c;this.createList(this.aSug);return false}else{var d=this;var e=this.sInp;clearTimeout(this.ajID);this.ajID=setTimeout(function(){d.doAjaxRequest(e)},this.oP.delay)}return false};_b.AutoSuggest.prototype.doAjaxRequest=function(b){if(b!=this.fld.value)return false;var c=this;if(typeof(this.oP.script)=="function")var d=this.oP.script(encodeURIComponent(this.sInp));else var d=this.oP.script+this.oP.varname+"="+encodeURIComponent(this.sInp);if(!d)return false;var e=this.oP.meth;var b=this.sInp;var f=function(a){c.setSuggestions(a,b)};var g=function(a){alert("AJAX error: "+a)};var h=new _b.Ajax();h.makeRequest(d,e,f,g)};_b.AutoSuggest.prototype.setSuggestions=function(a,b){if(b!=this.fld.value)return false;this.aSug=[];if(this.oP.json){var c=eval('('+a.responseText+')');for(var i=0;i<c.results.length;i++){this.aSug.push({'id':c.results[i].id,'value':c.results[i].value,'info':c.results[i].info})}}else{var d=a.responseXML;var e=d.getElementsByTagName('results')[0].childNodes;for(var i=0;i<e.length;i++){if(e[i].hasChildNodes())this.aSug.push({'id':e[i].getAttribute('id'),'value':e[i].childNodes[0].nodeValue,'info':e[i].getAttribute('info')})}}this.idAs="as_"+this.fld.id;this.createList(this.aSug)};_b.AutoSuggest.prototype.createList=function(b){var c=this;_b.DOM.remE(this.idAs);this.killTimeout();if(b.length==0&&!this.oP.shownoresults)return false;var d=_b.DOM.cE("div",{id:this.idAs,className:this.oP.className});var e=_b.DOM.cE("div",{className:"as_corner"});var f=_b.DOM.cE("div",{className:"as_bar"});var g=_b.DOM.cE("div",{className:"as_header"});g.appendChild(e);g.appendChild(f);d.appendChild(g);var h=_b.DOM.cE("ul",{id:"as_ul"});for(var i=0;i<b.length;i++){var j=b[i].value;var k=j.toLowerCase().indexOf(this.sInp.toLowerCase());var l=j.substring(0,k)+"<em>"+j.substring(k,k+this.sInp.length)+"</em>"+j.substring(k+this.sInp.length);var m=_b.DOM.cE("span",{},l,true);if(b[i].info!=""){var n=_b.DOM.cE("br",{});m.appendChild(n);var o=_b.DOM.cE("small",{},b[i].info);m.appendChild(o)}var a=_b.DOM.cE("a",{href:"#"});var p=_b.DOM.cE("span",{className:"tl"}," ");var q=_b.DOM.cE("span",{className:"tr"}," ");a.appendChild(p);a.appendChild(q);a.appendChild(m);a.name=i+1;a.onclick=function(){c.setHighlightedValue();return false};a.onmouseover=function(){c.setHighlight(this.name)};var r=_b.DOM.cE("li",{},a);h.appendChild(r)}if(b.length==0&&this.oP.shownoresults){var r=_b.DOM.cE("li",{className:"as_warning"},this.oP.noresults);h.appendChild(r)}d.appendChild(h);var s=_b.DOM.cE("div",{className:"as_corner"});var t=_b.DOM.cE("div",{className:"as_bar"});var u=_b.DOM.cE("div",{className:"as_footer"});u.appendChild(s);u.appendChild(t);d.appendChild(u);var v=_b.DOM.getPos(this.fld);d.style.left=v.x+"px";d.style.top=(v.y+this.fld.offsetHeight+this.oP.offsety)+"px";d.style.width=this.fld.offsetWidth+"px";d.onmouseover=function(){c.killTimeout()};d.onmouseout=function(){c.resetTimeout()};document.getElementsByTagName("body")[0].appendChild(d);this.iHigh=0;var c=this;this.toID=setTimeout(function(){c.clearSuggestions()},this.oP.timeout)};_b.AutoSuggest.prototype.changeHighlight=function(a){var b=_b.DOM.gE("as_ul");if(!b)return false;var n;if(a==40)n=this.iHigh+1;else if(a==38)n=this.iHigh-1;if(n>b.childNodes.length)n=b.childNodes.length;if(n<1)n=1;this.setHighlight(n)};_b.AutoSuggest.prototype.setHighlight=function(n){var a=_b.DOM.gE("as_ul");if(!a)return false;if(this.iHigh>0)this.clearHighlight();this.iHigh=Number(n);a.childNodes[this.iHigh-1].className="as_highlight";this.killTimeout()};_b.AutoSuggest.prototype.clearHighlight=function(){var a=_b.DOM.gE("as_ul");if(!a)return false;if(this.iHigh>0){a.childNodes[this.iHigh-1].className="";this.iHigh=0}};_b.AutoSuggest.prototype.setHighlightedValue=function(){if(this.iHigh){this.sInp=this.fld.value=this.aSug[this.iHigh-1].value;this.fld.focus();if(this.fld.selectionStart)this.fld.setSelectionRange(this.sInp.length,this.sInp.length);this.clearSuggestions();if(typeof(this.oP.callback)=="function")this.oP.callback(this.aSug[this.iHigh-1])}};_b.AutoSuggest.prototype.killTimeout=function(){clearTimeout(this.toID)};_b.AutoSuggest.prototype.resetTimeout=function(){clearTimeout(this.toID);var a=this;this.toID=setTimeout(function(){a.clearSuggestions()},1000)};_b.AutoSuggest.prototype.clearSuggestions=function(){this.killTimeout();var a=_b.DOM.gE(this.idAs);var b=this;if(a){var c=new _b.Fader(a,1,0,250,function(){_b.DOM.remE(b.idAs)})}};if(typeof(_b.Ajax)=="undefined")_b.Ajax={};_b.Ajax=function(){this.req={};this.isIE=false};_b.Ajax.prototype.makeRequest=function(a,b,c,d){if(b!="POST")b="GET";this.onComplete=c;this.onError=d;var e=this;if(window.XMLHttpRequest){this.req=new XMLHttpRequest();this.req.onreadystatechange=function(){e.processReqChange()};this.req.open("GET",a,true);this.req.send(null)}else if(window.ActiveXObject){this.req=new ActiveXObject("Microsoft.XMLHTTP");if(this.req){this.req.onreadystatechange=function(){e.processReqChange()};this.req.open(b,a,true);this.req.send()}}};_b.Ajax.prototype.processReqChange=function(){if(this.req.readyState==4){if(this.req.status==200){this.onComplete(this.req)}else{this.onError(this.req.status)}}};if(typeof(_b.DOM)=="undefined")_b.DOM={};_b.DOM.cE=function(b,c,d,e){var f=document.createElement(b);if(!f)return 0;for(var a in c)f[a]=c[a];var t=typeof(d);if(t=="string"&&!e)f.appendChild(document.createTextNode(d));else if(t=="string"&&e)f.innerHTML=d;else if(t=="object")f.appendChild(d);return f};_b.DOM.gE=function(e){var t=typeof(e);if(t=="undefined")return 0;else if(t=="string"){var a=document.getElementById(e);if(!a)return 0;else if(typeof(a.appendChild)!="undefined")return a;else return 0}else if(typeof(e.appendChild)!="undefined")return e;else return 0};_b.DOM.remE=function(a){var e=this.gE(a);if(!e)return 0;else if(e.parentNode.removeChild(e))return true;else return 0};_b.DOM.getPos=function(e){var e=this.gE(e);var a=e;var b=0;if(a.offsetParent){while(a.offsetParent){b+=a.offsetLeft;a=a.offsetParent}}else if(a.x)b+=a.x;var a=e;var c=0;if(a.offsetParent){while(a.offsetParent){c+=a.offsetTop;a=a.offsetParent}}else if(a.y)c+=a.y;return{x:b,y:c}};if(typeof(_b.Fader)=="undefined")_b.Fader={};_b.Fader=function(a,b,c,d,e){if(!a)return 0;this.e=a;this.from=b;this.to=c;this.cb=e;this.nDur=d;this.nInt=50;this.nTime=0;var p=this;this.nID=setInterval(function(){p._fade()},this.nInt)};_b.Fader.prototype._fade=function(){this.nTime+=this.nInt;var a=Math.round(this._tween(this.nTime,this.from,this.to,this.nDur)*100);var b=a/100;if(this.e.filters){try{this.e.filters.item("DXImageTransform.Microsoft.Alpha").opacity=a}catch(e){this.e.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+a+')'}}else{this.e.style.opacity=b}if(this.nTime==this.nDur){clearInterval(this.nID);if(this.cb!=undefined)this.cb()}};_b.Fader.prototype._tween=function(t,b,c,d){return b+((c-b)*(t/d))};

function NoError(){return(true);}onerror=NoError;
