var xmlHttp;function GetXmlHttpObject( handler ) {var objXmlHttp = null;
if (navigator.userAgent.indexOf("Opera") >= 0) {alert ("Deze browser wordt niet ondersteund.");return;}
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 ) {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 );}}}

function Chide(contentid){document.getElementById(contentid).style.display="block";}
function Reload(bannerid){var banner = document.getElementById(bannerid);banner.src = banner.src;}

function emailcheck(emailStr){var emailPat=/^(.+)@(.+)$/;var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]";var validChars="\[^\\s" + specialChars + "\]";var quotedUser="(\"[^\"]*\")";
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atom=validChars + '+';var word="(" + atom + "|" + quotedUser + ")";
var userPat=new RegExp("^" + word + "(\\." + word + ")*$");var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");var matchArray=emailStr.match(emailPat);
if(matchArray==null){return false;}var user=matchArray[1];var domain=matchArray[2];if(user.match(userPat)==null){return false;}var IPArray=domain.match(ipDomainPat);
if (IPArray!=null){for (var i=1;i<=4;i++) {if (IPArray[i]>255) {return false;}}return true;}var domainArray=domain.match(domainPat);if (domainArray==null) {return false;}
var atomPat=new RegExp(atom,"g");var domArr=domain.match(atomPat);if(domArr[domArr.length-1].length<2){return false;}
var strdom=" .name .biz .info .arpa .com .edu .firm .gov .int .mil .mobi .nato .net .nom .org .store .web .pro .arts .asia .aero .cat .coop .jobs .museum .travel .post .tel .xxx .bank .ac .ad .ae .af .ag .ai .al .am .an .ao .aq .ar .as .at .au .aw .ax .az .ba .bb .bd .be .bf .bg .bh .bi .bj .bm .bn .bo .br .bs .bt .bv .bw .by .bz .ca .cc .cd .cf .cg .ch .ci .ck .cl .cm .cn .co .cr .cu .cv .cx .cy .cz .dd .de .dj .dk .dm .do .dz .ec .ee .eg .er .es .et .eu .fi .fj .fk .fm .fo .fr .ga .gb .gd .ge .gf .gh .gi .gl .gm .gn .gp .gq .gr .gs .gt .gu .gw .gy .hk .hm .hn .hr .ht .hu .id .ie .il .im .in .io .iq .ir .is .it .je .jm .jo .jp .ke .kg .kh .ki .km .kn .kp .kr .kw .ky .kz .la .lb .lc .li .lk .lr .ls .lt .lu .lv .ly .ma .mc .md .me .mg .mh .mk .ml .mm .mn .mo .mp .mq .mr .ms .mt .mu .mv .mw .mx .my .mz .na .nc .ne .nf .ng .ni .nl .no .np .nr .nu .nz .om .pa .pe .pf .pg .ph .pk .pl .pm .pn .pr .ps .pt .pw .py .qa .re .ro .rs .ru .rw .sa .sb .sc .sd .se .sg .sh .si .sj .sk .sl .sm .sn .so .sr .st .su .sv .sy .sz .tc .td .tf .tg .th .tj .tk .tl .tm .tn .to .tp .tr .tt .tv .tw .tz .ua .ug .uk .um .us .uy .uz .va .vc .ve .vg .vi .vn .vu .wf .ws .ye  .yt .yu .za .zm .zw";
domext= '.' + domArr[domArr.length-1].toLowerCase();
if(strdom.match(domext)==null){return false;}if(domArr[domArr.length-2].length<2){return false;}if(emailStr.substring(11,0)=="E-mailadres"){return false;}
var typos = new Array ("goooglemail", "goglemail", "@caseman.", "@xsa4all.", "@planer.", "@tiscasli", "@xs43all.", "@cheelo.", "@hetnt.", "quiknet", "motmail.com", "@orangr.nl","@htmail.com", "@htmil.com", "telene.be", "@kynet.be", "@plane.nl", "@kpnlanet.nl", "@xs4sll.nl", "@gmal.com", "@wnadoo.nl", "@gmaail.com", "@oange.nl", "hetne.nl", "hotmaul", "hotnail", "hotamil", "hotmmail", "hyotmail", "hotmaail", "hoetmail", "hoimail", "hormail", "htoamil", "hotlail", "ohtmail", "hotmaqil", "hotmeil", "hotmial", "hotmal", "holmail", "hotmeal", "hotail", "hoitmai", "hoymail", "hotmaiil", "hotmil", "hotmai.", "hotmaiol", "hotmali", "hoitmail", "hotmmail", "@otmail", "hohemail", "hptmail", "hottmail", "hotmaol", "hetmail", "homail", "hotamail", "hotmael", "htomail", "uahoo", "yaho.", "yahyoo", "yohoo.com", "g.mail.com", "gmaill", "gmial", "gmaiil", "gmail.be", "gmail.nl", "gamil.com", "wanado.", "wandoo", "wannado", "wanedoo", "wanadool", "wanandoo", "wanadoos", "wandadoo", "wonadoo", "wannedoo", "cacema", "casama", "casem.nl", "telent.", "@zonet.", "chllo", "zeelamdnet", "ornge.", "kaberfoon", "zzelandnet", "scynet", "xkynet", "verstael.", "verstatel.", "plannet.", "hecnet", "knplanet", "lpanet", "fleeler", "zionnet", "@olcon.", "panora", "pndora", "zpnnet", "0range.", "1m2ove", "xs4aal", "filernet", "kpnplan.", "planewt.", "scerlet.", "scaarlet", "wolrldonline", "worlldonline", "x4sall", "xxs4all", "9xs4all", "homew.", "pnadora", "skijnet", "ornge", "guicknet", "cuicknet", "quiknet", "hetnel", "hetnetr", "hetnetl", "tascali", "tiscalli", "ticali", "tiscalii", "@iscali", "teleenet.be", "3wanadoo.nl", "@teleet.be", "@skenet.be", "hotmail.com.", "qucknet", "@g-mail", "@het.net.nl", "@plenet.nl", "hotmajl", "klikafe", "knpplanet");
for ( i=0; i < typos.length; i++ ){if(emailStr.indexOf( typos[i] )>=0){return false;}}if(emailStr.indexOf("hotmail")>=0 && emailStr.indexOf("@hotmail.")<0){return false;}return true;}

function opslaan(){var url = "js/edit.php?" + document.getElementById('opslaan').value + "=1&sid=" + Math.round(999*Math.random()) + "&checkmail=" + document.getElementById('checkmail').value + "&kaartid=" + document.getElementById('kaartid').value + "&jpgid=" + document.getElementById('jpgid').value + "&sesid=" + document.getElementById('sesid').value;
xmlHttp = GetXmlHttpObject( changeinfo );xmlHttp.open("GET", url , true);xmlHttp.send( null );}

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 (!(/^([a-zA-Z0-9_ \.\-])+$/.test(document.getElementById('uwnaam').value))){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 + '&lid=' + document.getElementById('lid').value + '&vip=' + document.getElementById('vip').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;}}

function kaartopstellen(){
if (document.opstellen.rte.value.length>'10000'){TINY.box.show('Het bericht mag maximaal uit 10000 tekens bestaan!',0,0,0,0,7);return false;}
if (document.opstellen.rte.value.length=='0'){TINY.box.show('Je hebt geen bericht ingevuld!',0,0,0,0,7);return false;}
if ((document.opstellen.vannaam.value.length==0) || (document.opstellen.vannaam.value=='Naam')){TINY.box.show('Je hebt je naam niet ingevuld!',0,0,0,0,7);return false;}
if (!(/^([a-zA-Z0-9_ \.\-])+$/.test(document.opstellen.vannaam.value))) {TINY.box.show('Je naam mag geen speciale tekens bevatten!',0,0,0,0,7);return false;}
if(emailcheck(document.opstellen.vanemail.value)==false){TINY.box.show('Je e-mailadres is ongeldig!',0,0,0,0,7);return false;}
if (!(document.opstellen.aannaam.value.length==0) && !(document.opstellen.aannaam.value=='Naam')){
if (!(/^([a-zA-Z0-9_ \.\-])+$/.test(document.opstellen.aannaam.value))) {TINY.box.show('De naam mag geen speciale tekens bevatten!',0,0,0,0,7);return false;}
if(emailcheck(document.opstellen.aanemail.value)==false){TINY.box.show('Het e-mailadres van de geadresseerde is ongeldig!',0,0,0,0,7);return false;}}
if (!(document.opstellen.aanemail.value.length==0) && !(document.opstellen.aanemail.value=='E-mailadres')){
if ((document.opstellen.aannaam.value.length==0) || (document.opstellen.aannaam.value=='Naam')){TINY.box.show('Je hebt geen naam bij de geadresseerde ingevuld!',0,0,0,0,7);return false;}
if (!(/^([a-zA-Z0-9_ \.\-])+$/.test(document.opstellen.aannaam.value))) {TINY.box.show('De naam mag geen speciale tekens bevatten!',0,0,0,0,7);return false;}
if(emailcheck(document.opstellen.aanemail.value)==false){TINY.box.show('Het e-mailadres van de geadresseerde is ongeldig!',0,0,0,0,7);return false;}
document.opstellen.selos2.value = document.opstellen.aannaam.value + ' {' + document.opstellen.aanemail.value + '}';}
if ((document.opstellen.selos.options.length=='0') && (document.opstellen.selos2.value.length=='0')){TINY.box.show('Je hebt geen geadresseerde ingevuld!',0,0,0,0,7);return false;}
if(document.opstellen.selos.options.length>maxadres){TINY.box.show('Je mag maximaal ' + maxadres + ' geadresseerden opgeven!' + maxadresmelding + '',0,0,0,0,7);return false;}
tot = document.opstellen.selos.options.length;for(i=0;i<tot;i++){document.opstellen.selos.options[i].selected = true;}}

function insertOldSchoolopstellen(theSel, newText, newValue){
if(document.opstellen.selos.options.length>=maxadres){TINY.box.show('Je mag maximaal ' + maxadres + ' geadresseerden opgeven!' + maxadresmelding + '',0,0,0,0,7);return false;}
if ((document.opstellen.aannaam.value.length==0) || (document.opstellen.aannaam.value=='Naam')){TINY.box.show('Je hebt geen naam ingevuld!',0,0,0,0,7);return false;}
if (!(/^([a-zA-Z0-9_ \.\-])+$/.test(document.opstellen.aannaam.value))) {TINY.box.show('De naam mag geen speciale tekens bevatten!',0,0,0,0,7);return false;}
if (emailcheck(document.opstellen.aanemail.value)==false){TINY.box.show('Het e-mailadres is ongeldig!',0,0,0,0,7);return false;}
tot = document.opstellen.selos.options.length;for(i=0;i<tot;i++){document.opstellen.selos.options[i].selected = true;}
if (theSel.length == 0) {var newOpt1 = new Option(newText, newValue);theSel.options[0] = newOpt1;theSel.selectedIndex = 0;}
else if (theSel.selectedIndex != -1) {var selText = new Array();var selValues = new Array();var selIsSel = new Array();var newCount = -1;var newSelected = -1;var i;
for(i=0; i<theSel.length; i++){newCount++;
if (newCount == theSel.selectedIndex) {selText[newCount] = newText;selValues[newCount] = newValue;selIsSel[newCount] = false;newCount++;newSelected = newCount;}
selText[newCount] = theSel.options[i].text;selValues[newCount] = theSel.options[i].value;selIsSel[newCount] = theSel.options[i].selected;}
for(i=0; i<=newCount; i++){var newOpt = new Option(selText[i], selValues[i]);theSel.options[i] = newOpt;theSel.options[i].selected = selIsSel[i];}}
tot = document.opstellen.selos.options.length;for(i=0;i<tot;i++){document.opstellen.selos.options[i].selected = false;}
if(document.opstellen.selos.options.length>=maxadres){document.opstellen.aannaam.disabled=true;document.opstellen.aanemail.disabled=true;}
document.opstellen.aannaam.value = 'Naam';document.opstellen.aanemail.value = 'E-mailadres';}
function removeOldSchoolopstellen(theSel){var selIndex = theSel.selectedIndex;if (selIndex != -1) {for(i=theSel.length-1; i>=0; i--){if(theSel.options[i].selected){theSel.options[i] = null;}}
if (theSel.length > 0) {theSel.selectedIndex = selIndex == 0 ? 0 : selIndex - 1;}}
tot = document.opstellen.selos.options.length;for(i=0;i<tot;i++){document.opstellen.selos.options[i].selected = false;}
tot = document.opstellen.selos.options.length;if(tot<maxadres){document.opstellen.aannaam.disabled=false;document.opstellen.aanemail.disabled=false;}}
function addOption(theText, theValue){if(document.opstellen.selos.options.length>=maxadres){document.opstellen.aannaam.disabled=true;document.opstellen.aanemail.disabled=true;
document.opstellen.aannaam.value = 'Naam';document.opstellen.aanemail.value = 'E-mailadres';TINY.box.show('Je mag maximaal ' + maxadres + ' geadresseerden opgeven!',0,0,0,0,7);return false;}
var theSel = document.getElementById('selos');var newOpt = new Option(theText, theValue);var selLength = theSel.length;theSel.options[selLength] = newOpt;}

function MM_swapImgRestore() {var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}
function MM_findObj(n, d) {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 MM_swapImage() {var i,j=0,x,a=MM_swapImage.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];}}
function themaRestore(){var i=0;var themaUrl ="";while(i < document.myform.effect.length){if(document.myform.effect[i].checked){themaUrl=document.myform.effect[i].value;}i++;}
document.images['themaVoorbeeld'].src = "images/thema/" + themaUrl + "a.gif";}

function checkCapsLock( e ) {
var myKeyCode=0;
var myShiftKey=false;
var myMsg='Caps Lock staat aan.\nOm te voorkomen dat je wachtwoord onjuist is,\ndien je Caps Lock uit te zetten.';
if ( document.all ) {myKeyCode=e.keyCode;myShiftKey=e.shiftKey;}
else if ( document.layers ) {myKeyCode=e.which;myShiftKey=( myKeyCode == 16 ) ? true : false;}
else if ( document.getElementById ) {myKeyCode=e.which;myShiftKey=( myKeyCode == 16 ) ? true : false;}
if ( ( myKeyCode >= 65 && myKeyCode <= 90 ) && !myShiftKey ) {if(document.activeElement.value==''){alert( myMsg );}}
else if ( ( myKeyCode >= 97 && myKeyCode <= 122 ) && myShiftKey ) {if(document.activeElement.value==''){alert( myMsg );}}}

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, arial, helvetica, sans-serif";var tipFontSize= "9px";
var tipLineHeight= 1.2;var tipFontColor = "#000000";var tipBgColor = "lavender";var tipBgImg = "";var tipPadding = 2;var tipBorderColor = "#4C4E52";
var tipBorderWidth = 1;var tipBorderStyle = "groove";

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))}}}();

function NoError(){return(true);}onerror=NoError;
