var browser={},g_smi_widgets={},g_newWidgetHandlers=[],ACCESS_NONE=0,ACCESS_READ=1,ACCESS_WRITE=2,ACCESS_DELETE=4,ACCESS_CREATE=8,ACCESS_RENAME=16,ACCESS_ALL=31,domReadyEvent={name:"domReadyEvent",events:{},domReadyID:1,bDone:false,DOMContentLoadedCustom:null,add:function(a){if(!a.$$domReadyID){a.$$domReadyID=this.domReadyID++;this.bDone&&a();this.events[a.$$domReadyID]=a}},remove:function(a){a.$$domReadyID&&delete this.events[a.$$domReadyID]},run:function(){if(!this.bDone){this.bDone=true;for(var a in this.events)this.events[a]()}},
schedule:function(){if(!this.bDone){if(/KHTML|WebKit/i.test(navigator.userAgent))/loaded|complete/.test(document.readyState)?this.run():setTimeout(this.name+".schedule()",100);else if(document.getElementById("__ie_onload"))return true;if(typeof this.DOMContentLoadedCustom==="function")if(typeof document.getElementsByTagName!=="undefined"&&(document.getElementsByTagName("body")[0]!==null||document.body!==null))this.DOMContentLoadedCustom()?this.run():setTimeout(this.name+".schedule()",250);return true}},
init:function(){function a(){domReadyEvent.run()}document.addEventListener&&document.addEventListener("DOMContentLoaded",function(){domReadyEvent.run()},false);setTimeout("domReadyEvent.schedule()",100);if(typeof addEvent!=="undefined")addEvent(window,"load",a);else if(document.addEventListener)document.addEventListener("load",a,false);else if(typeof window.onload==="function"){var d=window.onload;window.onload=function(){domReadyEvent.run();try{d()}catch(h){}}}else window.onload=a;if(window.navigator.userAgent.search(/msie/i)!=
-1){var c=window.document,e=false,g=function(){if(!e){e=true;domReadyEvent.run()}},f=function(){try{c.documentElement.doScroll("left")}catch(h){setTimeout(f,50);return}g()};f();c.onreadystatechange=function(){if(c.readyState=="complete"){c.onreadystatechange=null;g()}};c.readyState=="complete"&&g()}}},domReady=function(a){domReadyEvent.add(a)};domReadyEvent.init();function swapFoto(a,d){var c=document.getElementById(a),e=document.getElementById(d),g=c.src;c.src=e.src;e.src=g}
function delayedWrite(a){document.write(a)}function getPixels(a){return a!=""?parseInt(a.substr(0,a.length-2)):0}function getObjectPosition(a){return{x:getScreenPosX(a),y:getScreenPosY(a)}}function getScreenPosY(a){for(var d=0;a;){var c=a.parentNode&&typeof a.parentNode.scrollTop!="undefined"?a.parentNode.scrollTop:0;d+=a.offsetTop-(a==document.body||a.parentNode==document.body?0:c);a=a.offsetParent}return d}
function getScreenPosX(a){for(var d=0;a;){var c=a.parentNode&&typeof a.parentNode.scrollLeft!="undefined"?a.parentNode.scrollLeft:0;d+=a.offsetLeft-(a.parentNode==document.body?0:c);a=a.offsetParent}return d}function _GET(a){re=/\?([^#]*).*$/;if(document.location.href.match(re)){var d=RegExp.$1.split("&"),c=0;for(c=0;c<d.length;c++){var e=d[c].split("=");if(e[0]==a)return unescape(e[1].replace(/\+/g," "))}}return null}
function getTotalHeight(a){a=getScreenDimensions(a);a=a.availHeight+a.scrollTop;return a<document.body.scrollHeight?document.body.scrollHeight:a}function getTotalWidth(a){a=getScreenDimensions(a);a=a.availWidth+a.scrollLeft;return a<document.body.scrollWidth?document.body.scrollWidth:a}
function createTotalDiv(a,d,c,e){d=typeof d=="undefined"?0:d;a=typeof a=="undefined"?"white":a;var g=typeof e=="undefined"?window:e,f=(typeof c=="undefined"?document:c).createElement("div");f.style.position="absolute";f.style.backgroundColor=a;f.style.opacity=sprintf("%0.2f",d/100);f.style.filter="alpha(opacity="+d+")";var h=function(){var m=getScreenDimensions(g);f.style.top=m.scrollTop+"px";f.style.left=m.scrollLeft+"px";f.style.width="100%";f.style.height=m.availHeight+"px"};window_attachEvent("onresize",
h,g);h();f.detachEvents=function(){window_detachEvent("onresize",h,g)};return f}function getTop(){for(var a=window,d=false;!d;){try{d=!a.parent||a.parent==a;if(!d&&a.parent&&a.parent.document.getElementsByTagName("html").length!=0)d=false}catch(c){d=true}if(!d)a=a.parent}return a}function getTopWindow(){for(var a=getTop();a.opener;)a=a.opener.top?a.opener.top:a.opener;return a}var g_dragItem=null,g_dragOptions=null;
function drag_start(a,d,c){if(!g_dragItem){if(!c.noNode){g_dragItem=c.dontCloneNode?a:a.cloneNode(true);if(!c.dontCloneNode){a.parentNode.appendChild(g_dragItem);g_dragItem.style.display="none"}g_dragItem.style.position="absolute"}g_dragOptions=c;a=getObjectPosition(a);d=getEventPosition(d||window.event);g_dragOptions.deltaX=a.x-d.x;g_dragOptions.deltaY=a.y-d.y;c=!c.isPopup&&typeof getDivPopupFromWindow!="undefined"?getDivPopupFromWindow(window):false;g_dragOptions.popupPos=c?getPopupPosition(c):
{x:0,y:0};if(isNaN(g_dragOptions.deltaX))g_dragOptions.deltaX=0;if(isNaN(g_dragOptions.deltaY))g_dragOptions.deltaY=0;c=createTotalDiv("white",0,getTop().document,getTop());c.style.cursor="move";c.style.zIndex="800000";c.style.overflow="hidden";getTop().document.body.appendChild(c);c.onmouseup=function(e){return drag_onMouseUp(e?e:getTop().event)};c.onmousemove=function(e){return drag_onMouseMove(e?e:getTop().event,false,g_dragOptions)};g_dragOptions.dragObject=c;return false}return true}
function drag_onMouseUp(){!g_dragOptions.dontCloneNode&&g_dragItem&&g_dragItem.parentNode.removeChild(g_dragItem);g_dragOptions&&g_dragOptions.onDragDone&&g_dragOptions.onDragDone(g_dragOptions);g_dragOptions.dragObject.parentNode.removeChild(g_dragOptions.dragObject);g_dragOptions.dragObject=null;document.body.onmouseup=g_dragOptions.oldOnMouseup?g_dragoptions.oldonmouseup:"";document.body.onmousemove=g_dragOptions.oldOnMousedown?g_dragOptions.oldOnMousedown:"";g_dragItem=null;return true}
function drag_onMouseMove(a,d,c){var e=getEventPosition(a);e.x-=c.popupPos.x;e.y-=c.popupPos.y;c.onMouseMove&&c.onMouseMove(a,e.x,e.y);if(!g_dragItem)return true;if(g_dragItem.style.display=="none"&&!d)g_dragItem.style.display="";a=e.x+g_dragOptions.deltaX;e=e.y+g_dragOptions.deltaY;g_dragItem.style.left=a+"px";g_dragItem.style.top=e+"px";if(c.objects)for(var g in c.objects){d=c.objects[g];d.style.left=a+"px";d.style.top=e+"px"}return false}
function dom_getElementsByTagName(a,d,c){a=a.getElementsByTagName(d);for(d=0;d<a.length;d++)c.push(a[d])}function dom_isDescendant(a){for(a=a;a;)a=a.parentNode;return false}function dom_getElementValue(a,d){var c=a.getElementsByTagName(d);return c.length>0&&c[0].firstChild?c[0].firstChild.nodeValue:null}
function post(a,d,c){var e=/[^?]+(\?.*)$/.exec(document.location.href);e=e?e[1]:"";e=typeof d!="undefined"?a:g_phpFilename+e;a=typeof d!="undefined"?d:a;var g=document.getElementsByTagName("body");g=g&&g.length>=1?g[0]:null;if(!g)return false;d=document.createElement("form");d.style.display="none";d.action=e;d.method="post";if(typeof c!="undefined")d.target=c;g.appendChild(d);for(attr in a){c=document.createElement("input");c.type="hidden";c.name=attr;c.value=a[attr];d.appendChild(c)}d.submit()}
function openDatePicker(a,d,c,e,g){var f=document.getElementById("dateSelectDiv");f&&hideDatePicker();f=document.createElement("div");f.id="dateSelectDiv";f.style.width="267px";f.style.height="200px";f.style.top=c+"px";f.style.left=d+"px";var h=document.createElement("iframe");a="selectdate.php?returnFunction="+a+"&width=300&height=210";if(e)a+="&year="+e;if(g)a+="&month="+g;h.src=a;h.frameBorder=0;h.scrolling="no";h.marginWidth=0;h.maringHeight=0;h.height=200;h.width=280;f.appendChild(h);divPopup("datePicker",
d,c,"Selecteer datum",f)}function hideDatePicker(){hideDivPopup("datePicker")}
function sprintf(){if(!(!arguments||arguments.length<1||!RegExp)){for(var a=arguments[0],d=/([^%]*)%('.|0|\x20)?(-)?([1-9]\d*)?(\.\d+)?(%|b|c|d|u|f|o|s|x|X)(.*)/,c=b=[],e=0,g=0,f;c=d.exec(a);){a=c[1];var h=c[2],m=c[4];f=c[5];var k=c[6];c=c[7];g++;if(k=="%")f="%";else{e++;e>=arguments.length&&alert("Error! Not enough function arguments ("+(arguments.length-1)+", excluding the string)\nfor the number of substitution parameters in string ("+e+" so far).");var l=arguments[e],j="";if(h&&h.substr(0,1)==
"'")j=a.substr(1,1);else if(h)j=h;h=-1;if(m)h=parseInt(m);m=-1;if(f&&k=="f")m=parseInt(f.substring(1));f=l;if(k=="b")f=parseInt(l).toString(2);else if(k=="c")f=String.fromCharCode(parseInt(l));else if(k=="d")f=parseInt(l)?parseInt(l):0;else if(k=="u")f=Math.abs(l);else if(k=="f"&&m!=-1){k=parseFloat(l);f=Math.floor(k)+".";l=Math.round(k*Math.pow(10,m)%Math.pow(10,m));var n=1;for(k=1;k<=m;k++){if(l<n)f+="0";n*=10}if(l!=0)f+=l}else if(k=="f"&&m==-1)f=parseFloat(l);else if(k=="o")f=parseInt(l).toString(8);
else if(k=="s")f=l;else if(k=="x")f=(""+parseInt(l).toString(16)).toLowerCase();else if(k=="X")f=(""+parseInt(l).toString(16)).toUpperCase();if(h>String(f).length){h=h-String(f).length;for(k=0;k<h;k+=String(j).length)f=j+f}}a=a+f+c}return a}}
function sprintPrice(a,d){if(typeof d=="undefined")d=true;var c="",e=parseInt(a)%1E3;if(a>=1E3&&e<100)c+="0";if(a>=1E3&&e<10)c+="0";c+=d?sprintf("%0.2f",a%1E3):sprintf("%0.2f",a%1E3).replace(".",",");for(a/=1E3;a>=1;){c=parseInt(a)%1E3+(d?",":".")+c;a/=1E3}return c}function dirtyPause(a){date=new Date;var d=null;do d=new Date;while(d-date<a)}function HFDate(a,d,c){var e=String("jan,feb,mrt,apr,mei,jun,jul,aug,sept,okt,nov,dec").split(",");return sprintf("%02d-%s-%d",c,e[d-1],a)}
function setOpacity(a,d){if(d==100){a.style.opacity="";a.style.filter=""}else{a.style.opacity=sprintf("%0.2f",d/100);a.style.filter="alpha(opacity="+d+")"}}
function switchTab(a,d,c){var e=typeof c!="undefined"?c:-1;if(e==-1){var g=document.getElementById(a+"_"+d+"_tab");e=g.parentNode.getElementsByTagName("li").length}for(c=0;c<e;c++){g=document.getElementById(a+"_"+c+"_tab");g.className=c!=d?"tab_ia":"tab";g=document.getElementById(a+"_row_"+c);g.style.display=c!=d?"none":""}setCookie((typeof cookiePrefix!="undefined"?cookiePrefix:"")+"selectedTab_"+a,d)}
function getVisibleTab(a){var d,c=0,e=false;do if((d=document.getElementById(a+"_row_"+c))&&d.style.display!="none")e=true;else c++;while(d&&!e);return e?c:-1}function setUnselectable(a){a.unselectable="on";a.onselectstart=function(){return false};a.style.MozUserSelect="none ! important"}function getEventPosition(a){return{x:a.pageX||a.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft),y:a.pageY||a.clientY+(document.documentElement.scrollTop||document.body.scrollTop)}}
function getEventX(a){return getEventPosition(a).x}function getEventY(a){return getEventPosition(a).y}function addIframe(a){a=document.getElementById(a);var d=document.createElement("iframe");d.frameBorder="0";d.src="javascript:void(0)";a.appendChild(d);document.getElementsByTagName("head");d.onload=function(){return true}}var g_flashEnabled=true,deconcept={SWFObjectUtil:{}};
deconcept.SWFObjectUtil.getPlayerVersion=function(a,d){var c=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var e=navigator.plugins["Shockwave Flash"];if(e&&e.description)c=new deconcept.PlayerVersion(e.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}else{try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var g=3;e!=null;g++){e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+g);c=new deconcept.PlayerVersion([g,
0,0])}}catch(f){}if(a&&c.major>a.major)return c;if(!a||(a.minor!=0||a.rev!=0)&&c.major==a.major||c.major!=6||d)try{c=new deconcept.PlayerVersion(e.GetVariable("$version").split(" ")[1].split(","))}catch(h){}}return c};deconcept.PlayerVersion=function(a){this.major=parseInt(a[0])!=null?parseInt(a[0]):0;this.minor=parseInt(a[1])||0;this.rev=parseInt(a[2])||0};
deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major)return false;if(this.major>a.major)return true;if(this.minor<a.minor)return false;if(this.minor>a.minor)return true;if(this.rev<a.rev)return false;return true};var __smi_flash_data={uniqueId:0,callbacks:{},flashLoaded:{}};function __flashCallback__(a,d,c){var e=__smi_flash_data.callbacks[a];if(d=="onload")__smi_flash_data.flashLoaded[a]=true;if(e&&e.callback[d])return e.callback[d](getFlash(e.div),c)}
function createFlash(a,d,c,e,g,f,h,m){h=typeof h=="undefined"?false:h;g=typeof g=="undefined"?{wmode:"transparent",quality:"high"}:g;var k=typeof f=="undefined"?"":f,l=typeof a=="string"?document.getElementById(a):a;a=l.ownerDocument;if((f=g_flashEnabled)&&h)f=deconcept.SWFObjectUtil.getPlayerVersion().major>=h;if(!f&&typeof k=="string")l.innerHTML+=k;else if(!f&&typeof k=="function")k();else{f=["src","width","height","id","name","swliveconnect","player","loop","menu","quality","scale","align","salign",
"wmode","bgcolor","base","flashvars","allowfullscreen"];h={};var j=h.id;if(!j&&l.id)j=l.id+"_flash";else j||(j="__smi_flash_"+__smi_flash_data.uniqueId++);if(m)__smi_flash_data.callbacks[j]={div:l,callback:m};h.__flashId__=j;for(var n in g){m=in_array(n.toLowerCase(),f)?n.toLowerCase():n;h[m]=g[n]}if(l.id)h._divId_=l.id;n=[];m=true;for(var p in h)if(!in_array(p,f)){if(m)m=false;else n+="&";n+=p+"="+escape(h[p])}h.flashVars=n;if(!h.wmode)h.wmode="transparent";var o=a.createElement("object");o.setAttribute("width",
c);o.setAttribute("height",e);if(browser.isIE&&(browser.trident<=4||browser.version<=8&&browser.trident>=5))o.setAttribute("classid","clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");o.setAttribute("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0");o.setAttribute("id",j);o.wMode=h.wmode;if(h.allowfullscreen)o.allowFullscreen=h.allowfullscreen;o.flashVars=n;param=a.createElement("param");param.setAttribute("name","movie");param.setAttribute("value",d);o.appendChild(param);
n=window.navigator.userAgent.search(/Chrome\/[0-9.]+/)!=-1;for(p in h)if(!in_array(p,n?["id","allowFullscreen"]:["wmode","id","allowfullscreen"])){param=a.createElement("param");param.setAttribute("name",p);param.setAttribute("value",h[p]);o.appendChild(param)}browser.isSafari||l.appendChild(o);try{o.LoadMovie&&typeof o.LoadMovie!="undefined"&&o.LoadMovie(0,d)}catch(r){o.LoadMovie(0,d)}var q=a.createElement("embed");q.setAttribute("src",d);q.setAttribute("width",c);q.setAttribute("height",e);q.setAttribute("pluginspage",
"http://www.macromedia.com/go/getflashplayer");q.setAttribute("type","application/x-shockwave-flash");for(p in h)in_array(p,["src","width","height","pluginspage","type"])||q.setAttribute(p,h[p]+(p=="id"?"_embed":""));try{o.appendChild(q)}catch(t){}if(browser.isSafari){l.appendChild(q);o=q}k&&window.setTimeout(function(){if(!__smi_flash_data.flashLoaded[j]){var s;try{s=typeof o.LoadMovie!="undefined"||typeof q.LoadMovie!="undefined"}catch(u){s=true}if(!s){if(typeof k=="string"){l.removeChild(o);l.innerHTML+=
k}else k();g_flashEnabled=false}}},1E3)}}String.prototype.trim=function(){return this.ltrim().rtrim()};String.prototype.ltrim=function(){return this.replace(/^\s*/,"")};String.prototype.rtrim=function(){return this.replace(/\s*$/,"")};function in_array(a,d,c){c=typeof c=="undefined"?false:c;for(var e in d)if(!c&&d[e]==a||c&&e==a)return true;return false}
function getRegEx(a){switch(a){case "email":return/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2}|(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$/;case "dns":return/^([a-z0-9]([-a-z0-9]*[a-z0-9])?\.)+((a[cdefgilmnoqrstuwxz]|aero|arpa)|(b[abdefghijmnorstvwyz]|biz)|(c[acdfghiklmnorsuvxyz]|cat|com|coop)|d[ejkmoz]|(e[ceghrstu]|edu)|f[ijkmor]|(g[abdefghilmnpqrstuwy]|gov)|h[kmnrtu]|(i[delmnoqrst]|info|int)|(j[emop]|jobs)|k[eghimnprwyz]|l[abcikrstuvy]|(m[acdghklmnopqrstuvwxyz]|mil|mobi|museum)|(n[acefgilopruz]|name|net)|(om|org)|(p[aefghklmnrstwy]|pro)|qa|r[eouw]|s[abcdeghijklmnortvyz]|(t[cdfghjklmnoprtvwz]|travel)|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw])$/i}}
function isPointInObject(a,d,c){var e=getScreenPosX(c),g=getScreenPosY(c);return a>=e&&a<e+c.offsetWidth&&d>=g&&d<g+c.offsetHeight}function getObjectsFromPosition(a,d,c){getObjectsFromPoint(a.x,a.y,d,c)}
function getObjectsFromPoint(a,d,c,e,g){var f=typeof e!="undefined"?e:document.body,h=typeof g=="undefined"?getObjectPosition(f):{x:(f.parentNode&&typeof f.parentNode.scrollLeft!="undefined"?-1*f.parentNode.scrollLeft:0)+f.offsetLeft+g.x,y:(f.parentNode&&typeof f.parentNode.scrollTop!="undefined"?-1*f.parentNode.scrollTop:0)+f.offsetTop+g.y},m=typeof e!="undefined"?f.offsetWidth:document.documentElement.scrollWidth;e=typeof e!="undefined"?f.offsetHeight:document.documentElement.scrollHeight;if(a>=
h.x&&a<h.x+m&&d>=h.y&&d<h.y+e){c.push(f);for(m=0;m<f.childNodes.length;m++)getObjectsFromPoint(a,d,c,f.childNodes[m],f.childNodes[m].offsetParent==f?{x:h.x,y:h.y}:g)}}
function highlightText(a,d,c){c=typeof c=="undefined"?document.body:c;if(c.nodeName=="#text"){var e=c.nodeValue.replace(RegExp("("+a+")","gi"),"<span class='"+d+"'>$1</span>");if(e!=c.nodeValue){var g=document.createElement("span");g.innerHTML=e;c.parentNode.replaceChild(g,c)}}for(e=0;e<c.childNodes.length;e++)highlightText(a,d,c.childNodes[e])}
function fixPNG(a){var d=navigator.appVersion.split("MSIE");d=parseFloat(d[1]);d>=5.5&&d<7&&document.body.filters?setClass(a,"fixedpng"):unsetClass(a,"invisible")}var g_delayedFixPNGs={imgs:[],timer:false};
function delayedFixPNG(a,d){g_delayedFixPNGs.imgs.push({img:a,fix:d});if(!g_delayedFixPNGs.timer)g_delayedFixPNGs.timer=window.setInterval(function(){for(var c=[],e=0;e<g_delayedFixPNGs.imgs.length;e++)g_delayedFixPNGs.imgs[e].img.offsetWidth>0?g_delayedFixPNGs.imgs[e].fix():c.push(g_delayedFixPNGs.imgs[e]);if(c.length==0){window.clearInterval(g_delayedFixPNGs.timer);g_delayedFixPNGs.timer=false}},250)}
function formAddHidden(a,d,c){var e=document.createElement("input");e.type="hidden";e.name=d;e.value=c;a.appendChild(e)}
function createMediaPlayer(a,d,c,e,g){g=typeof g=="undefined"?{wmode:"transparent",quality:"high"}:g;a=typeof a=="string"?document.getElementById(a):a;var f=document.createElement("object");f.setAttribute("width",c);f.setAttribute("height",e);f.setAttribute("classid","CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95");f.setAttribute("codebase","http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701");f.setAttribute("type","application/x-oleobject");f.setAttribute("standBy",
g.standBy);param=document.createElement("param");param.setAttribute("name","fileName");param.setAttribute("value",d);f.appendChild(param);for(attr in g)if(attr!="standBy"){param=document.createElement("param");param.setAttribute("name",attr);param.setAttribute("value",g[attr]);f.appendChild(param)}a.appendChild(f);var h=document.createElement("embed");h.setAttribute("src",d);h.setAttribute("width",c);h.setAttribute("height",e);h.setAttribute("pluginspage","http://www.microsoft.com/Windows/MediaPlayer/");
h.setAttribute("type","application/x-mplayer2");for(attr in g)h.setAttribute(attr,g[attr]);try{f.appendChild(h)}catch(m){}a.innerHTML=a.innerHTML}
function getScreenDimensions(a){a=typeof a=="undefined"?window:a;var d=a.document?a.document:a.documentElement,c={};if(d.layers||d.getElementById&&!d.all){c.availWidth=a.innerWidth;c.availHeight=a.innerHeight;c.scrollLeft=a.pageXOffset;c.scrollTop=a.pageYOffset}else if(d.all&&d.documentElement){c.availWidth=d.documentElement.clientWidth;c.availHeight=d.documentElement.clientHeight;c.scrollLeft=d.documentElement.scrollLeft;c.scrollTop=d.documentElement.scrollTop}else if(d.all){c.availWidth=a.body.clientWidth;
c.availHeight=a.body.clientHeight;c.scrollLeft=a.body.scrollLeft;c.scrollTop=a.body.scrollTop}return c}function dircat(a,d){var c=a;if(c.charAt(c.length-1)!="/")c+="/";c+=d.charAt(0)=="/"?d.substr(1):d;return c}function array_flip(a){var d=[];for(varName in a)d[a[varName]]=varName;return d}
function getFlash(a){a=typeof a=="string"?document.getElementById(a):a;if(!a)return false;var d=a.getElementsByTagName("object");if(d.length!=0&&typeof d[0].Play!="undefined")return d[0];a=a.getElementsByTagName("embed");return a.length>0?a[0]:null}var g_printObjectIframe=null;
function printObject(a){if(g_printObjectIframe==null){g_printObjectIframe=document.createElement("iframe");g_printObjectIframe.style.height="0px";g_printObjectIframe.style.width="0px";g_printObjectIframe.style.opacity="0.0";g_printObjectIframe.style.position="absolute";g_printObjectIframe.style.top="0px";g_printObjectIframe.style.left="0px";document.body.appendChild(g_printObjectIframe)}var d=g_printObjectIframe.contentWindow.document;d.open();d.write("<html><body onload='focus(); print();'>"+(typeof a==
"object"?a.innerHTML:a)+"</body></html>");d.close()}var g_clipboardFlash=null;function setClipboard(a){setCookie("internalClipboard",a)}
function addClipboardSetter(a,d){var c=document.createElement("div");c.className="_clipboardSetter_";var e=getObjectPosition(a);c.style.top=e.y+"px";c.style.left=e.x+"px";c.style.height=a.offsetHeight+"px";c.style.width=a.offsetWidth+"px";c.style.position="absolute";a.parentNode.insertBefore(c,a);createFlash(c,dircat(common_resource_path,"flash/clipboard.swf"),a.offsetWidth,a.offsetHeight,{},function(){c.parentNode.removeChild(c)},8,{onload:function(){d.onload()},onclick:function(g){d.onclick(function(f){g.setClipboard(f);
setClipboard(f)})}})}
function getClipboard(a){var d=null;if(a&&window.clipboardData){d=getCookie("clipboardAccessDenied")?false:window.clipboardData.getData("Text");!d&&!getCookie("clipboardAccessDenied")&&setCookie("clipboardAccessDenied",1)}else if(a){a=document.createElement("iframe");a.style.visibility="hidden";a.style.height="1px";a.style.width="1px";document.body.appendChild(a);a.contentDocument.designMode="on";try{a.contentDocument.execCommand("paste",false,null);d=a.contentDocument.body.innerHTML}catch(c){d=""}document.body.removeChild(a)}return d?
d:getCookie("internalClipboard")}function getCookie(a,d,c){c=typeof c=="undefined"?false:c;return(a=RegExp(a+"=([^;]+)(;|$)").exec((typeof d=="undefined"?document:d).cookie))?unescape(a[1]):c}function setCookie(a,d,c){c=typeof c!="undefined"?c:0;var e=new Date;e.setTime(e.getTime()+c*24*36E5);c=c!=0?"; expires = "+e.toGMTString():"";(typeof _doc=="undefined"?document:_doc).cookie=a+"="+escape(d)+c}
function fixIEFocus(){if(browser.isIE){var a=document.getElementsByTagName("INPUT");if(a.length==0)a=document.getElementsByTagName("TEXTAREA");for(i=0;i<a.length;i++)if(a[i].offsetWidth>0&&!in_array(a[i].type,["submit","hidden"])&&!a[i].disabled){a[i].focus();break}}}var g_loadingResources={};
function include(a,d){var c=document.getElementsByTagName("head")[0],e=null;if(/\.js$/.exec(a)){for(var g=document.getElementsByTagName("script"),f=g_loadingResources[a],h=0;h<g.length&&!f;h++)f=g[h].src==a;f&&g_loadingResources[a]&&d&&g_loadingResources[a].handlers.push(d);f&&!g_loadingResources[a]&&d&&d();if(f)return;e=document.createElement("script");e.setAttribute("src",a);e.setAttribute("type","text/javascript");var m=function(){var l=g_loadingResources[a];if(l){for(var j=0;j<l.handlers.length;j++)window.setTimeout(l.handlers[j],
0);delete g_loadingResources[a]}};g_loadingResources[a]={handlers:d?[d]:[]};e.attachEvent("onload",m);var k=false;e.attachEvent("onreadystatechange",function(){if(!k&&(e.readyState=="loaded"||e.readyState=="complete")){m();k=true}})}else if(/\.css$/.exec(a)){g=document.getElementsByTagName("link");f=false;for(h=0;h<g.length&&!f;h++)f=g[h].href==a;if(f)return;e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("href",a);e.setAttribute("rel","stylesheet")}else smi_debug("Invalid resource type for "+
a);c.appendChild(e)}var _smi_onLoadHandlers=[];function addOnload(a){_smi_onLoadHandlers.push(a)}
function createWidget(a,d,c){var e=typeof a!="string"?a:null;if(!e){e=document.createElement("div");e.className="_smi_"+a}a=e.className;var g=/^_smi_([a-zA-Z0-9]+)$/.exec(a),f=dircat(common_resource_path,"/include/"+g[1]+"s.js");setClass(e,"smi_"+g[1]);var h={className:a,obj:e,fn:function(){if(eval("typeof "+this.className)!="function")alert("Widget type "+this.className+" does not exist");else{var m=this.obj.firstChild&&this.obj.firstChild.innerHTML!=""?parseXML(inv_xmlentities(this.obj.firstChild.innerHTML)):
false;if(m)this.obj.removeChild(this.obj.firstChild);else m=parseXML("<widget/>");if(typeof d=="string")d=parseXML(d);var k=eval(this.className),l=null;g_newWidgetHandlers.push(function(j){l=j});k(this.obj,d?d:m);g_newWidgetHandlers.pop();c&&c(l)}}};eval("typeof "+a)!="function"?include(f,function(){h.fn()}):h.fn();return e}
function initWidgets(a){var d=function(e,g){var f=typeof g=="undefined"?false:g;if(a[e]){var h=a[e].className;h.search(/treeControl/)!=-1&&typeof finishTree!="undefined"&&finishTree(a[e]);if(/^_smi_([a-zA-Z0-9]+)$/.exec(h))createWidget(a[e],null,function(){if(e<a.length&&f){var m=document.createElement("div");document.body.insertBefore(m,document.body.firstChild);window.setTimeout(function(){document.body.removeChild(m)},0);d(e+1,true)}});else e<a.length-1&&f&&d(e+1,true)}};if(window.navigator.userAgent.search(/safari/i)==
-1)for(var c=0;c<a.length;c++)d(c);else a.length>0&&d(0,true)}
function _smi_init(){var a=function(){if(typeof CORE_VERSION=="undefined")CORE_VERSION=1;if(typeof g_debug!="undefined"&&g_debug){var d=function(c){c=typeof c!="undefined"?c:window.event;var e=c.keyCode?c.keyCode:c.which;if((e==19||e==115)&&c.ctrlKey&&(c.metaKey||c.altKey)){document.location.href=g_phpFilename+"?_sessioneditor_";return false}};if(document.attachEvent)document.attachEvent("onkeypress",d);else document.addEventListener&&document.addEventListener("keypress",d,false);if(typeof debugMessages!=
"undefined")for(d=0;d<debugMessages.length;d++)smi_debug(debugMessages[d])}d=document.getElementsByTagName("div");initWidgets(d);for(d=0;d<_smi_onLoadHandlers.length;d++)_smi_onLoadHandlers[d]();window.location.href.search("templateDebug")!=-1&&templateDebug()};typeof window.addEventListener=="undefined"?window.attachEvent("onload",a):window.addEventListener("load",a,false);firefoxCompat();domReady(function(){var d=navigator.appVersion.split("MSIE");d=parseFloat(d[1]);d>=5.5&&d<7&&document.body.filters&&
typeof common_resource_path!="undefined"&&document.styleSheets[0].addRule("img.fixedpng","behavior: url("+common_resource_path+"/css/fixpng.htc)");d=document.getElementsByTagName("a");for(var c=[],e=[],g=0;g<d.length;g++)if(d[g].rel=="smi_gallery")c.push(d[g]);else d[g].rel=="smi_video"&&e.push(d[g]);if(c.length>0&&typeof initGallery!="undefined")initGallery(c);else c.length>0&&include(common_resource_path+"include/gallery.js",function(){initGallery(c)});if(e.length>0&&typeof initVideo!="undefined")initVideo(e);
else e.length>0&&include(common_resource_path+"include/videoPopup.js",function(){initVideo(e)})})}_smi_init();function window_attachEvent(a,d){typeof window.attachEvent!="undefined"?window.attachEvent(a,d):window.addEventListener(a.substr(2),d,false)}function window_detachEvent(a,d){typeof window.detachEvent!="undefined"?window.detachEvent(a,d):window.removeEventListener(a.substr(2),d,false)}
function firefoxCompat(){var a=navigator.userAgent.match(/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i)?true:false,d=typeof window.opera!="undefined",c=window.navigator.userAgent.indexOf("MSIE")>0,e=window.navigator.userAgent.search(/safari/i)!=-1;browser.isOpera=d;browser.isIE=c;browser.isSafari=
e;browser.isMobile=a;if(browser.isIE){a=navigator.appVersion.split("MSIE");a=parseFloat(a[1]);browser.version=a;a=navigator.appVersion.split("Trident/");a=a[1]?parseFloat(a[1]):-1;browser.trident=a}browser.isFirefox=window.navigator.userAgent.search(/firefox/i)!=-1;if(!c){a=window?window:Window;var g=document.createElement("a").__proto__;if(!a.HTMLElement&&typeof document.createElement=="function"&&g&&g==document.createElement("p").__proto__){a.HTMLElement={};a.HTMLElement.prototype=g;a.__proto__.attachEvent=
function(f,h){this.addEventListener(f.substr(2),h,false)}}else if(typeof Window!="undefined")Window.prototype.attachEvent=function(f,h){this.addEventListener(f.substr(2),h,false)};HTMLElement.prototype.attachEvent=function(f,h){this.addEventListener(f.substr(2),h,false)};HTMLElement.prototype.detachEvent=function(f,h){this.removeEventListener(f.substr(2),h,false)};HTMLElement.prototype.__defineGetter__("currentStyle",function(){return this.ownerDocument.defaultView.getComputedStyle(this,null)});if(e&&
(typeof CORE_VERSION=="undefined"||CORE_VERSION>=5)){HTMLElement.prototype.__defineSetter__("tabIndex",function(){if(this.nodeName=="DIV"){var f=document.createElement("input");f.type="checkbox";setOpacity(f,0);f.style.zIndex=-1;f.style.position="absolute";var h=this;f.attachEvent("onfocus",function(){fireEvent(h,"onfocus")});f.attachEvent("onblur",function(){fireEvent(h,"onblur")});this.appendChild(f)}});HTMLDivElement.prototype.focus=function(){this.childNodes.length>0&&this.childNodes[this.childNodes.length-
1].focus&&this.childNodes[this.childNodes.length-1].focus()};HTMLDivElement.prototype.blur=function(){this.childNodes.length>0&&this.childNodes[this.childNodes.length-1].blur&&this.childNodes[this.childNodes.length-1].blur()}}}if((d||c)&&!document.nativeGetElementById){document.nativeGetElementById=document.getElementById;document.getElementById=function(f){var h=document.nativeGetElementById(f);if(h)if(h.attributes.id&&h.attributes.id.value==f)return h;else if(document.all[f])for(h=1;h<document.all[f].length;h++)if(document.all[f][h].attributes.id&&
document.all[f][h].attributes.id.value==f)return document.all[f][h];return null}}}
function getBorders(a){var d={},c=function(e){e=parseInt(e);return isNaN(e)?0:e};a=a.currentStyle;d.borderBottom=c(a.marginBottom)+c(a.paddingBottom)+c(a.borderBottomWidth);d.borderTop=c(a.marginTop)+c(a.paddingTop)+c(a.borderTopWidth);d.borderHeight=d.borderBottom+d.borderTop;d.borderLeft=c(a.marginLeft)+c(a.paddingLeft)+c(a.borderLeftWidth);d.borderRight=c(a.marginRight)+c(a.paddingRight)+c(a.borderRightWidth);d.borderWidth=d.borderLeft+d.borderRight;return d}
function getElementsByClassName(a,d,c){c=typeof c=="undefined"?document.body:c;c.className&&in_array(a,c.className.split(" "))&&d.push(c);for(var e=0;e<c.childNodes.length;e++)getElementsByClassName(a,d,c.childNodes[e])}
function matchSize(a,d){var c=typeof a=="undefined"?"matchWidth":a,e=[];getElementsByClassName(typeof d=="undefined"?"matchHeight":d,e);var g=0,f;for(f=0;f<e.length;f++){var h=e[f].offsetHeight;if(h>g){g=h;heighestNode=e[f]}}for(f=0;f<e.length;f++)if(e[f]!=heighestNode)e[f].style.height=g-getBorders(e[f]).borderHeight+"px";e=[];getElementsByClassName(c,e);c=0;g=null;for(f=0;f<e.length;f++){h=e[f].offsetWidth;if(h>c){c=h;g=e[f]}}for(f=0;f<e.length;f++)if(e[f]!=g)e[f].style.width=c-getBorders(e[f]).borderWidth+
"px"}function selectDate(a,d,c,e,g,f){e=typeof e=="undefined"?false:e;g=typeof g=="undefined"?false:g;f="selectdate.php?css="+(typeof f=="undefined"?dircat(common_resource_path,"css/selectdate.css"):f);if(e)f+="&year="+e;if(g)f+="&month="+g;divPopup("dateSelector",a,d,"Selecteer datum",null,{url:f,width:267,height:260,pass:{callback:function(h,m,k,l){hideDivPopup("dateSelector");c(h,m,k,l)}}})}
Date.prototype.formatDate=function(a,d){var c;c=d?new Date(d):this;for(var e=["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],g=["zon","maa","din","woe","don","vri","zat"],f=["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],h=["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],m={a:function(){return c.getHours()>11?"pm":"am"},A:function(){return this.a().toUpperCase()},B:function(){var j=
(c.getTimezoneOffset()+60)*60;j=c.getHours()*3600+c.getMinutes()*60+c.getSeconds()+j;j=Math.floor(j/86.4);if(j>1E3)j-=1E3;if(j<0)j+=1E3;if(String(j).length==1)j="00"+j;if(String(j).length==2)j="0"+j;return j},c:function(){return this.Y()+"-"+this.m()+"-"+this.d()+"T"+this.h()+":"+this.i()+":"+this.s()+this.P()},d:function(){var j=String(this.j());return j.length==1?"0"+j:j},D:function(){return g[c.getDay()]},F:function(){return h[c.getMonth()]},g:function(){return c.getHours()>12?c.getHours()-12:
c.getHours()},G:function(){return c.getHours()},h:function(){var j=String(this.g());return j.length==1?"0"+j:j},H:function(){var j=String(this.G());return j.length==1?"0"+j:j},i:function(){var j=String(c.getMinutes());return j.length==1?"0"+j:j},I:function(){return(new Date("January 1 "+this.Y()+" 00:00:00")).getTimezoneOffset()==c.getTimezoneOffset()?0:1},j:function(){return c.getDate()},l:function(){return e[c.getDay()]},L:function(){var j=this.Y();return j%4==0&&j%100!=0||j%4==0&&j%100==0&&j%400==
0?1:0},m:function(){var j=String(this.n());return j.length==1?"0"+j:j},M:function(){return f[c.getMonth()]},n:function(){return c.getMonth()+1},N:function(){var j=this.w();return j==0?7:j},O:function(){var j=Math.abs(c.getTimezoneOffset()),n=String(Math.floor(j/60));j=String(j%60);n.length==1&&(n="0"+n);j.length==1&&(j="0"+j);return c.getTimezoneOffset()<0?"+"+n+j:"-"+n+j},P:function(){var j=this.O();return j.substr(0,3)+":"+j.substr(3,2)},r:function(){return this.D()+", "+this.d()+" "+this.M()+" "+
this.Y()+" "+this.H()+":"+this.i()+":"+this.s()+" "+this.O()},s:function(){var j=String(c.getSeconds());return j.length==1?"0"+j:j},S:function(){switch(c.getDate()){case 1:return"st";case 2:return"nd";case 3:return"rd";case 21:return"st";case 22:return"nd";case 23:return"rd";case 31:return"st";default:return"th"}},t:function(){if(this.L()==1&&this.n()==2)return 29;return[null,31,28,31,30,31,30,31,31,30,31,30,31][this.n()]},U:function(){return Math.round(c.getTime()/1E3)},w:function(){return c.getDay()},
W:function(){var j=this.N(),n=this.z(),p=364+this.L()-n;if(p<=2&&j<=3-p)return 1;if(n<=2&&j>=5)return(new Date(this.Y()-1,11,31)).formatDate("W");j=(new Date(this.Y(),0,1)).getDay();j=j!=0?j-1:6;return j<=3?1+Math.floor((n+j)/7):1+Math.floor((n-(7-j))/7)},y:function(){var j=String(this.Y());return j.substring(j.length-2,j.length)},Y:function(){if(c.getFullYear){var j=(new Date("January 1 2001 00:00:00 +0000")).getFullYear();if(j==2001)return c.getFullYear()}j=c.getYear();j=j%100;j+=j<38?2E3:1900;
return j},z:function(){var j=new Date("January 1 "+this.Y()+" 00:00:00");j=c.getTime()-j.getTime();return Math.floor(j/1E3/60/60/24)},Z:function(){return c.getTimezoneOffset()*-60}},k=a.split(""),l=0;l<k.length;){if(k[l]=="\\")k.splice(l,1);else k[l]=m[k[l]]!=undefined?m[k[l]]():k[l];l++}return k.join("")};Date.DATE_ATOM="Y-m-d\\TH:i:sP";Date.DATE_ISO8601="Y-m-d\\TH:i:sO";Date.DATE_RFC2822="D, d M Y H:i:s O";Date.DATE_W3C="Y-m-d\\TH:i:sP";
function setClass(a,d){var c=a.className.split(" ");if(!in_array(d,c))a.className=(a.className!=""?a.className+" ":"")+d}function unsetClass(a,d){for(var c=a.className.split(" "),e=[],g=0;g<c.length;g++)c[g]!=d&&e.push(c[g]);a.className=e.join(" ")}function xmlentities(a){for(var d="",c=0;c<a.length;c++){var e=a.charAt(c);switch(e){case "<":d+="&lt;";break;case ">":d+="&gt;";break;case '"':d+="&quot;";break;case "'":d+="&apos;";break;case "&":d+="&amp;";break;default:d+=e}}return d}
function inv_xmlentities(a){for(var d="",c="",e=false,g=0;g<a.length;g++){var f=a.charAt(g);if(f=="&")e=true;if(f==";"&&e){e=false;switch(c){case "&lt":d+="<";break;case "&gt":d+=">";break;case "&quot":d+='"';break;case "&apos":d+="'";break;case "&amp":d+="&"}c=""}else if(e)c+=f;else d+=f}return d}var g_itemCache={};
function getItem(a,d,c){if(g_itemCache[a]&&g_itemCache[a][d])c(g_itemCache[a][d]);else if(typeof xajax_getItem!="undefined")xajax.call("xajax_getItem",{parameters:[a,d],context:{callback:function(f){g_itemCache[a]||(g_itemCache[a]={});g_itemCache[a][d]=f;c(f)}}});else{var e=dircat(g_baseDir,"index.php?_getItem="+escape(a)+"&id="+escape(d)),g=document.createElement("iframe");g.style.display="none";g.src=e;g.attachEvent&&g.attachEvent("onload",function(){var f=true,h=null;try{h=(g.contentWindow?g.contentWindow:
g).item}catch(m){f=false}g_itemCache[a]||(g_itemCache[a]={});g_itemCache[a][d]=h;c(f?h:null);window.setTimeout(function(){g.parentNode.removeChild(g)},1)});document.body.appendChild(g)}}function parseXML(a){var d=null;try{d=new ActiveXObject("Microsoft.XMLDOM");d.async="false";d.loadXML(a)}catch(c){d=(new DOMParser).parseFromString(a,"text/xml")}return d}function getWidget(a){return g_smi_widgets[a]}function registerWidget(a,d){g_smi_widgets[a]=d}var g_debugWnd=null;
function smi_debug(a){if(g_debug){var d=function(){var g=g_debugWnd.document,f=g.getElementsByTagName("body")[0],h=g.createElement("div"),m=new Date,k=function(l,j){var n="";if(!l||typeof l!="object"||typeof l.length!="undefined"&&l.length==0)return l;if(typeof l.length=="undefined"){n=j+"Object\n{\n";for(var p in l){n+=j+"    ["+p+"] => ";n+=k(l[p],"    "+j);n+="\n"}n+=j+"}\n"}else{n=j+"Array\n{\n";for(p=0;p<l.length;p++){n+=j+"    ["+p+"] => ";n+=k(l[p],"    "+j);n+="\n"}n+="}\n"}return n};a=k(a,
"");h.appendChild(g.createTextNode(m.formatDate("(H:i:s)")+" "+a));h.innerHTML=h.innerHTML.replace(/\n/g,"<br>\n");f.appendChild(h);f.childNodes.length>1E3&&f.removeChild(f.firstChild);g_debugWnd.scrollTo(0,h.offsetTop)},c=false;try{c=!g_debugWnd||!g_debugWnd.document}catch(e){c=true}if(c){if(g_debugWnd=window.open("","smi_debug","width=658,height=299,menubar=0,location=0,toolbar=0,resizable=1,scrollBars=1")){g_debugWnd.document.open();g_debugWnd.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'><html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'><title>SMI debug console</title><link rel='stylesheet' type='text/css' href='"+
dircat(common_resource_path,"css/debugconsole.css")+"'></head><body></body></html>");g_debugWnd.document.close();typeof g_debugWnd.addEventListener!="undefined"?g_debugWnd.addEventListener("load",d,false):d()}}else d()}}
function _smi_widget(a){for(var d in a)this[d]=a[d];if(this.divObject.id){this.id=this.divObject.id;registerWidget(this.divObject.id,this)}for(d=0;d<g_newWidgetHandlers.length;d++)g_newWidgetHandlers[d](this);this.eventHandlers={};this.handleId=0;this.handleIdToEventName={};this.setSize=function(c,e){this.divObject.style.width=c+"px";this.divObject.style.height=e+"px";this.fireEvent("size",{width:c,height:e})};this.addEventListener=function(c,e){this.eventHandlers[c]||(this.eventHandlers[c]={});this.eventHandlers[c][this.handleId]=
e;this.handleIdToEventName[this.handleId]=c;return this.handleId++};this.removeEventListener=function(c){var e=this.eventHandlers[this.handleIdToEventName[c]];if(e){delete this.handleIdToEventName[c];delete e[c]}};this.fireEvent=function(c,e){var g=this.eventHandlers[c];if(!g)return true;var f=true,h;for(h in g){var m=g[h](this,e);if(typeof m!="undefined")f=m;if(!f)break}return f};this.loaded=false;this.focus=function(){this.divObject.focus()}}function ord(a){return a.charCodeAt(0)}
function showContextMenu(a,d,c,e){var g=typeof c.options!="undefined"?c.options:{resourcePath:dircat(common_resource_path,"admin")};c=typeof c.length!="undefined"?c:c.items;var f=createTotalDiv("white",0),h=document.getElementsByTagName("body")[0];h.appendChild(f);var m=document.createElement("div");m.style.margin="0px";m.style.padding="0px";m.style.backgroundColor="black";m.style.position="absolute";m.style.top=d+2+"px";m.style.left=a+2+"px";m.style.zIndex="1";setOpacity(m,60);h.appendChild(m);var k=
document.createElement("div");k.className="contextMenu";k.style.top=d+"px";k.style.left=a+"px";k.style.zIndex="200";h.appendChild(k);a=document.createElement("ul");k.appendChild(a);g_disableContextMenu=true;var l=function(){g_disableContextMenu=false;f.parentNode.removeChild(f);k.parentNode.removeChild(k);m.parentNode.removeChild(m);e&&e()};f.attachEvent("onclick",l);g.onBeforeOpen&&g.onBeforeOpen();d=[];h=0;var j;for(j=0;j<c.length;j++){var n=c[j].getState?c[j].getState():"enabled";if(n!="hidden"){var p=
document.createElement("li");a.appendChild(p);var o=document.createElement("a");o.href="javascript: void(0)";var r=document.createElement("span");r.className="icon";o.appendChild(r);if(c[j].icon)r.style.backgroundImage="url("+dircat(g.resourcePath,"images/icons/")+(n=="disabled"?"disabled/":"")+c[j].icon+")";r=document.createElement("span");r.appendChild(document.createTextNode(c[j].text));r.className="title"+(n=="disabled"?" disabled":"");o.appendChild(r);r=function(q){o.attachEvent("onclick",function(){l();
q.onClick();return false})};n!="disabled"&&r(c[j]);p.appendChild(o);if(o.offsetWidth>h)h=o.offsetWidth;d.push(o)}}for(j=0;j<d.length;j++)d[j].style.width=h+"px";m.style.width=k.offsetWidth+"px";m.style.height=k.offsetHeight+"px"}function capitalize(a){return a.replace(/\w+/g,function(d){return d.charAt(0).toUpperCase()+d.substr(1).toLowerCase()})}function getCheckedRadio(a){for(var d=0;d<a.length;d++)if(a[d].checked)return a[d].value;return false}
function nodeListToArray(a){for(var d=[],c=0;c<a.length;c++)d.push(a[c]);return d}
function getFocussedElement(){if(document.activeElement)return document.activeElement;var a=nodeListToArray(document.getElementsByTagName("input"));a.concat(nodeListToArray(document.getElementsByTagName("textarea")));a.concat(nodeListToArray(document.getElementsByTagName("select")));for(var d=null,c=function(h){h=h||window.event;h=h.target?h.target:h.srcElement;d||(d=h)},e=0;e<a.length;e++)a[e].attachEvent("onblur",c);var g=document.createElement("input");g.type="text";g.style.position="absolute";
g.style.width="100px";g.style.height="100px";g.style.top="0px";g.style.left="0px";setOpacity(g,0);var f=document.getElementsByTagName("body")[0];f.insertBefore(g,f.firstChild);g.focus();g.blur();for(e=0;e<a.length;e++)a[e].detachEvent("onblur",c);f.removeChild(g);return d}function imageFailed(a){return!a.readyState&&(!a.complete||typeof a.naturalWidth=="undefined"||a.naturalWidth==0)||a.readyState&&a.readyState=="uninitialized"}
function cancelEvent(a){a.cancelBubble=true;typeof a.preventDefault!="undefined"&&a.preventDefault();typeof a.stopPropagation!="undefined"&&a.stopPropagation()}function doPaypal(a){post(g_paypalUrl,{cmd:"_s-xclick",encrypted:a});return false}function HFByteSize(a){for(var d=["B","KB","MB","GB"],c=0;c<d.length&&a>1024;){a/=1024;c+=1}return c==0?sprintf("%0.0f %s",a,d[c]):sprintf("%0.02f %s",a,d[c])}
function applyOnCSS(a){for(var d=0;d<document.styleSheets.length;d++)for(var c=document.styleSheets[d].rules?document.styleSheets[d].rules:document.styleSheets[d].cssRules,e=0;e<c.length;e++)a[c[e].selectorText]&&a[c[e].selectorText](c[e])}function fireEvent(a,d){if(typeof document.createEvent!="undefined"){var c=document.createEvent("HTMLEvents");c.initEvent(d.substr(2),false,true);a.dispatchEvent(c)}else a.fireEvent(d)}
function loadGoogleAnalytics(a){include(("https:"==document.location.protocol?"https://ssl.":"http://www.")+"google-analytics.com/ga.js",function(){var d=_gat._getTracker(a);d._initData();d._trackPageview()})}
function AutoScroller(a){var d=false,c=a.parentNode,e=a.scrollHeight-c.offsetHeight,g=0,f=function(k){g=k;k=function(){if(g<0&&c.scrollTop>0)c.scrollTop=Math.max(0,c.scrollTop+g);else if(g>0&&c.scrollTop<e)c.scrollTop=Math.min(e,c.scrollTop+g)};d||(d=window.setInterval(k,25))},h=function(k){var l=getEventPosition(k||window.event),j=getObjectPosition(c);k=l.y-j.y;l=l.x-j.x;e=a.scrollHeight-c.offsetHeight;if(l<0||l>c.offsetWidth||k<0||k>c.offsetHeight){window.clearInterval(d);d=false}else if(c.scrollTop>
0&&k<=30)f(-1*(30-k));else if(c.scrollTop<e&&k>=c.offsetHeight-30)f(k-c.offsetHeight+30);else if(d){window.clearInterval(d);d=false}};this.onMouseMove=h;var m=function(k){var l=getEventPosition(k||window.event),j=getObjectPosition(c);k=l.y-j.y;l=l.x-j.x;if(d&&(l<0||l>c.offsetWidth||k<0||k>c.offsetHeight)){window.clearInterval(d);d=false}};this.start=function(){a.attachEvent("onmousemove",h);a.attachEvent("onmouseout",m);e=a.scrollHeight-c.offsetHeight};this.stop=function(){a.detachEvent("onmousemove",
h);a.detachEvent("onmouseout",m);if(d){window.clearInterval(d);d=false}}}function ucfirst(a){return a.charAt(0).toUpperCase()+a.substr(1)}function checkImagesLoaded(a,d){if(typeof a.getElementsByTagName!="undefined")a=a.getElementsByTagName("img");if(a.length==0)window.setTimeout(d,0);else for(var c=0,e=function(){c++;a.length==c&&window.setTimeout(d,0)},g=0;g<a.length;g++){var f=new Image;f.attachEvent("onload",e);f.attachEvent("onerror",e);f.src=typeof a[g]=="string"?a[g]:a[g].src}}
function initFlashObjects(a){a=(a||document).getElementsByTagName("div");for(var d=0;d<a.length;d++)if(a[d].className=="__smi_flash"){var c=/<!--(.*)--\>/.exec(a[d].innerHTML)[1];c=JSON.parse(Base64.decode(c));var e=a[d].getElementsByTagName("noscript")[0];createFlash(a[d],c[0],c[1],c[2],c[3],e.innerHTML,c[4])}}
domReady(function(){var a=0,d=function(){a--;a<=0&&initFlashObjects()};if(typeof JSON=="undefined"){a++;include(common_resource_path+"/include/json2.js",d)}if(typeof Base64=="undefined"){a++;include(common_resource_path+"/include/base64.js",d)}a==0&&d()});function setFocus(a){for(var d=[],c=a;c;){d.push({x:c.scrollLeft,y:c.scrollTop});c=c.parentNode}a.focus();c=a;for(a=0;c;){c.scrollLeft=d[a].x;c.scrollTop=d[a].y;a++;c=c.parentNode}}
var CookieSessionStorage={put:function(a,d){setCookie(a,JSON.stringify(d))},get:function(a,d){var c=getCookie(a);if(c==false)return d;try{c=JSON.parse(c)}catch(e){c=d}return c}},HTML5SessionStorage={getStorageName:function(a){return document.location.pathname+"?"+a},put:function(a,d){sessionStorage[this.getStorageName(a)]=JSON.stringify(d)},get:function(a,d){var c=sessionStorage[this.getStorageName(a)];try{c=JSON.parse(c)}catch(e){c=d}return c}},SessionStorage=typeof sessionStorage!="undefined"?HTML5SessionStorage:
CookieSessionStorage;
function templateDebug(){function a(){$(document).bind("contextmenu",function(d){for(var c=$("<!-- _TRACK_POSITION_ --\>").insertBefore(d.target),e="",g=$("html")[0].previousSibling;g;){if(g.nodeType==8)e+="<!--"+g.textContent+"--\>";g=g.previousSibling}e+=$("html").html();pos=e.search("<!-- _TRACK_POSITION_ --\>");e=e.substr(0,pos);c.remove();c=/<!--([^>]*)--\>/g;for(var f=[];g=c.exec(e);){console.log(g[1]);g[1].charAt(0)=="/"?f.pop():f.push(g[1])}f.length>0&&alert(f[f.length-1]);d.preventDefault()})}
window.$?a():include("http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js",function(){a()})};

