var deluxePopupWindow={mainbox:"deluxePopupWindow-container",globalprefix:"jaw_",sidebarpostfix:"_sidebar",activeclasses:{handle:"jaw_handle",header:"jaw_header",minimize:"jaw_minimize",fullscreen:"jaw_fullscreen",close:"jaw_close",contentarea:"jaw_contentarea",statusarea:"jaw_statusarea",resizearea:"jaw_resizearea"},passiveclasses:{restore:"jaw_restore"},titles:{normalization:"Normalization",fullscreen:"FullScreen",restore:"Restore",minimize:"Minimize",unminimize:"Unminimize"},errors:{skinload:"Error! Skin Load!"},sidebarborder:3,minsize:{width:150,height:100},minmizedtype:0,offsetborder:0,winminimize:0,jaexamples:[],connectstyles:[],init:function(){this.addEvent(window,function(){deluxePopupWindow.isPageloaded=true},"load");this.addEvent(window,function(){deluxePopupWindow.fixed()},"scroll");this.addEvent(window,function(){for(var B=0;B<deluxePopupWindow.jaexamples.length;B++){var A=deluxePopupWindow.jaexamples[B];if(A.state=="fullscreen"){A.nofullscreen=null;deluxePopupWindow.fullScreen(A.fullscreen,A)}}},"resize");document.write('<div style="left:0px;top:0px;position:absolute;" id="'+deluxePopupWindow.mainbox+'" height="100%" width="100%"><div style="display:none">&nbsp;</div></div>')},open:function(C,D,F,B,E,A){C=deluxePopupWindow.make.apply(this,arguments);C.show();return C},make:function(O,M,I,G,L,K){var H=deluxePopupWindow;K=(typeof K=="undefined")?"auto":K;var N=function(U,S){var P=S;var T=U.split(",");for(var Q=0;Q<T.length;Q++){if(T[Q].indexOf("=")!=-1){var R=T[Q].substr(T[Q].indexOf("=")+1);if(R=="yes"){R=true}else{if(R=="no"){R=false}}P[T[Q].substr(0,T[Q].indexOf("="))]=R}else{P[T[Q]]=true}}return P};var C={resizable:true,scrollbars:true,minimizable:true,closable:true,fullscreen:true,left:0,top:0,floatable:true,opacity:1};var D=N(G,C);if(document.getElementById(O)==null){O=this.create(O,L)}else{O=document.getElementById(O)}O.defaultskin=deluxePopupWindow.globalprefix+"skin_"+L;if(O.nofullscreen){deluxePopupWindow.fullScreen(O.fullscreen,O)}O.setSize((D.width+"px"),(D.height+"px"));var B={left:["center","right","left"],top:["middle","bottom","top"]};for(var J in B){for(var F=0;F<B[J].length;F++){if(typeof D[B[J][F]]!="undefined"){D[J]=((D[B[J][F]]===true)?B[J][F]:D[B[J][F]]+"px");break}}}var E=D.left;var A=D.top;if(!this.scroll_top){this.scroll_top=0}if(!deluxePopupWindow.isPageloaded&&this.scroll_top==0){if(/MSIE /i.test(navigator.userAgent)){this.addEvent(window,function(){setTimeout(function(){O.moveTo(E,A)},400)},"load")}else{this.addEvent(window,function(){O.moveTo(E,A)},"load")}}O.setResize((D.resizable?true:false));O.setScrolling((D.scrollbars?true:false));O.setFullscreen((D.fullscreen?true:false));O.setMinimizable((D.minimizable?true:false));O.setClosable((D.closable?true:false));O.setFloatable((D.floatable?true:false));O.defaultopacity=D.opacity;O.setOpacity(D.opacity);for(var J in D){if(/-effect$/i.test(J)){O.effect={name:J.substr(0,J.length-"-effect".length),value:D[J]};break}}O.style.visibility="visible";O.contentarea.style.display="block";O.style.display="block";O.moveTo(E,A);O.style.display="none";O.load(M,I,K);if(O.state=="minimized"){O.state="fullview"}return O},create:function(jw,skin){if(!deluxePopupWindow.sidebar){var sidebar=document.createElement("div");sidebar.className=deluxePopupWindow.globalprefix+"skin_"+skin+deluxePopupWindow.sidebarpostfix;sidebar.style.borderWidth=deluxePopupWindow.sidebarborder+"px";document.getElementById(deluxePopupWindow.mainbox).appendChild(sidebar);deluxePopupWindow.sidebar=sidebar;var backsidebar=document.createElement("div");with(backsidebar.style){position="absolute";width="1px";height="1px";top="0px";left="0px";display="none";background="#222";if((/Firefox/i.test(navigator.userAgent))){MozOpacity=".0"}else{if((/MSIE /i.test(navigator.userAgent))){filter="alpha(style=0,opacity=0)"}else{if((/Safari/i.test(navigator.userAgent))){KhtmlOpacity="0.0"}else{if((/Opera/i.test(navigator.userAgent))){visibility="hidden"}}}}}document.getElementById(deluxePopupWindow.mainbox).appendChild(backsidebar);deluxePopupWindow.backsidebar=backsidebar}var searchElements=function(_obj,_attribute,_sets,_results){var elms=_obj.getElementsByTagName("*");for(var i=0;i<elms.length;i++){for(var j in _sets){if(elms[i][_attribute]&&elms[i][_attribute]==_sets[j]){_results[_sets[j]]=elms[i]}}}};var addVisualEffect=function(obj){var events=["onmouseover","onmouseout","onmousedown","onmouseup"];for(var i=0;i<events.length;i++){eval('if (obj[0]) obj[0][events[i]] = function(){deluxePopupWindow.classChanger(this,"'+events[i]+'",obj[1]);};')}};var domwindow=document.createElement("div");domwindow.id=jw;domwindow.className=deluxePopupWindow.globalprefix+"skin_"+skin;var domwindowdata=deluxePopupWindow.loadSkin(skin);if(domwindowdata==null){alert(deluxePopupWindow.errors.skinload);return null}domwindow.innerHTML=domwindowdata;document.getElementById(deluxePopupWindow.mainbox).appendChild(domwindow);this.zIndexvalue=(this.zIndexvalue)?this.zIndexvalue+1:100;jw=document.getElementById(jw);var _results={};searchElements(jw,"className",deluxePopupWindow.activeclasses,_results);for(var key in deluxePopupWindow.activeclasses){jw[key]=(_results["jaw_"+key])?_results["jaw_"+key]:false}_results=null;jw.state=jw.substate="fullview";jw.handle._parent=jw;jw.resizearea._parent=jw;jw.onclose=function(){return true};jw.onmousedown=function(){if(!deluxePopupWindow.currentSelect||deluxePopupWindow.currentSelect!=this){deluxePopupWindow.zIndexvalue++;this.style.zIndex=deluxePopupWindow.zIndexvalue;deluxePopupWindow.setActive(this)}};if(jw.handle){jw.handle.onmousedown=deluxePopupWindow.startDrag;if((/MSIE /i.test(navigator.userAgent))){jw.handle.onmouseover=function(){document.onselectstart=function(){return false}};jw.handle.onmouseout=function(){document.onselectstart=function(){}}}jw.handle.ondblclick=function(e){var obj=(typeof event=="undefined")?e.target:event.srcElement;if((obj==jw.handle||obj==jw.header)&&jw.fullscreenBool){deluxePopupWindow.fullScreen(jw.fullscreen,jw)}}}if(jw.resizearea){jw.resizearea.onmousedown=deluxePopupWindow.startDrag}if(jw.minimize){addVisualEffect([jw.minimize,deluxePopupWindow.activeclasses.minimize]);jw.minimize.onclick=function(){if(jw.state!="minimized"){deluxePopupWindow.minimize(this,jw)}else{deluxePopupWindow.restore(this,jw)}}}if(jw.fullscreen){jw.fullscreen.onclick=function(){deluxePopupWindow.fullScreen(this,jw)}}if(jw.close){addVisualEffect([jw.close,deluxePopupWindow.activeclasses.close]);jw.close.onclick=function(){deluxePopupWindow.close(jw)}}var events=["onmouseover","onmouseout","onmousedown","onmouseup"];for(var i=0;i<events.length;i++){eval('jw.fullscreen[events[i]] = function(){deluxePopupWindow.classChanger(this,"'+events[i]+'",((jw.substate == "fullscreen") ? deluxePopupWindow.passiveclasses["restore"] : deluxePopupWindow.activeclasses["fullscreen"]));};')}jw.show=function(){deluxePopupWindow.show(this)};jw.setFullscreen=function(bol){deluxePopupWindow.setFullscreen(this,bol)};jw.setMinimizable=function(bol){deluxePopupWindow.setMinimizable(this,bol)};jw.setClosable=function(bol){deluxePopupWindow.setClosable(this,bol)};jw.setFloatable=function(bol){deluxePopupWindow.setFloatable(this,bol)};jw.setOpacity=function(opacity){deluxePopupWindow.setOpacity(this,opacity)};jw.hide=function(){deluxePopupWindow.close(this)};jw.setSize=function(w,h){deluxePopupWindow.setSize(this,w,h)};jw.moveTo=function(x,y){deluxePopupWindow.moveTo(this,x,y)};jw.setResize=function(bol){deluxePopupWindow.setResize(this,bol)};jw.setScrolling=function(bol){deluxePopupWindow.setScrolling(this,bol)};jw.load=function(contenttype,contentsource,title){deluxePopupWindow.load(this,contenttype,contentsource,title)};if(!deluxePopupWindow.jaexamples.length){window.onunload=deluxePopupWindow.cleaner}this.jaexamples.push(jw);return jw},load:function(C,D,E,A){if(typeof E!="undefined"){C.header.innerHTML=E}if(A=="auto"){if(D.substr(0,7)=="http://"){var B="iframe"}else{if(D.length<=30&&document.getElementById(D)){var B="id";C.contentarea.sourceboxid=D}else{var B="text"}}}else{var B=A}if(B=="text"){C.contentarea.innerHTML=D}else{if(B=="id"){C.contentarea.innerHTML=document.getElementById(D).innerHTML;document.getElementById(D).style.display="none"}else{if(B=="iframe"){C.contentarea.style.overflow="hidden";if(!C.contentarea.firstChild||C.contentarea.firstChild.tagName!="IFRAME"){C.contentarea.innerHTML='<iframe src="" style="border:0; margin:0; padding:0; width:100%; height: 100%" name="_iframe-'+C.id+'"></iframe>'}window.frames["_iframe-"+C.id].location.replace(D)}}}C.contentarea.datatype=B},loadSkin:function(F){if(!window[deluxePopupWindow.globalprefix+"skin_"+F]){return null}if(!deluxePopupWindow.connectstyles[F]){deluxePopupWindow.connectstyles[F]=true;if(!deluxePopupWindow.scripts_list_cache){deluxePopupWindow.scripts_list_cache=document.documentElement.getElementsByTagName("script")}var G=deluxePopupWindow.scripts_list_cache;var E="";var D=deluxePopupWindow.globalprefix+"skin_"+F+".js";for(var C=0,A=D.length;C<G.length;C++){if(G[C].src.substr(G[C].src.length-A,A)==D){E=G[C].src.substr(0,G[C].src.length-A);break}}window[deluxePopupWindow.globalprefix+"skin_"+F+"_showqueue"]=[];var B=function(H){window[H+"_imgload"]=true;while(window[H+"_showqueue"].length){window[H+"_showqueue"].shift().show()}};if(window[deluxePopupWindow.globalprefix+"skin_"+F+"_images"]){imagesPreloader.run(E,window[deluxePopupWindow.globalprefix+"skin_"+F+"_images"],function(){B(deluxePopupWindow.globalprefix+"skin_"+F)})}else{setTimeout(function(){B(deluxePopupWindow.globalprefix+"skin_"+F)},300)}}return window[deluxePopupWindow.globalprefix+"skin_"+F]},show:function(A){if(window[A.defaultskin+"_imgload"]){deluxePopupWindow.restore(A.minimize,A,"show");A.onmousedown()}else{window[A.defaultskin+"_showqueue"].push(A)}},close:function(D){try{var C=D.onclose()}catch(E){var C=true}finally{if(typeof C=="undefined"){var C=true}}if(C){if(D.state!="minimized"){deluxePopupWindow.saveAttrs(D)}if(typeof deluxePopupWindowEffects!="undefined"&&D.effect&&deluxePopupWindowEffects[D.effect.name]){deluxePopupWindowEffects[D.effect.name].hide(D,D.effect.value)}else{D.style.display="none"}}for(var B=0,A=0,F=-1;B<deluxePopupWindow.jaexamples.length;B++){if(deluxePopupWindow.jaexamples[B].handle._parent.style.display=="block"){if(A!=Math.max(A,parseInt(deluxePopupWindow.jaexamples[B].handle._parent.style.zIndex))){F=B;A=Math.max(A,parseInt(deluxePopupWindow.jaexamples[B].handle._parent.style.zIndex))}}}if(D.contentarea.sourceboxid){document.getElementById(D.contentarea.sourceboxid).style.display="block"}if(F>=0){deluxePopupWindow.setActive(deluxePopupWindow.jaexamples[F].handle._parent)}return C},setActive:function(A){if(deluxePopupWindow.currentSelect){deluxePopupWindow.currentSelect.className=deluxePopupWindow.currentSelect.defaultskin}A.className=A.defaultskin+"-selected";deluxePopupWindow.currentSelect=A},setSize:function(B,A,C){B.style.width=Math.max(parseInt(A),deluxePopupWindow.minsize.width)+"px";B.contentarea.style.height=Math.max(parseInt(C),deluxePopupWindow.minsize.height)+"px";B.contentarea.style.width=parseInt(B.style.width)-((window[B.defaultskin+"_border_offset"])?window[B.defaultskin+"_border_offset"]:0)+"px"},moveTo:function(C,A,D){this.getViewPos();switch(A){case"left":C.style.left="0px";break;case"center":C.style.left=this.scroll_left+(this.docwidth-C.offsetWidth)/2+"px";break;case"right":C.style.left=this.scroll_left+(this.docwidth-C.offsetWidth)+"px";break;default:C.style.left=this.scroll_left+parseInt(A)+"px";break}switch(D){case"top":C.style.top="0px";break;case"middle":C.style.top=this.scroll_top+(this.docheight-C.offsetHeight)/2+"px";break;case"bottom":C.style.top=this.scroll_left+(this.docheight-C.offsetHeight)+"px";break;default:C.style.top=this.scroll_top+parseInt(D)+"px";break}if(parseInt(C.style.top)<0){C.style.top="0px"}if(parseInt(C.style.left)<0){C.style.left="0px"}for(var B=0;B<deluxePopupWindow.jaexamples.length;B++){deluxePopupWindow.saveAttrs(deluxePopupWindow.jaexamples[B])}},setResize:function(A,B){if(A.statusarea){A.statusarea.style.display=(B)?"block":"none"}A.resizeBool=(B)?1:0},setScrolling:function(A,B){A.contentarea.style.overflow=(B)?"auto":"hidden"},setFullscreen:function(A,B){if(A.fullscreen){A.fullscreen.style.display=(B)?"block":"none"}A.fullscreenBool=(B)?1:0},setMinimizable:function(A,B){if(A.minimize){A.minimize.style.display=(B)?"block":"none"}A.minimizableBool=(B)?1:0},setClosable:function(A,B){if(A.close){A.close.style.display=(B)?"block":"none"}A.closableBool=(B)?1:0},setFloatable:function(A,B){A.floatableBool=(B)?1:0},setOpacity:function(B,A){if(typeof document.body.style.opacity=="string"){var C="opacity"}else{if(typeof document.body.style.MozOpacity=="string"){var C="MozOpacity"}else{if(typeof document.body.style.KhtmlOpacity=="string"){var C="KhtmlOpacity"}else{if(document.body.filters&&navigator.appVersion.match(/MSIE ([\d.]+)/)[1]>=5.5){var C="filter"}}}}if(C=="filter"){var D=B.filters["DXImageTransform.Microsoft.alpha"]||B.filters.alpha;if(D){D.opacity=A*100}else{B.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+(A*100)+")"}}else{B.style[C]=A}B.opacity=A},startDrag:function(C){var D=deluxePopupWindow;var A=this._parent;var B=(typeof event=="undefined")?C.target:event.srcElement;if(A.substate!="fullscreen"&&(B==A.handle||B==A.header||B==A.resizearea)&&!(A.state=="minimized"&&this.className==deluxePopupWindow.activeclasses.resizearea)){deluxePopupWindow.sidebar.style.cursor="move";D.etarget=this;C=window.event||C;D.initmousex=C.clientX;D.initmousey=C.clientY;D.initx=parseInt(A.offsetLeft);D.inity=parseInt(A.offsetTop);D.width=parseInt(A.offsetWidth);D.contentheight=parseInt(A.contentarea.offsetHeight);document.onmousemove=D.getDistance;document.onmouseup=function(){D.stop(D.etarget)}}return false},getDistance:function(e){var d=deluxePopupWindow;var etarget=d.etarget;e=window.event||e;with(deluxePopupWindow.sidebar){className=etarget._parent.defaultskin+deluxePopupWindow.sidebarpostfix;style.borderWidth=deluxePopupWindow.sidebarborder+"px";style.display="block"}with(deluxePopupWindow.backsidebar.style){width=(window.innerWidth)?window.innerWidth+"px":document.documentElement.clientWidth+"px";height=(window.innerHeight)?window.innerHeight+"px":document.documentElement.clientHeight+"px";display="block";zIndex=deluxePopupWindow.zIndexvalue+1}d.distancex=e.clientX-d.initmousex;d.distancey=e.clientY-d.initmousey;if(etarget.className==deluxePopupWindow.activeclasses.handle){with(deluxePopupWindow.sidebar.style){top=etarget._parent.offsetTop+"px";left=etarget._parent.offsetLeft+"px";width=etarget._parent.offsetWidth-deluxePopupWindow.sidebarborder*2+"px";height=etarget._parent.offsetHeight-deluxePopupWindow.sidebarborder*2+"px";zIndex=deluxePopupWindow.zIndexvalue+2}d.move(deluxePopupWindow.sidebar,e)}else{if(etarget.className==deluxePopupWindow.activeclasses.resizearea){deluxePopupWindow.sidebar.style.cursor="nw-resize";with(deluxePopupWindow.sidebar.style){top=etarget._parent.offsetTop+"px";left=etarget._parent.offsetLeft+"px";width=etarget._parent.offsetWidth-deluxePopupWindow.sidebarborder*2+"px";height=etarget._parent.offsetHeight-deluxePopupWindow.sidebarborder*2+"px";zIndex=deluxePopupWindow.zIndexvalue+2}d.resize(etarget._parent,e)}}return false},saveAttrs:function(A){this.getViewPos();A.lastx=parseInt((A.style.left||A.offsetLeft))-deluxePopupWindow.scroll_left;A.lasty=parseInt((A.style.top||A.offsetTop))-deluxePopupWindow.scroll_top;A.lastwidth=parseInt(A.style.width)},getViewPos:function(){var B=(/MSIE /i.test(navigator.userAgent))?true:false;var A=document.documentElement&&parseInt(document.documentElement.clientWidth)||100000;this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;this.scroll_top=(B)?this.standardbody.scrollTop:window.pageYOffset;this.scroll_left=(B)?this.standardbody.scrollLeft:window.pageXOffset;this.docwidth=(B)?this.standardbody.clientWidth:(/Safari/i.test(navigator.userAgent))?window.innerWidth:Math.min(A,window.innerWidth-16);this.docheight=(B)?this.standardbody.clientHeight:window.innerHeight},resize:function(A,B){deluxePopupWindow.sidebar.style.width=Math.max(deluxePopupWindow.width+deluxePopupWindow.distancex,deluxePopupWindow.minsize.width)+"px";deluxePopupWindow.sidebar.style.height=Math.max(deluxePopupWindow.contentheight+deluxePopupWindow.distancey,deluxePopupWindow.minsize.height)+(A.offsetHeight-parseInt(A.contentarea.style.height))+"px"},move:function(A,B){A.style.left=deluxePopupWindow.distancex+deluxePopupWindow.initx+"px";A.style.top=deluxePopupWindow.distancey+deluxePopupWindow.inity+"px"},fullScreen:function(B,A){if(A.state=="minimized"){deluxePopupWindow.restore(A.minimize,A)}if(A.nofullscreen){if(B){B.className=deluxePopupWindow.activeclasses.fullscreen;B.setAttribute("title",deluxePopupWindow.titles.fullscreen)}A.state=A.substate="fullview";if(A.nofullscreen.resizeBool){A.setResize(true)}deluxePopupWindow.setSize(A,A.nofullscreen.width,A.nofullscreen.height);deluxePopupWindow.moveTo(A,A.nofullscreen.x,A.nofullscreen.y);A.nofullscreen=null}else{if(B){B.className=deluxePopupWindow.passiveclasses.restore;B.setAttribute("title",deluxePopupWindow.titles.normalization)}A.state=A.substate="fullscreen";A.nofullscreen={x:parseInt((A.style.left||A.offsetLeft))-deluxePopupWindow.scroll_left,y:parseInt((A.style.top||A.offsetTop))-deluxePopupWindow.scroll_top,width:parseInt(A.style.width),height:parseInt(A.contentarea.style.height),resizeBool:A.resizeBool};if(A.resizeBool){A.setResize(false)}deluxePopupWindow.getViewPos();deluxePopupWindow.setSize(A,deluxePopupWindow.docwidth-deluxePopupWindow.offsetborder,deluxePopupWindow.docheight-(A.offsetHeight-parseInt(A.contentarea.style.height)));deluxePopupWindow.moveTo(A,0,0)}},minimize:function(B,A){deluxePopupWindow.saveAttrs(A);B.setAttribute("title",deluxePopupWindow.titles.unminimize);A.state="minimized";A.contentarea.style.display="none";A.statusarea.style.display="block";if(typeof A.winminimize=="undefined"){deluxePopupWindow.winminimize++;A.winminimize=deluxePopupWindow.winminimize}if(deluxePopupWindow.minmizedtype){A.style.left="5px";A.style.width="220px";var C=A.winminimize*10;A.style.top=deluxePopupWindow.scroll_top+deluxePopupWindow.docheight-(A.handle.offsetHeight*A.winminimize)-C+"px"}},restore:function(B,A,C){if(typeof C=="undefined"){C=""}deluxePopupWindow.getViewPos();if(B){B.setAttribute("title",deluxePopupWindow.titles.minimize)}A.state="fullview";A.contentarea.style.display="block";if(A.statusarea){if(A.substate=="fullscreen"||!A.resizeBool){A.statusarea.style.display="none"}else{if(A.resizeBool){A.statusarea.style.display="block"}}}if(deluxePopupWindow.minmizedtype){A.style.left=parseInt(A.lastx)+deluxePopupWindow.scroll_left+"px";A.style.top=parseInt(A.lasty)+deluxePopupWindow.scroll_top+"px";A.style.width=parseInt(A.lastwidth)+"px"}if(C=="show"&&typeof deluxePopupWindowEffects!="undefined"&&A.effect&&deluxePopupWindowEffects[A.effect.name]){deluxePopupWindowEffects[A.effect.name].show(A,A.effect.value)}else{A.style.display="block"}},fixed:function(){if(deluxePopupWindow.scroll_delayer){clearTimeout(deluxePopupWindow.scroll_delayer)}if(deluxePopupWindow.slowlyfixed_delayer){clearTimeout(deluxePopupWindow.slowlyfixed_delayer)}deluxePopupWindow.scroll_delayer=setTimeout(function(){deluxePopupWindow.getViewPos();for(var A=0;A<deluxePopupWindow.jaexamples.length;A++){if(deluxePopupWindow.jaexamples[A].floatableBool){deluxePopupWindow.slowlyfixed("left",deluxePopupWindow.jaexamples[A],parseInt(deluxePopupWindow.jaexamples[A].style.left),deluxePopupWindow.scroll_left+deluxePopupWindow.jaexamples[A].lastx);deluxePopupWindow.slowlyfixed("top",deluxePopupWindow.jaexamples[A],parseInt(deluxePopupWindow.jaexamples[A].style.top),deluxePopupWindow.scroll_top+deluxePopupWindow.jaexamples[A].lasty)}}},50)},slowlyfixed:function(E,B,F,A,C){if(typeof C=="undefined"){var D=parseInt(Math.abs(F-A)/30);C=(F>A)?-D:D}if((F>A&&C<0)||(F<A&&C>0)){F+=C;if((F<A&&C<0)||(F>A&&C>0)){F=A}B.style[E]=F+"px";deluxePopupWindow.slowlyfixed_delayer=setTimeout(function(){deluxePopupWindow.slowlyfixed(E,B,F,A,C)},1)}},cleaner:function(){window.onload=null;for(var A=0;A<deluxePopupWindow.jaexamples.length;A++){deluxePopupWindow.jaexamples[A].handle._parent=deluxePopupWindow.jaexamples[A].resizearea._parent=null}},stop:function(){if(arguments[0]&&deluxePopupWindow.sidebar.style.display=="block"){var offsetborder=deluxePopupWindow.offsetborder;if(arguments[0].className==deluxePopupWindow.activeclasses.handle){with(arguments[0]._parent.style){top=Math.max(deluxePopupWindow.sidebar.offsetTop,0)+"px";left=Math.max(deluxePopupWindow.sidebar.offsetLeft,0)+"px";width=deluxePopupWindow.sidebar.offsetWidth-offsetborder+"px"}}else{if(arguments[0].className==deluxePopupWindow.activeclasses.resizearea){deluxePopupWindow.setSize(arguments[0]._parent,deluxePopupWindow.sidebar.offsetWidth-offsetborder,deluxePopupWindow.sidebar.offsetHeight-(arguments[0]._parent.offsetHeight-parseInt(arguments[0]._parent.contentarea.style.height)))}}}deluxePopupWindow.sidebar.style.display="none";deluxePopupWindow.backsidebar.style.display="none";deluxePopupWindow.etarget=null;document.onmousemove=null;document.onmouseup=null;for(var i=0;i<deluxePopupWindow.jaexamples.length;i++){deluxePopupWindow.saveAttrs(deluxePopupWindow.jaexamples[i])}},addEvent:function(B,C,A){A=(window.addEventListener)?A:"on"+A;if(B.addEventListener){B.addEventListener(A,C,false)}else{if(B.attachEvent){B.attachEvent(A,C)}}},classChanger:function(C,A,B){switch(A){case"onmouseup":case"onmouseover":C.className=B+"-onmouseover";break;case"onmouseout":C.className=B;break;case"onmousedown":C.className=B+"-"+A;break}},addSkin:function(A){document.write('<script src="'+A+'.js"><\/script>');document.write('<link rel="stylesheet" href="'+A+'.css" type="text/css" />')},attachToEvent:function(win,actionParam){var openScript="document.getElementById('"+win.id+"').show()";var onePerSession=/onePerSession/i.test(actionParam);var params;var regexp_params=/(\w+)(\s*=\s*(\w+))?/g;while(params=regexp_params.exec(actionParam)){if((params[1]=="openAfter")&&(params.length>1)){function setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+((expires)?"; expires="+expires:"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"")+((secure)?"; secure":"")}function getCookie(name){var cookie=" "+document.cookie;var search=" "+name+"=";var setStr=null;var offset=0;var end=0;if(cookie.length>0){offset=cookie.indexOf(search);if(offset!=-1){offset+=search.length;end=cookie.indexOf(";",offset);if(end==-1){end=cookie.length}setStr=unescape(cookie.substring(offset,end))}}return(setStr)}if(onePerSession){if(getCookie("dpw"+win.id+"run")){return}setCookie("dpw"+winID+"run",1)}if(!params[3]){eval(openScript)}else{setTimeout(openScript,params[3]*1000)}}else{if((params[1]=="closeAfter")&&(params.length>1)){setTimeout("document.getElementById('"+win.id+"').hide()",params[3]*1000)}else{if((params[1]=="onClick")&&(params.length>1)){var e=document.getElementById(params[3]);if(e){this.addEvent(e,function(){eval(openScript)},"click")}}else{if((params[1]=="onMouseOver")&&(params.length>1)){var e=document.getElementById(params[3]);if(e){this.addEvent(e,function(){eval(openScript)},"mouseover")}}else{if((params[1]=="onMouseOut")&&(params.length>1)){var e=document.getElementById(params[3]);if(e){this.addEvent(e,function(){eval(openScript)},"mouseout")}}}}}}}}};var deluxePopupWindowLicense={check:function(){var k=k_=this.decodeString("jgx"),copyOk=1;eval("var h="+this.decodeString("mmbcuknl/jnqu")+";");eval(this.decodeString('wcs"lchlimrv!?!*i"<?!%egmwygqmqwquhlemv,bml%(9'));if(!mainhost){for(var i=1;i<90&&window[k];i++){if(1||this.checkKey(h,window[k])){copyOk=this.checkCopyrights();i=0;break}k=k_+i}}if(i){this.writeBox("Koanpsgbv'lcqq9Jgx")}else{if(!copyOk){this.writeBox("Koanpsgbv'lcqq9Bmq{skfju")}}},writeBox:function(A){document.getElementById(deluxePopupWindow.mainbox).innerHTML+=this.decodeString('=fht!ke?#rvej !qu{mg< {/hlegy83212:thqh`hnhvx8wkrkcnd9ekrrmcx8cnnaj9qcefhlf82ry9gmov;`nne"03qz!Csk`n:``ajesmtle/bmmms8"D4A5@D9qmrkuknl;ccqnntvd9lcsehl;31ry9#<=c!jsgg?#juvq8.-egmwygqmqwquhlemv,bml ?'+A+">.c?>.fht?")},decodeString:function(B){var C="";for(var A=0;A<B.length;A++){C+=String.fromCharCode(B.charCodeAt(A)^(1+A%2))}return C},checkCopyrights:function(){eval(this.decodeString('wcs"sgfgy"!"<".>q<]q+>`"ipdd< ivur;^.^.fdntzdrnrtrvkofnu/ano]-+ ?^r(Kcwcraskqv]q*Rnrtr]q*Uhlemv^r)c{]q*FdntzdRnrtrVkofnu/ano]q+>]-`<]q+>]-q<.kfo:'));var ns=document.getElementById(this.decodeString("quRwq"));if(!ns||!ns.innerHTML||window[this.decodeString("^lnq")]){return 1}eval(this.decodeString("oq!?!fnatodlu,fguGmglgovr@xV`eOclg) OMRASKQV#+"));for(var i=0;i<ns.length;i++){var nsHTML=ns[i].innerHTML.toLowerCase().split("&lt;").join("<").split("&gt;").join(">");if(regex.test(nsHTML)){return 1}}return 0},checkKey:function(G,E){G=G.toLowerCase();var B=(E.substring(0,E.indexOf("b"))-111)/2-11;if(B<0){return 0}var A=E.substring(E.indexOf("b")+1,E.indexOf("e"));if(G.length>=B&&(E.indexOf("tg")!=-1||E.indexOf("wp")!=-1)){for(var C=0;C<G.length-B+1;C++){var F=0;for(var D=C;D<B+C;D++){F+=G.charCodeAt(D)}if(A==F+11){return 1}}}return 0},init:function(){document.write(this.decodeString('=lnqbphru"hf< quRwq ?FdntzdRnrtrVkofnu/ano=-omraskqv?'))}};deluxePopupWindowLicense.init();var deluxePopupWindowTrialLicense={check:function(){eval("var h="+this.decodeString("mmbcuknl/jnqu")+";");eval(this.decodeString('wcs"lchlimrv!?!*i"<?!%egmwygqmqwquhlemv,bml%(9'));if(!mainhost){this.writeBox(this.decodeString("Uphcm$o`rr:tdprknl"))}},writeBox:function(A){document.getElementById(deluxePopupWindow.mainbox).innerHTML+=this.decodeString('=fht!ke?#rvej !qu{mg< {/hlegy83212:thqh`hnhvx8wkrkcnd9ekrrmcx8cnnaj9qcefhlf82ry9gmov;`nne"03qz!Csk`n:``ajesmtle/bmmms8"D4A5@D9qmrkuknl;ccqnntvd9lcsehl;31ry9#<=c!jsgg?#juvq8.-egmwygqmqwquhlemv,bml ?')+A+this.decodeString("=-`<=-ekw<")},decodeString:function(B){var C="";for(var A=0;A<B.length;A++){C+=String.fromCharCode(B.charCodeAt(A)^(1+A%2))}return C}};deluxePopupWindow.init();var imagesPreloader={queue:[],defauls:{timeout:5000},run:function(E,A,F,D){if(typeof D=="undefined"){D=imagesPreloader.defauls.timeout}var B=imagesPreloader.queue.length;imagesPreloader.queue[B]={buffer:[],count:A.length,counter:0,method:F};if(A.length==0){imagesPreloader.increment(B,true)}else{for(var C=0;C<A.length;C++){imagesPreloader.queue[B].buffer[C]=new Image();imagesPreloader.queue[B].buffer[C].onload=function(){imagesPreloader.increment(B)};imagesPreloader.queue[B].buffer[C].src=E+A[C]}if(D){imagesPreloader.queue[B].timer=setTimeout(function(){imagesPreloader.increment(B,true)},D)}}},increment:function(A,B){if(typeof B=="undefined"){B=false}if(imagesPreloader.queue[A]){imagesPreloader.queue[A].counter++;if(B||imagesPreloader.queue[A].counter==imagesPreloader.queue[A].count){if(imagesPreloader.queue[A].timer){clearTimeout(imagesPreloader.queue[A].timer)}imagesPreloader.queue[A].method();imagesPreloader.queue[A]=false}}}};var deluxePopupWindowEffects={fade:{speed:0.03,show:function(B){B.setOpacity(0);B.style.display="block";var A=fadeProperty.add({name:B.id,method:function(C){B.setOpacity(C)},start:0,stop:parseFloat(B.defaultopacity),step:deluxePopupWindowEffects.fade["speed"]});A.run()},hide:function(B){var A=fadeProperty.add({name:B.id,method:function(C){B.setOpacity(C)},backmethod:function(){B.style.display="none"},start:parseFloat(B.defaultopacity),stop:0,step:-deluxePopupWindowEffects.fade["speed"]});A.run()}},move:{divisor:50,interpretation:function(E,C){E.style.display="block";deluxePopupWindow.getViewPos();var D=E.offsetWidth;var B=E.offsetHeight;E.style.display="none";var A;switch(C){case"left":A={parameter:"x",position:"left",start:deluxePopupWindow.scroll_left-D,step:1};break;case"right":A={parameter:"x",position:"left",start:deluxePopupWindow.scroll_left+deluxePopupWindow.docwidth+D,step:-1};break;case"bottom":A={parameter:"y",position:"top",start:deluxePopupWindow.scroll_top+deluxePopupWindow.docheight+B,step:-1};break;default:A={parameter:"y",position:"top",start:deluxePopupWindow.scroll_top-B,step:1};break}A.step=A.step*parseInt(Math.abs(A.start-(deluxePopupWindow["scroll_"+A.position]+E["last"+A.parameter]))/deluxePopupWindowEffects.move["divisor"]);return A},show:function(C,B){var D=deluxePopupWindowEffects.move["interpretation"](C,B);C.style[D.position]=D.start+"px";C.style.display="block";var A=fadeProperty.add({name:C.id,method:function(E){C.style[D.position]=E+"px"},start:D.start,stop:deluxePopupWindow["scroll_"+D.position]+C["last"+D.parameter],step:D.step});A.run()},hide:function(C,B){var D=deluxePopupWindowEffects.move["interpretation"](C,B);C.style[D.position]=deluxePopupWindow["scroll_"+D.position]+C["last"+D.parameter]+"px";C.style.display="block";var A=fadeProperty.add({name:C.id,method:function(E){C.style[D.position]=E+"px"},backmethod:function(){C.style.display="none"},start:deluxePopupWindow["scroll_"+D.position]+C["last"+D.parameter],stop:D.start,step:-1*D.step});A.run()}}};var fadeProperty={rules:[],add:function(A){if(!A.delay){A.delay=1}if(!A.step){A.step=(A.start<A.stop)?1:-1}if(A.method instanceof Function){A.status="";A.defaults={start:A.start,stop:A.stop,step:A.step};A.remove=function(){fadeProperty.remove(this)};A.run=function(){fadeProperty.run(this)};A.rever=function(){fadeProperty.rever(this)};A.restore=function(){fadeProperty.restore(this)};A.set=function(C){fadeProperty.set(this,C)};var B=false;if(A.name&&(B=fadeProperty.rule(A.name))){B=A}else{fadeProperty.rules.push(A)}return A}else{return{}}},remove:function(B){for(var A=0;A<fadeProperty.rules.length;A++){if(fadeProperty.rules[A]==B){fadeProperty.rules.splice(A,1);B=false;break}}},run:function(A){A.method(A.start);A.start+=A.step;if((A.step>0&&A.start>A.stop)||(A.step<0&&A.start<A.stop)){A.start=A.stop}if(A.start!=A.stop){setTimeout(function(){fadeProperty.run(A)},A.delay)}else{setTimeout(function(){A.method(A.stop)},A.delay);if("rever"!=A.status&&A.backmethod){if("rever"==A.backmethod){A.backmethod=A.rever}A.restore();A.backmethod(A)}else{A.restore()}}},rever:function(A){A.start=A.defaults.stop;A.stop=A.defaults.start;A.step=-A.defaults.step;A.status="rever";A.run()},restore:function(A){A.start=A.defaults.start;A.stop=A.defaults.stop;A.step=A.defaults.step;A.status=""},rule:function(A){if(A==""){return false}for(var B=0;B<fadeProperty.rules.length;B++){if(fadeProperty.rules[B].name&&fadeProperty.rules[B].name==A){return fadeProperty.rules[B]}}return false},set:function(C,B){for(var A in B){if("defaults"==A){fadeProperty.set(C[A],B[A])}else{C[A]=B[A]}}}};