/* jQuery */
$(document).ready(function() {
	/* Invoke overlabel */
	$("label.overlabel").overlabel();
	
	/* IE6 PNG fix */
	$('img[@src$=.png], #header_logo, #header_slogan, #header_promo_menu, #header_promo_contact, #header_search_left, #header_search_right').ifixpng(); 
	
	/* invoke superfish */
	$("ul.header_nav").superfish({autoArrows: false, dropShadows: false});

	$('#banner').cycle({
		random: 1,
		pause: 1, 
		timeout: 7500, 
		pager: '#banner_nav', 
		pagerAnchorBuilder: function(idx, slide) { 
			return '#banner_nav li:eq(' + idx + ') a'; 
    		}    
	});

	$('.header_nav').bgiframe();

	
});


/* [P] Contact */
$(document).ready(function() {
	$("#submitted").click(function(){					   				   
		$(".error").hide();
		var hasError = false;
		var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
		
		var email = $("#c_email").val();
		if(email == '') {
			$("#l_email").after('<div class="error">You forgot to enter the email address.</div>');
			hasError = true;
		} else if(!emailReg.test(email)) {	
			$("#l_email").after('<div class="error">Enter a valid email address.</div>');
			hasError = true;
		}
		
		var name = $("#c_name").val();
		if(name == '') {
			$("#l_name").after('<div class="error">You forgot to enter your name.</div>');
			hasError = true;
		}
		
		var message = $("#c_message").val();
		if(message == '') {
			$("#l_message").after('<div class="error">You forgot to enter the message.</div>');
			hasError = true;
		}
		
		
		if(hasError == false) {
			$(this).hide();
			$("#form_contact div.buttons").append('<div class="loading"></div>');
			
			$.post("./form/form_contact_verify.php",
   				{ c_email: c_email, c_name: c_name, c_phone: c_phone, c_message: c_message, submit: submit },
   					function(data){
						$("#form_contact").slideUp("normal", function() {				   
							
							$("#form_contact").before('<h2>Success</h2><p>I will be in contact with you shortly. Until then, feel free to browse the rest of the site.</p>');											
						});
   					}
				 );
		}
		
		return false;
	});
});


/* [P] Resort Sales Form */
$(document).ready(function() {
	$("#info_submit").click(function(){					   				   
		$(".error").hide();
		var hasError = false;
		var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
		
		var email = $("#info_contact_email").val();
		if(email == '') {
			$("#info_contact_email").after('<div class="error">You forgot to enter the email address.</div>');
			hasError = true;
		} else if(!emailReg.test(email)) {	
			$("#info_contact_email").after('<div class="error">Enter a valid email address.</div>');
			hasError = true;
		}
		
		var name = $("#info_contact_name").val();
		if(name == '') {
			$("#info_contact_name").after('<div class="error">You forgot to enter your name.</div>');
			hasError = true;
		}
		
		var message = $("#info_contact_number").val();
		if(message == '') {
			$("#info_contact_number").after('<div class="error">You forgot to enter your number.</div>');
			hasError = true;
		}
		
		
		if(hasError == false) {
			$(this).hide();
			$("#form_resortsales div.buttons").append('<div class="loading"></div>');
			
			$.post("./form/form_resortsales_verify.php",
   				{ info_contact_name: info_contact_name, info_contact_number: info_contact_number, info_contact_email: info_contact_email, info_group: info_group, info_from: info_from, info_to: info_to, info_takeout_breakfast: info_takeout_breakfast, info_takeout_lunch: info_takeout_lunch, info_takeout_dinner: info_takeout_dinner, info_restaurant_breakfast: info_restaurant_breakfast, info_restaurant_lunch: info_restaurant_lunch, info_restaurant_dinner: info_restaurant_dinner, info_notes: info_notes, info_resort_name: info_resort_name, info_resort_number: info_resort_number, info_resort_contact: info_resort_contact },
   					function(data){
						$("#form_resortsales").slideUp("normal", function() {				   
							
							$("#form_resortsales").before('<h1>Success</h1><p>We will be in contact with you shortly.</p>');											
						});
   					}
				 );
		}
		
		return false;
	});						   
});


/*
-----------------------------

  jQuery functions

-----------------------------
*/


/* jQuery function: hoverintent */

(function($){
	/* hoverIntent by Brian Cherne */
	$.fn.hoverIntent = function(f,g) {
		// default configuration options
		var cfg = {
			sensitivity: 7,
			interval: 100,
			timeout: 0
		};
		// override configuration options with user supplied object
		cfg = $.extend(cfg, g ? { over: f, out: g } : f );

		// instantiate variables
		// cX, cY = current X and Y position of mouse, updated by mousemove event
		// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
		var cX, cY, pX, pY;

		// A private function for getting mouse position
		var track = function(ev) {
			cX = ev.pageX;
			cY = ev.pageY;
		};

		// A private function for comparing current and previous mouse position
		var compare = function(ev,ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			// compare mouse positions to see if they've crossed the threshold
			if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
				$(ob).unbind("mousemove",track);
				// set hoverIntent state to true (so mouseOut can be called)
				ob.hoverIntent_s = 1;
				return cfg.over.apply(ob,[ev]);
			} else {
				// set previous coordinates for next time
				pX = cX; pY = cY;
				// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
				ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
			}
		};

		// A private function for delaying the mouseOut function
		var delay = function(ev,ob) {
			ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
			ob.hoverIntent_s = 0;
			return cfg.out.apply(ob,[ev]);
		};

		// A private function for handling mouse 'hovering'
		var handleHover = function(e) {
			// next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut
			var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
			while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }
			if ( p == this ) { return false; }

			// copy objects to be passed into t (required for event object to be passed in IE)
			var ev = jQuery.extend({},e);
			var ob = this;

			// cancel hoverIntent timer if it exists
			if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }

			// else e.type == "onmouseover"
			if (e.type == "mouseover") {
				// set "previous" X and Y position based on initial entry point
				pX = ev.pageX; pY = ev.pageY;
				// update "current" X and Y position based on mousemove
				$(ob).bind("mousemove",track);
				// start polling interval (self-calling timeout) to compare mouse coordinates over time
				if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}

			// else e.type == "onmouseout"
			} else {
				// unbind expensive mousemove event
				$(ob).unbind("mousemove",track);
				// if hoverIntent state is true, then call the mouseOut function after the specified delay
				if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
			}
		};

		// bind the function to the two event listeners
		return this.mouseover(handleHover).mouseout(handleHover);
	};
	
})(jQuery);

/* END: hoverintent */

/* jQuery Function: superfish */

/*
 * Superfish v1.4.7 - jQuery menu widget
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
 */
 
;(function($){
	$.fn.superfish = function(op){

		var sf = $.fn.superfish,
			c = sf.c,
			$arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
			over = function(){
				var $$ = $(this), menu = getMenu($$);
				clearTimeout(menu.sfTimer);
				$$.showSuperfishUl().siblings().hideSuperfishUl();
			},
			out = function(){
				var $$ = $(this), menu = getMenu($$), o = sf.op;
				clearTimeout(menu.sfTimer);
				menu.sfTimer=setTimeout(function(){
					o.retainPath=($.inArray($$[0],o.$path)>-1);
					$$.hideSuperfishUl();
					if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
				},o.delay);	
			},
			getMenu = function($menu){
				var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
				sf.op = sf.o[menu.serial];
				return menu;
			},
			addArrow = function($a){$a.addClass(c.anchorClass).append($arrow.clone());};
		return this.each(function() {
			var s = this.serial = sf.o.length;
			var o = $.extend({},sf.defaults,op);
			o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
				$(this).addClass([o.hoverClass,c.bcClass].join(' '))
					.filter('li:has(ul)').removeClass(o.pathClass);
			});
			sf.o[s] = sf.op = o;
			
			$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
				if (o.autoArrows) addArrow( $('>a:first-child',this) );
			})
			.not('.'+c.bcClass)
				.hideSuperfishUl();
			
			var $a = $('a',this);
			$a.each(function(i){
				var $li = $a.eq(i).parents('li');
				$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
			});
			o.onInit.call(this);
			
		}).addClass([c.menuClass,c.shadowClass].join(' '));
	};

	var sf = $.fn.superfish;
	sf.o = [];
	sf.op = {};
	sf.IE7fix = function(){
		var o = sf.op;
		if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
			this.toggleClass(sf.c.shadowClass+'-off');
		};
	sf.c = {
		bcClass     : 'sf-breadcrumb',
		menuClass   : 'sf-js-enabled',
		anchorClass : 'sf-with-ul',
		arrowClass  : 'sf-sub-indicator',
		shadowClass : 'sf-shadow'
	};
	sf.defaults = {
		hoverClass	: 'sfHover',
		pathClass	: 'overideThisToUse',
		pathLevels	: 1,
		delay		: 800,
		animation	: {opacity:'show'},
		speed		: 'normal',
		autoArrows	: true,
		dropShadows : true,
		disableHI	: false,		// true disables hoverIntent detection
		onInit		: function(){}, // callback functions
		onBeforeShow: function(){},
		onShow		: function(){},
		onHide		: function(){}};
	$.fn.extend({
		hideSuperfishUl : function(){
			var o = sf.op,
				not = (o.retainPath===true) ? o.$path : '';
			o.retainPath = false;
			var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
					.find('>ul').hide().css('visibility','hidden');
			o.onHide.call($ul);
			return this;
		},
		showSuperfishUl : function(){
			var o = sf.op,
				sh = sf.c.shadowClass+'-off',
				$ul = this.addClass(o.hoverClass)
					.find('>ul:hidden').css('visibility','visible');
			sf.IE7fix.call($ul);
			o.onBeforeShow.call($ul);
			$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
			return this;
		}
	});

})(jQuery);

/* END: superfish */

/* jQuery function: overlabel */

(function($){
$.fn.overlabel = function() {
    this.each(function(index) {
      var label = $(this);
      var name = this.htmlFor || label.attr('for');
      var label_content = label.text();
      var control = label.siblings("input[@name="+ name +"]:first");
      var password_input = "<input type='text' value='"+ label_content +"' name='"+ control.attr("name") +"' class='"+ control.attr("class") +" blur password' onfocus='$(this).prev().show().focus().end().hide();' />";
      label.hide();
      if(control.attr("type") == "password") control.after(password_input).hide();
      control.attr("value", label_content).toggleClass("blur").focus(function(){
        if(control.val() == label_content) control.attr("value", "").toggleClass("blur");
        if(control.attr("type") == "password" && control.next().is(".password")) control.next().remove();
      }).blur(function(){
        if(control.val() === ""){
          control.attr("value", label_content).toggleClass("blur");
          if(control.attr("type") == "password") control.after(password_input).hide();
        }
      }).parent("form").submit(function(){
        if(control.val() == label_content) control.attr("value", "").toggleClass("blur");
        if(control.attr("type") == "password" && control.next().is(".password")) control.show().next().remove();
      });
    });
}
})(jQuery);

/* END: overlabel */


/* jQuery function: PNG fix */
 
(function($) {

	$.ifixpng = function(customPixel) {
		$.ifixpng.pixel = customPixel;
	};
	
	$.ifixpng.getPixel = function() {
		return $.ifixpng.pixel || './themes/site_themes/kosher_global/images/pixel.gif';
	};
	
	var hack = {
		ltie7  : $.browser.msie && $.browser.version < 7,
		filter : function(src) {
			return "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+src+"')";
		}
	};
	 
	$.fn.ifixpng = hack.ltie7 ? function() {
    	return this.each(function() {
			var $$ = $(this);
			// in case rewriting urls
			var base = $('base').attr('href');
			if (base) {
				// remove anything after the last '/'
				base = base.replace(/\/[^\/]+$/,'/');
			}
			if ($$.is('img') || $$.is('input')) { // hack image tags present in dom
				if ($$.attr('src')) {
					if ($$.attr('src').match(/.*\.png([?].*)?$/i)) { // make sure it is png image
						// use source tag value if set 
						var source = (base && $$.attr('src').search(/^(\/|http:)/i)) ? base + $$.attr('src') : $$.attr('src');
						// apply filter
						$$.css({filter:hack.filter(source), width:$$.width(), height:$$.height()})
						  .attr({src:$.ifixpng.getPixel()})
						  .positionFix();
					}
				}
			} else { // hack png css properties present inside css
				var image = $$.css('backgroundImage');
				if (image.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)) {
					image = RegExp.$1;
					image = (base && image.substring(0,1)!='/') ? base + image : image;
					$$.css({backgroundImage:'none', filter:hack.filter(image)})
					  .children().children().positionFix();
				}
			}
		});
	} : function() { return this; };
	 
	$.fn.iunfixpng = hack.ltie7 ? function() {
    	return this.each(function() {
			var $$ = $(this);
			var src = $$.css('filter');
			if (src.match(/src=["']?(.*\.png([?].*)?)["']?/i)) { // get img source from filter
				src = RegExp.$1;
				if ($$.is('img') || $$.is('input')) {$$.attr({src:src}).css({filter:''});
				} else {
					$$.css({filter:'', background:'url('+src+')'});
				}
			}
		});
	} : function() { return this; };
	 
	$.fn.positionFix = function() {
		return this.each(function() {
			var $$ = $(this);
			var position = $$.css('position');
			if (position != 'absolute' && position != 'relative') {$$.css({position:'relative'});
			}
		});
	};

})(jQuery);

/* END: PNG fix */

/* jQuery Function: cycle */

/*
 * jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2008 M. Alsup
 * Version 2.22
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
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}('(4($){7 m=\'2.22\';7 n=$.1o.1p&&/2k 6.0/.2l(2m.2n);4 Z(){3(1q.1r&&1q.1r.Z)1q.1r.Z(\'[B] \'+2o.2p.2q.2r(2s,\'\'))};$.E.B=4(l){x 8.O(4(){l=l||{};3(l.1P==1Q){2t(l){1s\'2u\':3(8.C)17(8.C);8.C=0;x;1s\'1t\':8.M=1;x;1s\'2v\':8.M=0;x;2w:l={P:l}}}3(8.C)17(8.C);8.C=0;8.M=0;7 c=$(8);7 d=l.1u?$(l.1u,8):c.2x();7 e=d.2y();3(e.q<2){Z(\'2z; 2A 2B 2C: \'+e.q);x}7 f=$.2D({},$.E.B.1R,l||{},$.1S?c.1S():$.2E?c.2F():{});3(f.1v)f.1w=f.1x||e.q;f.H=f.H?[f.H]:[];f.I=f.I?[f.I]:[];f.I.2G(4(){f.1y=0});3(f.U)f.I.11(4(){Q(e,f,0,!f.R)});3(n&&f.18&&!f.1T)1z(d);7 g=8.2H;f.y=19((g.1a(/w:(\\d+)/)||[])[1])||f.y;f.r=19((g.1a(/h:(\\d+)/)||[])[1])||f.r;f.A=19((g.1a(/t:(\\d+)/)||[])[1])||f.A;3(c.D(\'1b\')==\'2I\')c.D(\'1b\',\'2J\');3(f.y)c.y(f.y);3(f.r&&f.r!=\'1c\')c.r(f.r);3(f.V){f.W=[];1U(7 i=0;i<e.q;i++)f.W.11(i);f.W.2K(4(a,b){x 2L.V()-0.5});f.S=0;f.J=f.W[0]}N 3(f.J>=e.q)f.J=0;7 h=f.J||0;d.D({1b:\'1V\',2M:0,2N:0}).2O().O(4(i){7 z=h?i>=h?e.q-(i-h):h-i:e.q-i;$(8).D(\'z-2P\',z)});$(e[h]).D(\'12\',1).1W();3($.1o.1p)e[h].1X.1Y(\'1A\');3(f.K&&f.y)d.y(f.y);3(f.K&&f.r&&f.r!=\'1c\')d.r(f.r);3(f.1t)c.2Q(4(){8.M=1},4(){8.M=0});7 j=$.E.B.1Z[f.P];3($.20(j))j(c,d,f);N 3(f.P!=\'1B\')Z(\'2R 2S: \'+f.P);d.O(4(){7 a=$(8);8.21=(f.K&&f.r)?f.r:a.r();8.23=(f.K&&f.y)?f.y:a.y()});f.T=f.T||{};f.13=f.13||{};f.14=f.14||{};d.24(\':1C(\'+h+\')\').D(f.T);3(f.25)$(d[h]).D(f.25);3(f.A){3(f.G.1P==1Q)f.G={2T:2U,2V:2W}[f.G]||2X;3(!f.1d)f.G=f.G/2;2Y((f.A-f.G)<2Z)f.A+=f.G}3(f.1D)f.1E=f.1F=f.1D;3(!f.1e)f.1e=f.G;3(!f.1f)f.1f=f.G;f.26=e.q;f.L=h;3(f.V){f.9=f.L;3(++f.S==e.q)f.S=0;f.9=f.W[f.S]}N f.9=f.J>=(e.q-1)?0:f.J+1;7 k=d[h];3(f.H.q)f.H[0].1g(k,[k,k,f,27]);3(f.I.q>1)f.I[1].1g(k,[k,k,f,27]);3(f.15&&!f.F)f.F=f.15;3(f.F)$(f.F).1G(\'15\',4(){x 1H(e,f,f.R?-1:1)});3(f.1I)$(f.1I).1G(\'15\',4(){x 1H(e,f,f.R?1:-1)});3(f.X)28(e,f);f.30=4(a){7 b=$(a),s=b[0];3(!f.1x)f.1w++;e.11(s);3(f.29)f.29.11(s);f.26=e.q;b.D(\'1b\',\'1V\').2a(c);3(n&&f.18&&!f.1T)1z(b);3(f.K&&f.y)b.y(f.y);3(f.K&&f.r&&f.r!=\'1c\')d.r(f.r);s.21=(f.K&&f.r)?f.r:b.r();s.23=(f.K&&f.y)?f.y:b.y();b.D(f.T);3(1h f.2b==\'4\')f.2b(b)};3(f.A||f.U)8.C=1J(4(){Q(e,f,0,!f.R)},f.U?10:f.A+(f.2c||0))})};4 Q(a,b,c,d){3(b.1y)x;7 p=a[0].1i,Y=a[b.L],F=a[b.9];3(p.C===0&&!c)x;3(!c&&!p.M&&((b.1v&&(--b.1w<=0))||(b.1j&&!b.V&&b.9<b.L))){3(b.1K)b.1K(b);x}3(c||!p.M){3(b.H.q)$.O(b.H,4(i,o){o.1g(F,[Y,F,b,d])});7 e=4(){3($.1o.1p&&b.18)8.1X.1Y(\'1A\');$.O(b.I,4(i,o){o.1g(F,[Y,F,b,d])})};3(b.9!=b.L){b.1y=1;3(b.1L)b.1L(Y,F,b,e,d);N 3($.20($.E.B[b.P]))$.E.B[b.P](Y,F,b,e);N $.E.B.1B(Y,F,b,e)}3(b.V){b.L=b.9;3(++b.S==a.q)b.S=0;b.9=b.W[b.S]}N{7 f=(b.9+1)==a.q;b.9=f?0:b.9+1;b.L=f?a.q-1:b.9-1}3(b.X)$.E.B.1M(b.X,b.L)}3(b.A&&!b.U)p.C=1J(4(){Q(a,b,0,!b.R)},b.A);N 3(b.U&&p.M)p.C=1J(4(){Q(a,b,0,!b.R)},10)};$.E.B.1M=4(a,b){$(a).31(\'a\').32(\'2d\').1A(\'a:1C(\'+b+\')\').33(\'2d\')};4 1H(a,b,c){7 p=a[0].1i,A=p.C;3(A){17(A);p.C=0}b.9=b.L+c;3(b.9<0){3(b.1j)x 1k;b.9=a.q-1}N 3(b.9>=a.q){3(b.1j)x 1k;b.9=0}3(b.1l&&1h b.1l==\'4\')b.1l(c>0,b.9,a[b.9]);Q(a,b,1,c>=0);x 1k};4 28(b,c){7 d=$(c.X);$.O(b,4(i,o){7 a=(1h c.1N==\'4\')?$(c.1N(i,o)):$(\'<a 34="#">\'+(i+1)+\'</a>\');3(a.35(\'36\').q==0)a.2a(d);a.1G(c.2e,4(){c.9=i;7 p=b[0].1i,A=p.C;3(A){17(A);p.C=0}3(1h c.1O==\'4\')c.1O(c.9,b[c.9]);Q(b,c,1,!c.R);x 1k})});$.E.B.1M(c.X,c.J)};4 1z(b){4 1m(s){7 s=19(s).37(16);x s.q<2?\'0\'+s:s};4 2f(e){1U(;e&&e.38.39()!=\'3a\';e=e.1i){7 v=$.D(e,\'2g-2h\');3(v.3b(\'3c\')>=0){7 a=v.1a(/\\d+/g);x\'#\'+1m(a[0])+1m(a[1])+1m(a[2])}3(v&&v!=\'3d\')x v}x\'#3e\'};b.O(4(){$(8).D(\'2g-2h\',2f(8))})};$.E.B.1B=4(a,b,c,d){7 e=$(a),$n=$(b);$n.D(c.T);7 f=4(){$n.2i(c.13,c.1e,c.1E,d)};e.2i(c.14,c.1f,c.1F,4(){3(c.1n)e.D(c.1n);3(!c.1d)f()});3(c.1d)f()};$.E.B.1Z={2j:4(a,b,c){b.24(\':1C(\'+c.J+\')\').D(\'12\',0);c.H.11(4(){$(8).1W()});c.13={12:1};c.14={12:0};c.T={12:0};c.1n={3f:\'3g\'}}};$.E.B.3h=4(){x m};$.E.B.1R={P:\'2j\',A:3i,U:0,G:3j,1e:u,1f:u,F:u,1I:u,1l:u,X:u,1O:u,2e:\'15\',1N:u,H:u,I:u,1K:u,1D:u,1E:u,1F:u,3k:u,13:u,14:u,T:u,1n:u,1L:u,r:\'1c\',J:0,1d:1,V:0,K:0,1t:0,1v:0,1x:0,2c:0,1u:u,18:0,1j:0}})(3l);',62,208,'|||if|function|||var|this|nextSlide|||||||||||||||||length|height|||null|||return|width||timeout|cycle|cycleTimeout|css|fn|next|speed|before|after|startingSlide|fit|currSlide|cyclePause|else|each|fx|go|rev|randomIndex|cssBefore|continuous|random|randomMap|pager|curr|log||push|opacity|animIn|animOut|click||clearTimeout|cleartype|parseInt|match|position|auto|sync|speedIn|speedOut|apply|typeof|parentNode|nowrap|false|prevNextClick|hex|cssAfter|browser|msie|window|console|case|pause|slideExpr|autostop|countdown|autostopCount|busy|clearTypeFix|filter|custom|eq|easing|easeIn|easeOut|bind|advance|prev|setTimeout|end|fxFn|updateActivePagerLink|pagerAnchorBuilder|pagerClick|constructor|String|defaults|metadata|cleartypeNoBg|for|absolute|show|style|removeAttribute|transitions|isFunction|cycleH||cycleW|not|cssFirst|slideCount|true|buildPager|els|appendTo|onAddSlide|delay|activeSlide|pagerEvent|getBg|background|color|animate|fade|MSIE|test|navigator|userAgent|Array|prototype|join|call|arguments|switch|stop|resume|default|children|get|terminating|too|few|slides|extend|meta|data|unshift|className|static|relative|sort|Math|top|left|hide|index|hover|unknown|transition|slow|600|fast|200|400|while|250|addSlide|find|removeClass|addClass|href|parents|body|toString|nodeName|toLowerCase|html|indexOf|rgb|transparent|ffffff|display|none|ver|4000|1000|shuffle|jQuery'.split('|'),0,{}));

/* END: cycle */

/* jQuery Function: bgiframe */

/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-06-19 20:23:36 -0500 (Tue, 19 Jun 2007) $
 * $Rev: 2110 $
 *
 * Version 2.1
 */
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}('(f($){$.r.H=$.r.l=f(s){j($.b.17&&k($.b.g)<=6){s=$.G({c:\'3\',7:\'3\',e:\'3\',5:\'3\',q:U,i:\'N:o;\'},s||{});J a=f(n){h n&&n.C==B?n+\'4\':n},p=\'<t 15="l"12="0"X="-1"i="\'+s.i+\'"\'+\'V="T:Q;P:O;z-M:-1;\'+(s.q!==o?\'L:K(I=\\\'0\\\');\':\'\')+\'c:\'+(s.c==\'3\'?\'9(((k(2.8.m.F)||0)*-1)+\\\'4\\\')\':a(s.c))+\';\'+\'7:\'+(s.7==\'3\'?\'9(((k(2.8.m.E)||0)*-1)+\\\'4\\\')\':a(s.7))+\';\'+\'e:\'+(s.e==\'3\'?\'9(2.8.D+\\\'4\\\')\':a(s.e))+\';\'+\'5:\'+(s.5==\'3\'?\'9(2.8.R+\\\'4\\\')\':a(s.5))+\';\'+\'"/>\';h 2.S(f(){j($(\'> t.l\',2).A==0)2.y(x.W(p),2.w)})}h 2};j(!$.b.g)$.b.g=v.u.Z().14(/.+(?:13|11|10|Y)[\\/: ]([\\d.]+)/)[1]})(16);',62,70,'||this|auto|px|height||left|parentNode|expression||browser|top||width|function|version|return|src|if|parseInt|bgiframe|currentStyle||false|html|opacity|fn||iframe|userAgent|navigator|firstChild|document|insertBefore||length|Number|constructor|offsetWidth|borderLeftWidth|borderTopWidth|extend|bgIframe|Opacity|var|Alpha|filter|index|javascript|absolute|position|block|offsetHeight|each|display|true|style|createElement|tabindex|ie|toLowerCase|ra|it|frameborder|rv|match|class|jQuery|msie'.split('|'),0,{}))

/* END: bgiframe */