var ImagesLightbox={Display:function(){var b={images:[],title:"No Window Title",preload:[],width:400,height:400,currentImageIndex:0,headerContentElem:null,PositionDialog:function(c){c.style.top=GetScreenCenteredY(b.height+40)+"px";c.style.left=GetScreenCenteredX(b.width)+"px"},ReziseDialogFrame:function(i,f,h,c,g,d,e){b.width=b.width+Math.ceil((g-b.width)/e);b.height=b.height+Math.ceil((d-b.height)/e);i.style.width=b.width+"px";i.style.height=b.height+"px";f.style.width=((b.width-26)+(b.images.length==1?46:0))+"px";f.style.height=(b.height-34)+"px";h.style.top=Math.floor((b.height-38)/2)+"px";c.style.top=Math.floor((b.height-38)/2)+"px";b.PositionDialog(i);if(e>1){setTimeout(function(){b.ReziseDialogFrame(i,f,h,c,g,d,e-1)},50)}}};var a={AddImage:function(c){b.images[b.images.length]=c},SetTitle:function(c){b.title=c},SetHeaderContentElem:function(c){b.headerContentElem=c},ShowDialog:function(){if(b.images.length<=0){return}var m=((document.width)?document.width:document.body.offsetWidth)+20;var f=((document.height)?document.height:document.body.offsetHeight)+20;if(document.documentElement.clientHeight>f){f=document.documentElement.clientHeight}var l=this;var e=document.createElement("div");e.style.display="block";e.style.position="absolute";e.style.top="0px";e.style.left="0px";e.style.backgroundColor="#000000";e.style.opacity=0.8;e.style.filter="alpha(opacity=80)";e.style.height=Math.ceil(f)+"px";e.style.width=Math.ceil(m)+"px";e.style.margin="0px auto";e.style.zIndex=125;e.style.cursor="pointer";e.style.cursor="hand";e.appendChild(document.createTextNode(" "));Get("ElementDropBox").appendChild(e);var d=document.createElement("div");d.className="Dialog";d.style.width="400px";d.style.height="400px";d.style.zIndex=126;b.PositionDialog(d);var n=document.createElement("a");n.href="#";n.onclick=function(){l.HideDialog(d,e);return false};n.style.display="block";n.style.margin="-5px -15px 0 0";if(typeof(n.style.cssFloat)!="undefined"){n.style.cssFloat="right"}else{n.style.styleFloat="right"}var h=document.createElement("img");h.src="/images/layout2009/curtain_close.gif";h.width=26;h.height=26;h.alt="Close";n.appendChild(h);d.appendChild(n);var o=Get(b.headerContentElem);if(o){var j=document.createElement("div");j.style.margin="1px 4px 0 0";if(typeof(j.style.cssFloat)!="undefined"){j.style.cssFloat="right"}else{j.style.styleFloat="right"}j.innerHTML=o.innerHTML;d.appendChild(j)}var i=document.createElement("h1");d.appendChild(i);var c=document.createElement("a");c.href="#";c.className="BigArrowLeft";c.style.position="absolute";c.style.left="10px";c.style.top=Math.floor((b.height-38)/2)+"px";c.onclick=function(){l.ShowImage(d,b.currentImageIndex-1,k,c,g,i);this.blur();return false};c.appendChild(document.createTextNode(" "));d.appendChild(c);var g=document.createElement("a");g.href="#";g.className="BigArrowRight";g.style.position="absolute";g.style.right="10px";g.style.top=Math.floor((b.height-38)/2)+"px";g.onclick=function(){l.ShowImage(d,b.currentImageIndex+1,k,c,g,i);this.blur();return false};g.appendChild(document.createTextNode(" "));d.appendChild(g);var k=document.createElement("div");k.style.width=((b.width-26)+(b.images.length==1?46:0))+"px";k.style.height=(b.height-34)+"px";k.style.overflow="auto";k.style.position="absolute";k.style.left=(10+(b.images.length==1?0:22))+"px";k.style.top="40px";k.style.border="1px solid #CCCCCC";k.style.textAlign="center";d.appendChild(k);Get("ElementDropBox").appendChild(d);e.onclick=function(){l.HideDialog(d,e)};this.ShowImage(d,0,k,c,g,i)},HideDialog:function(d,c){Get("ElementDropBox").removeChild(d);Get("ElementDropBox").removeChild(c);b.width=b.height=400},ShowImage:function(d,e,i,c,g,h){c.style.display=(e<=0)?"none":"block";g.style.display=(e>=b.images.length-1)?"none":"block";b.currentImageIndex=e;ClearChildNodes(h);h.appendChild(document.createTextNode(b.title));if(b.images.length>1){h.appendChild(document.createTextNode(" "+(e+1)+" of "+b.images.length))}ClearChildNodes(i);if(typeof(b.images[e])=="string"){i.style.background="#FFFFFF url(/images/ajax-loader.gif) no-repeat scroll center center";var n=new Image();var k=this;n.onload=function(){b.images[e]=n;k.ShowImage(d,e,i,c,g,h);k=null};n.src=b.images[e]}else{i.style.backgroundImage="none";var f=document.documentElement.clientHeight-60;var l=document.documentElement.clientWidth-80;var m=Math.min(b.images[e].height+34,f);var j=Math.min(b.images[e].width-16+(b.images.length==1?0:46)+(m==f?15:0),l);b.ReziseDialogFrame(d,i,c,g,j,m,5);var k=this;setTimeout(function(){var o=document.createElement("img");o.src=b.images[e].src;o.width=b.images[e].width;o.height=b.images[e].height;if(document.getElementById&&!document.all){o.oncontextmenu=function(p){k.BlockRightClick(p)}}else{o.onmousedown=function(p){k.BlockRightClick(p)}}i.appendChild(o)},750)}},BlockRightClick:function(c){if((document.all&&(event.button==2||event.button==3))||(!document.all&&(document.layers||document.getElementById)&&c.which==3)){alert("Right click is disabled on this image.  If you want to print a copy of this document, please close this preview picture and follow the instructions found on this page to sign up, log in, and create the full document.  This image is only a sample preview.");if(c.preventDefault){c.preventDefault()}return false}}};b.preload[b.preload.push(new Image())-1].src="/images/layout2009/forms/forms_arrows_left_off.jpg";b.preload[b.preload.push(new Image())-1].src="/images/layout2009/forms/forms_arrows_left_on.jpg";b.preload[b.preload.push(new Image())-1].src="/images/layout2009/forms/forms_arrows_right_off.jpg";b.preload[b.preload.push(new Image())-1].src="/images/layout2009/forms/forms_arrows_right_on.jpg";b.preload[b.preload.push(new Image())-1].src="/images/ajax-loader.gif";return a}};