function AnimatedImage(e,b,d,c,a){this.id=e;this.delay=b;this.info=d;this.images=c;this.trans_option=a;this.pan_easing="";Utilities.onload(this)}AnimatedImage.prototype={onPageLoad:function(){var j,r=this,b,g,m,n,l,d,k,c,q,f=r.info,a=r.images,s=null;g=r.image=document.getElementById(r.id);if(f.thumbs){s=document.getElementById(f.thumbs)}r.div=g.parentNode;r.anchor=r.div.parentNode;c=g.parentNode;if(f instanceof Object){r.path="";for(j in f){r[j]=f[j]}r.cleft=Math.round((r.width=f.width)/2)+"px";r.ctop=Math.round((r.height=f.height)/2)+"px"}else{r.path=f}if(r.paging_div){r.paging_div=document.getElementById(r.paging_div)}k=g.getAttribute("alt");r.imgs=new Array();r.index=r.trans_effect=="flashy"?a.length:0;r.flipping=true;for(var j=0;j<a.length;j++){g=new Image();d=a[j];if(d instanceof Object){b=d.src}else{b=d;d=new Object();d.src=b}d.index=j;g.info=d;if(r.path){b=r.path+(b.substr(0,1)=="/"?"":"/")+b}d.src=g.src=b;if(n=d.width){g.setAttribute("width",n);g.setAttribute("height",l=d.height);g.setAttribute("alt",k);if(r.trans_effect!="jflip"){d.left=g.style.left=(q=Math.max(0,Math.round((r.width-n)/2)))+"px";d.right=(q+n)+"px";d.top=g.style.top=(q=Math.max(0,Math.round((r.height-l)/2)))+"px";d.bottom=(q+l)+"px";g.style.position="absolute"}if(j){g.style.display="none";c.appendChild(g)}else{c.replaceChild(g,r.image);r.image=g}}if(s){s.appendChild(m=document.createElement("div"));m.className=j?"AnimatedImageThumbContainer":"AnimatedImageSelectedThumbContainer";d.thumb=m;m.info=d;m.onclick=function(h){r.click(h)}}d.panorama=(d.width>r.width);d.img=g;r.imgs[j]=d}if(s){m=document.createElement("div");m.className="AnimatedImageThumbEnd";s.appendChild(m)}r.current=r.imgs[0];switch(r.trans_effect){case"flashy":r.flip(null);break;case"jflip":r.imgarray=new Array();r.allLoaded=false;r.checkTimerID=setInterval(function(){r.checkLoaded()},1000);$(r.imgs).each(function(){var e=this.img;r.imgarray.push(e)});r.flip(null);break;default:r.display(r.imgs[0])}},click:function(c){var b=this,d,a=window.event||c;d=a.target?a.target:a.srcElement;if(d&&d.info){if(b.flipTimerID){clearInterval(b.flipTimerID)}b.flipping=false;b.flip(d.info.index)}},checkLoaded:function(){var b=this,a;if(!b.allLoaded){for(a in b.imgs){if(!b.imgs[a].loaded){return}}b.allLoaded=true;b.flip(null)}clearInterval(b.checkTimerID)},start:function(){var a=this;if(!a.image){return}a.flipTimerID=setInterval(function(){a.flip(null)},this.delay)},flip:function(m){var n=this,g,l,c,f,d,j,h,b;if(m===null){g=++n.index;if(g>=n.images.length){g=n.index=0}}else{g=n.index=m}n.last=((g+1)==n.images.length);c=n.imgs[g];if(c.width){c.img.setAttribute("width",c.width);c.img.setAttribute("height",c.height)}b=n.trans_option?n.trans_option:new Object();if(c.panorama){$(n.anchor).css({overflow:"hidden"})}switch(n.trans_effect){case"fade":clearInterval(n.flipTimerID);d=n.trans_time/2;$(n.image).css({opacity:1});$(n.image).animate({opacity:0},d,n.easing,function(){n.image.style.display="none";$(c.img).css({opacity:0,display:"inline"});$(c.img).animate({opacity:1},d,n.easing,function(){n.endTrans(c)})});break;case"fadeover":clearInterval(n.flipTimerID);$(n.image).css({"z-index":2000});$(c.img).css({"z-index":1000,opacity:0,display:"inline"});$(n.image).animate({opacity:0},{queue:false,duration:n.trans_time,easing:n.easing});$(c.img).animate({opacity:1},n.trans_time,n.easing,function(){n.endTrans(c)});break;case"growover":clearInterval(n.flipTimerID);$(n.image).css({"z-index":1000});$(c.img).css({"z-index":2000,display:"inline",width:"0px",height:"0px",left:n.cleft,top:n.ctop});$(c.img).animate({width:c.width,height:c.height,top:c.top,left:c.left},n.trans_time,n.easing,function(){n.endTrans(c)});break;case"flashy":clearInterval(n.flipTimerID);$(n.image).css({display:"none"});if(n.last){l=[n.cleft,n.ctop];j=0.4;h=1}else{l=n.rndSelect([[c.left,c.top],[n.cleft,c.top],[c.right,c.top],[c.left,c.bottom],[n.cleft,c.bottom],[c.right,c.bottom]]);j=1;h=0.4}$(c.img).css({display:"inline",width:"0px",height:"0px",left:l[0],top:l[1],opacity:j});$(c.img).animate({width:c.width,height:c.height,top:c.top,left:c.left,opacity:h},n.trans_time,n.easing,function(){n.endTrans(c)});break;case"explode":case"puff":case"fold":case"clip":l=n.rndSelect(["horizontal","vertical"]);case"drop":case"slide":if(!l){l=n.rndSelect(["left","right","up","down"])}clearInterval(n.flipTimerID);$(n.image).css({"z-index":2000});$(c.img).css({"z-index":1000,display:"inline"});$(n.image).hide(n.trans_effect,jQuery.extend({pieces:25,easing:n.easing,size:n.height/3,direction:l},b),n.trans_time,function(){n.endTrans(c)});break;case"flip":clearInterval(n.flipTimerID);if(n.current.panorama){$(n.image).css({width:n.width,left:n.current.left})}$(n.image).flip(jQuery.extend({easing:n.easing,direction:n.rndSelect(["rl","lr","tb","bt"]),color:n.trans_color,content:$(c.img),onEnd:function(){if(n.current.panorama){$(n.image).css({width:n.current.width})}$(c.img).css({display:"inline"});n.endTrans(c)}},b));break;case"cube":clearInterval(n.flipTimerID);var a=n.width/5;var k=n.width/12;var p=n.width/10;$(n.div).imagecube(jQuery.extend({speed:n.trans_time,easing:n.easing,repeat:n.repeat,pause:n.delay,reduction:a,expansion:k,segments:p,beforeRotate:function(o,i){var q,r;if((q=o.src.indexOf(".cube"))>0){$(o).css({border:"2px solid black"})}if((r=i.src.indexOf(".cube"))>0){$(i).css({border:"2px solid black"})}var e=1},afterRotate:function(i,e){var q=e.info;$(e).css({width:q.width+"px",height:q.height+"px"})}},b));break;case"jflip":clearInterval(n.flipTimerID);$(n.div).jFlip(n.width,n.height,jQuery.extend({background:"#fff",cornersTop:false,curlSize:0.15,circular:false},b),$(n.imgarray)).bind("flip.jflip",function(o,e,i){if(n.paging_div){$(n.paging_div).html($t.paging+" "+(e+1)+" of "+i)}});break;default:if(c.width){f=c.img;n.image.style.display="none";f.style.display="inline";n.image=f}else{n.image.src=c.src}}},endTrans:function(b){var a=this;$(a.image).css({display:"none",left:a.current.left});a.image=b.img;if(a.last&&(!a.repeat||a.trans_effect=="flashy")){return}a.display(b)},display:function(c){var b=this,a;if(a=b.current.thumb){a.className="AnimatedImageThumbContainer"}if(a=c.thumb){a.className="AnimatedImageSelectedThumbContainer"}b.current=c;$(b.anchor).css({overflow:(c.panorama)?"hidden":"visible"});$(c.img).css({left:c.left});if(c.panorama){$(c.img).animate({left:-(c.width-b.width)},b.pan_time,b.pan_easing,function(){if(b.flipping){b.flipTimerID=setInterval(function(){b.flip(null)},b.delay)}})}else{if(b.flipping){b.flipTimerID=setInterval(function(){b.flip(null)},b.delay)}}},rndSelect:function(b){var c=Math.min(Math.floor((Math.random()*b.length)),b.length-1);return b[c]}};Number.prototype.NaN0=function(){return isNaN(this)?0:this};function UtilitiesEngine(){var a=this;var b=navigator.userAgent;a.Opera=window.opera&&opera.buildNumber;a.WebKit=/WebKit/.test(b);a.IE=!this.WebKit&&!this.Opera&&(/MSIE/gi).test(b)&&(/Explorer/gi).test(navigator.appName);a.IE6=this.IE&&/MSIE [56]/.test(b);a.IE7=this.IE&&/MSIE [7]/.test(b);a.IE67=this.IE&&/MSIE [567]/.test(b);a.IE8=this.IE&&/MSIE [8]/.test(b);a.Gecko=!this.WebKit&&/Gecko/.test(b);a.Chrome=a.WebKit&&/Chrome/.test(b);a.Safari=a.WebKit&&!/Chrome/.test(b);a.Mac=b.indexOf("Mac")!=-1;a.Registry=new Array();a.otherOnLoad=window.onload;a.analytics_user=null;if(typeof jQuery!="undefined"){$(document).ready(function(){a.onDocumentReady()})}window.onload=function(){a.onPageLoad()};a.otherOnUnload=window.onunload;window.onunload=function(){a.onPageUnload()};a.otherOnResize=window.onresize;window.onresize=function(){a.onPageResize();a.onPageUpdate()};a.loaded=false}UtilitiesEngine.prototype={onPageUnload:function(){try{if(this.otherOnUnload){this.otherOnUnload()}}catch(c){}finally{for(var a=0;a<this.Registry.length;a++){var b=this.Registry[a];if(b.onPageUnload){try{b.onPageUnload()}catch(c){}}}}},onPageLoad:function(){try{if(this.otherOnLoad){this.otherOnLoad()}}catch(c){}finally{for(var a=0;a<this.Registry.length;a++){var b=this.Registry[a];if(b.onPageLoad){try{b.onPageLoad()}catch(c){}}}this.loaded=true}},onDocumentReady:function(){for(var a=0;a<this.Registry.length;a++){var b=this.Registry[a];if(b.onDocumentReady){try{b.onDocumentReady()}catch(c){}}}},onPageResize:function(){try{if(this.otherOnLoad){this.otherOnLoad()}}catch(c){}finally{for(var a=0;a<this.Registry.length;a++){var b=this.Registry[a];if(b.onPageResize){try{b.onPageResize()}catch(c){}}}}},onload:function(a){if(this.loaded){if(a.onPageLoad){a.onPageLoad()}return}this.Registry.push(a)},register:function(a){this.Registry.push(a)},onPageUpdate:function(){for(var a=0;a<this.Registry.length;a++){var b=this.Registry[a];if(b.onPageUpdate){b.onPageUpdate()}}},doResizeIframe:function(d,c,a){var e,b;e=d.IE?a.offsetHeight:a.scrollHeight;b=d.IE?a.offsetWidth:a.scrollWidth;if(e&&b){c.style.width=b+30+"px";c.style.height=e+30+"px"}},resizeIframe:function(f,c){var d=this,a,b,e;e=d.IE?window.frames[f]:c;a=e.contentDocument?e.contentDocument.body:e.document.body;d.doResizeIframe(d,c,a)},getStyle:function(a,c){if(!a){return null}if(document.defaultView){c=c.replace(/[A-Z]/g,function(d){return"-"+d});try{return document.defaultView.getComputedStyle(a,null).getPropertyValue(c)}catch(b){return null}}c=c.replace(/-(\D)/g,function(e,d){return d.toUpperCase()});if(c=="float"){c=this.IE?"styleFloat":"cssFloat"}if(a.currentStyle){return a.currentStyle[c]}return a.style[c]},getStylePixelValue:function(b,d){var a,c;if(!b){return 0}a=this.getStyle(b,d);c=a.indexOf("px");if(c==-1){return 0}return(parseInt(a)).NaN0()},isContainingBlock:function(a){if(!a){return false}var b=this.getStyle(a,"position");return b!="static"},getAbsPosition:function(f,b,i){var d=0,k=0,j=f,n=!this.IE||document.compatMode=="CSS1Compat",h=this.getStylePixelValue(f,"padding-left"),a=this.getStylePixelValue(f,"padding-right"),o=this.getStylePixelValue(f,"padding-top"),l=this.getStylePixelValue(f,"padding-bottom"),c=this.getStylePixelValue(f,"border-left-width"),m=this.getStylePixelValue(f,"border-top-width");if(this.IE&&false){j=j.getBoundingClientRect();var g=n?document.documentElement:document.body;d=j.left+g.scrollLeft;k=j.top+g.scrollTop;f.absPosition={left:d,top:k,right:parseInt(j.offsetWidth)+d+h+a,bottom:parseInt(j.offsetHeight)+k+o+l};return f.absPosition}while(j){d+=(j.offsetLeft||0)+this.getStylePixelValue(j,"border-left-width");k+=(j.offsetTop||0)+this.getStylePixelValue(j,"border-top-width");j=j.offsetParent;if(!i&&this.isContainingBlock(j)){if(this.IE8||this.Opera){break}d+=this.getStylePixelValue(j,"border-left-width");k+=this.getStylePixelValue(j,"border-top-width");break}}f.absPosition={left:d,top:k,right:parseInt(f.offsetWidth)+d+h+a,bottom:parseInt(f.offsetHeight)+k+o+l};return f.absPosition},openLoginForm:function(c){var a=this,d,b=c.form;if(!c||c.formOpened){return}if(a.openElement){a.closeLoginForm(a.openElement)}a.openElement=c;c.formOpened=true;c.savedValue=c.value;c.value="";c.style.color="#000";for(d=c.parentNode.parentNode;d;d=d.nextSibling){if(d.nodeType!=1){continue}d.style.display="block"}b.style.border="2px solid";b.style.padding="5px";if(Utilities.IE67){b.submit_button.onclick=function(f){if(b.SecureLogin){b.SecureLogin.submit()}else{b.submit()}}}},closeLoginForm:function(b){var a=this,c;if(!(b=a.openElement)){return}a.openElement=null;b.formOpened=false;b.value=b.savedValue;b.style.color="#777";for(c=b.parentNode.parentNode.nextSibling;c;c=c.nextSibling){if(c.nodeType!=1){continue}c.style.display="none"}b.form.style.border="0px";b.form.style.padding="0px"},setupAnalytics:function(a,c){var b=this;$(document).ready(function(){var d=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");$.getScript(d+"google-analytics.com/ga.js",function(){try{var f=window.pageTracker=_gat._getTracker(c);f._setDomainName(a);f._initData();f._trackPageview();if(b.analytics_user){f._setVar(b.analytics_user)}}catch(g){}var e=/\.(zip|exe|pdf|doc*|xls*|ppt*|mp3)$/i;$("a").each(function(){var h=$(this).attr("href");if((h.match(/^https?\:/i))&&(!h.match(document.domain))){$(this).click(function(){var i=h.replace(/^https?\:\/\//i,"");f._trackEvent("External","Click",i)})}else{if(h.match(/^mailto\:/i)){$(this).click(function(){var i=h.replace(/^mailto\:/i,"");f._trackEvent("Email","Click",i)})}else{if(h.match(e)){$(this).click(function(){var j=(/[.]/.exec(h))?/[^.]+$/.exec(h):undefined;var i=h.replace(/^https?\:\/\/(www.)mydomain\.com\//i,"");f._trackEvent("Download","Click - "+j,i)})}}}})})})},setupAnalyticsUser:function(a){this.analytics_user=a},loadJavascript:function(c,b){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("language","javascript");if(b){a.setAttribute("src",b)}else{a.text=c;a.setAttribute("defer","defer")}document.getElementsByTagName("head")[0].appendChild(a)}};Utilities=new UtilitiesEngine();function SizeMatcher(e,d,f,c,b,a,g){this.subjectID=e;this.targetID=d;this.adjustorID=f;this.doHeight=a||!g;this.doWidth=g;this.hOffset=c?c:0;this.wOffset=b?b:0;this.started=false;Utilities.onload(this)}SizeMatcher.prototype={onPageLoad:function(){var b=this,a,d,c;if(b.started){return}b.started=true;if(!(b.subject=document.getElementById(b.subjectID))){return}if(!(b.target=document.getElementById(b.targetID))){return}if(!(b.adjustor=document.getElementById(b.adjustorID))){return}b.doResize();b.interval=window.setInterval(function(){b.doResize()},200)},onDocumentReady:function(){this.onPageLoad()},doResize:function(){var e=this,f,d,c,b,a=e.adjustor;f=Utilities.getAbsPosition(e.subject);d=Utilities.getAbsPosition(e.target);if(e.doHeight&&f.bottom!=(d.bottom+e.hOffset)){b=Math.max(parseInt(a.offsetHeight)+d.bottom-f.bottom+e.hOffset,0);a.style.height=b+"px"}if(e.doWidth&&f.right!=(d.right+e.wOffset)){b=Math.max(parseInt(a.offsetWidth)+d.right-d.top+e.wOffset,0);a.style.width=b+"px"}c=Utilities.getAbsPosition(e.target);if(d.bottom!=c.bottom||d.top!=c.top||d.left!=c.left||d.right!=c.right){window.clearInterval(e.interval)}}};function ShadowBox(a,h,d,e,f,j,g,b,l,k,i){this.id=a;this.color=h;this.bgcolor=d;this.corner=e;this.borderColor=f;this.borderWidth=j;this.shColor=g;this.shOpacity=b;this.shSigma=l;this.shX=k;this.shY=i;Utilities.onload(this)}ShadowBox.prototype={onPageLoad:function(){var a=this;var c=document.getElementById(a.id);var b=a.pad=c.parentNode;if(b.className!="shadowbox_pad"){return}var d=a.cell=b.parentNode;if(d.className=="shadowbox_cell"){while(d&&d.className!="shadowbox_outer"){d=d.parentNode}if(!d){return}}a.outer=d;if(d.className!="shadowbox_outer"){return}a.w=a.h=0;a.doResize();a.interval=window.setInterval(function(){a.doResize()},200)},doResize:function(){var d=this,f=d.pad,a=f.offsetWidth,e=f.offsetHeight,b;if(d.w==a&&d.h==e){return}d.w=a;d.h=e;var c="url(/images/dropimg.php?shadowbox=1&w="+a+"&h="+e;if(b=d.color){c+="&color="+encodeURIComponent(b)}if(b=d.bgcolor){c+="&bgcolor="+encodeURIComponent(b)}if(b=d.corner){c+="&corner="+encodeURIComponent(b)}if(b=d.borderColor){c+="&border_color="+encodeURIComponent(b)}if(b=d.borderWidth){c+="&border_width="+encodeURIComponent(b)}if(b=d.shColor){c+="&shcolor="+encodeURIComponent(b)}if(b=d.shOpacity){c+="&shopacity="+encodeURIComponent(b)}if(b=d.shSigma){c+="&shsigma="+encodeURIComponent(b)}if(b=d.shX){c+="&shx="+encodeURIComponent(b)}if(b=d.shY){c+="&shy="+encodeURIComponent(b)}d.outer.style.backgroundImage=c+")"}};function WarningBlocker(a,b){this.blocker_id=a;this.blocked_id=b;Utilities.onload(this)}WarningBlocker.prototype={onPageLoad:function(){var c=this,a,d,e,b,f;e=document.getElementById(c.blocker_id);b=document.getElementById(c.blocked_id);if(!e||!b){return}a=b.offsetWidth;d=b.offsetHeight;f=Utilities.getAbsPosition(b);e.style.display="block";e.style.left=f.left+"px";e.style.top=f.top+"px";e.style.width=a+"px";e.style.height=d+"px"},onPageUpdate:function(){this.onPageLoad()}};function CookieUtil(b,c,e,d,a,f){this.document=b;this.name=c;this.expiration=(e*1)?new Date(e*1000):null;this.path=d?d:null;this.domain=a?a:null;this.secure=f?true:false}CookieUtil.prototype={store:function(b){var a=this.name+"="+b;if(this.expiration){a+="; expires="+this.expiration.toGMTString()}if(this.path){a+="; path="+this.path}if(this.domain){a+="; domain="+this.domain}if(this.secure){a+="; secure"}this.document.cookie=a},read:function(){var b=this.document.cookie;if(b==""){return false}var c=b.indexOf(this.name+"=");if(c==-1){return false}c+=this.name.length+1;var a=b.indexOf(";",c);if(a==-1){a=b.length}return b.substring(c,a)},remove:function(){var a;a=this.name+"=";if(this.path){a+="; path="+this.path}if(this.domain){a+="; domain="+this.domain}a+="; expires=Fri, 02-Jan-1970 00:00:00 GMT";this.document.cookie=a}};