jQuery.fn.supersleight = function(settings) {
	settings = jQuery.extend({
		imgs: true,
		backgrounds: true,
		shim: 'x.gif',
		apply_positioning: true
	}, settings);
	
	return this.each(function(){
		if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) < 7 && parseInt(jQuery.browser.version, 10) > 4) {
			jQuery(this).find('*').andSelf().each(function(i,obj) {
				var self = jQuery(obj);
				// background pngs
				if (settings.backgrounds && self.css('background-image').match(/\.png/i) !== null) {
					var bg = self.css('background-image');
					var src = bg.substring(5,bg.length-2);
					var mode = (self.css('background-repeat') == 'no-repeat' ? 'crop' : 'scale');
					var styles = {
						'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + mode + "')",
						'background-image': 'url('+settings.shim+')'
					};
					self.css(styles);
				};
				// image elements
				if (settings.imgs && self.is('img[src$=png]')){
					var styles = {
						'width': self.width() + 'px',
						'height': self.height() + 'px',
						'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + self.attr('src') + "', sizingMethod='scale')"
					};
					self.css(styles).attr('src', settings.shim);
				};
				// apply position to 'active' elements
				if (settings.apply_positioning && self.is('a, input') && (self.css('position') === '' || self.css('position') == 'static')){
					self.css('position', 'relative');
				};
			});
		};
	});
};

function checkMail(emailStr){
	
	var emailPat=/^(.+)@(.+)$/
	var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
	var validChars="\[^\\s" + specialChars + "\]"
	var quotedUser="(\"[^\"]*\")"
	var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
	var atom=validChars + '+'
	var word="(" + atom + "|" + quotedUser + ")"
	var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
	var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
	var matchArray=emailStr.match(emailPat)
	

	if (matchArray==null) {
		return false
	}
	var user=matchArray[1]
	var domain=matchArray[2]
	if (user.match(userPat)==null) {
		return false
	}
	
	var IPArray=domain.match(ipDomainPat)
	if (IPArray!=null) {
		  for (var i=1;i<=4;i++) {
			if (IPArray[i]>255) {
			return false
			}
		}
		return true
	}
	
	var domainArray=domain.match(domainPat)
	if (domainArray==null) {
		return false
	}
	
	var atomPat=new RegExp(atom,"g")
	var domArr=domain.match(atomPat)
	var len=domArr.length
	if (domArr[domArr.length-1].length<2 || 
		domArr[domArr.length-1].length>3) {			
		return false
	}
	
	if (len<2) {		
		return false
	}
	return true;
}


var Base64 = {

	// private property
	_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",

	// public method for encoding
	encode : function (input) {
		var output = "";
		var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
		var i = 0;

		input = Base64._utf8_encode(input);

		while (i < input.length) {

			chr1 = input.charCodeAt(i++);
			chr2 = input.charCodeAt(i++);
			chr3 = input.charCodeAt(i++);

			enc1 = chr1 >> 2;
			enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
			enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
			enc4 = chr3 & 63;

			if (isNaN(chr2)) {
				enc3 = enc4 = 64;
			} else if (isNaN(chr3)) {
				enc4 = 64;
			}

			output = output +
			this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +
			this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);

		}

		return output;
	},

	// public method for decoding
	decode : function (input) {
		var output = "";
		var chr1, chr2, chr3;
		var enc1, enc2, enc3, enc4;
		var i = 0;

		input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");

		while (i < input.length) {

			enc1 = this._keyStr.indexOf(input.charAt(i++));
			enc2 = this._keyStr.indexOf(input.charAt(i++));
			enc3 = this._keyStr.indexOf(input.charAt(i++));
			enc4 = this._keyStr.indexOf(input.charAt(i++));

			chr1 = (enc1 << 2) | (enc2 >> 4);
			chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
			chr3 = ((enc3 & 3) << 6) | enc4;

			output = output + String.fromCharCode(chr1);

			if (enc3 != 64) {
				output = output + String.fromCharCode(chr2);
			}
			if (enc4 != 64) {
				output = output + String.fromCharCode(chr3);
			}

		}

		output = Base64._utf8_decode(output);

		return output;

	},

	// private method for UTF-8 encoding
	_utf8_encode : function (string) {
		string = string.replace(/\r\n/g,"\n");
		var utftext = "";

		for (var n = 0; n < string.length; n++) {

			var c = string.charCodeAt(n);

			if (c < 128) {
				utftext += String.fromCharCode(c);
			}
			else if((c > 127) && (c < 2048)) {
				utftext += String.fromCharCode((c >> 6) | 192);
				utftext += String.fromCharCode((c & 63) | 128);
			}
			else {
				utftext += String.fromCharCode((c >> 12) | 224);
				utftext += String.fromCharCode(((c >> 6) & 63) | 128);
				utftext += String.fromCharCode((c & 63) | 128);
			}

		}

		return utftext;
	},

	// private method for UTF-8 decoding
	_utf8_decode : function (utftext) {
		var string = "";
		var i = 0;
		var c = c1 = c2 = 0;

		while ( i < utftext.length ) {

			c = utftext.charCodeAt(i);

			if (c < 128) {
				string += String.fromCharCode(c);
				i++;
			}
			else if((c > 191) && (c < 224)) {
				c2 = utftext.charCodeAt(i+1);
				string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
				i += 2;
			}
			else {
				c2 = utftext.charCodeAt(i+1);
				c3 = utftext.charCodeAt(i+2);
				string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
				i += 3;
			}

		}

		return string;
	}

}

/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 3/9/2009
 * @author Ariel Flesler
 * @version 1.4.1
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 */
;(function($){var m=$.scrollTo=function(b,h,f){$(window).scrollTo(b,h,f)};m.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1};m.window=function(b){return $(window).scrollable()};$.fn.scrollable=function(){return this.map(function(){var b=this,h=!b.nodeName||$.inArray(b.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!h)return b;var f=(b.contentWindow||b).document||b.ownerDocument||b;return $.browser.safari||f.compatMode=='BackCompat'?f.body:f.documentElement})};$.fn.scrollTo=function(l,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};if(l=='max')l=9e9;a=$.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=$(k),d=l,p,g={},q=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px)?$/.test(d)){d=n(d);break}d=$(d,this);case'object':if(d.is||d.style)p=(d=$(d)).offset()}$.each(a.axis.split(''),function(b,h){var f=h=='x'?'Left':'Top',i=f.toLowerCase(),c='scroll'+f,r=k[c],s=h=='x'?'Width':'Height';if(p){g[c]=p[i]+(q?0:r-o.offset()[i]);if(a.margin){g[c]-=parseInt(d.css('margin'+f))||0;g[c]-=parseInt(d.css('border'+f+'Width'))||0}g[c]+=a.offset[i]||0;if(a.over[i])g[c]+=d[s.toLowerCase()]()*a.over[i]}else g[c]=d[i];if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],u(s));if(!b&&a.queue){if(r!=g[c])t(a.onAfterFirst);delete g[c]}});t(a.onAfter);function t(b){o.animate(g,j,a.easing,b&&function(){b.call(this,l,a)})};function u(b){var h='scroll'+b;if(!q)return k[h];var f='client'+b,i=k.ownerDocument.documentElement,c=k.ownerDocument.body;return Math.max(i[h],c[h])-Math.min(i[f],c[f])}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery);


/*


   Magic Zoom v3.1.18 
   Copyright 2010 Magic Toolbox
   You must buy a license to use this tool.
   Go to www.magictoolbox.com/magiczoom/


*/
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('(u(){p(O.6R){B}G a={2J:"2.3.10",5Z:0,3k:{},$4A:u(b){B(b.$2e||(b.$2e=++$J.5Z))},3B:u(b){B($J.3k[b]||($J.3k[b]={}))},$F:u(){},$H:u(){B H},1q:u(b){B(19!=b)},7D:u(b){B!!(b)},1U:u(b){p(!$J.1q(b)){B H}p(b.$1E){B b.$1E}p(!!b.2z){p(1==b.2z){B"4M"}p(3==b.2z){B"6U"}}p(b.1k&&b.4F){B"7A"}p(b.1k&&b.48){B"1a"}p((b 1N O.7m||b 1N O.4B)&&b.2E===$J.2k){B"4t"}p(b 1N O.2t){B"2H"}p(b 1N O.4B){B"u"}p(b 1N O.4P){B"3F"}p($J.v.1s){p($J.1q(b.65)){B"2j"}}U{p(b 1N O.4R||b===O.2j||b.2E==O.8h){B"2j"}}p(b 1N O.5P){B"6P"}p(b 1N O.3y){B"8d"}p(b===O){B"O"}p(b===M){B"M"}B 59(b)},1g:u(g,f){p(!(g 1N O.2t)){g=[g]}Y(G d=0,b=g.1k;d<b;d++){p(!$J.1q(g)){3r}Y(G c 1e(f||{})){g[d][c]=f[c]}}B g[0]},3x:u(g,f){p(!(g 1N O.2t)){g=[g]}Y(G d=0,b=g.1k;d<b;d++){p(!$J.1q(g[d])){3r}p(!g[d].1c){3r}Y(G c 1e(f||{})){p(!g[d].1c[c]){g[d].1c[c]=f[c]}}}B g[0]},5S:u(d,c){p(!$J.1q(d)){B d}Y(G b 1e(c||{})){p(!d[b]){d[b]=c[b]}}B d},$1J:u(){Y(G c=0,b=1a.1k;c<b;c++){1J{B 1a[c]()}28(d){}}B L},$A:u(d){p(!$J.1q(d)){B $j([])}p(d.5n){B $j(d.5n())}p(d.4F){G c=d.1k||0,b=1d 2t(c);27(c--){b[c]=d[c]}B $j(b)}B $j(2t.1c.7S.1m(d))},2i:u(){B 1d 5P().7J()},2s:u(g){G d;2F($J.1U(g)){12"6k":d={};Y(G f 1e g){d[f]=$J.2s(g[f])}17;12"2H":d=[];Y(G c=0,b=g.1k;c<b;c++){d[c]=$J.2s(g[c])}17;46:B g}B d},$:u(c){p(!$J.1q(c)){B L}p(c.$4z){B c}2F($J.1U(c)){12"2H":c=$J.5S(c,$J.1g($J.2t,{$4z:N}));c.1y=c.6x;B c;17;12"3F":G b=M.83(c);p($J.1q(b)){B $J.$(b)}B L;17;12"O":12"M":$J.$4A(c);c=$J.1g(c,$J.2V);17;12"4M":$J.$4A(c);c=$J.1g(c,$J.1l);17;12"2j":c=$J.1g(c,$J.4R);17;12"6U":B c;17;12"u":12"2H":12"6P":46:17}B $J.1g(c,{$4z:N})},$1d:u(b,d,c){B $j($J.5E.1O(b)).5x(d).T(c)}};O.6R=O.$J=a;O.$j=a.$;$J.2t={$1E:"2H",4q:u(f,g){G b=9.1k;Y(G c=9.1k,d=(g<0)?X.3R(0,c+g):g||0;d<c;d++){p(9[d]===f){B d}}B-1},2I:u(b,c){B 9.4q(b,c)!=-1},6x:u(b,f){Y(G d=0,c=9.1k;d<c;d++){p(d 1e 9){b.1m(f,9[d],d,9)}}},4s:u(b,h){G g=[];Y(G f=0,c=9.1k;f<c;f++){p(f 1e 9){G d=9[f];p(b.1m(h,9[f],f,9)){g.5j(d)}}}B g},7F:u(b,g){G f=[];Y(G d=0,c=9.1k;d<c;d++){p(d 1e 9){f[d]=b.1m(g,9[d],d,9)}}B f}};$J.3x(4P,{$1E:"3F",47:u(){B 9.2m(/^\\s+|\\s+$/g,"")},7b:u(){B 9.2m(/^\\s+/g,"")},7i:u(){B 9.2m(/\\s+$/g,"")},7k:u(b){B(9.3T()===b.3T())},7e:u(b){B(9.24().3T()===b.24().3T())},k:u(){B 9.2m(/-\\D/g,u(b){B b.6O(1).7p()})},5R:u(){B 9.2m(/[A-Z]/g,u(b){B("-"+b.6O(0).24())})},49:u(c){B 4b(9,c||10)},7g:u(){B 21(9)},8g:u(){B!9.2m(/N/i,"").47()},3P:u(c,b){b=b||"";B(b+9+b).4q(b+c+b)>-1}});a.3x(4B,{$1E:"u",1o:u(){G c=$J.$A(1a),b=9,d=c.3v();B u(){B b.1V(d||L,c.6G($J.$A(1a)))}},2A:u(){G c=$J.$A(1a),b=9,d=c.3v();B u(f){B b.1V(d||L,$j([f||O.2j]).6G(c))}},1P:u(){G c=$J.$A(1a),b=9,d=c.3v();B O.2L(u(){B b.1V(b,c)},d||0)},8k:u(){G c=$J.$A(1a),b=9;B u(){B b.1P.1V(b,c)}},6h:u(){G c=$J.$A(1a),b=9,d=c.3v();B O.8r(u(){B b.1V(b,c)},d||0)}});$J.v={4i:{5I:!!(M.8s),8t:!!(O.8u),5J:!!(M.8q)},1R:(O.8p)?"3A":!!(O.8l)?"1s":(!76.8n)?"3q":(19!=M.87)?"5H":"86",2J:"",6V:($J.1q(O.7Q))?"7O":(76.6V.7I(/7K|5F|7M/i)||["7T"])[0].24(),4a:M.3U&&"6Y"==M.3U.24(),1z:u(){B(M.3U&&"6Y"==M.3U.24())?M.2Y:M.43},1t:H,3t:u(){p($J.v.1t){B}$J.v.1t=N;$J.2Y=$j(M.2Y);$j(M).60("2u")}};(u(){u b(){B!!(1a.48.4v)}$J.v.2J=("3A"==$J.v.1R)?((b())?7W:((M.3n)?7V:7Z)):("1s"==$J.v.1R)?!!(O.6t&&O.88)?6:((O.6t)?5:4):("3q"==$J.v.1R)?(($J.v.4i.5I)?(($J.v.4i.5J)?7Y:6q):7X):("5H"==$J.v.1R)?!!(O.80)?81:((M.3n)?85:84):"";$J.v[$J.v.1R]=$J.v[$J.v.1R+$J.v.2J]=N})();$J.1l={4m:u(b){B 9.2C.3P(b," ")},2x:u(b){p(b&&!9.4m(b)){9.2C+=(9.2C?" ":"")+b}B 9},3G:u(b){b=b||".*";9.2C=9.2C.2m(1d 3y("(^|\\\\s)"+b+"(?:\\\\s|$)"),"$1").47();B 9},82:u(b){B 9.4m(b)?9.3G(b):9.2x(b)},3D:u(c){c=(c=="5Q"&&9.3e)?"4U":c.k();G b=L;p(9.3e){b=9.3e[c]}U{p(M.4C&&M.4C.5D){4N=M.4C.5D(9,L);b=4N?4N.7L([c.5R()]):L}}p(!b){b=9.S[c]}p("1b"==c){B $J.1q(b)?21(b):1}p(/^(1p(4O|4x|4T|4Q)6B)|((1C|4u)(4O|4x|4T|4Q))$/.2X(c)){b=4b(b)?b:"13"}B("3H"==b?L:b)},5C:u(c,b){1J{p("1b"==c){9.g(b);B 9}p("5Q"==c){9.S[("19"===59(9.S.4U))?"7N":"4U"]=b;B 9}9.S[c.k()]=b+(("6l"==$J.1U(b)&&!$j(["2w","W"]).2I(c.k()))?"R":"")}28(d){}B 9},T:u(c){Y(G b 1e c){9.5C(b,c[b])}B 9},7R:u(){G b={};$J.$A(1a).1y(u(c){b[c]=9.3D(c)},9);B b},g:u(g,c){c=c||H;g=21(g);p(c){p(g==0){p("1T"!=9.S.2n){9.S.2n="1T"}}U{p("4J"!=9.S.2n){9.S.2n="4J"}}}p($J.v.1s){p(!9.3e||!9.3e.7P){9.S.W=1}1J{G d=9.8o.4F("5o.5B.5t");d.5y=(1!=g);d.1b=g*1u}28(b){9.S.4s+=(1==g)?"":"8m:5o.5B.5t(5y=N,1b="+g*1u+")"}}9.S.1b=g;B 9},5x:u(b){Y(G c 1e b){9.8j(c,""+b[c])}B 9},1v:u(){B 9.T({2Z:"3V",2n:"1T"})},1M:u(){B 9.T({2Z:"3S",2n:"4J"})},2Q:u(){B{I:9.8c,K:9.8a}},4S:u(){B{P:9.4d,Q:9.4f}},7H:u(){G b=9,c={P:0,Q:0};6f{c.Q+=b.4f||0;c.P+=b.4d||0;b=b.1S}27(b);B c},6r:u(){p($J.1q(M.43.6g)){G c=9.6g(),f=$j(M).4S(),h=$J.v.1z();B{P:c.P+f.y-h.89,Q:c.Q+f.x-h.8e}}G g=9,d=t=0;6f{d+=g.8f||0;t+=g.8v||0;g=g.7q}27(g&&!(/^(?:2Y|7h)$/i).2X(g.3b));B{P:t,Q:d}},54:u(){G c=9.6r();G b=9.2Q();B{P:c.P,1f:c.P+b.K,Q:c.Q,1n:c.Q+b.I}},1A:u(d){1J{9.7j=d}28(b){9.7l=d}B 9},4K:u(){B(9.1S)?9.1S.1G(9):9},4H:u(){$J.$A(9.7f).1y(u(b){p(3==b.2z){B}$j(b).4H()});9.4K();9.6m();p(9.$2e){$J.3k[9.$2e]=L;3C $J.3k[9.$2e]}B L},4G:u(d,c){c=c||"1f";G b=9.1W;("P"==c&&b)?9.5K(d,b):9.1i(d);B 9},4W:u(d,c){G b=$j(d).4G(9,c);B 9},7d:u(b){9.4G(b.1S.7n(9,b));B 9},7z:u(b){p(!(b=$j(b))){B H}B(9==b)?H:(9.2I&&!($J.v.61))?(9.2I(b)):(9.6c)?!!(9.6c(b)&16):$J.$A(9.69(b.3b)).2I(b)}};$J.1l.3m=$J.1l.3D;$J.1l.64=$J.1l.T;p(!O.1l){O.1l=$J.$F;p($J.v.1R.3q){O.M.1O("7E")}O.1l.1c=($J.v.1R.3q)?O["[[7x.1c]]"]:{}}$J.3x(O.1l,{$1E:"4M"});$J.2V={2Q:u(){p($J.v.7w||$J.v.61){B{I:E.7o,K:E.7r}}B{I:$J.v.1z().7s,K:$J.v.1z().7v}},4S:u(){B{x:E.7u||$J.v.1z().4f,y:E.7t||$J.v.1z().4d}},7C:u(){G b=9.2Q();B{I:X.3R($J.v.1z().7B,b.I),K:X.3R($J.v.1z().7y,b.K)}}};$J.1g(M,{$1E:"M"});$J.1g(O,{$1E:"O"});$J.1g([$J.1l,$J.2V],{3g:u(f,c){G b=$J.3B(9.$2e),d=b[f];p(19!=c&&19==d){d=b[f]=c}B(d||L)},7G:u(d,c){G b=$J.3B(9.$2e);b[d]=c;B 9},6p:u(c){G b=$J.3B(9.$2e);3C b[c];B 9}});p(!(O.4y&&O.4y.1c&&O.4y.1c.3n)){$J.1g([$J.1l,$J.2V],{3n:u(b){B $J.$A(9.3z("*")).4s(u(d){1J{B(1==d.2z&&d.2C.3P(b," "))}28(c){}})}})}$J.1g([$J.1l,$J.2V],{7c:u(){B 9.3n(1a[0])},69:u(){B 9.3z(1a[0])}});$J.4R={$1E:"2j",1h:u(){p(9.67){9.67()}U{9.65=N}p(9.66){9.66()}U{9.7U=H}B 9},5f:u(){B{x:9.8y||9.9S+$J.v.1z().4f,y:9.9V||9.a3+$J.v.1z().4d}},a4:u(){G b=9.a6||9.9X;27(b&&3==b.2z){b=b.1S}B b},9Z:u(){G c=L;2F(9.3Y){12"2K":c=9.5W||9.a0;17;12"2h":c=9.5W||9.9C;17;46:B c}1J{27(c&&3==c.2z){c=c.1S}}28(b){c=L}B c},9A:u(){p(!9.5V&&9.4h!==19){B(9.4h&1?1:(9.4h&2?3:(9.4h&4?2:0)))}B 9.5V}};$J.4I="5Y";$J.4L="9D";$J.3X="";p(!M.5Y){$J.4I="9E";$J.4L="9G";$J.3X="3f"}$J.1g([$J.1l,$J.2V],{a:u(f,d){G h=("2u"==f)?H:N,c=9.3g("3i",{});c[f]=c[f]||[];p(c[f].4c(d.$3j)){B 9}p(!d.$3j){d.$3j=X.9y(X.9x()*$J.2i())}G b=9,g=u(i){B d.1m(b)};p("2u"==f){p($J.v.1t){d.1m(9);B 9}}p(h){g=u(i){i=$J.1g(i||O.e,{$1E:"2j"});B d.1m(b,$j(i))};9[$J.4I]($J.3X+f,g,H)}c[f][d.$3j]=g;B 9},1K:u(f){G h=("2u"==f)?H:N,c=9.3g("3i");p(!c||!c[f]){B 9}G g=c[f],d=1a[1]||L;p(f&&!d){Y(G b 1e g){p(!g.4c(b)){3r}9.1K(f,b)}B 9}d=("u"==$J.1U(d))?d.$3j:d;p(!g.4c(d)){B 9}p("2u"==f){h=H}p(h){9[$J.4L]($J.3X+f,g[d],H)}3C g[d];B 9},60:u(f,c){G j=("2u"==f)?H:N,i=9,h;p(!j){G d=9.3g("3i");p(!d||!d[f]){B 9}G g=d[f];Y(G b 1e g){p(!g.4c(b)){3r}g[b].1m(9)}B 9}p(i===M&&M.45&&!3Z.6n){i=M.43}p(M.45){h=M.45(f);h.9J(c,N,N)}U{h=M.9K();h.8w=f}p(M.45){i.6n(h)}U{i.9Y("3f"+c,h)}B h},6m:u(){G b=9.3g("3i");p(!b){B 9}Y(G c 1e b){9.1K(c)}9.6p("3i");B 9}});(u(){p($J.v.3q&&$J.v.2J<6q){(u(){($j(["a5","4E"]).2I(M.6L))?$J.v.3t():1a.48.1P(50)})()}U{p($J.v.1s&&O==P){(u(){($J.$1J(u(){$J.v.1z().9O("Q");B N}))?$J.v.3t():1a.48.1P(50)})()}U{$j(M).a("9M",$J.v.3t);$j(O).a("2c",$J.v.3t)}}})();$J.2k=u(){G g=L,c=$J.$A(1a);p("4t"==$J.1U(c[0])){g=c.3v()}G b=u(){Y(G j 1e 9){9[j]=$J.2s(9[j])}p(9.2E.$1F){9.$1F={};G n=9.2E.$1F;Y(G l 1e n){G i=n[l];2F($J.1U(i)){12"u":9.$1F[l]=$J.2k.6d(9,i);17;12"6k":9.$1F[l]=$J.2s(i);17;12"2H":9.$1F[l]=$J.2s(i);17}}}G h=(9.22)?9.22.1V(9,1a):9;3C 9.4v;B h};p(!b.1c.22){b.1c.22=$J.$F}p(g){G f=u(){};f.1c=g.1c;b.1c=1d f;b.$1F={};Y(G d 1e g.1c){b.$1F[d]=g.1c[d]}}U{b.$1F=L}b.2E=$J.2k;b.1c.2E=b;$J.1g(b.1c,c[0]);$J.1g(b,{$1E:"4t"});B b};a.2k.6d=u(b,c){B u(){G f=9.4v;G d=c.1V(b,1a);B d}};$J.1B=1d $J.2k({C:{3l:50,2O:9T,5w:u(b){B-(X.4l(X.4n*b)-1)/2},6j:$J.$F,2P:$J.$F,5v:$J.$F},1Y:L,22:u(c,b){9.3Z=$j(c);9.C=$J.1g(9.C,b);9.1Q=H},1r:u(b){9.1Y=b;9.9R=0;9.9w=0;9.4j=$J.2i();9.5U=9.4j+9.C.2O;9.1Q=9.6i.1o(9).6h(X.2v(63/9.C.3l));9.C.6j.1m();B 9},1h:u(b){b=$J.1q(b)?b:H;p(9.1Q){5T(9.1Q);9.1Q=H}p(b){9.2R(1);9.C.2P.1P(10)}B 9},4p:u(d,c,b){B(c-d)*b+d},6i:u(){G c=$J.2i();p(c>=9.5U){p(9.1Q){5T(9.1Q);9.1Q=H}9.2R(1);9.C.2P.1P(10);B 9}G b=9.C.5w((c-9.4j)/9.C.2O);9.2R(b)},2R:u(b){G c={};Y(G d 1e 9.1Y){p("1b"===d){c[d]=X.2v(9.4p(9.1Y[d][0],9.1Y[d][1],b)*1u)/1u}U{c[d]=X.2v(9.4p(9.1Y[d][0],9.1Y[d][1],b))}}9.C.5v(c);9.5u(c)},5u:u(b){B 9.3Z.T(b)}});$J.1B.2f={9m:u(b){B b},5A:u(b){B-(X.4l(X.4n*b)-1)/2},8M:u(b){B 1-$J.1B.2f.5A(1-b)},5s:u(b){B X.2G(2,8*(b-1))},8L:u(b){B 1-$J.1B.2f.5s(1-b)},5m:u(b){B X.2G(b,2)},8P:u(b){B 1-$J.1B.2f.5m(1-b)},5l:u(b){B X.2G(b,3)},8Q:u(b){B 1-$J.1B.2f.5l(1-b)},5p:u(c,b){b=b||1.8U;B X.2G(c,2)*((b+1)*c-b)},8T:u(c,b){B 1-$J.1B.2f.5p(1-c)},5z:u(c,b){b=b||[];B X.2G(2,10*--c)*X.4l(20*c*X.4n*(b[0]||1)/3)},8S:u(c,b){B 1-$J.1B.2f.5z(1-c,b)},6u:u(f){Y(G d=0,c=1;1;d+=c,c/=2){p(f>=(7-4*d)/11){B c*c-X.2G((11-6*d-11*f)/4,2)}}},8I:u(b){B 1-$J.1B.2f.6u(1-b)},3V:u(b){B 0}};$J.5q=1d $J.2k($J.1B,{22:u(b,c){9.4D=b;9.C=$J.1g(9.C,c);9.1Q=H},1r:u(b){9.$1F.1r([]);9.5L=b;B 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:a.W.C.y}}},6W:u(c){G b,a;b="";Y(a=0;a<c.1k;a++){b+=4P.9d(14^c.8G(a))}B b}};V.33=u(){9.22.1V(9,1a)};V.33.1c={22:u(a){9.2r=L;9.2q=L;9.4k=9.6M.2A(9);9.3Q=L;9.I=0;9.K=0;9.1p={Q:0,1n:0,P:0,1f:0};9.1C={Q:0,1n:0,P:0,1f:0};9.1t=H;9.2o=L;p("3F"==$J.1U(a)){9.2o=$J.$1d("68").T({1j:"23",P:"-30",I:"6Q",K:"6Q",3u:"1T"}).4W($J.2Y);9.E=$J.$1d("8H").4W(9.2o);9.3O();9.E.1D=a}U{9.E=$j(a);9.3O()}},3J:u(){p(9.2o){p(9.E.1S==9.2o){9.E.4K().T({1j:"8D",P:"3H"})}9.2o.4H();9.2o=L}},6M:u(a){p(a){$j(a).1h()}p(9.2r){9.3J();9.2r.1m(9,H)}9.2D()},3O:u(a){9.2q=L;p(a==N||!(9.E.1D&&(9.E.4E||9.E.6L=="4E"))){9.2q=u(b){p(b){$j(b).1h()}p(9.1t){B}9.1t=N;9.4o();p(9.2r){9.3J();9.2r.1m()}}.2A(9);9.E.a("2c",9.2q);$j(["77","79"]).1y(u(b){9.E.a(b,9.4k)},9)}U{9.1t=N}},1A:u(a){9.2D();p(9.E.1D.3P(a)){9.1t=N}U{9.3O(N);9.E.1D=a}},4o:u(){9.I=9.E.I;9.K=9.E.K;$j(["4T","4Q","4O","4x"]).1y(u(a){9.1C[a.24()]=9.E.3m("1C"+a).49();9.1p[a.24()]=9.E.3m("1p"+a+"6B").49()},9);p($J.v.3A||($J.v.1s&&!$J.v.4a)){9.I-=9.1C.Q+9.1C.1n;9.K-=9.1C.P+9.1C.1f}},6b:u(){G a=L;a=9.E.54();B{P:a.P+9.1p.P,1f:a.1f-9.1p.1f,Q:a.Q+9.1p.Q,1n:a.1n-9.1p.1n}},8B:u(){p(9.3Q){9.3Q.1D=9.E.1D;9.E=L;9.E=9.3Q}},2c:u(a){p(9.1t){p(!9.I){9.4o()}9.3J();a.1m()}U{9.2r=a}},2D:u(){p(9.2q){9.E.1K("2c",9.2q)}$j(["77","79"]).1y(u(a){9.E.1K(a,9.4k)},9);9.2q=L;9.2r=L;9.I=L;9.1t=H;9.8R=H}};V.W=u(){9.57.1V(9,1a)};V.W.1c={57:u(b,a){9.2a=-1;9.29=H;9.3K=0;9.3M=0;9.C=$J.2s(V.5e);p(b){9.c=$j(b)}9.5h(9.c.31);p(a){9.5h(a)}9.1H=L;p(b){9.74=9.5a.2A(9);9.5M=9.4Y.2A(9);9.5c=9.1M.1o(9,H);9.6X=9.6S.1o(9);9.32=9.3h.2A(9);9.c.a("1Z",u(c){p(!$J.v.1s){9.6v()}$j(c).1h();B H});9.c.a("5a",9.74);9.c.a("4Y",9.5M);9.c.6o="3f";9.c.S.8N="3V";9.c.8O=$J.$4w;9.c.9l=$J.$4w;9.c.T({1j:"56",2Z:"9N-3S",9W:"3V",6A:"0",9t:"9u"});p($J.v.9v||$J.v.3A){9.c.T({2Z:"3S"})}p(9.c.3D("73")=="9n"){9.c.T({4u:"3H 3H"})}9.c.W=9}U{9.C.2p=H}p(!9.C.2p){9.5d()}},5d:u(){G b,i,h,c,a;p(!9.q){9.q=1d V.33(9.c.1W);9.w=1d V.33(9.c.2M)}U{9.w.1A(9.c.2M)}p(!9.e){9.e={E:$j(M.1O("3s")).2x("9F").T({3u:"1T",2w:1u,P:"-30",1j:"23",I:9.C.1w+"R",K:9.C.1x+"R"}),W:9,1X:"13"};9.e.1v=u(){p(9.E.S.P!="-30"&&!9.W.x.2y){9.1X=9.E.S.P;9.E.S.P="-30"}};9.e.62=9.e.1v.1o(9.e);p($J.v.1s){b=$j(M.1O("9H"));b.1D="9z:\'\'";b.T({Q:"13",P:"13",1j:"23"}).9B=0;9.e.6E=9.e.E.1i(b)}9.e.26=$j(M.1O("3s")).2x("a7").T({1j:"56",2w:10,Q:"13",P:"13",1C:"9I"}).1v();i=M.1O("3s");i.S.3u="1T";i.1i(9.w.E);9.w.E.T({1C:"13",4u:"13",1p:"13"});p(9.C.2T=="1f"){9.e.E.1i(i);9.e.E.1i(9.e.26)}U{9.e.E.1i(9.e.26);9.e.E.1i(i)}p(9.C.3o=="55"&&$j(9.c.2N+"-4V")){$j(9.c.2N+"-4V").1i(9.e.E)}U{9.c.1i(9.e.E)}p("19"!==59(a)){9.e.g=$j(M.1O("68")).T({9o:a[1],9r:a[2]+"R",9s:a[3],9U:"8K",1j:"23",I:a[5],73:a[4],Q:"13"}).1A(V.6W(a[0]));9.e.E.1i(9.e.g)}}p(9.C.2T!="H"&&9.C.2T!=H&&9.c.1I!=""&&9.C.3o!="4e"){c=9.e.26;27(h=c.1W){c.1G(h)}9.e.26.1i(M.6K(9.c.1I));9.e.26.1M()}U{9.e.26.1v()}p(9.c.51===19){9.c.51=9.c.1I}9.c.1I="";9.q.2c(9.6Z.1o(9))},6Z:u(a){p(!a&&a!==19){B}p(!9.C.2l){9.q.E.g(1)}9.c.T({I:9.q.I+"R"});p(9.C.3L){9.37=2L(9.6X,5i)}p(9.C.1L!=""&&$j(9.C.1L)){9.8J()}p(9.c.2N!=""){9.6H()}9.w.2c(9.70.1o(9))},70:u(c){G b,a;p(!c&&c!==19){44(9.37);p(9.C.3L&&9.o){9.o.1v()}B}b=9.e.26.2Q();p(9.C.6C||9.C.3c){p((9.w.I<9.C.1w)||9.C.3c){9.C.1w=9.w.I}p((9.w.K<9.C.1x)||9.C.3c){9.C.1x=9.w.K+b.K}}p(9.C.2T=="1f"){9.w.E.1S.S.K=(9.C.1x-b.K)+"R"}9.e.E.T({K:9.C.1x+"R",I:9.C.1w+"R"}).g(1);p($J.v.1s){9.e.6E.T({I:9.C.1w+"R",K:9.C.1x+"R"})}a=9.q.E.54();2F(9.C.3o){12"55":17;12"1n":9.e.E.S.Q=a.1n-a.Q+9.C.2W+"R";9.e.1X="13";17;12"Q":9.e.E.S.Q="-"+(9.C.2W+9.C.1w)+"R";9.e.1X="13";17;12"P":9.e.E.S.Q="13";9.e.1X="-"+(9.C.2W+9.C.1x)+"R";17;12"1f":9.e.E.S.Q="13";9.e.1X=a.1f-a.P+9.C.2W+"R";17;12"4e":9.e.E.T({Q:"13",K:9.q.K+"R",I:9.q.I+"R"});9.C.1w=9.q.I;9.C.1x=9.q.K;9.e.1X="13";17}9.41=9.C.1x-b.K;p(9.e.g){9.e.g.T({P:9.C.2T=="1f"?"13":((9.C.1x-20)+"R")})}9.w.E.T({1j:"56",2S:"13",1C:"13",Q:"13",P:"13"});9.6s();p(9.C.3d){p(9.C.x==-1){9.C.x=9.q.I/2}p(9.C.y==-1){9.C.y=9.q.K/2}9.1M()}U{p(9.C.6z){9.r=1d $J.1B(9.e.E)}9.e.E.T({P:"-30"})}p(9.C.3L&&9.o){9.o.1v()}9.c.a("5k",9.32);9.c.a("2h",9.32);p(!9.C.3I||9.C.2p){9.29=N}p(9.C.2p&&9.3p){9.3h(9.3p)}9.2a=$J.2i()},6S:u(){p(9.w.1t){B}9.o=$j(M.1O("3s")).2x("8x").g(9.C.6I/1u).T({2Z:"3S",3u:"1T",1j:"23",2n:"1T","z-8C":20,"3R-I":(9.q.I-4)});9.o.1i(M.6K(9.C.6J));9.c.1i(9.o);G a=9.o.2Q();9.o.T({Q:(9.C.53==-1?((9.q.I-a.I)/2):(9.C.53))+"R",P:(9.C.52==-1?((9.q.K-a.K)/2):(9.C.52))+"R"});9.o.1M()},6H:u(){G d,c,a,f;9.2g=$j([]);$J.$A(M.3z("A")).1y(u(b){d=1d 3y("^"+9.c.2N+"$");c=1d 3y("W\\\\-2N(\\\\s+)?:(\\\\s+)?"+9.c.2N+"($|;)");p(d.2X(b.31)||c.2X(b.31)){p(!$j(b).3a){b.3a=u(g){p(!$J.v.1s){9.6v()}$j(g).1h();B H};b.a("1Z",b.3a)}p(!b.2B){b.2B=u(h,g){p(h.3Y=="2h"){p(9.35){44(9.35)}9.35=H;B}p(g.1I!=""){9.c.1I=g.1I}p(h.3Y=="2K"){9.35=2L(9.1A.1o(9,g.2M,g.4X,g.31),9.C.6w)}U{9.1A(g.2M,g.4X,g.31)}}.2A(9,b);b.a(9.C.39,b.2B);p(9.C.39=="2K"){b.a("2h",b.2B)}}b.T({6A:"0"});p(9.C.6F){f=1d 7a();f.1D=b.4X}p(9.C.6D){a=1d 7a();a.1D=b.2M}9.2g.5j(b)}},9)},1h:u(a){1J{9.4g();9.c.1K("5k",9.32);9.c.1K("2h",9.32);p(19===a){9.x.E.1v()}p(9.r){9.r.1h()}9.y=L;9.29=H;9.2g.1y(u(c){p(19===a){c.1K(9.C.39,c.2B);p(9.C.39=="2K"){c.1K("2h",c.2B)}c.2B=L;c.1K("1Z",c.3a);c.3a=L}},9);p(9.C.1L!=""&&$j(9.C.1L)){$j(9.C.1L).1v();$j(9.C.1L).8z.5K($j(9.C.1L),$j(9.C.1L).8A);p(9.c.4Z){9.c.1G(9.c.4Z)}}9.w.2D();p(9.C.2l){9.c.3G("3W");9.q.E.g(1)}9.r=L;p(9.o){9.c.1G(9.o)}p(19===a){9.q.2D();9.c.1G(9.x.E);9.e.E.1S.1G(9.e.E);9.x=L;9.e=L;9.w=L;9.q=L}p(9.37){44(9.37);9.37=L}9.1H=L;9.c.4Z=L;9.o=L;p(9.c.1I==""){9.c.1I=9.c.51}9.2a=-1}28(b){}},1r:u(a){p(9.2a!=-1){B}9.57(H,a)},1A:u(c,d,i){G j,f,k,b,g,a,h;h=L;p($J.2i()-9.2a<34||9.2a==-1||9.5g){j=34-$J.2i()+9.2a;p(9.2a==-1){j=34}9.35=2L(9.1A.1o(9,c,d,i),j);B}f=u(l){p(19!=c){9.c.2M=c}p(19===i){i=""}p(9.C.5N){i="x: "+9.C.x+"; y: "+9.C.y+"; "+i}p(19!=d){9.q.1A(d);p(l!==19){9.q.2c(l)}}};b=9.q.I;g=9.q.K;9.1h(N);p(9.C.58!="H"){9.5g=N;a=1d V.33(d);9.c.1i(a.E);a.E.T({1b:0,1j:"23",Q:"13",P:"13"});k=u(){G l,n,m;l={};m={};n={1b:[0,1]};p(b!=a.I||g!=a.K){m.I=n.I=l.I=[b,a.I];m.K=n.K=l.K=[g,a.K]}p(9.C.58=="36"){l.1b=[1,0]}1d $J.5q([9.c,a.E,9.c.1W],{2O:9.C.5r,2P:u(){f.1m(9,u(){a.2D();9.c.1G(a.E);a=L;p(l.1b){$j(9.c.1W).T({1b:1})}9.5g=H;9.1r(i);p(h){h.1P(10)}}.1o(9))}.1o(9)}).1r([m,n,l])};a.2c(k.1o(9))}U{f.1m(9,u(){9.c.T({I:9.q.I+"R",K:9.q.K+"R"});9.1r(i);p(h){h.1P(10)}}.1o(9))}},5h:u(b){G a,f,d,c;a=L;f=[];d=$j(b.9Q(";"));Y(c 1e V.C){f[c.k()]=V.C[c]}d.1y(u(g){V.6e.1y(u(h){a=h.9P(g.47());p(a){2F($J.1U(V.5e[a[1].k()])){12"9L":f[a[1].k()]=a[4]==="N";17;12"6l":f[a[1].k()]=21(a[4]);17;46:f[a[1].k()]=a[4]}}},9)},9);p(f.2U&&19===f.3d){f.3d=N}9.C=$J.1g(9.C,f)},6s:u(){G a;p(!9.x){9.x={E:$j(M.1O("3s")).2x("3W").T({2w:10,1j:"23",3u:"1T"}).1v(),I:20,K:20};9.c.1i(9.x.E)}p(9.C.3c){9.x.E.T({"1p-I":"13"})}9.x.2y=H;9.x.K=9.41/(9.w.K/9.q.K);9.x.I=9.C.1w/(9.w.I/9.q.I);p(9.x.I>9.q.I){9.x.I=9.q.I}p(9.x.K>9.q.K){9.x.K=9.q.K}9.x.I=X.2v(9.x.I);9.x.K=X.2v(9.x.K);9.x.2S=9.x.E.3m("a2").49();9.x.E.T({I:(9.x.I-2*($J.v.4a?0:9.x.2S))+"R",K:(9.x.K-2*($J.v.4a?0:9.x.2S))+"R"});p(!9.C.2l){9.x.E.g(21(9.C.1b/1u));p(9.x.2d){9.x.E.1G(9.x.2d);9.x.2d=L}}U{9.x.E.g(1);p(9.x.2d){9.x.2d.1D=9.q.E.1D}U{a=9.q.E.a1(H);a.6o="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1}U{p(b>-1&&b<0){b=-1}}h+=b;a*=9.C.5b/1u;p(a<1&&a>0){a=1}U{p(a>-1&&a<0){a=-1}}g+=a;9.w.E.S.Q=h+"R";9.w.E.S.P=g+"R"}p(!9.x.2y){p(9.r){9.r.1h();9.r.C.2P=$J.$F;9.r.C.2O=9.C.6a;9.e.E.g(0);9.r.1r({1b:[0,1]})}p(9.C.3o!="4e"){9.x.E.1M()}9.e.E.S.P=9.e.1X;p(9.C.2l){9.c.2x("3W").64({"1p-I":"13"});9.q.E.g(21((1u-9.C.1b)/1u))}9.x.2y=N}p(9.1H){9.1H=2L(9.5c,63/9.C.3l)}},4g:u(){p(9.1H){44(9.1H);9.1H=L}p(!9.C.3d&&9.x.2y){9.x.2y=H;9.x.E.1v();p(9.r){9.r.1h();9.r.C.2P=9.e.62;9.r.C.2O=9.C.5X;G a=9.e.E.3m("1b");9.r.1r({1b:[a,0]})}U{9.e.1v()}p(9.C.2l){9.c.3G("3W");9.q.E.g(1)}}9.y=L;p(9.C.3I){9.29=H}p(9.C.2U){9.3w=H}p($J.v.1s){9.c.S.2w=0}},5a:u(b){$j(b).1h();p(9.C.2p&&!9.q){9.3p=b;9.5d();B}p(9.w&&9.C.3I&&!9.29){9.29=N;9.3h(b)}p(9.C.2U){9.3w=N;p(!9.C.3N){G a=b.5f();9.3K=a.x-9.C.x-9.y.Q;9.3M=a.y-9.C.y-9.y.P;p(X.5O(9.3K)>9.x.I/2||X.5O(9.3M)>9.x.K/2){9.3w=H;B}}}p(9.C.3N){9.3h(b)}},4Y:u(a){$j(a).1h();p(9.C.2U){9.3w=H}}};p($J.v.1s){1J{M.8b("8i",H,N)}28(e){}}$j(M).a("2u",V.6y);$j(M).a("5k",V.6N);',62,628,'|||||||||this||||||||||||||||if|||||function|||||||return|options||self||var|false|width||height|null|document|true|window|top|left|px|style|j6|else|MagicZoom|zoom|Math|for||||case|0px||||break||undefined|arguments|opacity|prototype|new|in|bottom|extend|stop|appendChild|position|length|Element|call|right|j19|border|defined|start|trident|ready|100|hide|zoomWidth|zoomHeight|j14|getDoc|update|FX|padding|src|J_TYPE|parent|removeChild|z48|title|try|j26|hotspots|show|instanceof|createElement|j32|timer|engine|parentNode|hidden|j1|apply|firstChild|z17|styles|click||parseFloat|init|absolute|toLowerCase||z44|while|catch|z28|z25|zooms|load|z45|J_UUID|Transition|selectors|mouseout|now|event|Class|opacityReverse|replace|visibility|_tmpp|clickToInitialize|z2|cb|detach|Array|domready|round|zIndex|j2|z39|nodeType|j18|z34|className|unload|constructor|switch|pow|array|contains|version|mouseover|setTimeout|href|id|duration|onComplete|j7|render|borderWidth|showTitle|dragMode|Doc|zoomDistance|test|body|display|10000px|rel|z46Bind|z50|300|z35|fade|z20|loading|thumbChange|z36|tagName|entireImage|alwaysShowZoom|currentStyle|on|j40|z46|events|J_EUID|storage|fps|j30|getElementsByClassName|zoomPosition|initMouseEvent|webkit|continue|DIV|onready|overflow|shift|z49|implement|RegExp|getElementsByTagName|presto|getStorage|delete|j5|speed|string|j3|auto|clickToActivate|_cleanup|ddx|showLoading|ddy|moveOnClick|z4|has|z3|max|block|toString|compatMode|none|MagicZoomPup|_event_prefix_|type|el||zoomViewHeight|smoothing|documentElement|clearTimeout|createEvent|default|j21|callee|j22|backCompat|parseInt|hasOwnProperty|scrollTop|inner|scrollLeft|j17|button|features|startTime|onErrorHandler|cos|j13|PI|z6|calc|indexOf|IMG|filter|class|margin|caller|Ff|Bottom|HTMLElement|J_EXTENDED|uuid|Function|defaultView|el_arr|complete|item|append|kill|_event_add_|visible|remove|_event_del_|element|css|Top|String|Right|Event|j10|Left|styleFloat|big|j43|rev|mouseup|z32||z51|loadingPositionY|loadingPositionX|j9|custom|relative|construct|selectorsEffect|typeof|mousedown|smoothingSpeed|z9|z11|defaults|j15|ufx|z37|400|push|mousemove|cubicIn|quadIn|toArray|DXImageTransform|backIn|PFX|selectorsEffectSpeed|expoIn|Alpha|set|onBeforeRender|transition|setProps|enabled|elasticIn|sineIn|Microsoft|j6Prop|getComputedStyle|doc|win|200|gecko|xpath|query|insertBefore|styles_arr|z8|preservePosition|abs|Date|float|dashize|nativize|clearInterval|finishTime|which|relatedTarget|zoomFadeOutSpeed|addEventListener|UUID|raiseEvent|webkit419|z18|1000|j31|cancelBubble|preventDefault|stopPropagation|div|byTag|zoomFadeInSpeed|getBox|compareDocumentPosition|wrap|z40|do|getBoundingClientRect|interval|loop|onStart|object|number|clearEvents|dispatchEvent|unselectable|j42|420|j8|z23|XMLHttpRequest|bounceIn|blur|selectorsMouseoverDelay|forEach|refresh|zoomFade|outline|Width|fitZoomWindow|preloadSelectorsBig|z19|preloadSelectorsSmall|concat|z22|loadingOpacity|loadingMsg|createTextNode|readyState|onError|z1|charAt|date|1px|magicJS|z26|effect|textnode|platform|x7|z10|backcompat|z12|z13|preload|dissolve|textAlign|z7||navigator|abort|to|error|Image|trimLeft|byClass|enclose|icompare|childNodes|toFloat|html|trimRight|innerHTML|j20|innerText|Object|replaceChild|innerWidth|toUpperCase|offsetParent|innerHeight|clientWidth|pageYOffset|pageXOffset|clientHeight|presto925|DOMElement|scrollHeight|hasChild|collection|scrollWidth|j12|exists|iframe|map|j41|j11|match|getTime|mac|getPropertyValue|linux|cssFloat|ipod|hasLayout|orientation|j30s|slice|other|returnValue|950|960|419|525|925|localStorage|191|j4|getElementById|181|190|unknown|getBoxObjectFor|postMessage|clientTop|offsetHeight|execCommand|offsetWidth|regexp|clientLeft|offsetLeft|j23|MouseEvent|BackgroundImageCache|setAttribute|j33|ActiveXObject|progid|taintEnabled|filters|opera|querySelector|setInterval|evaluate|air|runtime|offsetTop|eventType|MagicZoomLoading|pageX|z30|z31|z5|index|static|reverse|Loading|charCodeAt|img|bounceOut|z21|Tahoma|expoOut|sineOut|MozUserSelect|onselectstart|quadOut|cubicOut|_new|elasticOut|backOut|618|distance|drag|entire|image|fit|delay|msg|lastChild|throw|getXY|Zoom|Magic|Invalid|small|9_|always|preserve|move|fromCharCode|mode|activate|initialize|z0|out|change|thumb|oncontextmenu|linear|center|color|dir|rtl|fontSize|fontWeight|cursor|hand|gecko181|curFrame|random|floor|javascript|getButton|frameBorder|toElement|removeEventListener|attachEvent|MagicZoomBigImageCont|detachEvent|IFRAME|3px|initEvent|createEventObject|boolean|DOMContentLoaded|inline|doScroll|exec|split|state|clientX|500|fontFamily|pageY|textDecoration|srcElement|fireEvent|getRelated|fromElement|cloneNode|borderLeftWidth|clientY|getTarget|loaded|target|MagicZoomHeader'.split('|'),0,{}))

/*
 * FancyBox - jQuery Plugin
 * Simple and fancy lightbox alternative
 *
 * Examples and documentation at: http://fancybox.net
 * 
 * Copyright (c) 2008 - 2010 Janis Skarnelis
 * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
 * 
 * Version: 1.3.4 (11/11/2010)
 * Requires: jQuery v1.3+
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */

;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||
c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=
false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",
function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+
'"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win==
"function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+
";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,
opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?
d.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});
y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==
i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());
f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==
37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");
s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j);
f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);
j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type==
"image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),
10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};
b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=
0,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+
1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=
true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;
b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-
d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=b('<div id="fancybox-wrap"></div>'));D=b('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(f);
D.append(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close" class="nolink"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left" class="nolink"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right" class="nolink"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});
b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(D)}}};
b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",
easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){if($("a.fancybox").length > 0){b.fancybox.init()}})})(jQuery);


/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/

// t: current time, b: begInnIng value, c: change In value, d: duration
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.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6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)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))

/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
 */


/**
 * ProgressBar for Google Maps v3
 * @version 1.1
 *
 * by JosÃ© Fernando Calcerrada.
 *
 * Licensed under the GPL licenses:
 * http://www.gnu.org/licenses/gpl.html
 *
 *
 * Chagelog
 *
 * v1.1
 * - IE fixed
 *
 */

progressBar = function(opts) {

  var options = progressBar.combineOptions(opts, {
    height:       '1.3em',
    width:        '150px',
    top:          '30px',
    right:        '5px',
    colorBar:     '#68C',
    background:   '#FFF',
    fontFamily:   'Arial, sans-serif',
    fontSize:     '12px'
  });

  var current = 0;
  var total = 0;

  var shadow = '1px 1px #888';


  var div = document.createElement('div');
  div.id  = 'pg_div';
  var dstyle = div.style;
  div.style.cssText = 'box-shadow: ' + shadow + '; '
                    + '-webkit-box-shadow: ' + shadow + '; '
                    + '-moz-box-shadow: ' + shadow + '; ';
  dstyle.display     = 'none';
  dstyle.width       = options.width;
  dstyle.height      = options.height;
  dstyle.marginRight = '6px';
  dstyle.border      = '1px solid #BBB';
  dstyle.background  = options.background;
  dstyle.fontSize    = options.fontSize;
  dstyle.textAlign   = 'left';

  var text = document.createElement('div');
  text.id  = 'pg_text';
  var tstyle = text.style;
  tstyle.position      = 'absolute';
  tstyle.width         = '100%';
  tstyle.border        = '5px';
  tstyle.textAlign     = 'center';
  tstyle.verticalAlign = 'bottom';

  var bar = document.createElement('div');
  bar.id                    = 'pg_bar';
  bar.style.height          = options.height;
  bar.style.backgroundColor = options.colorBar;

  div.appendChild(text);
  div.appendChild(bar);


  var draw = function(mapDiv) {
    div.style.cssText = control.style.cssText +
      'z-index: 20; position: absolute; '+
      'top: '+options.top+'; right: '+options.right+'; ';
      document.getElementById(mapDiv).children[0].appendChild(div);
  }

  var start = function(total_) {
    if (parseInt(total_) === total_ && total_ > 0) {
      total = total_;
      current = 0;
      bar.style.width = '0%';
      text.innerHTML = 'Loading...';
      div.style.display = 'block';
    }

    return total;
  }

  var updateBar = function(increase) {
    if (parseInt(increase) === increase && total) {
      current += parseInt(increase);
      if (current > total) {
        current = total;
      } else if (current < 0) {
        current = 0;
      }

      bar.style.width = Math.round((current/total)*100)+'%';
      text.innerHTML = current+' / '+total;

    } else if (!total){
      return total;
    }

    return current;
  }

  var hide = function() {
    div.style.display = 'none';
  }

  var getDiv = function() {
    return div;
  }

  var getTotal = function() {
    return total;
  }

  var setTotal = function(total_) {
    total = total_;
  }

  var getCurrent = function() {
    return current;
  }

  var setCurrent = function(current_) {
    return updateBar(current_-current);
  }

  return {
    draw:         draw,
    start:        start,
    updateBar:    updateBar,
    hide:         hide,
    getDiv:       getDiv,
    getTotal:     getTotal,
    setTotal:     setTotal,
    getCurrent:   getCurrent,
    setCurrent:   setCurrent
  }

}

progressBar.combineOptions = function (overrides, defaults) {
  var result = {};
  if (!!overrides) {
    for (var prop in overrides) {
      if (overrides.hasOwnProperty(prop)) {
        result[prop] = overrides[prop];
      }
    }
  }
  if (!!defaults) {
    for (prop in defaults) {
      if (defaults.hasOwnProperty(prop) && (result[prop] === undefined)) {
        result[prop] = defaults[prop];
      }
    }
  }
  return result;
}





