/**
 *ajaxContent - jQuery plugin for accessible, unobtrusive and easy ajax behaviour.
 * @Version 2.1 Beta
 * 
 * @requires jQuery v 1.2+
 * 
 * http://www.andreacfm.com/index.cfm/jquery-plugins
 *
 * Copyright (c) 2007 Andrea Campolonghi (andreacfm.com)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
  //make $ surely available inside the PI as jQuery shortcut
(function($) {
	//call teh method with options arguments
	$.fn.ajaxContent = function(options) {
		//extend to defaults
		var defaults = $.extend({}, $.fn.ajaxContent.defaults, options);
			// debug if required		
			if(defaults.debug == 'true'){
				debug(this);
			};
			//Initilaize any instance looping on the match element
			return this.each(function(){
				//set local variables and extend to the metadata plugin if loaded
				var $obj = $(this);
				var href = $obj.attr('href');
				var o = $.metadata ? $.extend({}, defaults, $obj.metadata()) : defaults;
				// add binding change events on url if required
				if(o.bind != ''){
					var binds = o.bind.split(',');
					for(var i=0; i < binds.length ; i++){
						var queryString = setQueryString(binds);
						var url = href + queryString;
						$obj.attr({href:url});
						if ($(binds[i]).attr('type') == "radio" || $(binds[i]).attr('type') == "checkbox"){
							$('input[name=' + $(binds[i]).attr("name") + ']').change(function(){
								var queryString = setQueryString(binds);
								var url = href + queryString;
								$obj.attr({href:url});						
							});
							}else{
							$(binds[i]).change(function(){
								var queryString = setQueryString(binds);
								var url = href + queryString;
								$obj.attr({href:url});						
							});
						}							
					}
				}
				var $target = $(o.target);

			//bind the event
			$obj.bind(o.event, function(ev){
				// add loader if required
				if(o.loader == 'true'){
					if(o.loaderType == 'img'){
 							$target.html('<img src="' + o.loadingMsg + '"/>');
 						}else{
							 $target.html(o.loadingMsg);
 							}
 					} 
					//remove add current class
					$('a.' + o.currentClass).removeClass(o.currentClass);								
					$obj.addClass(o.currentClass);
					// make the call
					$.ajax({ 
  						type: o.type, 
  						url: $obj.attr('href'),
  						cache:'false',
  						beforeSend:function(){
  							if(typeof o.beforeSend == 'function'){
  								o.beforeSend($obj,$target,ev);
  								}
  						},
  						success: function(msg){ 
    						$target.html(msg);
    						if(o.extend == 'true'){
    							$(o.filter,$target).ajaxContent({
    								target:o.ex_target,
									type:o.ex_type,
									event:o.ex_event,
									loader:o.ex_loader,
									loaderType:o.ex_loaderType,
									loadingMsg:o.ex_loadingMsg,
									errorMsg:o.ex_errorMsg,
									currentClass:o.ex_currentClass,
									success:o.ex_success,
									beforeSend:o.ex_beforeSend,
									error:o.ex_error,
									bind:o.ex_bind
    							});
    						}
    						//if a callback exist pass arguments ( object,target and receive message)
    						if(typeof o.success == 'function'){
    							o.success($obj,$target,msg);
    							}  						
    						},
						error: function(){
							$target.html("<p>" + o.errorMsg + "</p>");
							if(typeof o.error == 'function'){
    							o.error($target);
    							}  						
    					 
						}
					});
				return false;
			});
		});
	};	
  	function debug($obj) {
    if (window.console && window.console.log)
     window.console.log('selection count: ' + $obj.size() + '  with class:' + $obj.attr('class'));
  	};
  	function setQueryString(binds){
  		//var queryString = '?';
		var queryString = '&';
  		for(var i=0; i < binds.length; i++){
  			if ($(binds[i]).attr('type') == "radio"){
				queryString += $('input[name=' + $(binds[i]).attr("name") + ']').fieldSerialize();
  			}else if($(binds[i]).attr('type') == "checkbox"){
  				queryString += $(binds[i]).attr("name") + '=' + $('input[name=' + $(binds[i]).attr("name") + ']').fieldValue();
  			}
  			else{
  				queryString += $(binds[i]).fieldSerialize();	
  			}	
  			if(i != binds.length - 1){
  				queryString += '&';
  			}
  		}
	return queryString;
  	};
})(jQuery);

$.fn.ajaxContent.defaults = {
		target: '#ajaxContent',
		type:'get',
		event:'click',
		loader:'true',
		loaderType:'text',
		loadingMsg:'Loading...',
		errorMsg:'An error occured durign the page requesting process!',
		currentClass:'selected',
		success:'',
		beforeSend:'',
		error:'',
		bind:'',
		debug:'false',
		extend:'false',
		filter:'',
		ex_target:'',
		ex_type:'get',
		ex_event:'click',
		ex_loader:'true',
		ex_loaderType:'text',
		ex_loadingMsg:'Loading...',
		ex_errorMsg:'An error occured durign the page requesting process!',
		ex_currentClass:'selected',
		ex_success:'',
		ex_beforeSend:'',
		ex_error:'',
		ex_bind:''
};





//ajaxContent:

/**
 *ajaxContent - jQuery plugin for accessible, unobtrusive and easy ajax behaviour.
 * @Version 2.1 Beta
 * 
 * @requires jQuery v 1.2+
 * 
 * http://www.andreacfm.com/index.cfm/jquery-plugins
 *
 * Copyright (c) 2007 Andrea Campolonghi (andreacfm.com)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
  //make $ surely available inside the PI as jQuery shortcut
(function($) {
	//call teh method with options arguments
	$.fn.ajaxContent = function(options) {
		//extend to defaults
		var defaults = $.extend({}, $.fn.ajaxContent.defaults, options);
			// debug if required		
			if(defaults.debug == 'true'){
				debug(this);
			};
			//Initilaize any instance looping on the match element
			return this.each(function(){
				//set local variables and extend to the metadata plugin if loaded
				var $obj = $(this);
				var href = $obj.attr('href');
				var o = $.metadata ? $.extend({}, defaults, $obj.metadata()) : defaults;
				// add binding change events on url if required
				if(o.bind != ''){
					var binds = o.bind.split(',');
					for(var i=0; i < binds.length ; i++){
						var queryString = setQueryString(binds);
						var url = href + queryString;
						$obj.attr({href:url});
						if ($(binds[i]).attr('type') == "radio" || $(binds[i]).attr('type') == "checkbox"){
							$('input[name=' + $(binds[i]).attr("name") + ']').change(function(){
								var queryString = setQueryString(binds);
								var url = href + queryString;
								$obj.attr({href:url});						
							});
							}else{
							$(binds[i]).change(function(){
								var queryString = setQueryString(binds);
								var url = href + queryString;
								$obj.attr({href:url});						
							});
						}							
					}
				}
				var $target = $(o.target);

			//bind the event
			$obj.bind(o.event, function(ev){
				// add loader if required
				if(o.loader == 'true'){
					if(o.loaderType == 'img'){
 							$target.html('<img src="' + o.loadingMsg + '"/>');
 						}else{
							 $target.html(o.loadingMsg);
 							}
 					} 
					//remove add current class
					$('a.' + o.currentClass).removeClass(o.currentClass);								
					$obj.addClass(o.currentClass);
					// make the call
					$.ajax({ 
  						type: o.type, 
  						url: $obj.attr('href'),
  						cache:'false',
  						beforeSend:function(){
  							if(typeof o.beforeSend == 'function'){
  								o.beforeSend($obj,$target,ev);
  								}
  						},
  						success: function(msg){ 
    						$target.html(msg);
    						if(o.extend == 'true'){
    							$(o.filter,$target).ajaxContent({
    								target:o.ex_target,
									type:o.ex_type,
									event:o.ex_event,
									loader:o.ex_loader,
									loaderType:o.ex_loaderType,
									loadingMsg:o.ex_loadingMsg,
									errorMsg:o.ex_errorMsg,
									currentClass:o.ex_currentClass,
									success:o.ex_success,
									beforeSend:o.ex_beforeSend,
									error:o.ex_error,
									bind:o.ex_bind
    							});
    						}
    						//if a callback exist pass arguments ( object,target and receive message)
    						if(typeof o.success == 'function'){
    							o.success($obj,$target,msg);
    							}  						
    						},
						error: function(){
							$target.html("<p>" + o.errorMsg + "</p>");
							if(typeof o.error == 'function'){
    							o.error($target);
    							}  						
    					 
						}
					});
				return false;
			});
		});
	};	
  	function debug($obj) {
    if (window.console && window.console.log)
     window.console.log('selection count: ' + $obj.size() + '  with class:' + $obj.attr('class'));
  	};
  	function setQueryString(binds){
  		//var queryString = '?';
		var queryString = '&';
  		for(var i=0; i < binds.length; i++){
  			if ($(binds[i]).attr('type') == "radio"){
				queryString += $('input[name=' + $(binds[i]).attr("name") + ']').fieldSerialize();
  			}else if($(binds[i]).attr('type') == "checkbox"){
  				queryString += $(binds[i]).attr("name") + '=' + $('input[name=' + $(binds[i]).attr("name") + ']').fieldValue();
  			}
  			else{
  				queryString += $(binds[i]).fieldSerialize();	
  			}	
  			if(i != binds.length - 1){
  				queryString += '&';
  			}
  		}
	return queryString;
  	};
})(jQuery);

$.fn.ajaxContent.defaults = {
		target: '#ajaxContent',
		type:'get',
		event:'click',
		loader:'true',
		loaderType:'text',
		loadingMsg:'Loading...',
		errorMsg:'An error occured durign the page requesting process!',
		currentClass:'selected',
		success:'',
		beforeSend:'',
		error:'',
		bind:'',
		debug:'false',
		extend:'false',
		filter:'',
		ex_target:'',
		ex_type:'get',
		ex_event:'click',
		ex_loader:'true',
		ex_loaderType:'text',
		ex_loadingMsg:'Loading...',
		ex_errorMsg:'An error occured durign the page requesting process!',
		ex_currentClass:'selected',
		ex_success:'',
		ex_beforeSend:'',
		ex_error:'',
		ex_bind:''
};





/**
 * 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: 5/25/2009
 * @author Ariel Flesler
 * @version 1.4.2
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 */
;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);





/**
 * jquery.scrollable 1.0.2. Put your HTML scroll.
 * 
 * Copyright (c) 2009 Tero Piirainen
 * http://flowplayer.org/tools/scrollable.html
 *
 * Dual licensed under MIT and GPL 2+ licenses
 * http://www.opensource.org/licenses
 *
 * Launch  : March 2008
 * Version : 1.0.2 - Tue Feb 24 2009 10:52:06 GMT-0000 (GMT+00:00)
 */
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}('(3($){3 1d(a,c,d,e){6 b=a[c];7($.16(b)){1X{4 b.10(d,e)}1G(14){7(a.1e){1e("2c 25 A."+c+": "+14)}L{20 14;}4 Q}}4 B}6 u=C;3 1o(l,r){6 o=8;7(!u){u=o}6 j=!r.1z;6 q=$(r.1a,l);6 s=0;6 h=l.S(r.17).y(0);6 n=l.S(r.R).y(0);6 m=l.S(r.H).y(0);6 t=l.S(r.P).y(0);6 k=l.S(r.O).y(0);$.1r(o,{1P:3(){4[1,0,1]},1L:3(){4 s},1J:3(){4 r},x:3(){4 o.D().9()},1l:3(){4 M.15(8.x()/r.9)},Z:3(){4 M.15(s/r.9)},1C:3(){4 l},1A:3(){4 q},D:3(){4 q.T()},K:3(i,a,f){a=a||r.1c;7($.16(a)){f=a;a=r.1c}7(i<0){i=0}7(i>o.x()-r.9){4 o}6 e=o.D().y(i);7(!e.1b){4 o}7(1d(r,"1w",o,i)===Q){4 o}7(j){6 b=-(e.28(B)*i);q.1x({24:b},a,r.19,f?3(){f.10(o)}:C)}L{6 c=-(e.23(B)*i);q.1x({22:c},a,r.19,f?3(){f.10(o)}:C)}7(h.1b){6 g=r.w;6 d=M.15(i/r.9);d=M.21(d,h.T().1b-1);h.T().G(g).y(d).v(g)}7(i===0){n.X(t).v(r.E)}L{n.X(t).G(r.E)}7(i>=o.x()-r.9){m.X(k).v(r.E)}L{m.X(k).G(r.E)}u=o;s=i;1d(r,"1v",o,i);4 o},F:3(b,c,d){6 a=s+b;7(r.1u&&a>(o.x()-r.9)){a=0}4 8.K(a,c,d)},H:3(a,b){4 8.F(1,a,b)},R:3(a,b){4 8.F(-1,a,b)},1Z:3(a,b,c){4 8.F(r.9*a,b,c)},N:3(b,a,d){6 e=r.9;6 f=e*b;6 c=f+e>=8.x();7(c){f=8.x()-r.9}4 8.K(f,a,d)},P:3(a,b){4 8.N(8.Z()-1,a,b)},O:3(a,b){4 8.N(8.Z()+1,a,b)},1W:3(a,b){4 8.K(0,a,b)},1V:3(a,b){4 8.K(8.x()-r.9,a,b)},1U:3(){4 13()},z:3(f,c,e){6 d=o.D().y(f);6 g=r.w;7(!d.1T(g)&&(f>=0||f<8.x())){o.D().G(g);d.v(g);6 a=M.1S(r.9/2);6 b=f-a;7(b>o.x()-r.9){b--}7(b!==f){4 8.K(b,c,e)}}4 o}});7($.16($.1R.1s)){l.12("1s.A",3(e,a){6 b=$.1Q.1O?1:-1;o.F(a>0?b:-b,1N);4 Q})}n.v(r.E).z(3(){o.R()});m.z(3(){o.H()});k.z(3(){o.O()});t.v(r.E).z(3(){o.P()});7(r.1q){$(1M).1K("1n.A").12("1n.A",3(a){6 b=u;7(!b){4}7(j&&(a.J==1m||a.J==1I)){b.F(a.J==1m?-1:1);4 a.11()}7(!j&&(a.J==1p||a.J==1H)){b.F(a.J==1p?-1:1);4 a.11()}4 B})}3 13(){h.U(3(){6 b=$(8);7(b.1F(":1k")||b.I("1j")==o){b.1k();b.I("1j",o);1E(6 i=0;i<o.1l();i++){6 c=$("<"+r.1i+"/>").W("V",i).z(3(e){6 a=$(8);a.1D().T().G(r.w);a.v(r.w);o.N(a.W("V"));4 e.11()});7(i===0){c.v(r.w)}b.1B(c)}}L{6 d=b.T();d.U(3(i){6 a=$(8);a.W("V",i);7(i===0){a.v(r.w)}a.z(3(){b.1Y("."+r.w).G(r.w);a.v(r.w);o.N(a.W("V"))})})}});7(r.1h){o.D().U(3(a,b){6 c=$(8);7(!c.I("1t")){c.12("z.A",3(){o.z(a)});c.I("1t",B)}})}7(r.Y){o.D().1g(3(){$(8).v(r.Y)},3(){$(8).G(r.Y)})}4 o}13();6 p=C;3 1f(){p=2h(3(){o.H()},r.18)}7(r.18>0){l.1g(3(){2g(p)},3(){1f()});1f()}}1y.2e.A=3(d){6 c=8.y(2d d==\'2b\'?d:0).I("A");7(c){4 c}6 b={9:5,1z:Q,1h:B,1u:Q,18:0,1c:2a,1q:B,w:\'29\',E:\'27\',Y:C,19:\'2f\',1a:\'.1a\',R:\'.R\',H:\'.H\',P:\'.P\',O:\'.O\',17:\'.17\',1i:\'a\',1w:C,1v:C,1e:B};$.1r(b,d);8.U(3(){6 a=26 1o($(8),b);$(8).I("A",a)});4 8}})(1y);',62,142,'|||function|return||var|if|this|size||||||||||||||||||||||addClass|activeClass|getSize|eq|click|scrollable|true|null|getItems|disabledClass|move|removeClass|next|data|keyCode|seekTo|else|Math|setPage|nextPage|prevPage|false|prev|siblings|children|each|href|attr|add|hoverClass|getPageIndex|call|preventDefault|bind|load|error|ceil|isFunction|navi|interval|easing|items|length|speed|fireEvent|alert|setTimer|hover|clickable|naviItem|me|empty|getPageAmount|37|keypress|Scrollable|38|keyboard|extend|mousewheel|set|loop|onSeek|onBeforeSeek|animate|jQuery|vertical|getItemWrap|append|getRoot|parent|for|is|catch|40|39|getConf|unbind|getIndex|window|50|opera|getVersion|browser|fn|floor|hasClass|reload|end|begin|try|find|movePage|throw|min|top|outerHeight|left|calling|new|disabled|outerWidth|active|400|number|Error|typeof|prototype|swing|clearInterval|setInterval'.split('|'),0,{}));





// categorize
(function ($) {

	$.fn.categorize = function (o) {
		var s = {
			target: ["#categories"],
			allSelector: [".feature-category"]
		};
		var isFirst = false;

		$.fn.extend({ showHide: function (e) {
			if ($(this).hasClass("chosen"))
				return false;
			$(s.target + " .categorize-link").removeClass("chosen");
			if (isFirst == false) {
				isFirst = true;
				//alert("first");
				$(s.allSelector).css('display', 'none');
				$(e.data).css('display', 'block');
			}
			else {
				//alert("not first");
				$(s.allSelector).slideUp("fast", "linear");
				$(e.data).slideDown("slow", "linear");
			}
			$(this).addClass("chosen");
			return false;
		}
		});


		if (o) $.extend(s, o);
		return this.each(function () {
			var title = $(this).attr("title");
			var li = $('<li>').appendTo($(s.target + " ul"));
			$('<a class="categorize-link" href="#" rel="' + title + '">' + title + " (" + $(this).children().length + ")</a>").bind("click", this, $(this).showHide).appendTo(li);
		});
	};
})(jQuery);




/*
 * jQuery UI 1.7.2
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;

/*
 * jQuery UI Effects 1.7.2
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Effects/
 */
jQuery.effects||(function(d){d.effects={version:"1.7.2",save:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.data("ec.storage."+h[f],g[0].style[h[f]])}}},restore:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.css(h[f],g.data("ec.storage."+h[f]))}}},setMode:function(f,g){if(g=="toggle"){g=f.is(":hidden")?"show":"hide"}return g},getBaseline:function(g,h){var i,f;switch(g[0]){case"top":i=0;break;case"middle":i=0.5;break;case"bottom":i=1;break;default:i=g[0]/h.height}switch(g[1]){case"left":f=0;break;case"center":f=0.5;break;case"right":f=1;break;default:f=g[1]/h.width}return{x:f,y:i}},createWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent()}var g={width:f.outerWidth(true),height:f.outerHeight(true),"float":f.css("float")};f.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var j=f.parent();if(f.css("position")=="static"){j.css({position:"relative"});f.css({position:"relative"})}else{var i=f.css("top");if(isNaN(parseInt(i,10))){i="auto"}var h=f.css("left");if(isNaN(parseInt(h,10))){h="auto"}j.css({position:f.css("position"),top:i,left:h,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}j.css(g);return j},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(g,i,f,h){h=h||{};d.each(i,function(k,j){unit=g.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*f+unit[1]}});return h},animateClass:function(h,i,k,j){var f=(typeof k=="function"?k:(j?j:null));var g=(typeof k=="string"?k:null);return this.each(function(){var q={};var o=d(this);var p=o.attr("style")||"";if(typeof p=="object"){p=p.cssText}if(h.toggle){o.hasClass(h.toggle)?h.remove=h.toggle:h.add=h.toggle}var l=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.addClass(h.add)}if(h.remove){o.removeClass(h.remove)}var m=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.removeClass(h.add)}if(h.remove){o.addClass(h.remove)}for(var r in m){if(typeof m[r]!="function"&&m[r]&&r.indexOf("Moz")==-1&&r.indexOf("length")==-1&&m[r]!=l[r]&&(r.match(/color/i)||(!r.match(/color/i)&&!isNaN(parseInt(m[r],10))))&&(l.position!="static"||(l.position=="static"&&!r.match(/left|top|bottom|right/)))){q[r]=m[r]}}o.animate(q,i,g,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=p}else{d(this).attr("style",p)}if(h.add){d(this).addClass(h.add)}if(h.remove){d(this).removeClass(h.remove)}if(f){f.apply(this,arguments)}})})}};function c(g,f){var i=g[1]&&g[1].constructor==Object?g[1]:{};if(f){i.mode=f}var h=g[1]&&g[1].constructor!=Object?g[1]:(i.duration?i.duration:g[2]);h=d.fx.off?0:typeof h==="number"?h:d.fx.speeds[h]||d.fx.speeds._default;var j=i.callback||(d.isFunction(g[1])&&g[1])||(d.isFunction(g[2])&&g[2])||(d.isFunction(g[3])&&g[3]);return[g[0],i,h,j]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,f,h,i){return d.effects[g]?d.effects[g].call(this,{method:g,options:f||{},duration:h,callback:i}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(d.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"toggle"))}},addClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{add:g},f,i,h]):this._addClass(g)},removeClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{remove:g},f,i,h]):this._removeClass(g)},toggleClass:function(g,f,i,h){return((typeof f!=="boolean")&&f)?d.effects.animateClass.apply(this,[{toggle:g},f,i,h]):this._toggleClass(g,f)},morph:function(f,h,g,j,i){return d.effects.animateClass.apply(this,[{add:h,remove:f},g,j,i])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(f){var g=this.css(f),h=[];d.each(["em","px","%","pt"],function(j,k){if(g.indexOf(k)>0){h=[parseFloat(g),k]}});return h}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){d.fx.step[f]=function(h){if(h.state==0){h.start=e(h.elem,f);h.end=b(h.end)}h.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2],10),255),0)].join(",")+")"}});function b(g){var f;if(g&&g.constructor==Array&&g.length==3){return g}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(g)){return a.transparent}return a[d.trim(g).toLowerCase()]}function e(h,f){var g;do{g=d.curCSS(h,f);if(g!=""&&g!="transparent"||d.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(g,h,f,j,i){return d.easing[d.easing.def](g,h,f,j,i)},easeInQuad:function(g,h,f,j,i){return j*(h/=i)*h+f},easeOutQuad:function(g,h,f,j,i){return -j*(h/=i)*(h-2)+f},easeInOutQuad:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h+f}return -j/2*((--h)*(h-2)-1)+f},easeInCubic:function(g,h,f,j,i){return j*(h/=i)*h*h+f},easeOutCubic:function(g,h,f,j,i){return j*((h=h/i-1)*h*h+1)+f},easeInOutCubic:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h+f}return j/2*((h-=2)*h*h+2)+f},easeInQuart:function(g,h,f,j,i){return j*(h/=i)*h*h*h+f},easeOutQuart:function(g,h,f,j,i){return -j*((h=h/i-1)*h*h*h-1)+f},easeInOutQuart:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h+f}return -j/2*((h-=2)*h*h*h-2)+f},easeInQuint:function(g,h,f,j,i){return j*(h/=i)*h*h*h*h+f},easeOutQuint:function(g,h,f,j,i){return j*((h=h/i-1)*h*h*h*h+1)+f},easeInOutQuint:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h*h+f}return j/2*((h-=2)*h*h*h*h+2)+f},easeInSine:function(g,h,f,j,i){return -j*Math.cos(h/i*(Math.PI/2))+j+f},easeOutSine:function(g,h,f,j,i){return j*Math.sin(h/i*(Math.PI/2))+f},easeInOutSine:function(g,h,f,j,i){return -j/2*(Math.cos(Math.PI*h/i)-1)+f},easeInExpo:function(g,h,f,j,i){return(h==0)?f:j*Math.pow(2,10*(h/i-1))+f},easeOutExpo:function(g,h,f,j,i){return(h==i)?f+j:j*(-Math.pow(2,-10*h/i)+1)+f},easeInOutExpo:function(g,h,f,j,i){if(h==0){return f}if(h==i){return f+j}if((h/=i/2)<1){return j/2*Math.pow(2,10*(h-1))+f}return j/2*(-Math.pow(2,-10*--h)+2)+f},easeInCirc:function(g,h,f,j,i){return -j*(Math.sqrt(1-(h/=i)*h)-1)+f},easeOutCirc:function(g,h,f,j,i){return j*Math.sqrt(1-(h=h/i-1)*h)+f},easeInOutCirc:function(g,h,f,j,i){if((h/=i/2)<1){return -j/2*(Math.sqrt(1-h*h)-1)+f}return j/2*(Math.sqrt(1-(h-=2)*h)+1)+f},easeInElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return -(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f},easeOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return h*Math.pow(2,-10*i)*Math.sin((i*l-j)*(2*Math.PI)/k)+m+f},easeInOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l/2)==2){return f+m}if(!k){k=l*(0.3*1.5)}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}if(i<1){return -0.5*(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f}return h*Math.pow(2,-10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k)*0.5+m+f},easeInBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*(h/=j)*h*((i+1)*h-i)+f},easeOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*((h=h/j-1)*h*((i+1)*h+i)+1)+f},easeInOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}if((h/=j/2)<1){return k/2*(h*h*(((i*=(1.525))+1)*h-i))+f}return k/2*((h-=2)*h*(((i*=(1.525))+1)*h+i)+2)+f},easeInBounce:function(g,h,f,j,i){return j-d.easing.easeOutBounce(g,i-h,0,j,i)+f},easeOutBounce:function(g,h,f,j,i){if((h/=i)<(1/2.75)){return j*(7.5625*h*h)+f}else{if(h<(2/2.75)){return j*(7.5625*(h-=(1.5/2.75))*h+0.75)+f}else{if(h<(2.5/2.75)){return j*(7.5625*(h-=(2.25/2.75))*h+0.9375)+f}else{return j*(7.5625*(h-=(2.625/2.75))*h+0.984375)+f}}}},easeInOutBounce:function(g,h,f,j,i){if(h<i/2){return d.easing.easeInBounce(g,h*2,0,j,i)*0.5+f}return d.easing.easeOutBounce(g,h*2-i,0,j,i)*0.5+j*0.5+f}})})(jQuery);;/*
 * jQuery UI Effects Pulsate 1.7.2
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Effects/Pulsate
 *
 * Depends:
 *	effects.core.js
 */
(function(a){a.effects.pulsate=function(b){return this.queue(function(){var d=a(this);var g=a.effects.setMode(d,b.options.mode||"show");var f=b.options.times||5;var e=b.duration?b.duration/2:a.fx.speeds._default/2;if(g=="hide"){f--}if(d.is(":hidden")){d.css("opacity",0);d.show();d.animate({opacity:1},e,b.options.easing);f=f-2}for(var c=0;c<f;c++){d.animate({opacity:0},e,b.options.easing).animate({opacity:1},e,b.options.easing)}if(g=="hide"){d.animate({opacity:0},e,b.options.easing,function(){d.hide();if(b.callback){b.callback.apply(this,arguments)}})}else{d.animate({opacity:0},e,b.options.easing).animate({opacity:1},e,b.options.easing,function(){if(b.callback){b.callback.apply(this,arguments)}})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);;








//jquery.tweet

(function($) {

	$.fn.tweet = function(o) {
		var s = {
			username: ["seaofclouds"],              // [string]   required, unless you want to display our tweets. :) it can be an array, just do ["username1","username2","etc"]
			avatar_size: null,                      // [integer]  height and width of avatar if displayed (48px max)
			count: 3,                               // [integer]  how many tweets to display?
			intro_text: null,                       // [string]   do you want text BEFORE your your tweets?
			outro_text: null,                       // [string]   do you want text AFTER your tweets?
			join_text: null,                       // [string]   optional text in between date and tweet, try setting to "auto"
			auto_join_text_default: "i said,",      // [string]   auto text for non verb: "i said" bullocks
			auto_join_text_ed: "i",                 // [string]   auto text for past tense: "i" surfed
			auto_join_text_ing: "i am",             // [string]   auto tense for present tense: "i was" surfing
			auto_join_text_reply: "i replied to",   // [string]   auto tense for replies: "i replied to" @someone "with"
			auto_join_text_url: "i was looking at", // [string]   auto tense for urls: "i was looking at" http:...
			loading_text: null,                     // [string]   optional loading text, displayed while tweets load
			query: null                             // [string]   optional search query
		};

		$.fn.extend({
			linkUrl: function() {
				var returning = [];
				var regexp = /((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi;
				this.each(function() {
					returning.push(this.replace(regexp, "<a href=\"$1\">$1</a>"))
				});
				return $(returning);
			},
			linkUser: function() {
				var returning = [];
				var regexp = /[\@]+([A-Za-z0-9-_]+)/gi;
				this.each(function() {
					returning.push(this.replace(regexp, "<a href=\"http://twitter.com/$1\">@$1</a>"))
				});
				return $(returning);
			},
			linkHash: function() {
				var returning = [];
				var regexp = / [\#]+([A-Za-z0-9-_]+)/gi;
				this.each(function() {
					returning.push(this.replace(regexp, ' <a href="http://search.twitter.com/search?q=&tag=$1&lang=all&from=' + s.username.join("%2BOR%2B") + '">#$1</a>'))
				});
				return $(returning);
			},
			capAwesome: function() {
				var returning = [];
				this.each(function() {
					returning.push(this.replace(/(a|A)wesome/gi, 'AWESOME'))
				});
				return $(returning);
			},
			capEpic: function() {
				var returning = [];
				this.each(function() {
					returning.push(this.replace(/(e|E)pic/gi, 'EPIC'))
				});
				return $(returning);
			},
			makeHeart: function() {
				var returning = [];
				this.each(function() {
					returning.push(this.replace(/[&lt;]+[3]/gi, "<tt class='heart'>&#x2665;</tt>"))
				});
				return $(returning);
			}
		});

		function relative_time(time_value) {
			var parsed_date = Date.parse(time_value);
			var relative_to = (arguments.length > 1) ? arguments[1] : new Date();
			var delta = parseInt((relative_to.getTime() - parsed_date) / 1000);
			if (delta < 60) {
				return 'less than a minute ago';
			} else if (delta < 120) {
				return 'about a minute ago';
			} else if (delta < (45 * 60)) {
				return (parseInt(delta / 60)).toString() + ' minutes ago';
			} else if (delta < (90 * 60)) {
				return 'about an hour ago';
			} else if (delta < (24 * 60 * 60)) {
				return 'about ' + (parseInt(delta / 3600)).toString() + ' hours ago';
			} else if (delta < (48 * 60 * 60)) {
				return '1 day ago';
			} else {
				return (parseInt(delta / 86400)).toString() + ' days ago';
			}
		}

		if (o) $.extend(s, o);
		return this.each(function() {
			var list = $('<ul class="tweet_list">').appendTo(this);
			var intro = '<p class="tweet_intro">' + s.intro_text + '</p>'
			var outro = '<p class="tweet_outro">' + s.outro_text + '</p>'
			var loading = $('<p class="loading">' + s.loading_text + '</p>');
			if (typeof (s.username) == "string") {
				s.username = [s.username];
			}
			var query = '';
			if (s.query) {
				query += 'q=' + s.query;
			}
			query += '&q=from:' + s.username.join('%20OR%20from:');
			var url = 'http://search.twitter.com/search.json?&' + query + '&rpp=' + s.count + '&callback=?';
			
			if (s.loading_text) $(this).append(loading);
			$.getJSON(url, function(data) {
				if (s.loading_text) loading.remove();
				if (s.intro_text) list.before(intro);
				$.each(data.results, function(i, item) {
					// auto join text based on verb tense and content
					if (s.join_text == "auto") {
						if (item.text.match(/^(@([A-Za-z0-9-_]+)) .*/i)) {
							var join_text = s.auto_join_text_reply;
						} else if (item.text.match(/(^\w+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+) .*/i)) {
							var join_text = s.auto_join_text_url;
						} else if (item.text.match(/^((\w+ed)|just) .*/im)) {
							var join_text = s.auto_join_text_ed;
						} else if (item.text.match(/^(\w*ing) .*/i)) {
							var join_text = s.auto_join_text_ing;
						} else {
							var join_text = s.auto_join_text_default;
						}
					} else {
						var join_text = s.join_text;
					};

					var join_template = '<span class="tweet_join"> ' + join_text + ' </span>';
					var join = ((s.join_text) ? join_template : ' ')
					var avatar_template = '<a class="tweet_avatar" href="http://twitter.com/' + item.from_user + '"><img src="' + item.profile_image_url + '" height="' + s.avatar_size + '" width="' + s.avatar_size + '" alt="' + item.from_user + '\'s avatar" border="0"/></a>';
					var avatar = (s.avatar_size ? avatar_template : '')
					var date = '<a href="http://twitter.com/' + item.from_user + '/statuses/' + item.id + '" title="view tweet on twitter">' + relative_time(item.created_at) + '</a>';
					var text = '<span class="tweet_text">' + $([item.text]).linkUrl().linkUser().linkHash().makeHeart().capAwesome().capEpic()[0] + '</span>';

					if (item.to_user_id == null) {
						// until we create a template option, arrange the items below to alter a tweet's display.
						list.append('<li>' + avatar + date + join + text + '</li>');

						list.children('li:first').addClass('tweet_first');
						list.children('li:odd').addClass('tweet_even');
						list.children('li:even').addClass('tweet_odd');
					}
				});
				if (s.outro_text) list.after(outro);
			});

		});
	};
})(jQuery);






/*
 * jQuery validation plug-in 1.5.5
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
 * http://docs.jquery.com/Plugins/Validation
 *
 * Copyright (c) 2006 - 2008 Jörn Zaefferer
 *
 * $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 * 
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
(function($){$.extend($.fn,{validate:function(options){if(!this.length){options&&options.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return;}var validator=$.data(this[0],'validator');if(validator){return validator;}validator=new $.validator(options,this[0]);$.data(this[0],'validator',validator);if(validator.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){validator.cancelSubmit=true;});if(validator.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){validator.submitButton=this;});}this.submit(function(event){if(validator.settings.debug)event.preventDefault();function handle(){if(validator.settings.submitHandler){if(validator.submitButton){var hidden=$("<input type='hidden'/>").attr("name",validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm);}validator.settings.submitHandler.call(validator,validator.currentForm);if(validator.submitButton){hidden.remove();}return false;}return true;}if(validator.cancelSubmit){validator.cancelSubmit=false;return handle();}if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=true;return false;}return handle();}else{validator.focusInvalid();return false;}});}return validator;},valid:function(){if($(this[0]).is('form')){return this.validate().form();}else{var valid=true;var validator=$(this[0].form).validate();this.each(function(){valid&=validator.element(this);});return valid;}},removeAttrs:function(attributes){var result={},$element=this;$.each(attributes.split(/\s/),function(index,value){result[value]=$element.attr(value);$element.removeAttr(value);});return result;},rules:function(command,argument){var element=this[0];if(command){var settings=$.data(element.form,'validator').settings;var staticRules=settings.rules;var existingRules=$.validator.staticRules(element);switch(command){case"add":$.extend(existingRules,$.validator.normalizeRule(argument));staticRules[element.name]=existingRules;if(argument.messages)settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);break;case"remove":if(!argument){delete staticRules[element.name];return existingRules;}var filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingRules[method];delete existingRules[method];});return filtered;}}var data=$.validator.normalizeRules($.extend({},$.validator.metadataRules(element),$.validator.classRules(element),$.validator.attributeRules(element),$.validator.staticRules(element)),element);if(data.required){var param=data.required;delete data.required;data=$.extend({required:param},data);}return data;}});$.extend($.expr[":"],{blank:function(a){return!$.trim(a.value);},filled:function(a){return!!$.trim(a.value);},unchecked:function(a){return!a.checked;}});$.validator=function(options,form){this.settings=$.extend({},$.validator.defaults,options);this.currentForm=form;this.init();};$.validator.format=function(source,params){if(arguments.length==1)return function(){var args=$.makeArray(arguments);args.unshift(source);return $.validator.format.apply(this,args);};if(arguments.length>2&&params.constructor!=Array){params=$.makeArray(arguments).slice(1);}if(params.constructor!=Array){params=[params];}$.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),n);});return source;};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(element){this.lastActive=element;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,element,this.settings.errorClass,this.settings.validClass);this.errorsFor(element).hide();}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){this.element(element);}},onkeyup:function(element){if(element.name in this.submitted||element==this.lastElement){this.element(element);}},onclick:function(element){if(element.name in this.submitted)this.element(element);},highlight:function(element,errorClass,validClass){$(element).addClass(errorClass).removeClass(validClass);},unhighlight:function(element,errorClass,validClass){$(element).removeClass(errorClass).addClass(validClass);}},setDefaults:function(settings){$.extend($.validator.defaults,settings);},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var groups=(this.groups={});$.each(this.settings.groups,function(key,value){$.each(value.split(/\s/),function(index,name){groups[name]=key;});});var rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value);});function delegate(event){var validator=$.data(this[0].form,"validator");validator.settings["on"+event.type]&&validator.settings["on"+event.type].call(validator,this[0]);}$(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",delegate).delegate("click",":radio, :checkbox",delegate);if(this.settings.invalidHandler)$(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler);},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid())$(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid();},checkForm:function(){this.prepareForm();for(var i=0,elements=(this.currentElements=this.elements());elements[i];i++){this.check(elements[i]);}return this.valid();},element:function(element){element=this.clean(element);this.lastElement=element;this.prepareElement(element);this.currentElements=$(element);var result=this.check(element);if(result){delete this.invalid[element.name];}else{this.invalid[element.name]=true;}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers);}this.showErrors();return result;},showErrors:function(errors){if(errors){$.extend(this.errorMap,errors);this.errorList=[];for(var name in errors){this.errorList.push({message:errors[name],element:this.findByName(name)[0]});}this.successList=$.grep(this.successList,function(element){return!(element.name in errors);});}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors();},resetForm:function(){if($.fn.resetForm)$(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass);},numberOfInvalids:function(){return this.objectLength(this.invalid);},objectLength:function(obj){var count=0;for(var i in obj)count++;return count;},hideErrors:function(){this.addWrapper(this.toHide).hide();},valid:function(){return this.size()==0;},size:function(){return this.errorList.length;},focusInvalid:function(){if(this.settings.focusInvalid){try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus();}catch(e){}}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name==lastActive.name;}).length==1&&lastActive;},elements:function(){var validator=this,rulesCache={};return $([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&validator.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in rulesCache||!validator.objectLength($(this).rules()))return false;rulesCache[this.name]=true;return true;});},clean:function(selector){return $(selector)[0];},errors:function(){return $(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext);},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([]);this.formSubmitted=false;this.currentElements=$([]);},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers);},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(element);},check:function(element){element=this.clean(element);if(this.checkable(element)){element=this.findByName(element.name)[0];}var rules=$(element).rules();var dependencyMismatch=false;for(method in rules){var rule={method:method,parameters:rules[method]};try{var result=$.validator.methods[method].call(this,element.value.replace(/\r/g,""),element,rule.parameters);if(result=="dependency-mismatch"){dependencyMismatch=true;continue;}dependencyMismatch=false;if(result=="pending"){this.toHide=this.toHide.not(this.errorsFor(element));return;}if(!result){this.formatAndAdd(element,rule);return false;}}catch(e){this.settings.debug&&window.console&&console.log("exception occured when checking element "+element.id
+", check the '"+rule.method+"' method");throw e;}}if(dependencyMismatch)return;if(this.objectLength(rules))this.successList.push(element);return true;},customMetaMessage:function(element,method){if(!$.metadata)return;var meta=this.settings.meta?$(element).metadata()[this.settings.meta]:$(element).metadata();return meta&&meta.messages&&meta.messages[method];},customMessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor==String?m:m[method]);},findDefined:function(){for(var i=0;i<arguments.length;i++){if(arguments[i]!==undefined)return arguments[i];}return undefined;},defaultMessage:function(element,method){return this.findDefined(this.customMessage(element.name,method),this.customMetaMessage(element,method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[method],"<strong>Warning: No message defined for "+element.name+"</strong>");},formatAndAdd:function(element,rule){var message=this.defaultMessage(element,rule.method);if(typeof message=="function")message=message.call(this,rule.parameters,element);this.errorList.push({message:message,element:element});this.errorMap[element.name]=message;this.submitted[element.name]=message;},addWrapper:function(toToggle){if(this.settings.wrapper)toToggle=toToggle.add(toToggle.parent(this.settings.wrapper));return toToggle;},defaultShowErrors:function(){for(var i=0;this.errorList[i];i++){var error=this.errorList[i];this.settings.highlight&&this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass);this.showLabel(error.element,error.message);}if(this.errorList.length){this.toShow=this.toShow.add(this.containers);}if(this.settings.success){for(var i=0;this.successList[i];i++){this.showLabel(this.successList[i]);}}if(this.settings.unhighlight){for(var i=0,elements=this.validElements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,this.settings.validClass);}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},validElements:function(){return this.currentElements.not(this.invalidElements());},invalidElements:function(){return $(this.errorList).map(function(){return this.element;});},showLabel:function(element,message){var label=this.errorsFor(element);if(label.length){label.removeClass().addClass(this.settings.errorClass);label.attr("generated")&&label.html(message);}else{label=$("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(element),generated:true}).addClass(this.settings.errorClass).html(message||"");if(this.settings.wrapper){label=label.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();}if(!this.labelContainer.append(label).length)this.settings.errorPlacement?this.settings.errorPlacement(label,$(element)):label.insertAfter(element);}if(!message&&this.settings.success){label.text("");typeof this.settings.success=="string"?label.addClass(this.settings.success):this.settings.success(label);}this.toShow=this.toShow.add(label);},errorsFor:function(element){return this.errors().filter("[for='"+this.idOrName(element)+"']");},idOrName:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name);},checkable:function(element){return/radio|checkbox/i.test(element.type);},findByName:function(name){var form=this.currentForm;return $(document.getElementsByName(name)).map(function(index,element){return element.form==form&&element.name==name&&element||null;});},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case'select':return $("option:selected",element).length;case'input':if(this.checkable(element))return this.findByName(element.name).filter(':checked').length;}return value.length;},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):true;},dependTypes:{"boolean":function(param,element){return param;},"string":function(param,element){return!!$(param,element.form).length;},"function":function(param,element){return param(element);}},optional:function(element){return!$.validator.methods.required.call(this,$.trim(element.value),element)&&"dependency-mismatch";},startRequest:function(element){if(!this.pending[element.name]){this.pendingRequest++;this.pending[element.name]=true;}},stopRequest:function(element,valid){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[element.name];if(valid&&this.pendingRequest==0&&this.formSubmitted&&this.form()){$(this.currentForm).submit();}else if(!valid&&this.pendingRequest==0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);}},previousValue:function(element){return $.data(element,"previousValue")||$.data(element,"previousValue",previous={old:null,valid:true,message:this.defaultMessage(element,"remote")});}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(className,rules){className.constructor==String?this.classRuleSettings[className]=rules:$.extend(this.classRuleSettings,className);},classRules:function(element){var rules={};var classes=$(element).attr('class');classes&&$.each(classes.split(' '),function(){if(this in $.validator.classRuleSettings){$.extend(rules,$.validator.classRuleSettings[this]);}});return rules;},attributeRules:function(element){var rules={};var $element=$(element);for(method in $.validator.methods){var value=$element.attr(method);if(value){rules[method]=value;}}if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength)){delete rules.maxlength;}return rules;},metadataRules:function(element){if(!$.metadata)return{};var meta=$.data(element.form,'validator').settings.meta;return meta?$(element).metadata()[meta]:$(element).metadata();},staticRules:function(element){var rules={};var validator=$.data(element.form,'validator');if(validator.settings.rules){rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{};}return rules;},normalizeRules:function(rules,element){$.each(rules,function(prop,val){if(val===false){delete rules[prop];return;}if(val.param||val.depends){var keepRule=true;switch(typeof val.depends){case"string":keepRule=!!$(val.depends,element.form).length;break;case"function":keepRule=val.depends.call(element,element);break;}if(keepRule){rules[prop]=val.param!==undefined?val.param:true;}else{delete rules[prop];}}});$.each(rules,function(rule,parameter){rules[rule]=$.isFunction(parameter)?parameter(element):parameter;});$.each(['minlength','maxlength','min','max'],function(){if(rules[this]){rules[this]=Number(rules[this]);}});$.each(['rangelength','range'],function(){if(rules[this]){rules[this]=[Number(rules[this][0]),Number(rules[this][1])];}});if($.validator.autoCreateRanges){if(rules.min&&rules.max){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max;}if(rules.minlength&&rules.maxlength){rules.rangelength=[rules.minlength,rules.maxlength];delete rules.minlength;delete rules.maxlength;}}if(rules.messages){delete rules.messages}return rules;},normalizeRule:function(data){if(typeof data=="string"){var transformed={};$.each(data.split(/\s/),function(){transformed[this]=true;});data=transformed;}return data;},addMethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message||$.validator.messages[name];if(method.length<3){$.validator.addClassRules(name,$.validator.normalizeRule(name));}},methods:{required:function(value,element,param){if(!this.depend(param,element))return"dependency-mismatch";switch(element.nodeName.toLowerCase()){case'select':var options=$("option:selected",element);return options.length>0&&(element.type=="select-multiple"||($.browser.msie&&!(options[0].attributes['value'].specified)?options[0].text:options[0].value).length>0);case'input':if(this.checkable(element))return this.getLength(value,element)>0;default:return $.trim(value).length>0;}},remote:function(value,element,param){if(this.optional(element))return"dependency-mismatch";var previous=this.previousValue(element);if(!this.settings.messages[element.name])this.settings.messages[element.name]={};this.settings.messages[element.name].remote=typeof previous.message=="function"?previous.message(value):previous.message;param=typeof param=="string"&&{url:param}||param;if(previous.old!==value){previous.old=value;var validator=this;this.startRequest(element);var data={};data[element.name]=value;$.ajax($.extend(true,{url:param,mode:"abort",port:"validate"+element.name,dataType:"json",data:data,success:function(response){var valid=response===true;if(valid){var submitted=validator.formSubmitted;validator.prepareElement(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.showErrors();}else{var errors={};errors[element.name]=previous.message=response||validator.defaultMessage(element,"remote");validator.showErrors(errors);}previous.valid=valid;validator.stopRequest(element,valid);}},param));return"pending";}else if(this.pending[element.name]){return"pending";}return previous.valid;},minlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)>=param;},maxlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)<=param;},rangelength:function(value,element,param){var length=this.getLength($.trim(value),element);return this.optional(element)||(length>=param[0]&&length<=param[1]);},min:function(value,element,param){return this.optional(element)||value>=param;},max:function(value,element,param){return this.optional(element)||value<=param;},range:function(value,element,param){return this.optional(element)||(value>=param[0]&&value<=param[1]);},email:function(value,element){return this.optional(element)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(value);},url:function(value,element){return this.optional(element)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);},date:function(value,element){return this.optional(element)||!/Invalid|NaN/.test(new Date(value));},dateISO:function(value,element){return this.optional(element)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value);},dateDE:function(value,element){return this.optional(element)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);},number:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value);},numberDE:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value);},creditcard:function(value,element){if(this.optional(element))return"dependency-mismatch";if(/[^0-9-]+/.test(value))return false;var nCheck=0,nDigit=0,bEven=false;value=value.replace(/\D/g,"");for(n=value.length-1;n>=0;n--){var cDigit=value.charAt(n);var nDigit=parseInt(cDigit,10);if(bEven){if((nDigit*=2)>9)nDigit-=9;}nCheck+=nDigit;bEven=!bEven;}return(nCheck%10)==0;},accept:function(value,element,param){param=typeof param=="string"?param.replace(/,/g,'|'):"png|jpe?g|gif";return this.optional(element)||value.match(new RegExp(".("+param+")$","i"));},equalTo:function(value,element,param){return value==$(param).val();}}});$.format=$.validator.format;})(jQuery);;(function($){var ajax=$.ajax;var pendingRequests={};$.ajax=function(settings){settings=$.extend(settings,$.extend({},$.ajaxSettings,settings));var port=settings.port;if(settings.mode=="abort"){if(pendingRequests[port]){pendingRequests[port].abort();}return(pendingRequests[port]=ajax.apply(this,arguments));}return ajax.apply(this,arguments);};})(jQuery);;(function($){$.each({focus:'focusin',blur:'focusout'},function(original,fix){$.event.special[fix]={setup:function(){if($.browser.msie)return false;this.addEventListener(original,$.event.special[fix].handler,true);},teardown:function(){if($.browser.msie)return false;this.removeEventListener(original,$.event.special[fix].handler,true);},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=fix;return $.event.handle.apply(this,arguments);}};});$.extend($.fn,{delegate:function(type,delegate,handler){return this.bind(type,function(event){var target=$(event.target);if(target.is(delegate)){return handler.apply(target,arguments);}});},triggerEvent:function(type,target){return this.triggerHandler(type,[$.event.fix({type:type,target:target})]);}})})(jQuery);




// Prettyphoto



(function($){$.prettyPhoto={version:'2.5.4'};$.fn.prettyPhoto=function(settings){settings=jQuery.extend({animationSpeed:'normal',padding:40,opacity:0.80,showTitle:true,allowresize:true,counter_separator_label:'/',theme:'light_rounded',hideflash:false,modal:false,changepicturecallback:function(){},callback:function(){}},settings);if($.browser.msie&&$.browser.version==6){settings.theme="light_square";}
if($('.pp_overlay').size()==0){_buildOverlay();}else{$pp_pic_holder=$('.pp_pic_holder');$ppt=$('.ppt');}
var doresize=true,percentBased=false,correctSizes,$pp_pic_holder,$ppt,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,pp_type='image',setPosition=0,$scrollPos=_getScroll();$(window).scroll(function(){$scrollPos=_getScroll();_centerOverlay();_resizeOverlay();});$(window).resize(function(){_centerOverlay();_resizeOverlay();});$(document).keydown(function(e){if($pp_pic_holder.is(':visible'))
switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');break;case 39:$.prettyPhoto.changePage('next');break;case 27:if(!settings.modal)
$.prettyPhoto.close();break;};});$(this).each(function(){$(this).bind('click',function(){link=this;theRel=$(this).attr('rel');galleryRegExp=/\[(?:.*)\]/;theGallery=galleryRegExp.exec(theRel);var images=new Array(),titles=new Array(),descriptions=new Array();if(theGallery){$('a[rel*='+theGallery+']').each(function(i){if($(this)[0]===$(link)[0])setPosition=i;images.push($(this).attr('href'));titles.push($(this).find('img').attr('alt'));descriptions.push($(this).attr('title'));});}else{images=$(this).attr('href');titles=($(this).find('img').attr('alt'))?$(this).find('img').attr('alt'):'';descriptions=($(this).attr('title'))?$(this).attr('title'):'';}
$.prettyPhoto.open(images,titles,descriptions);return false;});});$.prettyPhoto.open=function(gallery_images,gallery_titles,gallery_descriptions){if($.browser.msie&&$.browser.version==6){$('select').css('visibility','hidden');};if(settings.hideflash)$('object,embed').css('visibility','hidden');images=$.makeArray(gallery_images);titles=$.makeArray(gallery_titles);descriptions=$.makeArray(gallery_descriptions);if($('.pp_overlay').size()==0){_buildOverlay();}else{$pp_pic_holder=$('.pp_pic_holder');$ppt=$('.ppt');}
$pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);isSet=($(images).size()>0)?true:false;_getFileType(images[setPosition]);_centerOverlay();_checkPosition($(images).size());$('.pp_loaderIcon').show();$('div.pp_overlay').show().fadeTo(settings.animationSpeed,settings.opacity,function(){$pp_pic_holder.fadeIn(settings.animationSpeed,function(){$pp_pic_holder.find('p.currentTextHolder').text((setPosition+1)+settings.counter_separator_label+$(images).size());if(descriptions[setPosition]){$pp_pic_holder.find('.pp_description').show().html(unescape(descriptions[setPosition]));}else{$pp_pic_holder.find('.pp_description').hide().text('');};if(titles[setPosition]&&settings.showTitle){hasTitle=true;$ppt.html(unescape(titles[setPosition]));}else{hasTitle=false;};if(pp_type=='image'){imgPreloader=new Image();nextImage=new Image();if(isSet&&setPosition>$(images).size())nextImage.src=images[setPosition+1];prevImage=new Image();if(isSet&&images[setPosition-1])prevImage.src=images[setPosition-1];pp_typeMarkup='<img id="fullResImage" src="" />';$pp_pic_holder.find('#pp_full_res')[0].innerHTML=pp_typeMarkup;$pp_pic_holder.find('.pp_content').css('overflow','hidden');$pp_pic_holder.find('#fullResImage').attr('src',images[setPosition]);imgPreloader.onload=function(){correctSizes=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.src=images[setPosition];}else{movie_width=(parseFloat(grab_param('width',images[setPosition])))?grab_param('width',images[setPosition]):"425";movie_height=(parseFloat(grab_param('height',images[setPosition])))?grab_param('height',images[setPosition]):"344";if(movie_width.indexOf('%')!=-1||movie_height.indexOf('%')!=-1){movie_height=($(window).height()*parseFloat(movie_height)/100)-100;movie_width=($(window).width()*parseFloat(movie_width)/100)-100;percentBased=true;}
movie_height = parseFloat(movie_height); movie_width = parseFloat(movie_width); if (pp_type == 'quicktime') movie_height += 15; correctSizes = _fitToViewport(movie_width, movie_height); if (pp_type == 'youtube') { pp_typeMarkup = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + correctSizes['width'] + '" height="' + correctSizes['height'] + '"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.youtube.com/v/' + grab_param('v', images[setPosition]) + '&autoplay=1&rel=0" /><embed src="http://www.youtube.com/v/' + grab_param('v', images[setPosition]) + '&autoplay=1&rel=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="' + correctSizes['width'] + '" height="' + correctSizes['height'] + '"></embed></object>'; } else if (pp_type == 'quicktime') { pp_typeMarkup = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="' + correctSizes['height'] + '" width="' + correctSizes['width'] + '"><param name="src" value="' + images[setPosition] + '"><param name="autoplay" value="true"><param name="type" value="video/quicktime"><embed src="' + images[setPosition] + '" height="' + correctSizes['height'] + '" width="' + correctSizes['width'] + '" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>'; } else if (pp_type == 'flash') { flash_vars = images[setPosition]; flash_vars = flash_vars.substring(images[setPosition].indexOf('flashvars') + 10, images[setPosition].length); filename = images[setPosition]; filename = filename.substring(0, filename.indexOf('?')); pp_typeMarkup = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + correctSizes['width'] + '" height="' + correctSizes['height'] + '"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="' + filename + '?' + flash_vars + '" /><embed src="' + filename + '?' + flash_vars + '" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="' + correctSizes['width'] + '" height="' + correctSizes['height'] + '"></embed></object>'; } else if (pp_type == 'iframe') { movie_url = images[setPosition]; movie_url = movie_url.substr(0, movie_url.indexOf('iframe') - 1); pp_typeMarkup = '<iframe src ="' + movie_url + '" width="' + (correctSizes['width'] - 10) + '" height="' + (correctSizes['height'] - 10) + '" frameborder="no"></iframe>'; }
_showContent();}});});};$.prettyPhoto.changePage=function(direction){if(direction=='previous'){setPosition--;if(setPosition<0){setPosition=0;return;}}else{if($('.pp_arrow_next').is('.disabled'))return;setPosition++;};if(!doresize)doresize=true;_hideContent();$('a.pp_expand,a.pp_contract').fadeOut(settings.animationSpeed,function(){$(this).removeClass('pp_contract').addClass('pp_expand');$.prettyPhoto.open(images,titles,descriptions);});};$.prettyPhoto.close=function(){$pp_pic_holder.find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt').fadeOut(settings.animationSpeed);$('div.pp_overlay').fadeOut(settings.animationSpeed,function(){$('div.pp_overlay,div.pp_pic_holder,div.ppt').remove();if($.browser.msie&&$.browser.version==6){$('select').css('visibility','visible');};if(settings.hideflash)$('object,embed').css('visibility','visible');setPosition=0;settings.callback();});doresize=true;};_showContent=function(){$('.pp_loaderIcon').hide();if($.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth;}else{windowHeight=$(window).height();windowWidth=$(window).width();};projectedTop=$scrollPos['scrollTop']+((windowHeight/2)-(correctSizes['containerHeight']/2));if(projectedTop<0)projectedTop=0+$pp_pic_holder.find('.ppt').height();$pp_pic_holder.find('.pp_content').animate({'height':correctSizes['contentHeight']},settings.animationSpeed);$pp_pic_holder.animate({'top':projectedTop,'left':((windowWidth/2)-(correctSizes['containerWidth']/2)),'width':correctSizes['containerWidth']},settings.animationSpeed,function(){$pp_pic_holder.width(correctSizes['containerWidth']);$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(correctSizes['height']).width(correctSizes['width']);$pp_pic_holder.find('#pp_full_res').fadeIn(settings.animationSpeed);if(isSet&&pp_type=="image"){$pp_pic_holder.find('.pp_hoverContainer').fadeIn(settings.animationSpeed);}else{$pp_pic_holder.find('.pp_hoverContainer').hide();}
$pp_pic_holder.find('.pp_details').fadeIn(settings.animationSpeed);if(settings.showTitle&&hasTitle){$ppt.css({'top':$pp_pic_holder.offset().top-20,'left':$pp_pic_holder.offset().left+(settings.padding/2),'display':'none'});$ppt.fadeIn(settings.animationSpeed);};if(correctSizes['resized'])$('a.pp_expand,a.pp_contract').fadeIn(settings.animationSpeed);if(pp_type!='image')$pp_pic_holder.find('#pp_full_res')[0].innerHTML=pp_typeMarkup;settings.changepicturecallback();});};function _hideContent(){$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('.pp_hoverContainer,.pp_details').fadeOut(settings.animationSpeed);$pp_pic_holder.find('#pp_full_res').fadeOut(settings.animationSpeed,function(){$('.pp_loaderIcon').show();});$ppt.fadeOut(settings.animationSpeed);}
function _checkPosition(setCount){if(setPosition==setCount-1){$pp_pic_holder.find('a.pp_next').css('visibility','hidden');$pp_pic_holder.find('a.pp_arrow_next').addClass('disabled').unbind('click');}else{$pp_pic_holder.find('a.pp_next').css('visibility','visible');$pp_pic_holder.find('a.pp_arrow_next.disabled').removeClass('disabled').bind('click',function(){$.prettyPhoto.changePage('next');return false;});};if(setPosition==0){$pp_pic_holder.find('a.pp_previous').css('visibility','hidden');$pp_pic_holder.find('a.pp_arrow_previous').addClass('disabled').unbind('click');}else{$pp_pic_holder.find('a.pp_previous').css('visibility','visible');$pp_pic_holder.find('a.pp_arrow_previous.disabled').removeClass('disabled').bind('click',function(){$.prettyPhoto.changePage('previous');return false;});};if(setCount>1){$('.pp_nav').show();}else{$('.pp_nav').hide();}};function _fitToViewport(width,height){hasBeenResized=false;_getDimensions(width,height);imageWidth=width;imageHeight=height;windowHeight=$(window).height();windowWidth=$(window).width();if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allowresize&&!percentBased){hasBeenResized=true;notFitting=true;while(notFitting){if((pp_containerWidth>windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight>windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{notFitting=false;};pp_containerHeight=imageHeight;pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);};return{width:imageWidth,height:imageHeight,containerHeight:pp_containerHeight,containerWidth:pp_containerWidth,contentHeight:pp_contentHeight,contentWidth:pp_contentWidth,resized:hasBeenResized};};function _getDimensions(width,height){$pp_pic_holder.find('.pp_details').width(width).find('.pp_description').width(width-parseFloat($pp_pic_holder.find('a.pp_close').css('width')));pp_contentHeight=height+$pp_pic_holder.find('.pp_details').height()+parseFloat($pp_pic_holder.find('.pp_details').css('marginTop'))+parseFloat($pp_pic_holder.find('.pp_details').css('marginBottom'));pp_contentWidth=width;pp_containerHeight=pp_contentHeight+$pp_pic_holder.find('.ppt').height()+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width+settings.padding;}
function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)){pp_type='youtube';}else if(itemSrc.indexOf('.mov')!=-1){pp_type='quicktime';}else if(itemSrc.indexOf('.swf')!=-1){pp_type='flash';}else if(itemSrc.indexOf('iframe')!=-1){pp_type='iframe'}else{pp_type='image';};};function _centerOverlay(){if($.browser.opera){windowHeight=window.innerHeight;windowWidth=window.innerWidth;}else{windowHeight=$(window).height();windowWidth=$(window).width();};if(doresize){$pHeight=$pp_pic_holder.height();$pWidth=$pp_pic_holder.width();$tHeight=$ppt.height();projectedTop=(windowHeight/2)+$scrollPos['scrollTop']-($pHeight/2);if(projectedTop<0)projectedTop=0+$tHeight;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+$scrollPos['scrollLeft']-($pWidth/2)});$ppt.css({'top':projectedTop-$tHeight,'left':(windowWidth/2)+$scrollPos['scrollLeft']-($pWidth/2)+(settings.padding/2)});};};function _getScroll(){if(self.pageYOffset){scrollTop=self.pageYOffset;scrollLeft=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop){scrollTop=document.documentElement.scrollTop;scrollLeft=document.documentElement.scrollLeft;}else if(document.body){scrollTop=document.body.scrollTop;scrollLeft=document.body.scrollLeft;}
return{scrollTop:scrollTop,scrollLeft:scrollLeft};};function _resizeOverlay(){$('div.pp_overlay').css({'height':$(document).height(),'width':$(window).width()});};function _buildOverlay(){toInject="";toInject+="<div class='pp_overlay'></div>";toInject+='<div class="pp_pic_holder"><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_loaderIcon"></div><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res"></div><div class="pp_details clearfix"><a class="pp_close" href="#">Close</a><p class="pp_description"></p><div class="pp_nav"><a href="#" class="pp_arrow_previous">Previous</a><p class="currentTextHolder">0'+settings.counter_separator_label+'0</p><a href="#" class="pp_arrow_next">Next</a></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div>';toInject+='<div class="ppt"></div>';$('body').append(toInject);$('div.pp_overlay').css('opacity',0);$pp_pic_holder=$('.pp_pic_holder');$ppt=$('.ppt');$('div.pp_overlay').css('height',$(document).height()).hide().bind('click',function(){if(!settings.modal)
$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});$('a.pp_expand').bind('click',function(){$this=$(this);if($this.hasClass('pp_expand')){$this.removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$this.removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent();$pp_pic_holder.find('.pp_hoverContainer, .pp_details').fadeOut(settings.animationSpeed);$pp_pic_holder.find('#pp_full_res').fadeOut(settings.animationSpeed,function(){$.prettyPhoto.open(images,titles,descriptions);});return false;});$pp_pic_holder.find('.pp_previous, .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');return false;});$pp_pic_holder.find('.pp_next, .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');return false;});$pp_pic_holder.find('.pp_hoverContainer').css({'margin-left':settings.padding/2});};};function grab_param(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);if(results==null)
return"";else
return results[1];}})(jQuery);

//google translation

if (!window['google']) {
    window['google'] = {};
}
if (!window['google']['loader']) {
    window['google']['loader'] = {};
    google.loader.ServiceBase = 'http://www.google.com/uds';
    google.loader.GoogleApisBase = 'http://ajax.googleapis.com/ajax';
    google.loader.ApiKey = 'notsupplied';
    google.loader.KeyVerified = true;
    google.loader.LoadFailure = false;
    google.loader.Secure = false;
    google.loader.GoogleLocale = 'www.google.com';
    google.loader.ClientLocation = null;
    google.loader.AdditionalParams = '';
    (function() {
        var d = true, e = null, g = false, h = encodeURIComponent, j = window, k = google, m = undefined, n = document; function p(a, b) { return a.load = b } var q = "push", s = "replace", t = "charAt", u = "ServiceBase", v = "name", w = "getTime", x = "length", y = "prototype", z = "setTimeout", A = "loader", B = "substring", C = "join", D = "toLowerCase"; function E(a) { if (a in F) return F[a]; return F[a] = navigator.userAgent[D]().indexOf(a) != -1 } var F = {}; function G(a, b) { var c = function() { }; c.prototype = b[y]; a.R = b[y]; a.prototype = new c }
        function H(a, b) { var c = a.F || []; c = c.concat(Array[y].slice.call(arguments, 2)); if (typeof a.s != "undefined") b = a.s; if (typeof a.r != "undefined") a = a.r; var f = function() { var i = c.concat(Array[y].slice.call(arguments)); return a.apply(b, i) }; f.F = c; f.s = b; f.r = a; return f } function I(a) { a = new Error(a); a.toString = function() { return this.message }; return a } function J(a, b) { a = a.split(/\./); for (var c = j, f = 0; f < a[x] - 1; f++) { c[a[f]] || (c[a[f]] = {}); c = c[a[f]] } c[a[a[x] - 1]] = b } function K(a, b, c) { a[b] = c } if (!L) var L = J; if (!M) var M = K; k[A].t = {}; L("google.loader.callbacks", k[A].t); var N = {}, O = {}; k[A].eval = {}; L("google.loader.eval", k[A].eval);
        p(k, function(a, b, c) {
            function f(r) { var o = r.split("."); if (o[x] > 2) throw I("Module: '" + r + "' not found!"); else if (typeof o[1] != "undefined") { i = o[0]; c.packages = c.packages || []; c.packages[q](o[1]) } } var i = a; c = c || {}; if (a instanceof Array || a && typeof a == "object" && typeof a[C] == "function" && typeof a.reverse == "function") for (var l = 0; l < a[x]; l++) f(a[l]); else f(a); if (a = N[":" + i]) {
                if (c && !c.language && c.locale) c.language = c.locale; if (c && typeof c.callback == "string") {
                    l = c.callback; if (l.match(/^[[\]A-Za-z0-9._]+$/)) {
                        l = j.eval(l);
                        c.callback = l
                    } 
                } if ((l = c && c.callback != e) && !a.q(b)) throw I("Module: '" + i + "' must be loaded before DOM onLoad!"); else if (l) a.l(b, c) ? j[z](c.callback, 0) : a.load(b, c); else a.l(b, c) || a.load(b, c)
            } else throw I("Module: '" + i + "' not found!");
        }); L("google.load", k.load); k.Q = function(a, b) { b ? aa(a) : P(j, "load", a) }; L("google.setOnLoadCallback", k.Q); function P(a, b, c) { if (a.addEventListener) a.addEventListener(b, c, g); else if (a.attachEvent) a.attachEvent("on" + b, c); else { var f = a["on" + b]; a["on" + b] = f != e ? ba([c, f]) : c } }
        function ba(a) { return function() { for (var b = 0; b < a[x]; b++) a[b]() } } var Q = []; function aa(a) { if (Q[x] == 0) { P(j, "load", R); if (!E("msie") && !(E("safari") || E("konqueror")) && E("mozilla") || j.opera) j.addEventListener("DOMContentLoaded", R, g); else if (E("msie")) n.write("<script defer onreadystatechange='google.loader.domReady()' src=//:><\/script>"); else (E("safari") || E("konqueror")) && j[z](ca, 10) } Q[q](a) }
        k[A].L = function() { var a = j.event.srcElement; if (a.readyState == "complete") { a.onreadystatechange = e; a.parentNode.removeChild(a); R() } }; L("google.loader.domReady", k[A].L); var da = { loaded: d, complete: d }; function ca() { if (da[n.readyState]) R(); else Q[x] > 0 && j[z](ca, 10) } function R() { for (var a = 0; a < Q[x]; a++) Q[a](); Q.length = 0 }
        k[A].e = function(a, b, c) { if (c) { var f; if (a == "script") { f = n.createElement("script"); f.type = "text/javascript"; f.src = b } else if (a == "css") { f = n.createElement("link"); f.type = "text/css"; f.href = b; f.rel = "stylesheet" } (a = n.getElementsByTagName("head")[0]) || (a = n.body.parentNode.appendChild(n.createElement("head"))); a.appendChild(f) } else if (a == "script") n.write('<script src="' + b + '" type="text/javascript"><\/script>'); else a == "css" && n.write('<link href="' + b + '" type="text/css" rel="stylesheet"></link>') };
        L("google.loader.writeLoadTag", k[A].e); k[A].N = function(a) { O = a }; L("google.loader.rfm", k[A].N); k[A].P = function(a) { for (var b in a) if (typeof b == "string" && b && b[t](0) == ":" && !N[b]) N[b] = new T(b[B](1), a[b]) }; L("google.loader.rpl", k[A].P); k[A].O = function(a) { if ((a = a.specs) && a[x]) for (var b = 0; b < a[x]; ++b) { var c = a[b]; if (typeof c == "string") N[":" + c] = new U(c); else { c = new V(c[v], c.baseSpec, c.customSpecs); N[":" + c[v]] = c } } }; L("google.loader.rm", k[A].O); k[A].loaded = function(a) { N[":" + a.module].j(a) };
        L("google.loader.loaded", k[A].loaded); k[A].K = function() { var a = (new Date)[w](), b = Math.floor(Math.random() * 1E7); return "qid=" + (a.toString(16) + b.toString(16)) }; L("google.loader.createGuidArg_", k[A].K); J("google_exportSymbol", J); J("google_exportProperty", K); k[A].b = {}; L("google.loader.themes", k[A].b); k[A].b.z = "http://www.google.com/cse/style/look/bubblegum.css"; M(k[A].b, "BUBBLEGUM", k[A].b.z); k[A].b.B = "http://www.google.com/cse/style/look/greensky.css"; M(k[A].b, "GREENSKY", k[A].b.B); k[A].b.A = "http://www.google.com/cse/style/look/espresso.css";
        M(k[A].b, "ESPRESSO", k[A].b.A); k[A].b.D = "http://www.google.com/cse/style/look/shiny.css"; M(k[A].b, "SHINY", k[A].b.D); k[A].b.C = "http://www.google.com/cse/style/look/minimalist.css"; M(k[A].b, "MINIMALIST", k[A].b.C); function U(a) { this.a = a; this.o = {}; this.c = {}; this.k = d; this.d = -1 }
        U[y].g = function(a, b) {
            var c = ""; if (b != m) { if (b.language != m) c += "&hl=" + h(b.language); if (b.nocss != m) c += "&output=" + h("nocss=" + b.nocss); if (b.nooldnames != m) c += "&nooldnames=" + h(b.nooldnames); if (b.packages != m) c += "&packages=" + h(b.packages); if (b.callback != e) c += "&async=2"; if (b.style != m) c += "&style=" + h(b.style); if (b.other_params != m) c += "&" + b.other_params } if (!this.k) {
                if (k[this.a] && k[this.a].JSHash) c += "&sig=" + h(k[this.a].JSHash); b = []; for (var f in this.o) f[t](0) == ":" && b[q](f[B](1)); for (f in this.c) f[t](0) == ":" && b[q](f[B](1));
                c += "&have=" + h(b[C](","))
            } return k[A][u] + "/?file=" + this.a + "&v=" + a + k[A].AdditionalParams + c
        }; U[y].v = function(a) { var b = e; if (a) b = a.packages; var c = e; if (b) if (typeof b == "string") c = [a.packages]; else if (b[x]) { c = []; for (a = 0; a < b[x]; a++) typeof b[a] == "string" && c[q](b[a][s](/^\s*|\s*$/, "")[D]()) } c || (c = ["default"]); b = []; for (a = 0; a < c[x]; a++) this.o[":" + c[a]] || b[q](c[a]); return b };

        p(U[y], function(a, b) {
            var c = this.v(b), f = b && b.callback != e; if (f) var i = new W(b.callback); for (var l = [], r = c[x] - 1; r >= 0; r--) { var o = c[r]; f && i.G(o); if (this.c[":" + o]) { c.splice(r, 1); f && this.c[":" + o][q](i) } else l[q](o) } if (c[x]) {
                if (b && b.packages) b.packages = c.sort()[C](","); if (!b && O[":" + this.a] != e && O[":" + this.a].versions[":" + a] != e && !k[A].AdditionalParams && this.k) {
                    a = O[":" + this.a]; k[this.a] = k[this.a] || {}; for (var S in a.properties) if (S && S[t](0) == ":") k[this.a][S[B](1)] = a.properties[S]; k[A].e("script", k[A][u] + a.path +
a.js, f); a.css && k[A].e("css", k[A][u] + a.path + a.css, f)
                } else if (!b || !b.autoloaded) k[A].e("script", this.g(a, b), f); if (this.k) { this.k = g; this.d = (new Date)[w](); if (this.d % 100 != 1) this.d = -1 } for (r = 0; r < l[x]; r++) { o = l[r]; this.c[":" + o] = []; f && this.c[":" + o][q](i) } 
            } 
        });
        U[y].j = function(a) { if (this.d != -1) { X("al_" + this.a, "jl." + ((new Date)[w]() - this.d), d); this.d = -1 } for (var b = 0; b < a.components[x]; b++) { this.o[":" + a.components[b]] = d; var c = this.c[":" + a.components[b]]; if (c) { for (var f = 0; f < c[x]; f++) c[f].J(a.components[b]); delete this.c[":" + a.components[b]] } } X("hl", this.a) }; U[y].l = function(a, b) { return this.v(b)[x] == 0 }; U[y].q = function() { return d }; function W(a) { this.I = a; this.m = {}; this.p = 0 } W[y].G = function(a) { this.p++; this.m[":" + a] = d };
        W[y].J = function(a) { if (this.m[":" + a]) { this.m[":" + a] = g; this.p--; this.p == 0 && j[z](this.I, 0) } }; function V(a, b, c) { this.name = a; this.H = b; this.n = c; this.u = this.h = g; this.i = []; k[A].t[this[v]] = H(this.j, this) } G(V, U); p(V[y], function(a, b) { var c = b && b.callback != e; if (c) { this.i[q](b.callback); b.callback = "google.loader.callbacks." + this[v] } else this.h = d; if (!b || !b.autoloaded) k[A].e("script", this.g(a, b), c); X("el", this[v]) }); V[y].l = function(a, b) { return b && b.callback != e ? this.u : this.h }; V[y].j = function() { this.u = d; for (var a = 0; a < this.i[x]; a++) j[z](this.i[a], 0); this.i = [] };
        var Y = function(a, b) { return a.string ? h(a.string) + "=" + h(b) : a.regex ? b[s](/(^.*$)/, a.regex) : "" }; V[y].g = function(a, b) { return this.M(this.w(a), a, b) };
        V[y].M = function(a, b, c) { var f = ""; if (a.key) f += "&" + Y(a.key, k[A].ApiKey); if (a.version) f += "&" + Y(a.version, b); b = k[A].Secure && a.ssl ? a.ssl : a.uri; if (c != e) for (var i in c) if (a.params[i]) f += "&" + Y(a.params[i], c[i]); else if (i == "other_params") f += "&" + c[i]; else if (i == "base_domain") b = "http://" + c[i] + a.uri[B](a.uri.indexOf("/", 7)); k[this[v]] = {}; if (b.indexOf("?") == -1 && f) f = "?" + f[B](1); return b + f }; V[y].q = function(a) { return this.w(a).deferred }; V[y].w = function(a) { if (this.n) for (var b = 0; b < this.n[x]; ++b) { var c = this.n[b]; if ((new RegExp(c.pattern)).test(a)) return c } return this.H }; function T(a, b) { this.a = a; this.f = b; this.h = g } G(T, U); p(T[y], function(a, b) { this.h = d; k[A].e("script", this.g(a, b), g) }); T[y].l = function() { return this.h }; T[y].j = function() { }; T[y].g = function(a, b) { if (!this.f.versions[":" + a]) { if (this.f.aliases) { var c = this.f.aliases[":" + a]; if (c) a = c } if (!this.f.versions[":" + a]) throw I("Module: '" + this.a + "' with version '" + a + "' not found!"); } a = k[A].GoogleApisBase + "/libs/" + this.a + "/" + a + "/" + this.f.versions[":" + a][b && b.uncompressed ? "uncompressed" : "compressed"]; X("el", this.a); return a };
        T[y].q = function() { return g }; var ea = g, Z = [], fa = (new Date)[w](), X = function(a, b, c) { if (!ea) { P(j, "unload", ga); ea = d } if (c) { if (!k[A].Secure && (!k[A].Options || k[A].Options.csi === g)) { a = a[D]()[s](/[^a-z0-9_.]+/g, "_"); b = b[D]()[s](/[^a-z0-9_.]+/g, "_"); a = "http://csi.gstatic.com/csi?s=uds&v=2&action=" + h(a) + "&it=" + h(b); j[z](H($, e, a), 1E4) } } else { Z[q]("r" + Z[x] + "=" + h(a + (b ? "|" + b : ""))); j[z](ga, Z[x] > 5 ? 0 : 15E3) } }, ga = function() { if (Z[x]) { $(k[A][u] + "/stats?" + Z[C]("&") + "&nc=" + (new Date)[w]() + "_" + ((new Date)[w]() - fa)); Z.length = 0 } }, $ = function(a) {
            var b = new Image,
c = ha++; ia[c] = b; b.onload = b.onerror = function() { delete ia[c] }; b.src = a; b = e
        }, ia = {}, ha = 0; J("google.loader.recordStat", X); J("google.loader.createImageForLogging", $);

    })(); google.loader.rm({ "specs": [{ "name": "books", "baseSpec": { "uri": "http://books.google.com/books/api.js", "ssl": null, "key": { "string": "key" }, "version": { "string": "v" }, "deferred": true, "params": { "callback": { "string": "callback" }, "language": { "string": "hl"}}} }, "feeds", { "name": "friendconnect", "baseSpec": { "uri": "http://www.google.com/friendconnect/script/friendconnect.js", "ssl": null, "key": { "string": "key" }, "version": { "string": "v" }, "deferred": false, "params": {}} }, "spreadsheets", "gdata", "visualization", { "name": "sharing", "baseSpec": { "uri": "http://www.google.com/s2/sharing/js", "ssl": null, "key": { "string": "key" }, "version": { "string": "v" }, "deferred": false, "params": { "language": { "string": "hl"}}} }, "search", { "name": "maps", "baseSpec": { "uri": "http://maps.google.com/maps?file\u003dgoogleapi", "ssl": "https://maps-api-ssl.google.com/maps?file\u003dgoogleapi", "key": { "string": "key" }, "version": { "string": "v" }, "deferred": true, "params": { "callback": { "regex": "callback\u003d$1\u0026async\u003d2" }, "language": { "string": "hl"}} }, "customSpecs": [{ "uri": "http://maps.google.com/maps/api/js", "ssl": null, "key": { "string": "key" }, "version": { "string": "v" }, "deferred": true, "params": { "callback": { "string": "callback" }, "language": { "string": "hl"} }, "pattern": "^(3|3..*)$"}] }, "annotations_v2", "orkut", "language", "earth", { "name": "annotations", "baseSpec": { "uri": "http://www.google.com/reviews/scripts/annotations_bootstrap.js", "ssl": null, "key": { "string": "key" }, "version": { "string": "v" }, "deferred": true, "params": { "callback": { "string": "callback" }, "language": { "string": "hl" }, "country": { "string": "gl"}}} }, "ads", "elements"] });
    google.loader.rfm({ ":feeds": { "versions": { ":1": "1", ":1.0": "1" }, "path": "/api/feeds/1.0/6a02eddfbdb12c426008949002f98394/", "js": "default+en.I.js", "css": "default.css", "properties": { ":JSHash": "6a02eddfbdb12c426008949002f98394", ":Version": "1.0"} }, ":search": { "versions": { ":1": "1", ":1.0": "1" }, "path": "/api/search/1.0/cf31f3cce0709e4eca85a61d39ff8763/", "js": "default+en.I.js", "css": "default.css", "properties": { ":JSHash": "cf31f3cce0709e4eca85a61d39ff8763", ":NoOldNames": false, ":Version": "1.0"} }, ":language": { "versions": { ":1": "1", ":1.0": "1" }, "path": "/api/language/1.0/c959a037ebe2d32b673a1532b3cb057c/", "js": "default+en.I.js", "properties": { ":JSHash": "c959a037ebe2d32b673a1532b3cb057c", ":Version": "1.0"} }, ":spreadsheets": { "versions": { ":0": "1", ":0.2": "1" }, "path": "/api/spreadsheets/0.2/626554c678ff579189704ea83fe72774/", "js": "default.I.js", "properties": { ":JSHash": "626554c678ff579189704ea83fe72774", ":Version": "0.2"} }, ":earth": { "versions": { ":1": "1", ":1.0": "1" }, "path": "/api/earth/1.0/9ffa388b5c72405541cf3840a5ceca5e/", "js": "default.I.js", "properties": { ":JSHash": "9ffa388b5c72405541cf3840a5ceca5e", ":Version": "1.0"} }, ":annotations": { "versions": { ":1": "1", ":1.0": "1" }, "path": "/api/annotations/1.0/f193f28356b091de48b6f9ae0de94a0a/", "js": "default+en.I.js", "properties": { ":JSHash": "f193f28356b091de48b6f9ae0de94a0a", ":Version": "1.0"}} });
    google.loader.rpl({ ":scriptaculous": { "versions": { ":1.8.3": { "uncompressed": "scriptaculous.js", "compressed": "scriptaculous.js" }, ":1.8.2": { "uncompressed": "scriptaculous.js", "compressed": "scriptaculous.js" }, ":1.8.1": { "uncompressed": "scriptaculous.js", "compressed": "scriptaculous.js"} }, "aliases": { ":1.8": "1.8.3", ":1": "1.8.3"} }, ":yui": { "versions": { ":2.6.0": { "uncompressed": "build/yuiloader/yuiloader.js", "compressed": "build/yuiloader/yuiloader-min.js" }, ":2.7.0": { "uncompressed": "build/yuiloader/yuiloader.js", "compressed": "build/yuiloader/yuiloader-min.js" }, ":2.8.0r4": { "uncompressed": "build/yuiloader/yuiloader.js", "compressed": "build/yuiloader/yuiloader-min.js"} }, "aliases": { ":2": "2.8.0r4", ":2.7": "2.7.0", ":2.6": "2.6.0", ":2.8": "2.8.0r4", ":2.8.0": "2.8.0r4"} }, ":swfobject": { "versions": { ":2.1": { "uncompressed": "swfobject_src.js", "compressed": "swfobject.js" }, ":2.2": { "uncompressed": "swfobject_src.js", "compressed": "swfobject.js"} }, "aliases": { ":2": "2.2"} }, ":ext-core": { "versions": { ":3.0.0": { "uncompressed": "ext-core-debug.js", "compressed": "ext-core.js"} }, "aliases": { ":3": "3.0.0", ":3.0": "3.0.0"} }, ":mootools": { "versions": { ":1.2.3": { "uncompressed": "mootools.js", "compressed": "mootools-yui-compressed.js" }, ":1.1.1": { "uncompressed": "mootools.js", "compressed": "mootools-yui-compressed.js" }, ":1.2.4": { "uncompressed": "mootools.js", "compressed": "mootools-yui-compressed.js" }, ":1.2.1": { "uncompressed": "mootools.js", "compressed": "mootools-yui-compressed.js" }, ":1.2.2": { "uncompressed": "mootools.js", "compressed": "mootools-yui-compressed.js" }, ":1.1.2": { "uncompressed": "mootools.js", "compressed": "mootools-yui-compressed.js"} }, "aliases": { ":1": "1.1.2", ":1.11": "1.1.1", ":1.2": "1.2.4", ":1.1": "1.1.2"} }, ":jqueryui": { "versions": { ":1.7.2": { "uncompressed": "jquery-ui.js", "compressed": "jquery-ui.min.js" }, ":1.6.0": { "uncompressed": "jquery-ui.js", "compressed": "jquery-ui.min.js" }, ":1.7.0": { "uncompressed": "jquery-ui.js", "compressed": "jquery-ui.min.js" }, ":1.7.1": { "uncompressed": "jquery-ui.js", "compressed": "jquery-ui.min.js" }, ":1.5.3": { "uncompressed": "jquery-ui.js", "compressed": "jquery-ui.min.js" }, ":1.5.2": { "uncompressed": "jquery-ui.js", "compressed": "jquery-ui.min.js"} }, "aliases": { ":1.7": "1.7.2", ":1": "1.7.2", ":1.6": "1.6.0", ":1.5": "1.5.3"} }, ":chrome-frame": { "versions": { ":1.0.2": { "uncompressed": "CFInstall.js", "compressed": "CFInstall.min.js" }, ":1.0.1": { "uncompressed": "CFInstall.js", "compressed": "CFInstall.min.js" }, ":1.0.0": { "uncompressed": "CFInstall.js", "compressed": "CFInstall.min.js"} }, "aliases": { ":1": "1.0.2", ":1.0": "1.0.2"} }, ":prototype": { "versions": { ":1.6.0.2": { "uncompressed": "prototype.js", "compressed": "prototype.js" }, ":1.6.1.0": { "uncompressed": "prototype.js", "compressed": "prototype.js" }, ":1.6.0.3": { "uncompressed": "prototype.js", "compressed": "prototype.js"} }, "aliases": { ":1.6.1": "1.6.1.0", ":1": "1.6.1.0", ":1.6": "1.6.1.0", ":1.6.0": "1.6.0.3"} }, ":jquery": { "versions": { ":1.2.3": { "uncompressed": "jquery.js", "compressed": "jquery.min.js" }, ":1.3.1": { "uncompressed": "jquery.js", "compressed": "jquery.min.js" }, ":1.3.0": { "uncompressed": "jquery.js", "compressed": "jquery.min.js" }, ":1.3.2": { "uncompressed": "jquery.js", "compressed": "jquery.min.js" }, ":1.2.6": { "uncompressed": "jquery.js", "compressed": "jquery.min.js"} }, "aliases": { ":1": "1.3.2", ":1.3": "1.3.2", ":1.2": "1.2.6"} }, ":dojo": { "versions": { ":1.2.3": { "uncompressed": "dojo/dojo.xd.js.uncompressed.js", "compressed": "dojo/dojo.xd.js" }, ":1.3.1": { "uncompressed": "dojo/dojo.xd.js.uncompressed.js", "compressed": "dojo/dojo.xd.js" }, ":1.1.1": { "uncompressed": "dojo/dojo.xd.js.uncompressed.js", "compressed": "dojo/dojo.xd.js" }, ":1.3.0": { "uncompressed": "dojo/dojo.xd.js.uncompressed.js", "compressed": "dojo/dojo.xd.js" }, ":1.3.2": { "uncompressed": "dojo/dojo.xd.js.uncompressed.js", "compressed": "dojo/dojo.xd.js" }, ":1.2.0": { "uncompressed": "dojo/dojo.xd.js.uncompressed.js", "compressed": "dojo/dojo.xd.js" }, ":1.4.0": { "uncompressed": "dojo/dojo.xd.js.uncompressed.js", "compressed": "dojo/dojo.xd.js"} }, "aliases": { ":1": "1.4.0", ":1.4": "1.4.0", ":1.3": "1.3.2", ":1.2": "1.2.3", ":1.1": "1.1.1"}} });
}


//google analytics

(function () {
    var aa = "_gat", ba = "_gaq", r = true, v = false, w = undefined, ca = "4.6.5", x = "length", y = "cookie", A = "location", B = "&", C = "=", D = "__utma=", E = "__utmb=", G = "__utmc=", da = "__utmk=", H = "__utmv=", J = "__utmz=", K = "__utmx=", L = "GASO="; var N = function (i) { return w == i || "-" == i || "" == i }, ea = function (i) { return i[x] > 0 && " \n\r\t".indexOf(i) > -1 }, P = function (i, l, g) { var t = "-", k; if (!N(i) && !N(l) && !N(g)) { k = i.indexOf(l); if (k > -1) { g = i.indexOf(g, k); if (g < 0) g = i[x]; t = O(i, k + l.indexOf(C) + 1, g) } } return t }, Q = function (i) { var l = v, g = 0, t, k; if (!N(i)) { l = r; for (t = 0; t < i[x]; t++) { k = i.charAt(t); g += "." == k ? 1 : 0; l = l && g <= 1 && (0 == t && "-" == k || ".0123456789".indexOf(k) > -1) } } return l }, S = function (i, l) { var g = encodeURIComponent; return g instanceof Function ? l ? encodeURI(i) : g(i) : escape(i) },
T = function (i, l) { var g = decodeURIComponent, t; i = i.split("+").join(" "); if (g instanceof Function) try { t = l ? decodeURI(i) : g(i) } catch (k) { t = unescape(i) } else t = unescape(i); return t }, U = function (i, l) { return i.indexOf(l) > -1 }, V = function (i, l) { i[i[x]] = l }, W = function (i) { return i.toLowerCase() }, X = function (i, l) { return i.split(l) }, fa = function (i, l) { return i.indexOf(l) }, O = function (i, l, g) { g = w == g ? i[x] : g; return i.substring(l, g) }, ga = function (i, l) { return i.join(l) }, ia = function (i) {
    var l = 1, g = 0, t; if (!N(i)) {
        l = 0; for (t = i[x] - 1; t >= 0; t--) {
            g =
i.charCodeAt(t); l = (l << 6 & 268435455) + g + (g << 14); g = l & 266338304; l = g != 0 ? l ^ g >> 21 : l
        }
    } return l
}, ja = function () { var i = window, l = w; if (i && i.gaGlobal && i.gaGlobal.hid) l = i.gaGlobal.hid; else { l = Y(); i.gaGlobal = i.gaGlobal ? i.gaGlobal : {}; i.gaGlobal.hid = l } return l }, Y = function () { return Math.round(Math.random() * 2147483647) }, Z = { Ha: function (i, l) { this.bb = i; this.nb = l }, ib: v, _gasoDomain: w, _gasoCPath: w }; Z.Gb = function () {
    function i(k) { return new t(k[0], k[1]) } function l(k) { var p = []; k = k.split(","); var f; for (f = 0; f < k.length; ++f) p.push(i(k[f].split(":"))); return p } var g = this, t = Z.Ha; g.Ia = "utm_campaign"; g.Ja = "utm_content"; g.Ka = "utm_id"; g.La = "utm_medium"; g.Ma = "utm_nooverride"; g.Na = "utm_source"; g.Oa = "utm_term"; g.Pa = "gclid"; g.ba = 0; g.z = 0; g.Ta = 15768E6; g.sb = 18E5; g.v = 63072E6; g.ta = []; g.va = []; g.nc = "cse"; g.oc = "q"; g.ob = 5; g.T = l("daum:q,eniro:search_word,naver:query,images.google:q,google:q,yahoo:p,msn:q,bing:q,aol:query,aol:encquery,lycos:query,ask:q,altavista:q,netscape:query,cnn:query,about:terms,mamma:query,alltheweb:q,voila:rdata,virgilio:qs,live:q,baidu:wd,alice:qs,yandex:text,najdi:q,aol:q,mama:query,seznam:q,search:q,wp:szukaj,onet:qt,szukacz:q,yam:k,pchome:q,kvasir:q,sesam:q,ozu:q,terra:query,mynet:q,ekolay:q,rambler:words");
    g.t = w; g.lb = v; g.h = "/"; g.U = 100; g.oa = "/__utm.gif"; g.ga = 1; g.ha = 1; g.u = "|"; g.fa = 1; g.da = 1; g.Ra = 1; g.b = "auto"; g.I = 1; g.ra = 1E3; g.Jc = 10; g.Pb = 10; g.Kc = 0.2; g.o = w; g.a = document; g.e = window
}; Z.Hb = function (i) {
    function l(d, a, j, c) { var n = "", s = 0; n = P(d, "2" + a, ";"); if (!N(n)) { d = n.indexOf("^" + j + "."); if (d < 0) return ["", 0]; n = O(n, d + j[x] + 2); if (n.indexOf("^") > 0) n = n.split("^")[0]; j = n.split(":"); n = j[1]; s = parseInt(j[0], 10); if (!c && s < p.r) n = "" } if (N(n)) n = ""; return [n, s] } function g(d, a) { return "^" + ga([[a, d[1]].join("."), d[0]], ":") } function t(d, a) { f.a[y] = d + "; path=" + f.h + "; " + a + p.fb() } function k(d) { var a = new Date; d = new Date(a.getTime() + d); return "expires=" + d.toGMTString() + "; " } var p = this, f = i; p.r = (new Date).getTime();
    var h = [D, E, G, J, H, K, L]; p.k = function () { var d = f.a[y]; return f.o ? p.Wb(d, f.o) : d }; p.Wb = function (d, a) { var j = [], c, n; for (c = 0; c < h[x]; c++) { n = l(d, h[c], a)[0]; N(n) || (j[j[x]] = h[c] + n + ";") } return j.join("") }; p.l = function (d, a, j) { var c = j > 0 ? k(j) : ""; if (f.o) { a = p.kc(f.a[y], d, f.o, a, j); d = "2" + d; c = j > 0 ? k(f.v) : "" } t(d + a, c) }; p.kc = function (d, a, j, c, n) { var s = ""; n = n || f.v; c = g([c, p.r + n * 1], j); s = P(d, "2" + a, ";"); if (!N(s)) { d = g(l(d, a, j, r), j); s = ga(s.split(d), ""); return s = c + s } return c }; p.fb = function () { return N(f.b) ? "" : "domain=" + f.b + ";" }
}; Z.$ = function (i) {
    function l(b) { b = b instanceof Array ? b.join(".") : ""; return N(b) ? "-" : b } function g(b, e) { var o = []; if (!N(b)) { o = b.split("."); if (e) for (b = 0; b < o[x]; b++) Q(o[b]) || (o[b] = "-") } return o } function t(b, e, o) { var m = c.M, q, u; for (q = 0; q < m[x]; q++) { u = m[q][0]; u += N(e) ? e : e + m[q][4]; m[q][2](P(b, u, o)) } } var k, p, f, h, d, a, j, c = this, n, s = i; c.j = new Z.Hb(i); c.kb = function () { return w == n || n == c.P() }; c.k = function () { return c.j.k() }; c.ma = function () { return d ? d : "-" }; c.vb = function (b) { d = b }; c.za = function (b) { n = Q(b) ? b * 1 : "-" }; c.la = function () { return l(a) };
    c.Aa = function (b) { a = g(b) }; c.Vb = function () { c.j.l(H, "", -1) }; c.lc = function () { return n ? n : "-" }; c.fb = function () { return N(s.b) ? "" : "domain=" + s.b + ";" }; c.ja = function () { return l(k) }; c.tb = function (b) { k = g(b, 1) }; c.C = function () { return l(p) }; c.ya = function (b) { p = g(b, 1) }; c.ka = function () { return l(f) }; c.ub = function (b) { f = g(b, 1) }; c.na = function () { return l(h) }; c.wb = function (b) { h = g(b); for (b = 0; b < h[x]; b++) if (b < 4 && !Q(h[b])) h[b] = "-" }; c.fc = function () { return j }; c.Dc = function (b) { j = b }; c.Sb = function () {
        k = []; p = []; f = []; h = []; d = w; a = []; n =
w
    }; c.P = function () { var b = "", e; for (e = 0; e < c.M[x]; e++) b += c.M[e][1](); return ia(b) }; c.ua = function (b) { var e = c.k(), o = v; if (e) { t(e, b, ";"); c.za(c.P()); o = r } return o }; c.zc = function (b) { t(b, "", B); c.za(P(b, da, B)) }; c.Hc = function () { var b = c.M, e = [], o; for (o = 0; o < b[x]; o++) V(e, b[o][0] + b[o][1]()); V(e, da + c.P()); return e.join(B) }; c.Nc = function (b, e) { var o = c.M, m = s.h; c.ua(b); s.h = e; for (b = 0; b < o[x]; b++) N(o[b][1]()) || o[b][3](); s.h = m }; c.Cb = function () { c.j.l(D, c.ja(), s.v) }; c.Ea = function () { c.j.l(E, c.C(), s.sb) }; c.Db = function () {
        c.j.l(G,
c.ka(), 0)
    }; c.Ga = function () { c.j.l(J, c.na(), s.Ta) }; c.Eb = function () { c.j.l(K, c.ma(), s.v) }; c.Fa = function () { c.j.l(H, c.la(), s.v) }; c.Oc = function () { c.j.l(L, c.fc(), 0) }; c.M = [[D, c.ja, c.tb, c.Cb, "."], [E, c.C, c.ya, c.Ea, ""], [G, c.ka, c.ub, c.Db, ""], [K, c.ma, c.vb, c.Eb, ""], [J, c.na, c.wb, c.Ga, "."], [H, c.la, c.Aa, c.Fa, "."]]
}; Z.Kb = function (i) {
    var l = this, g = i, t = new Z.$(g), k = function () { }, p = function (f) { var h = (new Date).getTime(), d; d = (h - f[3]) * (g.Kc / 1E3); if (d >= 1) { f[2] = Math.min(Math.floor(f[2] * 1 + d), g.Pb); f[3] = h } return f }; l.H = function (f, h, d, a, j, c) {
        var n, s = g.I, b = g.a[A]; t.ua(d); n = X(t.C(), "."); if (n[1] < 500 || a) {
            if (j) n = p(n); if (a || !j || n[2] >= 1) {
                if (!a && j) n[2] = n[2] * 1 - 1; n[1] = n[1] * 1 + 1; f = "?utmwv=" + ca + "&utmn=" + Y() + (N(b.hostname) ? "" : "&utmhn=" + S(b.hostname)) + (g.U == 100 ? "" : "&utmsp=" + S(g.U)) + f; if (0 == s || 2 == s) { a = 2 == s ? k : c || k; l.$a(g.oa + f, a) } if (1 == s ||
2 == s) { f = ("https:" == b.protocol ? "https://ssl.google-analytics.com/__utm.gif" : "http://www.google-analytics.com/__utm.gif") + f + "&utmac=" + h + "&utmcc=" + l.ac(d); if (ka) f += "&gaq=1"; l.$a(f, c) }
            }
        } t.ya(n.join(".")); t.Ea()
    }; l.$a = function (f, h) { var d = new Image(1, 1); d.src = f; d.onload = function () { d.onload = null; (h || k)() } }; l.ac = function (f) { var h = [], d = [D, J, H, K], a, j = t.k(), c; for (a = 0; a < d[x]; a++) { c = P(j, d[a] + f, ";"); if (!N(c)) { if (d[a] == H) { c = X(c.split(f + ".")[1], "|")[0]; if (N(c)) continue; c = f + "." + c } V(h, d[a] + c + ";") } } return S(h.join("+")) }
}; Z.n = function () { var i = this; i.Y = []; i.hb = function (l) { var g, t = i.Y, k; for (k = 0; k < t.length; k++) g = l == t[k].q ? t[k] : g; return g }; i.Ob = function (l, g, t, k, p, f, h, d) { var a = i.hb(l); if (w == a) { a = new Z.n.Mb(l, g, t, k, p, f, h, d); V(i.Y, a) } else { a.Qa = g; a.Ab = t; a.zb = k; a.xb = p; a.Xa = f; a.yb = h; a.Za = d } return a } }; Z.n.Lb = function (i, l, g, t, k, p) { var f = this; f.Bb = i; f.Ba = l; f.D = g; f.Va = t; f.pb = k; f.qb = p; f.Ca = function () { return "&" + ["utmt=item", "tid=" + S(f.Bb), "ipc=" + S(f.Ba), "ipn=" + S(f.D), "iva=" + S(f.Va), "ipr=" + S(f.pb), "iqt=" + S(f.qb)].join("&utm") } };
    Z.n.Mb = function (i, l, g, t, k, p, f, h) { var d = this; d.q = i; d.Qa = l; d.Ab = g; d.zb = t; d.xb = k; d.Xa = p; d.yb = f; d.Za = h; d.R = []; d.Nb = function (a, j, c, n, s) { var b = d.gc(a), e = d.q; if (w == b) V(d.R, new Z.n.Lb(e, a, j, c, n, s)); else { b.Bb = e; b.Ba = a; b.D = j; b.Va = c; b.pb = n; b.qb = s } }; d.gc = function (a) { var j, c = d.R, n; for (n = 0; n < c.length; n++) j = a == c[n].Ba ? c[n] : j; return j }; d.Ca = function () { return "&" + ["utmt=tran", "id=" + S(d.q), "st=" + S(d.Qa), "to=" + S(d.Ab), "tx=" + S(d.zb), "sp=" + S(d.xb), "ci=" + S(d.Xa), "rg=" + S(d.yb), "co=" + S(d.Za)].join("&utmt") } }; Z.Fb = function (i) {
        function l() {
            var f, h, d; h = "ShockwaveFlash"; var a = "$version", j = k.d ? k.d.plugins : w; if (j && j[x] > 0) for (f = 0; f < j[x] && !d; f++) { h = j[f]; if (U(h.name, "Shockwave Flash")) d = h.description.split("Shockwave Flash ")[1] } else {
                h = h + "." + h; try { f = new ActiveXObject(h + ".7"); d = f.GetVariable(a) } catch (c) { } if (!d) try { f = new ActiveXObject(h + ".6"); d = "WIN 6,0,21,0"; f.AllowScriptAccess = "always"; d = f.GetVariable(a) } catch (n) { } if (!d) try { f = new ActiveXObject(h); d = f.GetVariable(a) } catch (s) { } if (d) {
                    d = X(d.split(" ")[1], ","); d = d[0] +
"." + d[1] + " r" + d[2]
                }
            } return d ? d : p
        } var g = i, t = g.e, k = this, p = "-"; k.V = t.screen; k.Sa = !k.V && t.java ? java.awt.Toolkit.getDefaultToolkit() : w; k.d = t.navigator; k.W = p; k.xa = p; k.Wa = p; k.qa = p; k.pa = 1; k.eb = p; k.bc = function () {
            var f; if (t.screen) { k.W = k.V.width + "x" + k.V.height; k.xa = k.V.colorDepth + "-bit" } else if (k.Sa) try { f = k.Sa.getScreenSize(); k.W = f.width + "x" + f.height } catch (h) { } k.qa = W(k.d && k.d.language ? k.d.language : k.d && k.d.browserLanguage ? k.d.browserLanguage : p); k.pa = k.d && k.d.javaEnabled() ? 1 : 0; k.eb = g.ha ? l() : p; k.Wa = S(g.a.characterSet ?
g.a.characterSet : g.a.charset ? g.a.charset : p)
        }; k.Ic = function () { return B + "utm" + ["cs=" + S(k.Wa), "sr=" + k.W, "sc=" + k.xa, "ul=" + k.qa, "je=" + k.pa, "fl=" + S(k.eb)].join("&utm") }; k.$b = function () { var f = g.a, h = t.history[x]; f = k.d.appName + k.d.version + k.qa + k.d.platform + k.d.userAgent + k.pa + k.W + k.xa + (f[y] ? f[y] : "") + (f.referrer ? f.referrer : ""); for (var d = f[x]; h > 0; ) f += h-- ^ d++; return ia(f) }
    }; Z.m = function (i, l, g, t) {
        function k(d) { var a = ""; d = W(d.split("://")[1]); if (U(d, "/")) { d = d.split("/")[1]; if (U(d, "?")) a = d.split("?")[0] } return a } function p(d) { var a = ""; a = W(d.split("://")[1]); if (U(a, "/")) a = a.split("/")[0]; return a } var f = t, h = this; h.c = i; h.rb = l; h.r = g; h.ic = function (d) { var a = h.gb(); return new Z.m.w(P(d, f.Ka + C, B), P(d, f.Na + C, B), P(d, f.Pa + C, B), h.Q(d, f.Ia, "(not set)"), h.Q(d, f.La, "(not set)"), h.Q(d, f.Oa, a && !N(a.K) ? T(a.K) : w), h.Q(d, f.Ja, w)) }; h.jb = function (d) {
            var a = p(d), j = k(d); if (U(a, "google")) {
                d = d.split("?").join(B);
                if (U(d, B + f.oc + C)) if (j == f.nc) return r
            } return v
        }; h.gb = function () { var d, a = h.rb, j, c, n = f.T; if (!(N(a) || "0" == a || !U(a, "://") || h.jb(a))) { d = p(a); for (j = 0; j < n[x]; j++) { c = n[j]; if (U(d, W(c.bb))) { a = a.split("?").join(B); if (U(a, B + c.nb + C)) { d = a.split(B + c.nb + C)[1]; if (U(d, B)) d = d.split(B)[0]; return new Z.m.w(w, c.bb, w, "(organic)", "organic", d, w) } } } } }; h.Q = function (d, a, j) { d = P(d, a + C, B); return j = !N(d) ? T(d) : !N(j) ? j : "-" }; h.uc = function (d) { var a = f.ta, j = v, c; if (d && "organic" == d.S) { d = W(T(d.K)); for (c = 0; c < a[x]; c++) j = j || W(a[c]) == d } return j };
        h.hc = function () { var d = "", a = ""; d = h.rb; if (!(N(d) || "0" == d || !U(d, "://") || h.jb(d))) { d = d.split("://")[1]; if (U(d, "/")) { a = O(d, d.indexOf("/")); a = a.split("?")[0]; d = W(d.split("/")[0]) } if (0 == d.indexOf("www.")) d = O(d, 4); return new Z.m.w(w, d, w, "(referral)", "referral", w, a) } }; h.Xb = function (d) { var a = ""; if (f.ba) { a = d && d.hash ? d.href.substring(d.href.indexOf("#")) : ""; a = "" != a ? a + B : a } a += d.search; return a }; h.dc = function () { return new Z.m.w(w, "(direct)", w, "(direct)", "(none)", w, w) }; h.vc = function (d) {
            var a = v, j, c = f.va; if (d && "referral" ==
d.S) { d = W(S(d.X)); for (j = 0; j < c[x]; j++) a = a || U(d, W(c[j])) } return a
        }; h.L = function (d) { return w != d && d.mb() }; h.cc = function (d, a) {
            var j = "", c = "-", n, s = 0, b, e, o = h.c; if (!d) return ""; e = d.k(); j = h.Xb(f.a[A]); if (f.z && d.kb()) { c = d.na(); if (!N(c) && !U(c, ";")) { d.Ga(); return "" } } c = P(e, J + o + ".", ";"); n = h.ic(j); if (h.L(n)) { j = P(j, f.Ma + C, B); if ("1" == j && !N(c)) return "" } if (!h.L(n)) { n = h.gb(); if (!N(c) && h.uc(n)) return "" } if (!h.L(n) && a) { n = h.hc(); if (!N(c) && h.vc(n)) return "" } if (!h.L(n)) if (N(c) && a) n = h.dc(); if (!h.L(n)) return ""; if (!N(c)) {
                s = c.split(".");
                b = new Z.m.w; b.Zb(s.slice(4).join(".")); b = W(b.Da()) == W(n.Da()); s = s[3] * 1
            } if (!b || a) { a = P(e, D + o + ".", ";"); e = a.lastIndexOf("."); a = e > 9 ? O(a, e + 1) * 1 : 0; s++; a = 0 == a ? 1 : a; d.wb([o, h.r, a, s, n.Da()].join(".")); d.Ga(); return B + "utmcn=1" } else return B + "utmcr=1"
        }
    };
    Z.m.w = function (i, l, g, t, k, p, f) {
        var h = this; h.q = i; h.X = l; h.ea = g; h.D = t; h.S = k; h.K = p; h.Ya = f; h.Da = function () { var d = [], a = [["cid", h.q], ["csr", h.X], ["gclid", h.ea], ["ccn", h.D], ["cmd", h.S], ["ctr", h.K], ["cct", h.Ya]], j, c; if (h.mb()) for (j = 0; j < a[x]; j++) if (!N(a[j][1])) { c = a[j][1].split("+").join("%20"); c = c.split(" ").join("%20"); V(d, "utm" + a[j][0] + C + c) } return d.join("|") }; h.mb = function () { return !(N(h.q) && N(h.X) && N(h.ea)) }; h.Zb = function (d) {
            var a = function (j) { return T(P(d, "utm" + j + C, "|")) }; h.q = a("cid"); h.X = a("csr"); h.ea = a("gclid");
            h.D = a("ccn"); h.S = a("cmd"); h.K = a("ctr"); h.Ya = a("cct")
        }
    }; Z.Ib = function (i, l, g, t) {
        function k(j, c, n) { var s; if (!N(n)) { n = n.split(","); for (var b = 0; b < n[x]; b++) { s = n[b]; if (!N(s)) { s = s.split(h); if (s[x] == 4) c[s[0]] = [s[1], s[2], j] } } } } var p = this, f = l, h = C, d = i, a = t; p.O = g; p.sa = ""; p.p = {}; p.tc = function () { var j; j = X(P(p.O.k(), H + f + ".", ";"), f + ".")[1]; if (!N(j)) { j = j.split("|"); k(1, p.p, j[1]); p.sa = j[0]; p.Z() } }; p.Z = function () { p.Qb(); var j = p.sa, c, n, s = ""; for (c in p.p) if ((n = p.p[c]) && 1 === n[2]) s += c + h + n[0] + h + n[1] + h + 1 + ","; N(s) || (j += "|" + s); if (N(j)) p.O.Vb(); else { p.O.Aa(f + "." + j); p.O.Fa() } }; p.Ec =
function (j) { p.sa = j; p.Z() }; p.Cc = function (j, c, n, s) { if (1 != s && 2 != s && 3 != s) s = 3; var b = v; if (c && n && j > 0 && j <= d.ob) { c = S(c); n = S(n); if (c[x] + n[x] <= 64) { p.p[j] = [c, n, s]; p.Z(); b = r } } return b }; p.mc = function (j) { if ((j = p.p[j]) && 1 === j[2]) return j[1] }; p.Ub = function (j) { var c = p.p; if (c[j]) { delete c[j]; p.Z() } }; p.Qb = function () { a._clearKey(8); a._clearKey(9); a._clearKey(11); var j = p.p, c, n; for (n in j) if (c = j[n]) { a._setKey(8, n, c[0]); a._setKey(9, n, c[1]); (c = c[2]) && 3 != c && a._setKey(11, n, "" + c) } }
    }; Z.N = function () {
        function i(m, q, u, z) { if (w == f[m]) f[m] = {}; if (w == f[m][q]) f[m][q] = []; f[m][q][u] = z } function l(m, q) { if (w != f[m] && w != f[m][q]) { f[m][q] = w; q = r; var u; for (u = 0; u < a[x]; u++) if (w != f[m][a[u]]) { q = v; break } if (q) f[m] = w } } function g(m) { var q = "", u = v, z, M; for (z = 0; z < a[x]; z++) { M = m[a[z]]; if (w != M) { if (u) q += a[z]; q += t(M); u = v } else u = r } return q } function t(m) { var q = [], u, z; for (z = 0; z < m[x]; z++) if (w != m[z]) { u = ""; if (z != o && w == m[z - 1]) u += z.toString() + s; u += k(m[z]); V(q, u) } return j + q.join(n) + c } function k(m) {
            var q = "", u, z, M; for (u = 0; u <
m[x]; u++) { z = m.charAt(u); M = e[z]; q += w != M ? M : z } return q
        } var p = this, f = {}, h = "k", d = "v", a = [h, d], j = "(", c = ")", n = "*", s = "!", b = "'", e = {}; e[b] = "'0"; e[c] = "'1"; e[n] = "'2"; e[s] = "'3"; var o = 1; p.qc = function (m) { return w != f[m] }; p.G = function () { var m = "", q; for (q in f) if (w != f[q]) m += q.toString() + g(f[q]); return m }; p.Ac = function (m) { if (m == w) return p.G(); var q = m.G(), u; for (u in f) if (w != f[u] && !m.qc(u)) q += u.toString() + g(f[u]); return q }; p._setKey = function (m, q, u) { if (typeof u != "string") return v; i(m, h, q, u); return r }; p._setValue = function (m,
q, u) { if (typeof u != "number" && (w == Number || !(u instanceof Number)) || Math.round(u) != u || u == NaN || u == Infinity) return v; i(m, d, q, u.toString()); return r }; p._getKey = function (m, q) { return w != f[m] && w != f[m][h] ? f[m][h][q] : w }; p._getValue = function (m, q) { return w != f[m] && w != f[m][d] ? f[m][d][q] : w }; p._clearKey = function (m) { l(m, h) }; p._clearValue = function (m) { l(m, d) }
    }; Z.Jb = function (i, l) { var g = this; g.Qc = l; g.xc = i; g._trackEvent = function (t, k, p) { return l._trackEvent(g.xc, t, k, p) } }; Z.aa = function (i, l) {
        function g() { if ("auto" == c.b) { var b = c.a.domain; if ("www." == O(b, 0, 4)) b = O(b, 4); c.b = b } c.b = W(c.b) } function t() { var b = c.b, e = b.indexOf("www.google.") * b.indexOf(".google.") * b.indexOf("google."); return e || "/" != c.h || b.indexOf("google.org") > -1 } function k(b, e, o) { if (N(b) || N(e) || N(o)) return "-"; b = P(b, D + a.c + ".", e); if (!N(b)) { b = b.split("."); b[5] = b[5] ? b[5] * 1 + 1 : 1; b[3] = b[4]; b[4] = o; b = b.join(".") } return b } function p() { return "file:" != c.a[A].protocol && t() } function f(b) {
            if (!b || "" == b) return ""; for (; ea(b.charAt(0)); ) b =
O(b, 1); for (; ea(b.charAt(b[x] - 1)); ) b = O(b, 0, b[x] - 1); return b
        } function h(b, e, o, m) { if (!N(b())) { e(m ? T(b()) : b()); U(b(), ";") || o() } } function d(b) { var e, o = "" != b && c.a[A].host != b; if (o) for (e = 0; e < c.t[x]; e++) o = o && fa(W(b), W(c.t[e])) == -1; return o } var a = this, j = w, c = new Z.Gb, n = v, s = w; a.e = window; a.r = Math.round((new Date).getTime() / 1E3); a.s = i || "UA-XXXXX-X"; a.ab = c.a.referrer; a.ia = w; a.f = w; a.B = w; a.F = v; a.A = w; a.Ua = ""; a.g = w; a.cb = w; a.c = w; a.i = w; c.o = l ? S(l) : w; a.wc = function () {
            var b = v; if (a.B) b = a.B.match(/^[0-9a-z-_.]{10,1200}$/i);
            return b
        }; a.jc = function () { return Y() ^ a.A.$b() & 2147483647 }; a.ec = function () { if (!c.b || "" == c.b || "none" == c.b) { c.b = ""; return 1 } g(); return c.Ra ? ia(c.b) : 1 }; a.Yb = function (b, e) { if (N(b)) b = "-"; else { e += c.h && "/" != c.h ? c.h : ""; e = b.indexOf(e); b = e >= 0 && e <= 8 ? "0" : "[" == b.charAt(0) && "]" == b.charAt(b[x] - 1) ? "-" : b } return b }; a.wa = function (b) { var e = "", o = c.a; e += c.fa ? a.A.Ic() : ""; e += c.da ? a.Ua : ""; e += c.ga && !N(o.title) ? "&utmdt=" + S(o.title) : ""; e += "&utmhid=" + ja() + "&utmr=" + S(a.ia) + "&utmp=" + S(a.Bc(b)); return e }; a.Bc = function (b) {
            var e = c.a[A];
            return b = w != b && "" != b ? S(b, r) : S(e.pathname + e.search, r)
        }; a.Lc = function (b) { if (a.J()) { var e = ""; if (a.g != w && a.g.G()[x] > 0) e += "&utme=" + S(a.g.G()); e += a.wa(b); j.H(e, a.s, a.c) } }; a.Tb = function () { var b = new Z.$(c); return b.ua(a.c) ? b.Hc() : w }; a._getLinkerUrl = function (b, e) { var o = b.split("#"), m = b, q = a.Tb(); if (q) if (e && 1 >= o[x]) m += "#" + q; else if (!e || 1 >= o[x]) if (1 >= o[x]) m += (U(b, "?") ? B : "?") + q; else m = o[0] + (U(b, "?") ? B : "?") + q + "#" + o[1]; return m }; a.Fc = function () {
            var b; if (a.wc()) {
                a.i.Dc(a.B); a.i.Oc(); Z._gasoDomain = c.b; Z._gasoCPath =
c.h; b = c.a.createElement("script"); b.type = "text/javascript"; b.id = "_gasojs"; b.src = "https://www.google.com/analytics/reporting/overlay_js?gaso=" + a.B + B + Y(); c.a.getElementsByTagName("head")[0].appendChild(b)
            }
        }; a.pc = function () {
            var b = a.r, e = a.i, o = e.k(), m = a.c + "", q = c.e, u = q ? q.gaGlobal : w, z, M = U(o, D + m + "."), la = U(o, E + m), ma = U(o, G + m), F, I = [], R = "", ha = v; o = N(o) ? "" : o; if (c.z) {
                z = c.a[A] && c.a[A].hash ? c.a[A].href.substring(c.a[A].href.indexOf("#")) : ""; if (c.ba && !N(z)) R = z + B; R += c.a[A].search; if (!N(R) && U(R, D)) {
                    e.zc(R); e.kb() || e.Sb();
                    F = e.ja()
                } h(e.ma, e.vb, e.Eb, true); h(e.la, e.Aa, e.Fa)
            } if (N(F)) if (M) if (!la || !ma) { F = k(o, ";", b); a.F = r } else { F = P(o, D + m + ".", ";"); I = X(P(o, E + m, ";"), ".") } else { F = ga([m, a.jc(), b, b, b, 1], "."); ha = a.F = r } else if (N(e.C()) || N(e.ka())) { F = k(R, B, b); a.F = r } else { I = X(e.C(), "."); m = I[0] } F = F.split("."); if (q && u && u.dh == m && !c.o) { F[4] = u.sid ? u.sid : F[4]; if (ha) { F[3] = u.sid ? u.sid : F[4]; if (u.vid) { b = u.vid.split("."); F[1] = b[0]; F[2] = b[1] } } } e.tb(F.join(".")); I[0] = m; I[1] = I[1] ? I[1] : 0; I[2] = w != I[2] ? I[2] : c.Jc; I[3] = I[3] ? I[3] : F[4]; e.ya(I.join("."));
            e.ub(m); N(e.lc()) || e.za(e.P()); e.Cb(); e.Ea(); e.Db()
        }; a.rc = function () { j = new Z.Kb(c) }; a._initData = function () { var b; if (!n) { if (!a.A) { a.A = new Z.Fb(c); a.A.bc() } a.c = a.ec(); a.i = new Z.$(c); a.g = new Z.N; s = new Z.Ib(c, a.c, a.i, a.g); a.rc() } if (p()) { a.pc(); s.tc() } if (!n) { if (p()) { a.ia = a.Yb(a.ab, c.a.domain); if (c.da) { b = new Z.m(a.c, a.ia, a.r, c); a.Ua = b.cc(a.i, a.F) } } a.cb = new Z.N; n = r } Z.ib || a.sc() }; a._visitCode = function () { a._initData(); var b = P(a.i.k(), D + a.c + ".", ";"); b = b.split("."); return b[x] < 4 ? "" : b[1] }; a._cookiePathCopy = function (b) {
            a._initData();
            a.i && a.i.Nc(a.c, b)
        }; a.sc = function () { var b = c.a[A].hash; if (b && 1 == b.indexOf("gaso=")) b = P(b, "gaso=", B); else b = (b = c.e.name) && 0 <= b.indexOf("gaso=") ? P(b, "gaso=", B) : P(a.i.k(), L, ";"); if (b[x] >= 10) { a.B = b; a.Fc() } Z.ib = r }; a.J = function () { return a._visitCode() % 1E4 < c.U * 100 }; a.Gc = function () {
            var b, e, o = c.a.links; if (!c.lb) { b = c.a.domain; if ("www." == O(b, 0, 4)) b = O(b, 4); c.t.push("." + b) } for (b = 0; b < o[x] && (c.ra == -1 || b < c.ra); b++) {
                e = o[b]; if (d(e.host)) if (!e.gatcOnclick) {
                    e.gatcOnclick = e.onclick ? e.onclick : a.yc; e.onclick = function (m) {
                        var q =
!this.target || this.target == "_self" || this.target == "_top" || this.target == "_parent"; q = q && !a.Rb(m); a.Mc(m, this, q); return q ? v : this.gatcOnclick ? this.gatcOnclick(m) : r
                    }
                }
            }
        }; a.yc = function () { }; a._trackPageview = function (b) { if (p()) { a._initData(); c.t && a.Gc(); a.Lc(b); a.F = v } }; a._trackTrans = function () { var b = a.c, e = [], o, m, q; a._initData(); if (a.f && a.J()) { for (o = 0; o < a.f.Y[x]; o++) { m = a.f.Y[o]; V(e, m.Ca()); for (q = 0; q < m.R[x]; q++) V(e, m.R[q].Ca()) } for (o = 0; o < e[x]; o++) j.H(e[o], a.s, b, r) } }; a._setTrans = function () {
            var b = c.a, e, o, m; b = b.getElementById ?
b.getElementById("utmtrans") : b.utmform && b.utmform.utmtrans ? b.utmform.utmtrans : w; a._initData(); if (b && b.value) { a.f = new Z.n; m = b.value.split("UTM:"); c.u = !c.u || "" == c.u ? "|" : c.u; for (b = 0; b < m[x]; b++) { m[b] = f(m[b]); e = m[b].split(c.u); for (o = 0; o < e[x]; o++) e[o] = f(e[o]); if ("T" == e[0]) a._addTrans(e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8]); else "I" == e[0] && a._addItem(e[1], e[2], e[3], e[4], e[5], e[6]) } }
        }; a._addTrans = function (b, e, o, m, q, u, z, M) { a.f = a.f ? a.f : new Z.n; return a.f.Ob(b, e, o, m, q, u, z, M) }; a._addItem = function (b, e, o, m, q, u) {
            var z;
            a.f = a.f ? a.f : new Z.n; (z = a.f.hb(b)) || (z = a._addTrans(b, "", "", "", "", "", "", "")); z.Nb(e, o, m, q, u)
        }; a._setVar = function (b) { if (b && "" != b && t()) { a._initData(); s.Ec(S(b)); a.J() && j.H("&utmt=var", a.s, a.c) } }; a._setCustomVar = function (b, e, o, m) { a._initData(); return s.Cc(b, e, o, m) }; a._deleteCustomVar = function (b) { a._initData(); s.Ub(b) }; a._getVisitorCustomVar = function (b) { a._initData(); return s.mc(b) }; a._setMaxCustomVariables = function (b) { c.ob = b }; a._link = function (b, e) {
            if (c.z && b) {
                a._initData(); c.a[A].href = a._getLinkerUrl(b,
e)
            }
        }; a._linkByPost = function (b, e) { if (c.z && b && b.action) { a._initData(); b.action = a._getLinkerUrl(b.action, e) } }; a._setXKey = function (b, e, o) { a.g._setKey(b, e, o) }; a._setXValue = function (b, e, o) { a.g._setValue(b, e, o) }; a._getXKey = function (b, e) { return a.g._getKey(b, e) }; a._getXValue = function (b, e) { return a.g.getValue(b, e) }; a._clearXKey = function (b) { a.g._clearKey(b) }; a._clearXValue = function (b) { a.g._clearValue(b) }; a._createXObj = function () { a._initData(); return new Z.N }; a._sendXEvent = function (b) {
            var e = ""; a._initData();
            if (a.J()) { e += "&utmt=event&utme=" + S(a.g.Ac(b)) + a.wa(); j.H(e, a.s, a.c, v, r) }
        }; a._createEventTracker = function (b) { a._initData(); return new Z.Jb(b, a) }; a._trackEvent = function (b, e, o, m) { var q = a.cb; if (w != b && w != e && "" != b && "" != e) { q._clearKey(5); q._clearValue(5); (b = q._setKey(5, 1, b) && q._setKey(5, 2, e) && (w == o || q._setKey(5, 3, o)) && (w == m || q._setValue(5, 1, m))) && a._sendXEvent(q) } else b = v; return b }; a.Mc = function (b, e, o) {
            a._initData(); if (a.J()) {
                var m = new Z.N; m._setKey(6, 1, e.href); var q = o ? function () { a.db(b, e) } : w; j.H("&utmt=event&utme=" +
S(m.G()) + a.wa(), a.s, a.c, v, r, q); if (o) { var u = this; c.e.setTimeout(function () { u.db(b, e) }, 500) }
            }
        }; a.db = function (b, e) { if (!b) b = c.e.event; var o = r; if (e.gatcOnclick) o = e.gatcOnclick(b); if (o || typeof o == "undefined") if (!e.target || e.target == "_self") c.e[A] = e.href; else if (e.target == "_top") c.e.top.document[A] = e.href; else if (e.target == "_parent") c.e.parent.document[A] = e.href }; a.Rb = function (b) {
            if (!b) b = c.e.event; var e = b.shiftKey || b.ctrlKey || b.altKey; if (!e) if (b.modifiers && c.e.Event) e = b.modifiers & c.e.Event.CONTROL_MASK ||
b.modifiers & c.e.Event.SHIFT_MASK || b.modifiers & c.e.Event.ALT_MASK; return e
        }; a.Pc = function () { return c }; a._setDomainName = function (b) { c.b = b }; a._addOrganic = function (b, e, o) { c.T.splice(o ? 0 : c.T.length, 0, new Z.Ha(b, e)) }; a._clearOrganic = function () { c.T = [] }; a._addIgnoredOrganic = function (b) { V(c.ta, b) }; a._clearIgnoredOrganic = function () { c.ta = [] }; a._addIgnoredRef = function (b) { V(c.va, b) }; a._clearIgnoredRef = function () { c.va = [] }; a._setAllowHash = function (b) { c.Ra = b ? 1 : 0 }; a._setCampaignTrack = function (b) { c.da = b ? 1 : 0 }; a._setClientInfo =
function (b) { c.fa = b ? 1 : 0 }; a._getClientInfo = function () { return c.fa }; a._setCookiePath = function (b) { c.h = b }; a._setTransactionDelim = function (b) { c.u = b }; a._setCookieTimeout = function (b) { a._setCampaignCookieTimeout(b * 1E3) }; a._setCampaignCookieTimeout = function (b) { c.Ta = b }; a._setDetectFlash = function (b) { c.ha = b ? 1 : 0 }; a._getDetectFlash = function () { return c.ha }; a._setDetectTitle = function (b) { c.ga = b ? 1 : 0 }; a._getDetectTitle = function () { return c.ga }; a._setLocalGifPath = function (b) { c.oa = b }; a._getLocalGifPath = function () { return c.oa };
        a._setLocalServerMode = function () { c.I = 0 }; a._setRemoteServerMode = function () { c.I = 1 }; a._setLocalRemoteServerMode = function () { c.I = 2 }; a._getServiceMode = function () { return c.I }; a._setSampleRate = function (b) { c.U = b }; a._setSessionTimeout = function (b) { a._setSessionCookieTimeout(b * 1E3) }; a._setSessionCookieTimeout = function (b) { c.sb = b }; a._setAllowLinker = function (b) { c.z = b ? 1 : 0 }; a._setAllowAnchor = function (b) { c.ba = b ? 1 : 0 }; a._setCampNameKey = function (b) { c.Ia = b }; a._setCampContentKey = function (b) { c.Ja = b }; a._setCampIdKey = function (b) {
            c.Ka =
b
        }; a._setCampMediumKey = function (b) { c.La = b }; a._setCampNOKey = function (b) { c.Ma = b }; a._setCampSourceKey = function (b) { c.Na = b }; a._setCampTermKey = function (b) { c.Oa = b }; a._setCampCIdKey = function (b) { c.Pa = b }; a._getAccount = function () { return a.s }; a._setAccount = function (b) { a.s = b }; a._setNamespace = function (b) { c.o = b ? S(b) : w }; a._getVersion = function () { return ca }; a._setAutoTrackOutbound = function (b) { c.t = []; if (b) c.t = b }; a._setTrackOutboundSubdomains = function (b) { c.lb = b }; a._setHrefExamineLimit = function (b) { c.ra = b }; a._setReferrerOverride =
function (b) { a.ab = b }; a._setCookiePersistence = function (b) { a._setVisitorCookieTimeout(b) }; a._setVisitorCookieTimeout = function (b) { c.v = b }
    }; Z._getTracker = function (i, l) { return new Z.aa(i, l) }; var ka = v, $ = { ca: {}, _createAsyncTracker: function (i, l) { l = l || ""; i = new Z.aa(i); $.ca[l] = i; ka = r; return i }, _getAsyncTracker: function (i) { i = i || ""; var l = $.ca[i]; if (!l) { l = new Z.aa; $.ca[i] = l; ka = r } return l }, push: function () { for (var i = arguments, l = 0, g = 0; g < i[x]; g++) try { if (typeof i[g] === "function") i[g](); else { var t = "", k = i[g][0], p = k.lastIndexOf("."); if (p > 0) { t = O(k, 0, p); k = O(k, p + 1) } var f = $._getAsyncTracker(t); f[k].apply(f, i[g].slice(1)) } } catch (h) { l++ } return l } }; window[aa] = Z; function na() { var i = window[ba], l = v; if (i && typeof i.push == "function") { l = i.constructor == Array; if (!l) return } window[ba] = $; l && $.push.apply($, i) } na();
})();

//-------------------------------------------------
//		Quick Pager jquery plugin
//		Created by dan and emanuel @geckonm.com
//		www.geckonewmedia.com
// 
//		v1.1
//		18/09/09 * bug fix by John V - http://blog.geekyjohn.com/
//-------------------------------------------------

(function($) {
	    
	$.fn.quickPager = function(options) {
	
		var defaults = {
			pageSize: 10,
			currentPage: 1,
			holder: null,
			pagerLocation: "after"
		};
		
		var options = $.extend(defaults, options);
		
		
		return this.each(function() {
	
						
			var selector = $(this);	
			var pageCounter = 1;
			
			selector.wrap("<div class='simplePagerContainer'></div>");
			
			selector.children().each(function(i){ 
					
				if(i < pageCounter*options.pageSize && i >= (pageCounter-1)*options.pageSize) {
				$(this).addClass("simplePagerPage"+pageCounter);
				}
				else {
					$(this).addClass("simplePagerPage"+(pageCounter+1));
					pageCounter ++;
				}	
				
			});
			
			// show/hide the appropriate regions 
			selector.children().hide();
			selector.children(".simplePagerPage"+options.currentPage).show();
			
			if(pageCounter <= 1) {
				return;
			}
			
			//Build pager navigation
			var pageNav = "<ul class='simplePagerNav'>";	
			for (i=1;i<=pageCounter;i++){
				if (i==options.currentPage) {
					pageNav += "<li class='currentPage simplePageNav"+i+"'><a rel='"+i+"' href='#'>"+i+"</a></li>";	
				}
				else {
					pageNav += "<li class='simplePageNav"+i+"'><a rel='"+i+"' href='#'>"+i+"</a></li>";
				}
			}
			pageNav += "</ul>";
			
			if(!options.holder) {
				switch(options.pagerLocation)
				{
				case "before":
					selector.before(pageNav);
				break;
				case "both":
					selector.before(pageNav);
					selector.after(pageNav);
				break;
				default:
					selector.after(pageNav);
				}
			}
			else {
				$(options.holder).append(pageNav);
			}
			
			//pager navigation behaviour
			selector.parent().find(".simplePagerNav a").click(function() {
					
				//grab the REL attribute 
				var clickedLink = $(this).attr("rel");
				options.currentPage = clickedLink;
				
				if(options.holder) {
					$(this).parent("li").parent("ul").parent(options.holder).find("li.currentPage").removeClass("currentPage");
					$(this).parent("li").parent("ul").parent(options.holder).find("a[rel='"+clickedLink+"']").parent("li").addClass("currentPage");
				}
				else {
					//remove current current (!) page
					$(this).parent("li").parent("ul").parent(".simplePagerContainer").find("li.currentPage").removeClass("currentPage");
					//Add current page highlighting
					$(this).parent("li").parent("ul").parent(".simplePagerContainer").find("a[rel='"+clickedLink+"']").parent("li").addClass("currentPage");
				}
				
				//hide and show relevant links
				selector.children().hide();			
				selector.find(".simplePagerPage"+clickedLink).show();
				
				return false;
			});
		});
	}
	

})(jQuery);


