

function virtualpaginate(className,chunksize,elementType){var elementType=(typeof elementType=="undefined")?"div":elementType
this.pieces=virtualpaginate.collectElementbyClass(className,elementType)
this.chunksize=(typeof chunksize=="undefined")?1:(chunksize>0&&chunksize<this.pieces.length)?chunksize:this.pieces.length
this.pagecount=Math.ceil(this.pieces.length/this.chunksize)
this.showpage(-1)
this.currentpage=0
this.showpage(this.currentpage)}
virtualpaginate.collectElementbyClass=function(classname,element){var classnameRE=new RegExp("(^|\\s+)"+classname+"($|\\s+)","i")
var pieces=[]
var alltags=document.getElementsByTagName(element)
for(var i=0;i<alltags.length;i++){if(typeof alltags[i].className=="string"&&alltags[i].className.search(classnameRE)!=-1)
pieces[pieces.length]=alltags[i]}
return pieces}
virtualpaginate.prototype.showpage=function(pagenumber){var totalitems=this.pieces.length
var showstartindex=pagenumber*this.chunksize
var showendindex=showstartindex+this.chunksize-1
for(var i=0;i<totalitems;i++){if(i>=showstartindex&&i<=showendindex)
this.pieces[i].style.display="block"
else
this.pieces[i].style.display="none"}
this.currentpage=parseInt(pagenumber)
if(this.cpspan)
this.cpspan.innerHTML='page '+(this.currentpage+1)+'/'+this.pagecount}
virtualpaginate.prototype.paginate_build_selectmenu=function(paginatedropdown,anchortext){var instanceOfBox=this
var anchortext=anchortext||new Array()
this.selectmenupresent=1
for(var i=0;i<this.pagecount;i++){if(typeof anchortext[i]!="undefined")
paginatedropdown.options[i]=new Option(anchortext[i],i)
else
paginatedropdown.options[i]=new Option("Page "+(i+1)+" of "+this.pagecount,i)}
paginatedropdown.selectedIndex=this.currentpage
paginatedropdown.onchange=function(){instanceOfBox.showpage(this.selectedIndex)}}
virtualpaginate.prototype.paginate_build_regularlinks=function(paginatelinks){var instanceOfBox=this
for(var i=0;i<paginatelinks.length;i++){var currentpagerel=paginatelinks[i].getAttribute("rel")
if(currentpagerel=="previous"||currentpagerel=="next"||currentpagerel=="first"||currentpagerel=="last")
paginatelinks[i].onclick=function(){instanceOfBox.navigate(this.getAttribute("rel"))
return false}}}
virtualpaginate.prototype.paginate_build_flatview=function(flatviewcontainer,anchortext){var instanceOfBox=this
var flatviewhtml=""
var anchortext=anchortext||new Array()
for(var i=0;i<this.pagecount;i++){if(typeof anchortext[i]!="undefined")
flatviewhtml+='<a href="#flatview" rel="'+i+'">'+anchortext[i]+'</a> '
else
flatviewhtml+='<a href="#flatview" rel="'+i+'">'+(i+1)+'</a> '}
flatviewcontainer.innerHTML=flatviewhtml
this.flatviewlinks=flatviewcontainer.getElementsByTagName("a")
for(var i=0;i<this.flatviewlinks.length;i++){this.flatviewlinks[i].onclick=function(){instanceOfBox.flatviewlinks[instanceOfBox.currentpage].className=""
this.className="selected"
instanceOfBox.showpage(this.getAttribute("rel"))
return false}}
this.flatviewlinks[this.currentpage].className="selected"
this.flatviewpresent=true}
virtualpaginate.prototype.paginate_build_cpinfo=function(cpspan){this.cpspan=cpspan
cpspan.innerHTML='page '+(this.currentpage+1)+'/'+this.pagecount}
virtualpaginate.prototype.buildpagination=function(divid,optnavtext){var instanceOfBox=this
var paginatediv=document.getElementById(divid)
if(this.chunksize==this.pieces.length){paginatediv.style.display="none"
return}
var paginationcode=paginatediv.innerHTML
if(paginatediv.getElementsByTagName("select").length>0)
this.paginate_build_selectmenu(paginatediv.getElementsByTagName("select")[0],optnavtext)
if(paginatediv.getElementsByTagName("a").length>0)
this.paginate_build_regularlinks(paginatediv.getElementsByTagName("a"))
var allspans=paginatediv.getElementsByTagName("span")
for(var i=0;i<allspans.length;i++){if(allspans[i].className=="flatview")
this.paginate_build_flatview(allspans[i],optnavtext)
else if(allspans[i].className=="paginateinfo")
this.paginate_build_cpinfo(allspans[i])}
this.paginatediv=paginatediv}
virtualpaginate.prototype.navigate=function(keyword){if(this.flatviewpresent)
this.flatviewlinks[this.currentpage].className=""
if(keyword=="previous")
this.currentpage=(this.currentpage>0)?this.currentpage-1:(this.currentpage==0)?this.pagecount-1:0
else if(keyword=="next")
this.currentpage=(this.currentpage<this.pagecount-1)?this.currentpage+1:0
else if(keyword=="first")
this.currentpage=0
else if(keyword=="last")
this.currentpage=this.pieces.length-1
this.showpage(this.currentpage)
if(this.selectmenupresent)
this.paginatediv.getElementsByTagName("select")[0].selectedIndex=this.currentpage
if(this.flatviewpresent)
this.flatviewlinks[this.currentpage].className="selected"}

if(typeof deconcept=="undefined"){var deconcept={};}if(typeof deconcept.util=="undefined"){deconcept.util={};}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil={};}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10]||"";},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15]||"";},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=[];var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+(this.getAttribute("style")||"")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+(this.getAttribute("style")||"")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5(28 6.E!=\'2G\'){29.E(\'2H\',1t);6.E(\'2I\',1u);6.E(\'1v\',1w)}F{29.J(\'2J\',1t,j);6.J(\'2K\',1u,j);6.J(\'1x\',1w,j)};g 8=6.W("X");g o=6.W("X");g n=6.W("X");g 2a,G,Y,11,y,z,2L,2M,H,I,1y,1z,1A,1B,h,A,B,2b,L,M;2b=j;H=10;I=10;y=0;z=0;b 1t(){8.12(o);8.12(n);8.k.2N="2O";8.k.C=\'13\';6.p.12(8)};b 1C(){o.k.1D=\'1E(N=1c)\';o.k.N=\'0.1c\'};b 1F(){n.k.1D=\'1E(N=1c)\';n.k.N=\'0.1c\'};b 2c(K){5(!K||28(K)!=\'2P\')q j;5((K.1d(\'2d\')>-1)&&(K.1d(\'p\')>-1)&&(K.1d(\'[\')>-1)&&(K.1d(\'[\')>-1))q r;F q j};b 2e(3){5(2c(3.7)){3.1G=9(\'2d\',3.7);3.1H=9(\'p\',3.7);3.1I=9(\'2Q\',3.7);3.1J=9(\'2R\',3.7);3.1e=(9(\'2S\',3.7)==\'1f\')?r:j;3.1K=l(9(\'2T\',3.7));3.1L=l(9(\'2U\',3.7));3.2f=l(9(\'2V\',3.7));3.2g=l(9(\'2W\',3.7));3.1M=(9(\'2h\',3.7)!=\'\')?l(9(\'2h\',3.7)):10;3.1N=(9(\'2i\',3.7)!=\'\')?l(9(\'2i\',3.7)):10;3.1O=(9(\'1O\',3.7)==\'1f\')?r:j;3.1g=(9(\'1g\',3.7)!=\'\')?9(\'1g\',3.7):0.2X;3.14=(9(\'14\',3.7)!=\'\')?l(9(\'14\',3.7)):0;5(9(\'1h\',3.7)==\'1f\'){3.1h=r;6.1i?3.E(\'1v\',1P):3.J(\'1x\',1P,j);6.1i?3.E(\'2Y\',1Q):3.J(\'2Z\',1Q,j)}F{5(9(\'30\',3.7)!=\'2j\'){6.1i?3.E(\'31\',15):3.J(\'32\',15,j)}5(9(\'33\',3.7)==\'1f\'){6.1i?3.E(\'1v\',15):3.J(\'1x\',15,j)}}3.2k=9(\'2a\',3.7).34()==\'2j\'?j:r;3.7=\'\';3.O=1}F 3.O=2};b 9(1R,2l){g 2m=35 36(\'([^a-37-Z]\'+1R+\'|^\'+1R+\')\\\\s*=\\\\s*\\\\[\\\\s*(((\\\\[\\\\[)|(\\\\]\\\\])|([^\\\\]\\\\[]))*)\\\\s*\\\\]\');g 1S=2m.38(2l);g 39;5(1S)q 1S[2].2n(\'[[\',\'[\').2n(\']]\',\']\');F q\'\'};b 1j(c){g x=0;5(c.1T)q c.1T;g 1k=c;P(c){5((c.Q)&&(!R(l(c.Q.2o)))&&(x!=0))x+=l(c.Q.2o);x+=c.3a;c=c.2p}1k.1T=x;q x};b 1l(c){g x=0;5(c.1U)q c.1U;g 1k=c;P(c){5((c.Q)&&(!R(l(c.Q.2q)))&&(x!=0))x+=l(c.Q.2q);x+=c.3b;c=c.2p}1k.1U=x;q x};g 1m,1n;b 2r(){5(1n)8.2s(n);5(1m)8.2s(o);o=6.W("X");n=6.W("X");4.1I?n.2t=4.1I:1F();4.1J?o.2t=4.1J:1C();o.1o=1C();n.1o=1F();o.1o=4.1G;n.1o=4.1H;1m=j;1n=j;5(4.1G!=\'\'){8.12(o);1m=r}5(4.1H!=\'\'){8.12(n);1n=r}};g f,m,1V,4,1W,M,L,1p,1q;g 3c=j;b 16(){5(6.p&&(6.p.S!=0)){1p=6.p.S;1q=6.p.2u}5(6.t&&(6.t.S!=0)&&(6.p.S+20>=6.t.S)){1p=6.t.S;1q=6.t.2u}q[1p,1q]};g u=w;b 1u(e){e?h=e:h=1X;f=h.1r?h.1r:h.2v;5(!f.O){T=f;P((T.U)&&(!T.O)){2e(T);T=T.U}}5((f!=1V)&&(!D(f,o))&&(!D(f,n))){5(!f.17){m=f;P((m.O==2)&&(m.U))m=m.U;f.17=m}m=f.17;5(f.17&&(f.17.O==1)){1W=4;4=m;5(4!=1W){2r();5(!4.1h)5(4.1O){5(u!=w)1Y(u);u=1Z("2w("+4.1g+")",4.14)}F{5(u!=w)1Y(u);v=1;u=1Z("8.k.C=\'18\';u=w;",4.14)}5(4.1e){2x()}Y=!R(4.1K)?1j(4)+4.1K:4.2f;11=!R(4.1L)?1l(4)+4.1L:4.2g;y=0;z=0;G=r;H=4.1N?4.1N:10;I=4.1M?4.1M:10}}F 5(!D(f,o)&&!D(f,n)&&(G)){5((!D(4,f))||(f.3d!=\'3e\')){4=w;5(u!=w)1Y(u);1s()}}1V=f}F 5(((D(f,o)||D(f,n))&&(G))){M=0;L=0;m=f;P(m){5(!R(l(m.19)))L+=l(m.19);5(!R(l(m.1a)))M+=l(m.1a);m=m.U}5(4!=w){1y=1j(4)-M;1z=l(1j(4)+4.21)-M;1A=1l(4)-L;1B=l(1l(4)+4.22)-L;2y()}};5(G&&4){23=6.t&&6.t.19?6.t.19:6.p.19;24=6.t&&6.t.1a?6.t.1a:6.p.1a;A=h.2z?h.2z-24:h.3f-6.p.3g;B=h.2A?h.2A-23:h.3h-6.p.3i;5((4)&&(4.2k)){B<-I?z=-B-I:z=0;A<-H?y=-A-H:y=0;B>(16()[1]-8.22-I)?z=-B+16()[1]-8.22-I:z=z;A>(16()[0]-n.21-H)?y=-A-H+16()[0]-n.21:y=y}8.k.3j=((Y)||(Y==0))?Y:24+A+H+y+"2B";8.k.3k=((11)||(11==0))?11:23+B+I+z+"2B"}};b 2y(){5((A<1y)||(A>1z)||(B<1A)||(B>1B)){5(!4.1h)1s();5(4.1e){25()}4=w}};b 15(e){e?h=e:h=1X;G=j;h.3l=r};b 1P(e){8.k.C=(8.k.C!=\'18\')?\'18\':\'13\'};b 1Q(e){8.k.C=\'13\'};g v=0;g 3m=j;b 2w(1b){u=w;v=0;8.k.C=\'18\';26(1b)};b 26(1b){v=v+1b;v=(v>1)?1:v;8.k.1D=\'1E(N=\'+l(3n*v)+\')\';8.k.N=v;5(v<1)1Z("26("+1b+")",20)};b 1s(){8.k.C=\'13\'};b D(s,d){P(s){5(s==d)q r;s=s.U}q j};g 27;b 1w(e){e?h=e:h=1X;27=h.1r?h.1r:h.2v;5((!G)&&(!D(27,8))){1s();5(4&&4.1e){25()}G=r;4=w}};b 25(){g V=6.2C("2D");2E(i=0;i<V.2F;i++){V[i].k.C=\'18\'}};b 2x(){g V=6.2C("2D");2E(i=0;i<V.2F;i++){V[i].k.C=\'13\'}};',62,210,'|||curNode|CBE|if|document|title|oDv|getParam||function|elem|||CSE|var|evt||false|style|parseInt|iterElem|dvBdy|dvHdr|body|return|true||documentElement|ID|COL|null||lockX|lockY|mouseX|mouseY|visibility|isChild|attachEvent|else|boxMove|ox|oy|addEventListener|txt|totalScrollTop|totalScrollLeft|opacity|hasbox|while|currentStyle|isNaN|clientWidth|iElem|parentNode|elements|createElement|div|fixposx|||fixposy|appendChild|hidden|delay|pauseBox|SHW|boxItem|visible|scrollTop|scrollLeft|fs|80|indexOf|IEbugfix|on|fadespeed|requireclick|all|Left|oElem|Top|ah|ab|innerHTML|width|height|target|fadeOut|init|moveMouse|onclick|checkMove|click|boxLeft|boxRight|boxTop|boxBottom|defHdrStyle|filter|alpha|defBdyStyle|boHDR|boBDY|boCSSBDY|boCSSHDR|fixX|fixY|offY|offX|fade|showHideBox|hideBox|param|res|calcLeft|calcTop|LSE|LBE|event|clearTimeout|setTimeout||offsetWidth|offsetHeight|bodyScrollTop|bodyScrollLet|showSelects|fadeIn2|cSrc|typeof|window|windowlock|boxOpen|checkElemBO|header|scanBO|absX|absY|offsety|offsetx|off|windowLock|list|reg|replace|borderLeftWidth|offsetParent|borderTopWidth|applyStyles|removeChild|className|clientHeight|srcElement|fadeIn|hideSelects|doCheck|pageX|pageY|px|getElementsByTagName|select|for|length|undefined|onload|onmousemove|load|mousemove|fixx|fixy|position|absolute|string|cssbody|cssheader|hideselects|fixedrelx|fixedrely|fixedabsx|fixedabsy|04|onmouseover|mouseover|doubleclickstop|ondblclick|dblclick|singleclickstop|toLowerCase|new|RegExp|zA|exec|returnvar|offsetLeft|offsetTop|ini|tagName|TABLE|clientX|clientLeft|clientY|clientTop|left|top|cancelBubble|stopfade|100'.split('|'),0,{}))

function trim(value){value=value.replace(/^\s+/,'');value=value.replace(/\s+$/,'');return value;}
function validate(items){var emailRegex=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/;var urlRegex=/^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,4}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/;var somRegex=/\(?\d/;var nameRegex=/^[a-zA-Z]+(([\'\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$/;var alphanumRegex=/\(?\W/;var postcodeRegex=/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/;var telefoonRegex=/(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$)/;for(var i=0;i<items.length;i++){var item=items[i].split('|');var id=trim(item[0]);var validate=trim(item[1]);var message=trim(item[2]);if(document.getElementById(id)!=null&&document.getElementById(id)!=undefined&&document.getElementById(id)!='undefined'){var value=document.getElementById(id).value;if(validate=='V'){if(trim(value)==''){inlineMsg(id,message);document.getElementById(id).focus();return false;}}else if(validate=='C'){if(trim(value)==''||isNaN(value)){inlineMsg(id,message);document.getElementById(id).focus();return false;}}else if(validate=='E'){if(trim(value)==''||!value.match(emailRegex)){inlineMsg(id,message);document.getElementById(id).focus();return false;}}else if(validate=='EN'){if(document.getElementById(id).value.length>0){if(trim(value)==''||!value.match(emailRegex)){inlineMsg(id,message);document.getElementById(id).focus();return false;}}}else if(validate=='T'){if(trim(value)==''||!value.match(telefoonRegex)){inlineMsg(id,message);document.getElementById(id).focus();return false;}}else if(validate=='PC'){if(trim(value)==''||!value.match(postcodeRegex)){inlineMsg(id,message);document.getElementById(id).focus();return false;}}else if(validate=='AN'){if(trim(value)==''||value.match(alphanumRegex)){inlineMsg(id,message);document.getElementById(id).focus();return false;}}else if(validate=='S'){if(trim(value)==''||!value.match(somRegex)){inlineMsg(id,message);document.getElementById(id).focus();return false;}}else if(validate=='U'){if(trim(value)==''||!value.match(urlRegex)){inlineMsg(id,message);document.getElementById(id).focus();return false;}}else if(validate=='N'){if(trim(value)==''||!value.match(nameRegex)){inlineMsg(id,message);document.getElementById(id).focus();return false;}}else{alert('Wrong validate type!');return false;}}}
return true;}
var MSGTIMER=20;var MSGSPEED=5;var MSGOFFSET=3;var MSGHIDE=2;function inlineMsg(target,string,autohide){var msg;var msgcontent;if(!document.getElementById('msg')){msg=document.createElement('div');msg.id='msg';msgcontent=document.createElement('div');msgcontent.id='msgcontent';document.body.appendChild(msg);msg.appendChild(msgcontent);msg.style.filter='alpha(opacity=0)';msg.style.opacity=0;msg.alpha=0;}else{msg=document.getElementById('msg');msgcontent=document.getElementById('msgcontent');}
msgcontent.innerHTML=string;msg.style.display='block';var msgheight=msg.offsetHeight;var targetdiv=document.getElementById(target);targetdiv.focus();var targetheight=targetdiv.offsetHeight;var targetwidth=targetdiv.offsetWidth;var topposition=topPosition(targetdiv)-((msgheight-targetheight)/2);var leftposition=leftPosition(targetdiv)+targetwidth+MSGOFFSET;msg.style.top=topposition+'px';msg.style.left=leftposition+'px';clearInterval(msg.timer);msg.timer=setInterval("fadeMsg(1)",MSGTIMER);if(!autohide){autohide=MSGHIDE;}
window.setTimeout("hideMsg()",(autohide*1000));}
function hideMsg(msg){var msg=document.getElementById('msg');if(!msg.timer){msg.timer=setInterval("fadeMsg(0)",MSGTIMER);}}
function fadeMsg(flag){if(flag==null){flag=1;}
var msg=document.getElementById('msg');var value;if(flag==1){value=msg.alpha+MSGSPEED;}else{value=msg.alpha-MSGSPEED;}
msg.alpha=value;msg.style.opacity=(value/100);msg.style.filter='alpha(opacity='+value+')';if(value>=99){clearInterval(msg.timer);msg.timer=null;}else if(value<=1){msg.style.display="none";clearInterval(msg.timer);}}
function leftPosition(target){var left=0;if(target.offsetParent){while(1){left+=target.offsetLeft;if(!target.offsetParent){break;}
target=target.offsetParent;}}else if(target.x){left+=target.x;}
return left;}
function topPosition(target){var top=0;if(target.offsetParent){while(1){top+=target.offsetTop;if(!target.offsetParent){break;}
target=target.offsetParent;}}else if(target.y){top+=target.y;}
return top;}
function checkdate(month,day,year){var myDate=new Date();myDate.setFullYear(year,(month-1),day);return((myDate.getMonth()+1)==month&&day<32);}
function publish(published){if(published){document.getElementById('publish_start').checked=false;document.getElementById('publish_start').disabled=true;document.getElementById('publish_end').disabled=false;}else{document.getElementById('publish_start').disabled=false;document.getElementById('publish_end').disabled=false;}
document.getElementById('publish_start_day').disabled=true;document.getElementById('publish_start_month').disabled=true;document.getElementById('publish_start_year').disabled=true;document.getElementById('publish_start_hour').disabled=true;document.getElementById('publish_end_day').disabled=!document.getElementById('publish_end').checked;document.getElementById('publish_end_month').disabled=!document.getElementById('publish_end').checked;document.getElementById('publish_end_year').disabled=!document.getElementById('publish_end').checked;document.getElementById('publish_end_hour').disabled=!document.getElementById('publish_end').checked;}
function publish_part(type,checked){document.getElementById('publish_'+type+'_day').disabled=!checked;document.getElementById('publish_'+type+'_month').disabled=!checked;document.getElementById('publish_'+type+'_year').disabled=!checked;document.getElementById('publish_'+type+'_hour').disabled=!checked;}
function tekstLines(number,myID)
{rows=document.getElementById('tekst'+myID).rows;newrows=rows+number;if(newrows>=5&&newrows<=30)
{document.getElementById('tekst'+myID).rows=newrows;}}
function confirmverwijder(sendUrl){if(confirm('Wil je dit item echt verwijderen?')){document.location=sendUrl;}}
function mousOverImage(name,id,nr){if(name)imname=name;imname.src="http://img.youtube.com/vi/"+id+"/"+nr+".jpg";nr++;if(nr>3)nr=1;timer=setTimeout("mousOverImage(false,'"+id+"',"+nr+");",1000);}
function highlightLink()
{thisPage=document.URL.substring(document.URL.lastIndexOf("/")+1,document.URL.length);for(i=0;i<document.links.length;i++)
{pageLink=document.links[i].href.substring(document.links[i].href.lastIndexOf("/")+1,document.links[i].href.length);if(thisPage==pageLink)
{document.links[i].className="actief";}}}
function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")&&anchor.getAttribute("rel")=="external"||anchor.getAttribute("rel")=="external nofollow")
anchor.target="_blank";}}
function newAjax(type,url){var xmlhttp=false;if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest;}else if(window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
if(url.indexOf("?")==-1){url+="?time="+(new Date).getTime();}else{url+="&time="+(new Date).getTime();}
xmlhttp.open(type,url,true);if(type.toLowerCase()=='post'){xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");}
return xmlhttp;}
function getFormValues(form){var params='';var input_elems=form.getElementsByTagName('INPUT');var select_elems=form.getElementsByTagName('SELECT');var textarea_elems=form.getElementsByTagName('TEXTAREA');for(var i=0;i<input_elems.length;i++){elem=input_elems[i];if(elem.type.toLowerCase()=='radio'||elem.type.toLowerCase()=='checkbox'){if(elem.checked){params=params+'&'+elem.name+'='+encodeURIComponent(elem.value);}}else{params=params+'&'+elem.name+'='+encodeURIComponent(elem.value);}}
for(var i=0;i<select_elems.length;i++){elem=select_elems[i];if(!elem.multiple){params=params+'&'+elem.name+'='+encodeURIComponent(elem.value);}else{for(var j=0;j<elem.options.length;j++){if(elem.options[j].selected){params=params+'&'+elem.name+'='+encodeURIComponent(elem.options[j].value);}}}}
for(var i=0;i<textarea_elems.length;i++){elem=textarea_elems[i];params=params+'&'+elem.name+'='+encodeURIComponent(elem.value);}
if(params.length>0){params=params.substring(1,params.length);}else{params=null;}
return params;}
function reloadDIV(url,id,type,params){if(url.indexOf("?")==-1){url+="?ajax_reload_div_id="+id;}else{url+="&ajax_reload_div_id="+id;}
if(type==null||type=='undefined'){type='GET';}
if(params=='undefined'){params=null;}
var xmlhttp=newAjax(type,url);document.getElementById(id).innerHTML='<img src="./cmsimg/rotating_arrow.gif" style="vertical-align:middle;" alt="een ogenblikje geduld" /> een ogenblikje geduld....';xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){document.getElementById(id).innerHTML=xmlhttp.responseText;var js_content=xmlhttp.responseText.replace(/\n/g,"");var regex=new RegExp("<script([^>]*)>(.*)</script>","ig");var match=regex.exec(js_content);if(match!=null&&match!=false&&match.length>0){match=match[2];eval(match.substring(match.indexOf('>')+1,match.length));}}}
xmlhttp.send(params);}
function initTreeview(){treeObj=new JSDragDropTree();treeObj.setTreeId('menu_treeview');if(document.location.href.indexOf('quicklink=flashadmin')!=-1){treeObj.setMaximumDepth(1);}else{treeObj.setMaximumDepth(2);}
treeObj.setMessageMaximumDepthReached('Sub links hier niet mogelijk');treeObj.initTree();treeObj.expandAll();}
function hideshow(obj)
{if(obj!=null)
{if(obj.style.display=="none")
{obj.style.display="block"}else{obj.style.display="none";}}else{alert('error');}}
function expandcollapse(postid){whichpost=document.getElementById(postid);if(whichpost.className=="postshown"){whichpost.className="posthidden";}
else{whichpost.className="postshown";}}
function hideshow_feedback(feedbackID)
{var tblIntro=document.getElementById(feedbackID+'_intro');var tblFull=document.getElementById(feedbackID+'_full');if(tblIntro!=null&&tblFull!=null)
{if(tblIntro.style.display=="none")
{tblIntro.style.display="block"
tblFull.style.display="none";}else{tblIntro.style.display="none";tblFull.style.display="block";}}else{alert('error '+feedbackID);}}
function wopen(url,name,w,h)
{w+=32;h+=96;wleft=(screen.width-w)/2;wtop=(screen.height-h)/2;var win=window.open(url,name,'width='+w+', height='+h+', '+'left='+wleft+', top='+wtop+', '+'location=no, menubar=no, '+'status=no, toolbar=no, scrollbars=no, resizable=no');win.resizeTo(w,h);win.moveTo(wleft,wtop);win.focus();}
function start(){externalLinks();if(document.getElementById('menu_treeview')!=undefined){initTreeview();}}
function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){if(oldonload){oldonload();}
func();}}}
addLoadEvent(start);
