if(!navigator.userAgent.match(/(^|\W)(Opera)\/(\d+)(\.\d+)?/)){document.write('<style type="text/css" media="all"><!--\n\r.resized, .resized-div, .attach_me, .attach_parent, .hoverbox { cursor: url("styles/abbcode/zoomin.cur"), pointer; }\n\r--></style>')}if(ImageResizerMode=="AdvancedBox"){var AdvancedBox=new function(){var n=(window.navigator.userAgent.match(/(^|\W)(MSIE)\s+(\d+)(\.\d+)?/))?true:false;var m=true;var l;var e=6;var j=6;var r=10;var b=60;var h=20;var q=4;var p=null;var k,a=0;var f=false;var g=0;var d=0;var o=5;var c=new Array();Start=function(s){if(!$ID("AB-BackGround")){Create()}ElementShow("AB-BackGround");ElementShow("AB-LoadingLink");f=false;p=new Image();p.src=url_clean(s);g=0;var t=window.setInterval(function(){g++;if(g==120){window.clearInterval(t);Close()}if(!p.readyState=="complete"||!p.complete){if(p.width>100){window.clearInterval(t);Prepare(p,f)}}else{window.clearInterval(t);Prepare(p,f)}},10);return false},Create=function(){var D=new Array("advancedbox_blank.gif","advancedbox_icon_close.gif","advancedbox_icon_zoom.gif","advancedbox_icon_next.gif","advancedbox_icon_prev.gif","advancedbox_icon_play.gif","advancedbox_icon_pause.gif","advancedbox_icon_loading.gif");var t=new Image();for(i=0,pi=D.length;i<pi;i++){t.src="./styles/abbcode/"+D[i]}var C=document.getElementsByTagName("body").item(0);var x=document.createElement("div");x.setAttribute("id","AB-BackGround");if(n){x.style.filter="alpha(opacity:"+b+")"}else{x.style.KHTMLOpacity=x.style.MozOpacity=x.style.opacity=(b/100)}C.appendChild(x);var s=document.createElement("div");s.setAttribute("id","AB-Overlay");s.style.display="none";C.appendChild(s);var E=document.createElement("div");E.setAttribute("id","AB-OuterContainer");s.appendChild(E);var A=document.createElement("div");A.setAttribute("id","AB-ImageContainer");E.appendChild(A);var F=document.createElement("span");F.setAttribute("id","AB-ImageName2");F.className="resized-txt";var w=document.createTextNode("");F.appendChild(w);E.appendChild(F);var v=document.createElement("img");v.setAttribute("id","AB-Image");v.setAttribute("src",ImageResizerBlankImage);v.onclick=function(){Close();return false};A.appendChild(v);var B=document.createElement("div");B.setAttribute("id","AB-ToolBar");E.appendChild(B);var F=document.createElement("span");F.setAttribute("id","AB-ImageName1");F.className="resized-txt";var w=document.createTextNode("");F.appendChild(w);B.appendChild(F);var H=document.createElement("a");H.setAttribute("id","AB-CloserLink");H.alt=H.title=ImageResizerCloseAlt;H.onclick=function(){Close();return false};B.appendChild(H);var J=document.createElement("a");J.setAttribute("id","AB-ZoomLink");J.onclick=function(){Prepare(p,true);return false};B.appendChild(J);var G=document.createElement("a");G.setAttribute("id","AB-PrevLink");G.alt=G.title=ImageResizerPrevtAlt;B.appendChild(G);var I=document.createElement("a");I.setAttribute("id","AB-NextLink");I.alt=I.title=ImageResizerNextAlt;B.appendChild(I);var u=document.createElement("span");u.setAttribute("id","AB-nOnText");B.appendChild(u);var y=document.createElement("a");y=document.createElement("a");y.setAttribute("id","AB-PlayLink");y.alt=y.title=ImageResizerPlayAlt;y.onclick=function(){Slide_Show("play");return false};B.appendChild(y);var z=document.createElement("a");z.setAttribute("id","AB-LoadingLink");z.alt=z.title=ImageResizerCloseAlt;z.onclick=function(){Close();return false};s.appendChild(z);ElementSetWidth("AB-OuterContainer",250);ElementSetHeight("AB-OuterContainer",250)},Prepare=function(w,s){ImagesHidden();ElementSetSrc("AB-Image",ImageResizerBlankImage);ElementShow("AB-LoadingLink");ElementInVisible("AB-ToolBar");window.onresize=Resize;ScrollFreeze.on();ElementBoxes("hidden");ElementShow("AB-BackGround");ElementShow("AB-Overlay");var u=GetPageSizes();var v=GetPageScroll();k=Math.floor(u.WWidth-(h*2));a=Math.floor(u.WHeight-((h*2)+ElementGetHeight("AB-ToolBar")));ElementSetTop("AB-ToolBar",((ElementGetHeight("AB-ToolBar")+q)*-1));ElementSetLeft("AB-ToolBar",(q*-1));ElementSetHeight("AB-BackGround",u.PHeight);ElementSetTop("AB-Overlay",(v.YScroll+(h/2)));ElementSetHeight("AB-Overlay",(u.WHeight-(h*2)));FxFade("AB-Image",100,0,e);f=s;if(!f){var t=scale_dims(w.width,w.height,k,a)}else{var t={W:((w.width>k)?(ElementGetWidth("AB-Overlay")-h):w.width),H:((w.height>a)?(ElementGetHeight("AB-Overlay")-q):w.height)}}ElementSetHeight("AB-ImageContainer",t.H);ElementSetTop("AB-OuterContainer",(((ElementGetHeight("AB-Overlay")-ElementGetHeight("AB-OuterContainer"))/2)+ElementGetHeight("AB-ToolBar")));BoxScale("AB-OuterContainer",t.W,t.H,UpdateImage)},UpdateImage=function(){if(f){$ID("AB-ImageContainer").style.overflow="auto";$ID("AB-ImageContainer").scrollLeft=0;$ID("AB-ImageContainer").scrollTop=0;$ID("AB-ZoomLink").alt=$ID("AB-ZoomLink").title=ImageResizerZoomOutAlt;$ID("AB-ZoomLink").onclick=function(){Prepare(p,false);return false};var s={W:p.width,H:p.height}}else{if(p.width<k&&p.height<a){ElementDisabled("AB-ZoomLink")}else{ElementEnabled("AB-ZoomLink")}$ID("AB-ImageContainer").style.overflow="";$ID("AB-ZoomLink").alt=$ID("AB-ZoomLink").title=ImageResizerZoomInAlt.replace(/%1\$s/,p.width).replace(/%2\$s/,p.height);$ID("AB-ZoomLink").onclick=function(){Prepare(p,true);return false};var s=scale_dims(p.width,p.height,k,a)}ElementVisible("AB-Image");ElementSetSrc("AB-Image",p.src);ElementSetWidth("AB-Image",s.W);ElementSetHeight("AB-Image",s.H);FxFade("AB-Image",0,100,j);Slide_Show();var t=p.src.substring(p.src.lastIndexOf("/")+1);if(s.W>300){$ID("AB-ImageName1").firstChild.nodeValue=(p.src.toLowerCase().match(/(^|\s)jpeg|jpg|gif|bmp|png|psd(\s|$ID)/)?unescape(p.src.substring(p.src.lastIndexOf("/")+1)):"")}else{$ID("AB-ImageName2").firstChild.nodeValue=(p.src.toLowerCase().match(/(^|\s)jpeg|jpg|gif|bmp|png|psd(\s|$ID)/)?unescape(p.src.substring(p.src.lastIndexOf("/")+1)):"")}ElementSetWidth("AB-ToolBar",ElementGetWidth("AB-OuterContainer"));ElementVisible("AB-ToolBar");ElementHide("AB-LoadingLink")},Slide_Show=function(z,u){$ID("AB-ImageName1").firstChild.nodeValue="";$ID("AB-ImageName2").firstChild.nodeValue="";ElementDisabled("AB-PrevLink");ElementDisabled("AB-NextLink");var t=($ID("AB-PlayLink")?"AB-PlayLink":"AB-PauseLink");var x=contains(url_clean(p.src),c);if(x[0]){var y=x[1];var A=c.length;var s=c[y-1];var v=c[y+1];if(y-1>=0){ElementEnabled("AB-PrevLink");$ID("AB-PrevLink").onclick=function(){Start(s);return false}}if(y+1<A){ElementEnabled("AB-NextLink");$ID("AB-NextLink").onclick=function(){Start(v);return false}}if(A<=1){ElementDisabled(t)}ElementSetInnerHTML("AB-nOnText",ImageResizerNumberOf.replace(/%1\$s/,y+1).replace(/%2\$s/,A));if(z&&typeof(z)!="undefined"){if(!u&&y+1==A){u=1;PlayNext=c[0]}else{u=y+1;PlayNext=v}if(z=="play"&&u<A){$ID(t).setAttribute("id","AB-PauseLink");$ID("AB-PauseLink").onclick=function(){Slide_Show("pause");return false};$ID("AB-PauseLink").alt=$ID("AB-PauseLink").title=ImageResizerPauseAlt;Start(PlayNext);var w=(o+(m?e:0))*1000;d=window.setTimeout(function(){Slide_Show("play",u)},w)}else{$ID(t).setAttribute("id","AB-PlayLink");$ID("AB-PlayLink").onclick=function(){Slide_Show("play");return false};$ID("AB-PlayLink").alt=$ID("AB-PlayLink").title=ImageResizerPlayAlt;window.clearTimeout(d)}}}},Resize=function(s){Close();ElementShow("AB-Overlay");ElementShow("AB-BackGround");Prepare(p,f)},Close=function(t){ImagesVisible();ScrollFreeze.off();window.onresize=null;window.clearTimeout(d);var s=($ID("AB-PlayLink")?"AB-PlayLink":"AB-PauseLink");$ID(s).setAttribute("id","AB-PlayLink");ElementBoxes("visible");ElementSetSrc("AB-ImageContainer",ImageResizerBlankImage);ElementHide("AB-LoadingLink");ElementHide("AB-Overlay");ElementHide("AB-BackGround")},$ID=function(s){return document.getElementById(s)},ElementHide=function(s){$ID(s).style.display="none"},ElementShow=function(s){$ID(s).style.display=""},ElementVisible=function(s){$ID(s).style.visibility="visible"},ElementInVisible=function(s){$ID(s).style.visibility="hidden"},ElementGetWidth=function(s){return $ID(s).offsetWidth},ElementSetWidth=function(t,s){$ID(t).style.width=s+"px"},ElementGetHeight=function(s){return $ID(s).offsetHeight},ElementSetHeight=function(s,t){$ID(s).style.height=t+"px"},ElementSetTop=function(s,u){$ID(s).style.top=u+"px"},ElementSetLeft=function(t,s){$ID(t).style.left=s+"px"},ElementSetSrc=function(s,t){$ID(s).src=t},ElementOpacity=function(s,t){if(window.ActiveXObject){$ID(s).style.filter="alpha(opacity="+t+")"}else{$ID(s).style.opacity=$ID(s).style.MozOpacity=$ID(s).style.KhtmlOpacity=t/100}},ElementSetInnerHTML=function(s,t){$ID(s).innerHTML=t},ElementBoxes=function(s){if(s!="visible"){s="hidden"}if(n){for(var u=0;u<document.forms.length;u++){for(var v=0;v<document.forms[u].length;v++){if(document.forms[u].elements[v].options){document.forms[u].elements[v].style.visibility=s}}}}var w=document.getElementsByTagName("object");for(var t=0;t<w.length;t++){w[t].style.visibility=s}},ElementDisabled=function(s){$ID(s).className=($ID(s).className?$ID(s).className+" ":"")+"disabled";ElementOpacity($ID(s).id,b);$ID(s).onclick=function(){}},ElementEnabled=function(s){$ID(s).className=$ID(s).className.replace(/disabled/g,"");ElementOpacity($ID(s).id,100)},ImagesHidden=function(){var u=document.images;for(var s=0;s<u.length;s++){for(var t=0;t<c.length;t++){if(url_clean(u[s].src)==url_clean(c[t])){document.images[s].style.visibility="hidden"}}}},ImagesVisible=function(){var u=document.images;for(var s=0;s<u.length;s++){for(var t=0;t<c.length;t++){if(url_clean(u[s].src)==url_clean(c[t])){document.images[s].style.visibility="visible"}}}},scale_dims=function(t,w,v,s){var x=scale_rate(t,w,v,s);var u=Math.round(x*t);new_h=Math.round(x*w);if(u<1){u=1}if(new_h<1){new_h=1}return{W:u,H:new_h}},scale_rate=function(t,v,u,s){var x=0;var y=0;if(t>u){x=(t-u)/t}if(v>s){y=(v-s)/v}var w=(x>y)?x:y;return(1-w)},BoxScale=function(v,w,u,x){if(!m){ElementSetWidth(v,w);ElementSetHeight(v,u);ElementSetTop(v,(((ElementGetHeight("AB-Overlay")-ElementGetHeight(v))/2)+ElementGetHeight("AB-ToolBar")))}var t=$ID(v);var s=parseInt(parseFloat(0+t.style.width));var w=parseInt(parseFloat(0+w));var y=parseInt(parseFloat(0+t.style.height));var u=parseInt(parseFloat(0+u));DoChangeW(t,s,w,y,u,r,100,0.333,x)},DoChangeW=function(v,w,s,B,t,z,x,y,A){if(v.widthChangeMemInt){window.clearInterval(v.widthChangeMemInt)}var u=0;v.widthChangeMemInt=window.setInterval(function(){v.currentWidth=EaseInOut(w,s,z,u,y);ElementSetWidth(v.id,v.currentWidth);u++;if(u>z){window.clearInterval(v.widthChangeMemInt);DoChangeH(v,w,s,B,t,z,x,y,A)}},x)},DoChangeH=function(v,w,s,B,t,z,x,y,A){if(v.widthChangeMemInt){window.clearInterval(v.widthChangeMemInt)}var u=0;v.widthChangeMemInt=window.setInterval(function(){v.currentHeight=EaseInOut(B,t,z,u,y);ElementSetHeight(v.id,v.currentHeight);v.currentTop=(((ElementGetHeight("AB-Overlay")-ElementGetHeight(v.id))/2)+ElementGetHeight("AB-ToolBar"));ElementSetTop(v.id,v.currentTop);u++;if(u>z){window.clearInterval(v.widthChangeMemInt);if(typeof A=="function"){A()}}},x)},EaseInOut=function(t,w,y,s,u){var x=parseInt(w)-parseInt(t);var v=t+(Math.pow(((1/y)*s),u)*x);return Math.ceil(v)},FxFade=function(t,w,s,u,v){window.clearInterval(l);l=window.setInterval(function(){w=Findend(w,s,u);if(!m){if(w=0){ElementInVisible(t)}else{ElementVisible(t)}w=s}else{ElementOpacity(t,w)}if(w==s){if(s==0){ElementSetWidth("AB-Image",1);ElementSetHeight("AB-Image",1)}window.clearInterval(l);if(typeof v=="function"){v()}}},1)},Findend=function(s,u,t){return s<u?Math.min(s+t*10,u):Math.max(s-t*10,u)},Pause=function(t){var s=new Date();var u=s.getTime()+t;while(true){s=new Date();if(s.getTime()>u){return}}};GetPageSizes=function(){var w,v;if(window.innerHeight&&window.scrollMaxY){w=document.body.scrollWidth;v=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){w=document.body.scrollWidth;v=document.body.scrollHeight}else{w=document.body.offsetWidth;v=document.body.offsetHeight}}var t,x;if(self.innerHeight){t=self.innerWidth;x=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){t=document.documentElement.clientWidth;x=document.documentElement.clientHeight}else{if(document.body){t=document.body.clientWidth;x=document.body.clientHeight}}}var u,s;if(v<x){u=x}else{u=v}if(w<t){s=t}else{s=w}return{PWidth:s,PHeight:u,WWidth:t,WHeight:x,XScroll:w,XScroll:v}},GetPageScroll=function(){var s;if(self.pageYOffset){s=self.pageYOffset;xScroll=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){s=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft}else{if(document.body){s=document.body.scrollTop;xScroll=document.body.scrollLeft}}}return{YScroll:s,XScroll:xScroll}},this.SlideShows=c;this.Start=Start};ScrollFreeze={propFlag:true,Ydisp:0,Xdisp:0,on:function(){if(this.getProp()){window.onscroll=function(){ScrollFreeze.setXY()}}},off:function(){window.onscroll=null},getProp:function(){if(typeof window.pageYOffset!="undefined"){this.Ydisp=window.pageYOffset;this.Xdisp=window.pageXOffset}else{if(document.documentElement){this.Ydisp=document.documentElement.scrollTop;this.Xdisp=document.documentElement.scrollLeft}else{if(document.body&&typeof document.body.scrollTop!="undefined"){this.Ydisp=document.body.scrollTop;this.Xdisp=document.body.scrollLeft}else{this.propFlag=false}}}return this.propFlag},setXY:function(){window.scrollTo(this.Xdisp,this.Ydisp)}}}function ArrayPush(a,c){c=url_clean(c);var b=contains(c,a);if(!b[0]){a.push(c)}}if(typeof Array.prototype.push==" undefined"){Array.prototype.push=function(a){this[this.length]=a}}function find_in_galleryset(a,c){for(var b=0;b<a.length;++b){if(a[b].url==c||a[b].content==c){return b+1}}return -1}function contains(c,b){for(var d=0;d<b.length;d++){if(b[d]==c){return new Array(true,d)}}return new Array(false,0)}function url_clean(a){a=decodeURIComponent(a.toString().replace(/\s/g," "));if(a.indexOf("download")!=-1){var b=a.substring(0,a.indexOf("?"));var c=a.substring(a.indexOf("id"));var d=c.substring(c.indexOf("id"),c.indexOf("&"));a=b+"?"+(d?d:c)}return a}var ImageResizerMaxWidth,ImageResizerMaxHeight=0;function ImageResizerOn(e){var f="image_"+Math.floor(Math.random()*(100));var g=e.width;var b=e.height;var c=0;if(e.width>ImageResizerMaxWidth&&ImageResizerMaxWidth>0&&e.width>0){e.width=ImageResizerMaxWidth;e.height=(ImageResizerMaxWidth/g)*b;c=Math.ceil(parseInt(e.width/g*100))}if(e.height>ImageResizerMaxHeight&&ImageResizerMaxHeight>0&&e.height>0){e.height=ImageResizerMaxHeight;e.width=(ImageResizerMaxHeight/b)*g;c=Math.ceil(parseInt(e.height/b*100))}if(!ImageResizerUseBar){if(e.fileSize&&e.fileSize>0){e.alt=e.title=ImageResizerWarningFilesize.replace("%1$s",g).replace("%2$s",b).replace("%3$s",Math.round(e.fileSize/1024))}else{e.alt=e.title=ImageResizerWarningNoFilesize.replace("%1$s",g).replace("%2$s",b)}e.className=e.className+" resized";e.onclick=function(){ImageResizeronclick(e,f);return false};if(ImageResizerMode=="HighslideBox"){if(e.className=="attach_parent"){e.onclick=function(){return hs.expand(e.parentNode,{src:e.parentNode.href})}}else{e.onclick=function(){return hs.expand(e,{src:e.src})}}}}else{var j=document.createElement("div");j.setAttribute("id",f);j.className="resized-div";j.style.width=e.width+"px";if(e.parentNode.style.textAlign=="right"){j.style.marginLeft="auto"}if(e.fileSize&&e.fileSize>0){j.alt=j.title=ImageResizerWarningFilesize.replace("%1$s",g).replace("%2$s",b).replace("%3$s",Math.round(e.fileSize/1024))}else{j.alt=j.title=ImageResizerWarningNoFilesize.replace("%1$s",g).replace("%2$s",b)}var d=document.createElement("img");d.src=ImageResizerWarningImage;d.width=16;d.height=16;d.alt="";d.border=0;var a=document.createElement("span");a.className="resized-txt";var h=document.createTextNode("");if(e.width<=250){h.data=ImageResizerWarningSmall}else{h.data=ImageResizerWarningFullsize.replace("%1$s",c).replace("%2$s",g).replace("%3$s",b)}j.appendChild(d);a.appendChild(h);j.appendChild(a);e.parentNode.insertBefore(j,e);j.onclick=function(){ImageResizeronclick(e,f);return false};if(ImageResizerMode=="HighslideBox"){if(e.className=="attach_parent"){e.onclick=function(){return hs.expand(e.parentNode,{src:e.parentNode.href})}}else{e.onclick=function(){return hs.expand(e,{src:e.src})}}}}if(ImageResizerMode=="AdvancedBox"){ArrayPush(AdvancedBox.SlideShows,e.src)}if(ImageResizerMode=="LiteBox"){myLightbox.imageArray.push([e.src,e.title])}if(ImageResizerMode=="GreyBox"){e.setAttribute("rel","gb_imageset[gallery]");if(e.className=="attach_parent"){gb_imageset.push({caption:e.parentNode.src,url:e.parentNode.src})}else{gb_imageset.push({caption:e.src,url:e.src})}}if(ImageResizerMode=="Lightview"){e.setAttribute("rel","set[myset]")}if(ImageResizerMode=="Ibox"){e.setAttribute("rel","IBGallery");if(e.className=="attach_parent"){ib_imageset.push({player:"img",content:e.parentNode.src,gallery:"IBGallery"})}else{ib_imageset.push({player:"img",content:e.src,gallery:"IBGallery"})}}}function ImageResizeronclick(e,c){switch(ImageResizerMode){case"AdvancedBox":if(e.className=="attach_parent"){AdvancedBox.Start(e.parentNode.href)}else{AdvancedBox.Start(e.src)}break;case"HighslideBox":if(e.className=="attach_parent"){return hs.expand(e.parentNode,{src:e.parentNode.href})}else{return hs.expand(e,{src:e.src})}break;case"LiteBox":if(e.className=="attach_parent"){myLightbox.start(e.parentNode)}else{myLightbox.start(e)}break;case"GreyBox":if(e.className=="attach_parent"){var d=find_in_galleryset(gb_imageset,e.parentNode.href);return GB_showImageSet(gb_imageset,(d)?d:1)}else{var d=find_in_galleryset(gb_imageset,e.src);return GB_showImageSet(gb_imageset,(d)?d:1)}break;case"Lightview":if(e.className=="attach_parent"){Lightview.show({href:e.parentNode.href,rel:"image",options:{width:800,height:600}})}else{Lightview.show({href:e.src,rel:"image",options:{width:800,height:600}})}break;case"Ibox":if(e.className=="attach_parent"){var d=find_in_galleryset(ib_imageset,e.parentNode.href);Shadowbox.open(ib_imageset,{current:(d)?d:1,gallery:"IBGallery",continuous:true,autoplay:true})}else{var d=find_in_galleryset(ib_imageset,e.src);Shadowbox.open(ib_imageset,{current:(d)?d:1,gallery:"IBGallery",continuous:true,autoplay:true})}break;case"PopBox":if(e.className=="attach_parent"){PopEx(e,null,null,0,0,50,"PopBoxImageLarge")}else{PopEx(e,null,null,0,0,50,"PopBoxImageLarge")}break;case"pop-up":var f=(e.className=="attach_parent")?e.parentNode.href:e.src;var g=(e.width+30);var b=(e.height+30);popup(f,g,b);break;case"enlarge":var a=document.getElementById(c);if(!ImageResizerUseBar){if(e.className=="attach_parent"){ImgOnLoad_scale(a,e,e.parentNode.href,e.width,e.height)}else{ImgOnLoad_scale(e,e,e.src,e.width,e.height)}}else{if(e.className=="attach_parent"){ImgOnLoad_scale(a,e,e.parentNode.href,e.width,e.height)}else{ImgOnLoad_scale(a,e,e.src,e.width,e.height)}}break;case"samewindow":if(e.className=="attach_parent"){window.open(e.parentNode.href,"_self")}else{window.open(e.src,"_self")}break;default:case"newwindow":if(e.className=="attach_parent"){window.open(e.parentNode.href,"_blank")}else{window.open(e.src,"_blank")}break}return false}if(ImageResizerMode=="GreyBox"){var gb_imageset=new Array()}if(ImageResizerMode=="Ibox"){var ib_imageset=new Array()}function ImgOnLoad(){if(ImageResizerMode=="LiteBox"){myLightbox=new Lightbox()}if(ImageResizerMode=="Ibox"){Shadowbox.init({skipSetup:true,players:["img"]})}var k=(ImageResizerSignature==1)?false:true;var j=true;var o=true;var h=false;if(k||(ImageResizerMaxWidth_sig>0||ImageResizerMaxHeight_sig>0)){var r=new Array();var g=[].slice.call(getElementsByClassName("signature","div")).concat([].slice.call(getElementsByClassName("postbody","span")));for(var m=0,n=g.length;m<n;m++){if(g[m].id){var c=getElementsByClassName("resize_me","img",document.getElementById(g[m].id));for(var f=0,b=c.length;f<b;f++){r.push(c[f].src)}}}}var s=post_attach_ary=posted_images_ary=new Array();s=MyGetElementsByClassName("resize_me|attach_me|attach_parent");for(var f=0,a=s.length;f<a;f++){posted_images_ary.push(s[f])}for(var l=0;l<posted_images_ary.length;l++){var q=false;var p=true;var d=posted_images_ary[l];ImageResizerMaxWidth=ImageResizerMaxWidth_post;ImageResizerMaxHeight=ImageResizerMaxHeight_post;if(k&&r.length>0){if(contains(d.src,r)[0]){continue}}else{if(!k&&r.length>0){if(contains(d.src,r)[0]){ImageResizerMaxWidth=ImageResizerMaxWidth_sig;ImageResizerMaxHeight=ImageResizerMaxHeight_sig}}}if((ImageResizerMaxWidth>0&&d.width>ImageResizerMaxWidth)||(ImageResizerMaxHeight>0&&d.height>ImageResizerMaxHeight)){q=true;if(d.className=="hoverbox resize_me"){q=(j?false:true)}if(d.className=="attach_parent"){q=(o?false:true)}if(d.className=="attach_me"){q=(h?false:true)}}switch(d.className){default:break;case"hoverbox resize_me":switch(ImageResizerMode){case"AdvancedBox":d.onclick=function(){AdvancedBox.Start(this.src);return false};ArrayPush(AdvancedBox.SlideShows,d.src);break;case"HighslideBox":d.className=d.className+" highslide";d.onclick=function(){return hs.expand(this,{src:this.src})};break;case"LiteBox":myLightbox.imageArray.push([d.src,d.title]);d.onclick=function(){myLightbox.start(this)};break;case"GreyBox":d.setAttribute("rel","gb_imageset[gallery]");gb_imageset.push({caption:d.src,url:d.src});d.onclick=function(){var e=find_in_galleryset(gb_imageset,this.src);return GB_showImageSet(gb_imageset,(e)?e:1)};break;case"Lightview":d.setAttribute("rel","set[myset]");d.onclick=function(){Lightview.show({href:this.src,rel:"image",options:{width:800,height:600}});return false};break;case"Ibox":d.setAttribute("rel","IBGallery");ib_imageset.push({player:"img",content:d.src,gallery:"IBGallery"});d.onclick=function(){var e=find_in_galleryset(ib_imageset,this.src);Shadowbox.open(ib_imageset,{current:(e)?e:1,gallery:"IBGallery",continuous:true,autoplay:true});return false};break;case"PopBox":d.onclick=function(){Pop(this,50,"PopBoxImageLarge");return false};break;case"pop-up":d.onclick=function(){popup(this.src,this.width,this.height);return false};break;case"enlarge":d.onclick=function(){ImgOnLoad_scale(this,this,this.src,this.width,this.height);return false};break;case"samewindow":d.onclick=function(){window.open(this.src,"_self");return false};break;default:case"newwindow":d.onclick=function(){window.open(this.src,"_blank");return false};break}break;case"attach_parent":d.parentNode.onclick=function(){return false};d.parentNode.href=url_clean(d.parentNode.href);switch(ImageResizerMode){case"AdvancedBox":if(!q){d.onclick=function(){AdvancedBox.Start(this.parentNode.href);return false};ArrayPush(AdvancedBox.SlideShows,d.parentNode.href)}break;case"HighslideBox":if(!q){d.className=d.className+" highslide";d.parentNode.onclick=function(){return hs.expand(this)}}break;case"LiteBox":if(!q){myLightbox.imageArray.push([d.parentNode.href,d.title]);d.parentNode.onclick=function(){myLightbox.start(this);return false}}break;case"GreyBox":if(!q){d.setAttribute("rel","gb_imageset[gallery]");gb_imageset.push({caption:d.src,url:d.parentNode.href});d.parentNode.onclick=function(){var e=find_in_galleryset(gb_imageset,this.href);return GB_showImageSet(gb_imageset,(e)?e:1)}}break;case"Lightview":if(!q){d.setAttribute("rel","set[myset]");d.onclick=function(){Lightview.show({href:this.parentNode.href,rel:"image",options:{width:800,height:600}});return false}}break;case"Ibox":if(!q){d.setAttribute("rel","IBGallery");ib_imageset.push({player:"img",content:d.parentNode.href,gallery:"IBGallery"});d.onclick=function(){var e=find_in_galleryset(ib_imageset,this.parentNode.href);Shadowbox.open(ib_imageset,{current:(e)?e:1,gallery:"IBGallery",continuous:true,autoplay:true});return false}}break;case"PopBox":if(!q){d.setAttribute("pbSrc",d.parentNode.href);d.onclick=function(){Pop(this,50,"PopBoxImageLarge");return false}}break;case"pop-up":if(!q){d.onclick=function(){popup(this.parentNode.href,this.width,this.height);return false}}break;case"enlarge":if(!q){d.onclick=function(){ImgOnLoad_scale(this,this,this.parentNode.href,this.width,this.height);return false}}break;case"samewindow":if(!q){d.onclick=function(){window.open(this.parentNode.href,"_self");return false}}break;default:case"newwindow":if(!q){d.onclick=function(){window.open(this.parentNode.href,"_blank");return false}}break}break;case"attach_me":d.onclick=function(){return false};switch(ImageResizerMode){case"AdvancedBox":if(!q){d.onclick=function(){AdvancedBox.Start(this.src);return false};ArrayPush(AdvancedBox.SlideShows,d.src)}break;case"HighslideBox":if(!q){d.className=d.className+" highslide";d.onclick=function(){return hs.expand(this,{src:this.src})}}break;case"LiteBox":if(!q){myLightbox.imageArray.push([d.src,d.title]);d.onclick=function(){myLightbox.start(this);return false}}break;case"GreyBox":if(!q){d.setAttribute("rel","gb_imageset[gallery]");gb_imageset.push({caption:d.src,url:d.src});d.onclick=function(){var e=find_in_galleryset(gb_imageset,this.src);return GB_showImageSet(gb_imageset,(e)?e:1)}}break;case"Lightview":if(!q){d.setAttribute("rel","set[myset]");d.onclick=function(){Lightview.show({href:this.src,rel:"image",options:{width:800,height:600}});return false}}break;case"Ibox":if(!q){d.setAttribute("rel","IBGallery");ib_imageset.push({player:"img",content:d.src,gallery:"IBGallery"});d.onclick=function(){var e=find_in_galleryset(ib_imageset,this.src);Shadowbox.open(ib_imageset,{current:(e)?e:1,gallery:"IBGallery",continuous:true,autoplay:true});return false}}break;case"PopBox":if(!q){d.setAttribute("pbSrc",d.src);d.onclick=function(){Pop(this,50,"PopBoxImageLarge");return false}}break;case"pop-up":if(!q){ImgOnLoad_unScale(d,d,d.src);d.onclick=function(){popup(this.src,this.width,this.height);return false}}break;case"enlarge":if(!q){ImgOnLoad_unScale(d,d,d.src)}break;case"samewindow":if(!q){ImgOnLoad_unScale(d,d,d.src);d.onclick=function(){window.open(this.src,"_self");return false}}break;default:case"newwindow":if(!q){ImgOnLoad_unScale(d,d,d.src);d.onclick=function(){window.open(this.src,"_blank");return false}}break}}if(q){ImageResizerOn(d)}}return true}function ImgOnLoad_scale(d,g,e,a,b){var c=new Image();c.setAttribute("src",e);Wait_pass=0;var f=window.setInterval(function(){Wait_pass++;if(Wait_pass>=120){window.clearInterval(f);return false}if(c.readyState=="complete"||c.complete){window.clearInterval(f);d.style.width=c.width+"px";g.setAttribute("width",c.width);g.setAttribute("height",c.height);d.onclick=function(){ImgOnLoad_unScale(d,g,e,a,b);return false}}},10)}function ImgOnLoad_unScale(c,e,d,a,b){c.style.width=a+"px";a=(a>0)?a:ImageResizerMaxWidth;b=(b>0)?b:ImageResizerMaxHeight;e.setAttribute("width",a);if(b>0){e.setAttribute("height",b)}else{e.setAttribute("height",a)}c.onclick=function(){ImgOnLoad_scale(c,e,d,a,b);return false}}if(window.onload_functions){onload_functions[onload_functions.length]="ImgOnLoad();"}else{if(typeof(window.addEventListener)!="undefined"){window.addEventListener("load",ImgOnLoad,false)}else{if(typeof(window.attachEvent)!="undefined"){window.attachEvent("onload",ImgOnLoad)}}};
