var reimg_version=1.000005;document.writeln('<style type="text/css" media="screen, projection"><!--');document.writeln('.reimg { width: 1px; height: 1px; visibility: hidden; }');if(window.reimg_maxWidth){document.writeln('.reimg-width { width: '+reimg_maxWidth+'px; height: auto; vertical-align: top; }');if(window.reimg_swapPortrait){document.writeln('.reimg-width-portrait { width: auto;height: '+reimg_maxWidth+'px;}')}}if(window.reimg_maxHeight){document.writeln('.reimg-height { width: auto;height: '+reimg_maxHeight+'px;}');if(window.reimg_swapPortrait){document.writeln('.reimg-height-portrait { width: '+reimg_maxHeight+'px;height: auto;}')}}if(window.reimg_relWidth){document.writeln('.reimg-rel { width: '+reimg_relWidth+'%;height: auto;}')}if(window.reimg_autoLink){document.writeln('.reimg-link { cursor: pointer !important; }')}if(window.reimg_zoomImg){document.writeln('span.reimg-zoom { position: absolute;margin: 1px;}');document.writeln('img.reimg-zoom { border: none !important;cursor: pointer !important;'+(window.reimg_zoomStyle?' '+reimg_zoomStyle:'')+' }');if(window.reimg_zoomHover){document.writeln('img.reimg-zoom:hover { '+reimg_zoomHover+' }')}}document.writeln('.reimg-loading { border: none !important;'+(window.reimg_loadingStyle?' '+reimg_loadingStyle:'')+' }');document.write('--></style>');var reimg_opera=0;if(window.opera&&window.navigator&&window.navigator.userAgent){var reimg_opera_match=window.navigator.userAgent.match(/\bOpera\/([\d.]+)/);if(reimg_opera_match){reimg_opera=reimg_opera_match[1]}}var reimg_msie=0;if(window.navigator&&window.navigator.userAgent){var reimg_msie_match=window.navigator.userAgent.match(/\bMSIE ([\d.]+)/);if(reimg_msie_match){reimg_msie=reimg_msie_match[1]}}var reimg_zoomLink=null;var reimg_realSize=new Array();function reimg_zoomIn(a){if(!a){a=window.event}target=this;if(a){if(target==window){target=a.target?a.target:a.srcElement}if(typeof(a.stopPropagation)!="undefined"){a.stopPropagation()}else{a.cancelBubble=true}}if(!target){return false}if(!reimg_zoomLink){reimg_zoomLink=document.createElement("a");reimg_zoomLink.style.display="none";if(window.reimg_zoomTarget=="_0"){try{reimg_zoomLink.target="_0"}catch(err){}}document.body.appendChild(reimg_zoomLink)}if(target.className.match(/(^|\s)reimg-zoom(\s|$)/)){reimg_zoomLink.href=target.parentNode.nextSibling.src}else{reimg_zoomLink.href=target.src}if(window.reimg_zoomTarget=="_0"){if(reimg_zoomLink.target&&typeof(reimg_zoomLink.click)!="undefined"){reimg_zoomLink.click()}else{window.open(reimg_zoomLink.href)}}else if(window.reimg_zoomTarget=="_1"&&window.litebox_version){var c,b;if(reimg_realSize[reimg_zoomLink.href]){c=reimg_realSize[reimg_zoomLink.href][0];b=reimg_realSize[reimg_zoomLink.href][1]}else{c=target.parentNode.nextSibling.width;b=target.parentNode.nextSibling.height}litebox_show(reimg_zoomLink.href,c,b,window.reimg_zoomLevel)}else if(window.reimg_zoomTarget=="_2"&&window.hs){return hs.expand(reimg_zoomLink)}else if(window.reimg_zoomTarget=="_3"&&myLytebox){reimg_zoomLink.setAttribute("rel","lytebox");return myLytebox.start(reimg_zoomLink,false,false)}else{window.location.href=reimg_zoomLink.href}return false}reimg_toDo=null;function reimg_resize(a,c,b,h){var l;if(!reimg_toDo){reimg_toDo=new Array()}if(!a){return}if(a.readyState=="complete"&&a.complete&&!h&&reimg_msie<9.0){return}if(!h){h=0}var g=window.reimg_maxWidth;var j=window.reimg_maxHeight;var k=0;if(window.reimg_relWidth&&!c&&!b){var o=document.createElement("div");o.style.width=reimg_relWidth+"%";o.style.height="1px";o.style.visibility="hidden";a.parentNode.insertBefore(o,a);k=o.offsetWidth;a.parentNode.removeChild(o)}a.style.visibility="hidden";var i=a.className;if(i){a.className=i.replace(/(^|.*\s)reimg(\s+(.*)|$)/,'$1$3')}var f=a.width;var d=a.height;if(!(f&&d)){if(!(f&&d)&&a.parentNode.style.display=="none"&&reimg_msie>0){l=true;a.parentNode.style.display="";a.parentNode.style.visibility="hidden";f=a.width;d=a.height}if(h>=1&&reimg_ajax_url&&a.src){var q=get_dimensions_ajax(a.src);if(q){if(q.length==2){c=f=q[0];b=d=q[1]}}}}if(!(f&&d)){if(h<1){reimg_toDo[reimg_toDo.length]=[a,c,b];if(i){a.className=i}}else{if(a.previousSibling&&a.previousSibling.className&&a.previousSibling.className.match(/(^|\s)reimg-loading(\s|$)/)){a.parentNode.removeChild(a.previousSibling)}}a.style.visibility="";if(l){a.parentNode.style.visibility="";a.parentNode.style.display="none"}return}if(a.previousSibling&&a.previousSibling.className&&a.previousSibling.className.match(/(^|\s)reimg-loading(\s|$)/)){a.parentNode.removeChild(a.previousSibling)}if(a.src&&window.reimg_zoomTarget=="_1"&&!reimg_realSize[a.src]){if(c&&!b){b=Math.round(c/(f/d))}else if(b&&!c){c=Math.round(b/(d/f))}if(c&&b){reimg_realSize[a.src]=[c,b]}else{reimg_realSize[a.src]=[f,d]}}var p;if(window.reimg_swapPortrait&&d>f){p=true;if(!(a.height&&a.width)){var u=f;var v=d;f=v;d=u}else{f=a.height;d=a.width}}else{p=false}var r=false;if(k){a.style.width=reimg_relWidth+"%";if(!reimg_opera||reimg_opera>=9.5){if(a.offsetWidth&&a.offsetWidth>k){r=true}}else{r=true}a.style.width="";if(!g||k<g){g=k}else{k=0}}if(window.reimg_swapPortrait&&g&&j&&j>g){g+=j;j=g-reimg_maxHeight;g-=j}i="";if(g&&f>g){d=Math.round(d/(f/g));f=g;if(d&&j&&d>j){f=Math.round(f/(d/j));d=j;i="reimg-both";k=0}else if(r){i="reimg-rel-force";k=0}else{i="reimg-"+(k?"rel":"width")+(p?"-portrait":"")}}else if(j&&d>j){f=Math.round(f/(d/j));d=j;if(f&&g&&f>g){d=Math.round(d/(f/g));f=g;i="reimg-both"}else if(r){i="reimg-rel-force"}else{i="reimg-height"+(p?"-portrait":"")}k=0}if(p){f+=d;d=f-d;f-=d}if(!(i||(c&&c>f)||(b&&b>d))){a.style.visibility="";if(l){a.parentNode.style.visibility="";a.parentNode.style.display="none"}return}if(!c){c=a.width}if(!b){b=a.height}if(k){a.style.maxWidth=((window.reimg_maxWidth&&reimg_maxWidth<a.width)?reimg_maxWidth:c)+"px"}if(i){if(a.style.width){a.style.width=""}if(a.style.height){a.style.height=""}a.className=(a.className?a.className+" ":"")+i}a.width=f;a.height=d;a.style.visibility="";if(window.reimg_autoLink){var n=a.parentNode;while(n&&n.tagName){var s=n.tagName.toLowerCase();if(s=="a"&&n.href){break}if(s=="div"||s=="td"||s=="body"){n=null;break}n=n.parentNode}if(!n){if(window.reimg_zoomAlt){a.title=reimg_zoomAlt.replace(/%1\$d/,c).replace(/%2\$d/,b)}a.className=(a.className?a.className+" ":"")+"reimg-link";if(typeof(a.addEventListener)!="undefined"){a.addEventListener("click",reimg_zoomIn,false)}else if(typeof(a.attachEvent)!="undefined"){a.attachEvent("onclick",reimg_zoomIn)}}}if(window.reimg_zoomImg){if(a.previousSibling&&(!a.previousSibling.tagName||a.previousSibling.tagName.toLowerCase()!="br")){var w=document.createElement("br");a.parentNode.insertBefore(w,a)}var t=document.createElement("span");var m=document.createElement("img");m.src=reimg_zoomImg;if(window.reimg_zoomAlt){m.alt=m.title=reimg_zoomAlt.replace(/%1\$d/,c).replace(/%2\$d/,b)}else{m.alt=""}m.className=t.className="reimg-zoom";if(typeof(m.addEventListener)!="undefined"){m.addEventListener("click",reimg_zoomIn,false)}else if(typeof(m.attachEvent)!="undefined"){m.attachEvent("onclick",reimg_zoomIn)}t.appendChild(m);a.parentNode.insertBefore(t,a)}if(window.litebox_version&&litebox_background&&litebox_background.style.display!="none"){litebox_calc()}}var reimg_preLoadLoadingImg;function reimg_loading(a){if(!window.reimg_loadingImg){return}if(a!=1){if(a&&!reimg_preLoadLoadingImg){reimg_preLoadLoadingImg=document.createElement("img");reimg_preLoadLoadingImg.src=a}if(window.reimg_loadingImg&&typeof(window.setTimeout)!="undefined"){window.setTimeout("reimg_loading(1);",1000)}return}var c=document.getElementsByTagName("img");if(c){var b=new Array();for(var h=0;h<c.length;h++){if(c[h].className.match(/(^|\s)reimg(\s|$)/)){b[b.length]=c[h]}}for(var h=0;h<b.length;h++){var l=document.createElement("img");l.src=reimg_loadingImg;if(window.reimg_loadingAlt){l.alt=l.title=reimg_loadingAlt}else{l.alt=""}l.className="reimg-loading";b[h].parentNode.insertBefore(l,b[h])}}}function reimg_onLoad(a){if(reimg_toDo){for(var c=0;c<reimg_toDo.length;c++){reimg_resize(reimg_toDo[c][0],reimg_toDo[c][1],reimg_toDo[c][2],1)}reimg_toDo=null}else{var b=document.getElementsByTagName("img");if(b){for(var c=0;c<b.length;c++){if(b[c].className.match(/(^|\s)reimg(\s|$)/)){reimg_resize(b[c],null,null,1)}}}}return true}function get_dimensions_ajax(a){var c=false;var b=false;if(window.XMLHttpRequest){b=new XMLHttpRequest()}else if(window.ActiveXObject){try{b=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}}if(!b){return false}b.onreadystatechange=function(){if(b.readyState==4){if(b.status==200){c=b.responseText.split('||')}}};b.open('GET',reimg_ajax_url+'?img='+escape(a),false);b.send(null);return c}if(window.onload_functions){onload_functions[onload_functions.length]="reimg_onLoad();"}else if(typeof(window.addEventListener)!="undefined"){window.addEventListener("load",reimg_onLoad,false)}else if(typeof(window.attachEvent)!="undefined"){window.attachEvent("onload",reimg_onLoad)}
