/*
***************************************
* PopupLayerPic
***************************************

Author:			Keegan Rowe
Version:			1.2
Date Created:	01/06/2007
Last Modified:	31/10/2007

Purpose:
	PopupLayerPic is a javascript function that will allow an image to be displayed
	on the page in a layered div. The common use of the script to show an enlarged
	version of an image on the screen rather than using a standard popup screen
	that can often by blocked by browers.

Compatibility:
	IE7, IE6, Firefox 1.5, Firefox 2.0, Safari. More browsers may work but are
	currently untested.

Requirements:
	The only real requirement is the doctype of the website. Use loose.
*/


// Use this variable the time we wait before alerting the usre that their image
// is not loading correctly. Set the timer to 0 to disable the timer facility
var iTimerSeconds	= 30;

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h 9=E;l m(O){h d,b;h F;5.8("x").e.f="q";5.8("G").e.f="q";6(9)c("m :: H 1f P r");F=\'<1g o="\'+O+\'" 1h="" 1i="0" 1j="g" />\';5.8("x").1k=F;6(9)c("m :: H 1l P r o");5.8("I").e.f="";6(9)c("m :: H 1m 1n r");5.8("j").e.f="";6(9)c("m :: 1o 1p 1q y");J();6(9)c("m :: Q 1r y (1s)");R(\'i(0)\',S);6(9)c("m :: Q \'1t\' 1u y 1v")}l J(){h d,b;d=5.8("j").1w;b=5.8("j").1x;6(9)c("1 :: d :: T U p :: "+d);6(9)c("1 :: b :: T U t :: "+b);d=z.V(d/2);b=z.V(b/2);6(9)c("2 :: d :: W X 2 :: "+d);6(9)c("2 :: b :: W X 2 :: "+b);b=b-Y();6(9)c("3 :: b :: 1y 1z 1A :: "+b);6(d>0){d="-"+d+"A"}u{d=z.Z(d)+"A"}6(b>0){b="-"+b+"A"}u{b=z.Z(b)+"A"}6(9)c("4 :: d :: 10 11 :: "+d);6(9)c("4 :: b :: 10 11 :: "+b);5.8("j").e.1B=d;5.8("j").e.1C=b}l i(s){6(9)c("i :: 12");6(9)c("i :: B? "+5.8("g").B);6(9)c("i :: o > 0? "+(5.8("g").o.13>0));6(9)c("i :: 14 :: "+s);h K=E;h k="";6(s>15*2&&15!=0){6(9)c("i :: 14 1D 1E - 1F 1G");k=k+"1H r 1I C 1J 1K a 1L 1M 1N 1O C 16.\\n\\n";k=k+"1P L 1Q 17 18 r 1R L 1S 1T 19 17 18 r 1U 1V 16 1W.\\n\\n";k=k+"1X 1Y 1Z C 20 C 21?";6(!22(k)){5.8("g").o="";1a();K=M}u{s=0}}6(!K){s++;6(5.8("g").B&&5.8("g").o.13>0){6(9)c("i :: L B 19 23 o");N()}u{R(\'i(\'+s+\')\',S)}}}l 1b(){6(5.8("g").t>v.D.t){5.8("g").t=(v.D.t-24)}6(5.8("g").p>v.D.p){5.8("g").p=(v.D.p-25)}}l N(){6(9)c("N :: 12");5.8("I").e.f="q";5.8("x").e.f="";5.8("G").e.f="";1b();J()}l 1a(){5.8("x").e.f="q";5.8("G").e.f="q";5.8("I").e.f="";5.8("j").e.f="q";5.8("j").p=5.8("26").p}l Y(){h 1c=5.27?M:E;6(28.29.2a(\'2b/7.0\')!=-1)h 1d=M;y=5.8("j");h w=0;6(1c)w=5.2c.1e;u w=5.2d.2e.1e;6(1d)w=v.2f;2g w}',62,141,'|||||document|if||getElementById|bDebugMode||iDivHeight|alert|iDivWidth|style|display|PopupLayerImage|var|CheckPopupLayerPic|PopupLayer|sMessage|function|PopupLayerPic||src|width|none|image|iCount|height|else|window|iScrollTop|PopupLayerImageDiv|layer|Math|px|complete|to|screen|false|sImage|PopupLayerText|Just|PopupLayerLoadingPic|RecentrePopupLayer|bStop|is|true|ShowPopupLayerPic|sPicURL|main|just|setTimeout|500|overall|div|floor|divided|by|GetScrollTop|abs|final|figure|start|length|counter|iTimerSeconds|load|that|the|and|HidePopupLayer|CheckPopupLayerPicSize|IE|ns7|scrollTop|hid|img|alt|border|id|innerHTML|set|showed|loading|now|showing|entire|resized|apparently|checkeded|popup|pic|offsetWidth|offsetHeight|with|top|scroll|marginLeft|marginTop|too|large|asking|question|The|appears|be|taking|considerable|amount|of|time|It|possible|path|not|valid|will|never|successfully|Do|you|wish|continue|wait|confirm|have|250|200|PopupLayerLogo|all|navigator|userAgent|indexOf|Netscape|documentElement|body|parentNode|pageYOffset|return'.split('|'),0,{}))