/*
 * jQuery UI Autocomplete Revision 2291
 *
 * Copyright (c) 2007, 2008 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 * 
 * http://docs.jquery.com/UI/Autocomplete
 *
 * Depends:
 *	ui.core.js
 */
(function(a){if(!a.widget){return;
}a.widget("ui.autocomplete",{_init:function(){a.extend(this.options,{delay:this.options.delay!=undefined?this.options.delay:(this.options.url?this.options.ajaxDelay:this.options.localDelay),max:this.options.max!=undefined?this.options.max:(this.options.scroll?this.options.scrollMax:this.options.noScrollMax),highlight:this.options.highlight||function(z){return z;
},formatMatch:this.options.formatMatch||this.options.formatItem});var m=this.element[0],g=this.options,b=a(m).attr("autocomplete","off").addClass(g.inputClass),c=a.ui.keyCode,q="",n=a.ui.autocomplete.cache(g),e=0,y={mouseDownOnSelect:false},k,x,v,s=a.ui.autocomplete.select(g,m,d,y);
if(g.result){b.bind("result.autocomplete",g.result);}a.browser.opera&&a(m.form).bind("submit.autocomplete",function(){if(x){x=false;
return false;}});b.bind((a.browser.opera?"keypress":"keydown")+".autocomplete",function(z){v=z.keyCode;
switch(z.keyCode){case c.UP:z.preventDefault();if(s.visible()){s.prev();}else{u(0,true);
}break;case c.DOWN:z.preventDefault();if(s.visible()){s.next();}else{u(0,true);}break;
case c.PAGE_UP:z.preventDefault();if(s.visible()){s.pageUp();}else{u(0,true);}break;
case c.PAGE_DOWN:z.preventDefault();if(s.visible()){s.pageDown();}else{u(0,true);
}break;case g.multiple&&a.trim(g.multipleSeparator)==","&&c.COMMA:case c.TAB:case c.ENTER:if(d()){z.preventDefault();
x=true;return false;}break;case c.ESCAPE:s.hide();break;default:clearTimeout(k);k=setTimeout(u,g.delay);
break;}}).bind("focus.autocomplete",function(){e++;}).bind("blur.autocomplete",function(){e=0;
if(!y.mouseDownOnSelect){t();}}).bind("click.autocomplete",function(){if(e++>1&&!s.visible()){u(0,true);
}}).bind("search.autocomplete",function(){var z=(arguments.length>1)?arguments[1]:null;
function A(E,D){var B;if(D&&D.length){for(var C=0;C<D.length;C++){if(D[C].result.toLowerCase()==E.toLowerCase()){B=D[C];
break;}}}if(typeof z=="function"){z(B);}else{b.trigger("result.autocomplete",B&&[B.data,B.value]);
}}a.each(h(b.val()),function(B,C){f(C,A,A);});}).bind("flushCache.autocomplete",function(){n.flush();
}).bind("setOptions.autocomplete",function(){a.extend(g,arguments[1]);if("data" in arguments[1]){n.populate();
}}).bind("unautocomplete",function(){s.unbind();a(m).unbind(".autocomplete");a(m.form).unbind(".autocomplete");
});function d(){var A=s.selected();if(!A){return false;}var z=A.result;q=z;if(g.multiple){var B=h(b.val());
if(B.length>1){z=B.slice(0,B.length-1).join(g.multipleSeparator)+g.multipleSeparator+z;
}z+=g.multipleSeparator;}b.val(z);w();b.trigger("result.autocomplete",[A.data,A.value]);
return true;}function u(B,A){if(v==c.DELETE){s.hide();return;}var z=b.val();if(!A&&z==q){return;
}q=z;z=j(z);if(z.length>=g.minChars){b.addClass(g.loadingClass);if(!g.matchCase){z=z.toLowerCase();
}f(z,l,w);}else{o();s.hide();}}function h(A){if(!A){return[""];}if(!g.multiple){return[A];
}var B=A.split(g.multipleSeparator);var z=[];a.each(B,function(C,D){if(a.trim(D)){z[C]=a.trim(D);
}});return z;}function j(z){var A=h(z);return A[A.length-1];}function r(z,A){if(g.autoFill&&(j(b.val()).toLowerCase()==z.toLowerCase())&&v!=a.ui.keyCode.BACKSPACE){b.val(b.val()+A.substring(j(q).length));
a.ui.autocomplete.selection(m,q.length,q.length+A.length);}}function t(){clearTimeout(k);
k=setTimeout(w,200);}function w(){var z=s.visible();s.hide();clearTimeout(k);o();
if(g.mustMatch){b.autocomplete("search",function(A){if(!A){if(g.multiple){var B=h(b.val()).slice(0,-1);
b.val(B.join(g.multipleSeparator)+(B.length?g.multipleSeparator:""));}else{b.val("");
}}});}if(z){a.ui.autocomplete.selection(m,m.value.length,m.value.length);}}function l(A,z){if(z&&z.length&&e){o();
s.display(z,A);r(A,z[0].value);s.show();}else{w();}}function f(C,E,B){if(!g.matchCase){C=C.toLowerCase();
}var D=n.load(C);if(D&&D.length){E(C,D);}else{if((typeof g.url=="string")&&(g.url.length>0)){var F={timestamp:+new Date()};
a.each(g.extraParams,function(G,H){F[G]=typeof H=="function"?H(C):H;});a.ajax({mode:"abort",port:"autocomplete"+m.name,dataType:g.dataType,url:g.url,data:a.extend({q:j(C),limit:g.max},F),success:function(H){var G=g.parse&&g.parse(H)||p(H);
n.add(C,G);E(C,G);}});}else{if(g.source&&typeof g.source=="function"){var A=g.source(C);
var z=(g.parse)?g.parse(A):A;n.add(C,z);E(C,z);}else{s.emptyList();B(C);}}}}function p(C){var z=[];
var B=C.split("\n");for(var A=0;A<B.length;A++){var D=a.trim(B[A]);if(D){D=D.split("|");
z[z.length]={data:D,value:D[0],result:g.formatResult&&g.formatResult(D,D[0])||D[0]};
}}return z;}function o(){b.removeClass(g.loadingClass);}},_propagate:function(c,b){a.ui.plugin.call(this,c,[b,this.ui()]);
return this.element.triggerHandler(c=="autocomplete"?c:"autocomplete"+c,[b,this.ui()],this.options[c]);
},ui:function(b){return{options:this.options,element:this.element};},result:function(b){return this.element.bind("result.autocomplete",b);
},search:function(b){return this.element.trigger("search.autocomplete",[b]);},flushCache:function(){return this.element.trigger("flushCache.autocomplete");
},setData:function(b,c){return this.element.trigger("setOptions.autocomplete",[{key:c}]);
},destroy:function(){this.element.removeAttr("disabled").removeClass("ui-autocomplete-input");
return this.element.trigger("unautocomplete");},enable:function(){this.element.removeAttr("disabled").removeClass("ui-autocomplete-disabled");
this.disabled=false;},disable:function(){this.element.attr("disabled",true).addClass("ui-autocomplete-disabled");
this.disabled=true;}});a.extend(a.ui.autocomplete,{defaults:{inputClass:"ui-autocomplete-input",resultsClass:"ui-widget ui-widget-content ui-autocomplete-results",loadingClass:"ui-autocomplete-loading",minChars:1,ajaxDelay:400,localDelay:10,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,scrollMax:150,noScrollMax:10,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(b){return b[0];
},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(c,b){return c.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");
},scroll:true,scrollHeight:180}});a.ui.autocomplete.cache=function(c){var f={};var d=0;
function h(l,k){if(!c.matchCase){l=l.toLowerCase();}var j=l.indexOf(k);if(j==-1){return false;
}return j==0||c.matchContains;}function g(k,j){if(d>c.cacheLength){b();}if(!f[k]){d++;
}f[k]=j;}function e(){if(!c.data){return false;}var k={},j=0;if(!c.url){c.cacheLength=1;
}k[""]=[];for(var m=0,l=c.data.length;m<l;m++){var p=c.data[m];p=(typeof p=="string")?[p]:p;
var o=c.formatMatch(p,m+1,c.data.length);if(o===false){continue;}var n=o.charAt(0).toLowerCase();
if(!k[n]){k[n]=[];}var q={value:o,data:p,result:c.formatResult&&c.formatResult(p)||o};
k[n].push(q);if(j++<c.max){k[""].push(q);}}a.each(k,function(r,s){c.cacheLength++;
g(r,s);});}setTimeout(e,25);function b(){f={};d=0;}return{flush:b,add:g,populate:e,load:function(n){if(!c.cacheLength||!d){return null;
}if(!c.url&&c.matchContains){var m=[];for(var j in f){if(j.length>0){var o=f[j];a.each(o,function(p,k){if(h(k.value,n)){m.push(k);
}});}}return m;}else{if(f[n]){return f[n];}else{if(c.matchSubset){for(var l=n.length-1;
l>=c.minChars;l--){var o=f[n.substr(0,l)];if(o){var m=[];a.each(o,function(p,k){if(h(k.value,n)){m[m.length]=k;
}});return m;}}}}}return null;}};};a.ui.autocomplete.select=function(e,k,m,q){var j={DEFAULT:"ui-autocomplete-state-default",ACTIVE:"ui-autocomplete-state-active"};
var l,f=-1,s,n="",t=true,c,p;function o(){if(!t){return;}c=a("<div/>").hide().addClass(e.resultsClass).appendTo(document.body);
p=a("<ul/>").appendTo(c).mouseover(function(u){var v=r(u);if(v.nodeName&&v.nodeName.toUpperCase()=="LI"){f=a("li",p).removeClass(j.ACTIVE).index(v);
a(v).addClass(j.ACTIVE);}}).click(function(u){a(r(u)).addClass(j.ACTIVE);m();k.focus();
return false;}).mousedown(function(){q.mouseDownOnSelect=true;}).mouseup(function(){q.mouseDownOnSelect=false;
});if(e.width>0){c.css("width",e.width);}t=false;}function r(v){var u=v.target;while(u&&u.tagName!="LI"){u=u.parentNode;
}if(!u){return[];}return u;}function h(u){l.slice(f,f+1).removeClass(j.ACTIVE);g(u);
var w=l.slice(f,f+1).addClass(j.ACTIVE);if(e.scroll){var v=0;l.slice(0,f).each(function(){v+=this.offsetHeight;
});if((v+w[0].offsetHeight-p.scrollTop())>p[0].clientHeight){p.scrollTop(v+w[0].offsetHeight-p.innerHeight());
}else{if(v<p.scrollTop()){p.scrollTop(v);}}}}function g(u){f+=u;if(f<0){f=l.size()-1;
}else{if(f>=l.size()){f=0;}}}function b(u){return e.max&&e.max<u?e.max:u;}function d(){p.empty();
var v=b(s.length);for(var w=0;w<v;w++){if(!s[w]){continue;}var x=e.formatItem(s[w].data,w+1,v,s[w].value,n);
if(x===false){continue;}var u=a("<li/>").html(e.highlight(x,n)).addClass(w%2==0?"ui-autocomplete-even":"ui-autocomplete-odd").addClass(j.DEFAULT).appendTo(p)[0];
a.data(u,"ui-autocomplete-data",s[w]);}l=p.find("li");if(e.selectFirst){l.slice(0,1).addClass(j.ACTIVE);
f=0;}if(a.fn.bgiframe){p.bgiframe();}}return{display:function(v,u){o();s=v;n=u;d();
},next:function(){h(1);},prev:function(){h(-1);},pageUp:function(){if(f!=0&&f-8<0){h(-f);
}else{h(-8);}},pageDown:function(){if(f!=l.size()-1&&f+8>l.size()){h(l.size()-1-f);
}else{h(8);}},hide:function(){c&&c.hide();l&&l.removeClass(j.ACTIVE);f=-1;a(k).triggerHandler("autocompletehide",[{},{options:e}],e.hide);
},visible:function(){return c&&c.is(":visible");},current:function(){return this.visible()&&(l.filter("."+j.ACTIVE)[0]||e.selectFirst&&l[0]);
},show:function(){var w=a(k).offset();c.css({width:typeof e.width=="string"||e.width>0?e.width:a(k).width(),top:w.top+k.offsetHeight,left:w.left}).show();
if(e.scroll){p.scrollTop(0);p.css({maxHeight:e.scrollHeight,overflow:"auto"});if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var u=0;
l.each(function(){u+=this.offsetHeight;});var v=u>e.scrollHeight;p.css("height",v?e.scrollHeight:u);
if(!v){l.width(p.width()-parseInt(l.css("padding-left"))-parseInt(l.css("padding-right")));
}}}a(k).triggerHandler("autocompleteshow",[{},{options:e}],e.show);},selected:function(){var u=l&&l.filter("."+j.ACTIVE).removeClass(j.ACTIVE);
if(e.extra_input&&u&&u.length){extra_data=a.data(u[0],"ui-autocomplete-data").data.join("|");
a("#"+e.extra_input).val(extra_data);}return u&&u.length&&a.data(u[0],"ui-autocomplete-data");
},emptyList:function(){p&&p.empty();},unbind:function(){c&&c.remove();}};};a.ui.autocomplete.selection=function(d,e,c){if(d.createTextRange){var b=d.createTextRange();
b.collapse(true);b.moveStart("character",e);b.moveEnd("character",c);b.select();}else{if(d.setSelectionRange){d.setSelectionRange(e,c);
}else{if(d.selectionStart){d.selectionStart=e;d.selectionEnd=c;}}}d.focus();};})(jQuery);
/*
 * jQuery lightBox plugin
 * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
 * and adapted to me for use like a plugin from jQuery.
 * @name jquery-lightbox-0.5.js
 * @author Leandro Vieira Pinho - http://leandrovieira.com
 * @version 0.5
 * @date April 11, 2008
 * @category jQuery plugin
 * @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
 * @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
 * @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
 */
(function(a){a.fn.lightBox=function(q){q=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,fixedNavigation:false,imageLoading:"images/lightbox-ico-loading.gif",imageBtnPrev:"images/lightbox-btn-prev.gif",imageBtnNext:"images/lightbox-btn-next.gif",imageBtnClose:"images/lightbox-btn-close.gif",imageBlank:"images/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},q);
var j=this;function s(){p(this,j);return false;}function p(w,v){a("embed, object, select").css({visibility:"hidden"});
c();q.imageArray.length=0;q.activeImage=0;if(v.length==1){q.imageArray.push(new Array(w.getAttribute("href"),w.getAttribute("title")));
}else{for(var u=0;u<v.length;u++){q.imageArray.push(new Array(v[u].getAttribute("href"),v[u].getAttribute("title")));
}}while(q.imageArray[q.activeImage][0]!=w.getAttribute("href")){q.activeImage++;}m();
}function c(){a("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+q.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+q.imageBtnClose+'"></a></div></div></div></div>');
var u=f();a("#jquery-overlay").css({backgroundColor:q.overlayBgColor,opacity:q.overlayOpacity,width:u[0],height:u[1]}).fadeIn();
var v=h();a("#jquery-lightbox").css({top:v[1]+(u[3]/10),left:v[0]}).show();a("#jquery-overlay,#jquery-lightbox").click(function(){b();
});a("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){b();return false;
});a(window).resize(function(){var w=f();a("#jquery-overlay").css({width:w[0],height:w[1]});
var x=h();a("#jquery-lightbox").css({top:x[1]+(w[3]/10),left:x[0]});});}function m(){a("#lightbox-loading").show();
if(q.fixedNavigation){a("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide();
}else{a("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide();
}var u=new Image();u.onload=function(){a("#lightbox-image").attr("src",q.imageArray[q.activeImage][0]);
k(u.width,u.height);u.onload=function(){};};u.src=q.imageArray[q.activeImage][0];
}function k(x,A){var u=a("#lightbox-container-image-box").width();var z=a("#lightbox-container-image-box").height();
var y=(x+(q.containerBorderSize*2));var w=(A+(q.containerBorderSize*2));var v=u-y;
var B=z-w;a("#lightbox-container-image-box").animate({width:y,height:w},q.containerResizeSpeed,function(){g();
});if((v==0)&&(B==0)){if(a.browser.msie){o(250);}else{o(100);}}a("#lightbox-container-image-data-box").css({width:x});
a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:A+(q.containerBorderSize*2)});
}function g(){a("#lightbox-loading").hide();a("#lightbox-image").fadeIn(function(){l();
t();});r();}function l(){a("#lightbox-container-image-data-box").slideDown("fast");
a("#lightbox-image-details-caption").hide();if(q.imageArray[q.activeImage][1]){a("#lightbox-image-details-caption").html(q.imageArray[q.activeImage][1]).show();
}if(q.imageArray.length>1){a("#lightbox-image-details-currentNumber").html(q.txtImage+" "+(q.activeImage+1)+" "+q.txtOf+" "+q.imageArray.length).show();
}}function t(){a("#lightbox-nav").show();a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+q.imageBlank+") no-repeat"});
if(q.activeImage!=0){if(q.fixedNavigation){a("#lightbox-nav-btnPrev").css({background:"url("+q.imageBtnPrev+") left 15% no-repeat"}).unbind().bind("click",function(){q.activeImage=q.activeImage-1;
m();return false;});}else{a("#lightbox-nav-btnPrev").unbind().hover(function(){a(this).css({background:"url("+q.imageBtnPrev+") left 15% no-repeat"});
},function(){a(this).css({background:"transparent url("+q.imageBlank+") no-repeat"});
}).show().bind("click",function(){q.activeImage=q.activeImage-1;m();return false;
});}}if(q.activeImage!=(q.imageArray.length-1)){if(q.fixedNavigation){a("#lightbox-nav-btnNext").css({background:"url("+q.imageBtnNext+") right 15% no-repeat"}).unbind().bind("click",function(){q.activeImage=q.activeImage+1;
m();return false;});}else{a("#lightbox-nav-btnNext").unbind().hover(function(){a(this).css({background:"url("+q.imageBtnNext+") right 15% no-repeat"});
},function(){a(this).css({background:"transparent url("+q.imageBlank+") no-repeat"});
}).show().bind("click",function(){q.activeImage=q.activeImage+1;m();return false;
});}}n();}function n(){a(document).keydown(function(u){d(u);});}function e(){a(document).unbind();
}function d(u){if(u==null){keycode=event.keyCode;escapeKey=27;}else{keycode=u.keyCode;
escapeKey=u.DOM_VK_ESCAPE;}key=String.fromCharCode(keycode).toLowerCase();if((key==q.keyToClose)||(key=="x")||(keycode==escapeKey)){b();
}if((key==q.keyToPrev)||(keycode==37)){if(q.activeImage!=0){q.activeImage=q.activeImage-1;
m();e();}}if((key==q.keyToNext)||(keycode==39)){if(q.activeImage!=(q.imageArray.length-1)){q.activeImage=q.activeImage+1;
m();e();}}}function r(){if((q.imageArray.length-1)>q.activeImage){objNext=new Image();
objNext.src=q.imageArray[q.activeImage+1][0];}if(q.activeImage>0){objPrev=new Image();
objPrev.src=q.imageArray[q.activeImage-1][0];}}function b(){a("#jquery-lightbox").remove();
a("#jquery-overlay").fadeOut(function(){a("#jquery-overlay").remove();});a("embed, object, select").css({visibility:"visible"});
}function f(){var w,u;if(window.innerHeight&&window.scrollMaxY){w=window.innerWidth+window.scrollMaxX;
u=window.innerHeight+window.scrollMaxY;}else{if(document.body.scrollHeight>document.body.offsetHeight){w=document.body.scrollWidth;
u=document.body.scrollHeight;}else{w=document.body.offsetWidth;u=document.body.offsetHeight;
}}var v,x;if(self.innerHeight){if(document.documentElement.clientWidth){v=document.documentElement.clientWidth;
}else{v=self.innerWidth;}x=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){v=document.documentElement.clientWidth;
x=document.documentElement.clientHeight;}else{if(document.body){v=document.body.clientWidth;
x=document.body.clientHeight;}}}if(u<x){pageHeight=x;}else{pageHeight=u;}if(w<v){pageWidth=w;
}else{pageWidth=v;}arrayPageSize=new Array(pageWidth,pageHeight,v,x);return arrayPageSize;
}function h(){var v,u;if(self.pageYOffset){u=self.pageYOffset;v=self.pageXOffset;
}else{if(document.documentElement&&document.documentElement.scrollTop){u=document.documentElement.scrollTop;
v=document.documentElement.scrollLeft;}else{if(document.body){u=document.body.scrollTop;
v=document.body.scrollLeft;}}}arrayPageScroll=new Array(v,u);return arrayPageScroll;
}function o(w){var v=new Date();u=null;do{var u=new Date();}while(u-v<w);}return this.unbind("click").click(s);
};})(jQuery);
/*
 * jQuery leviTip plugin
 * Version: 0.1.1
 * http://p.sohei.org
 * Copyright (c) 2007 Roman Weich
 * Dual licensed under the MIT and GPL licenses 
 */
(function(d){var a=null,c={},h=null,g=null,e={sourceType:"attribute",source:"title",activateOn:"hover",insertInto:"body",addClass:"levitip",topOffset:10,leftOffset:10,closeDelay:100,dropShadow:true,useHoverIntent:true,hiSensitivity:7,hiInterval:50,onOpen:function(){},onClose:function(){}},f=d.fn.jquery<="1.2.1"?"mouseover":"mouseenter",b=d.fn.jquery<="1.2.1"?"mouseout":"mouseleave";
d.extend({LeviTip:function(k,j){this.init(k,j);}});d.extend(d.LeviTip,{addSourceHandler:function(j){if(j.get&&j.type){c[j.type]=j;
}},closeLeviTip:function(){if(a){a.close();}},setDefaults:function(j){d.extend(e,j);
},prototype:{init:function(l,m){if(!l){return;}this.settings=d.extend({},e,m);this.target=l;
this.timer=this.tipHover=false;this.handler=c[this.settings.sourceType]||0;this.pos={cx:0,cy:0,px:0,py:0};
var j=this,k=(this.settings.activateOn=="hover"?function(n){if(j.settings.activateOn=="hover"){j.hoverIn(n);
}}:function(){});if(!h){g=d('<div class="innerbox"></div>');h=d('<div><div class="shadowbox1"></div><div class="shadowbox2"></div><div class="shadowbox3"></div></div>').append(g);
h.css({position:"absolute",display:"none"}).addClass("levitipouter").appendTo("body");
if(d.browser.msie&&(!d.browser.version||parseInt(d.browser.version)<=6)&&d.fn.bgiframe){h.bgiframe();
}}if(!this.handler){return;}if(this.handler.prepare){this.handler.prepare(this);}if(d.fn.hoverIntent&&this.settings.useHoverIntent){d(l).hoverIntent({interval:this.settings.hiInterval,sensitivity:this.settings.hiSensitivity,over:k,out:function(){j.hoverOut();
},timeout:0});}else{d(l).hover(k,function(){j.hoverOut();});}if(this.settings.activateOn=="click"){d(l).click(function(n){j.hoverIn(n);
});}},hoverIn:function(m){if(a){if(a==this){if(this.timer){clearTimeout(this.timer);
}return;}else{a.close();a=null;}}var l=(this.settings.insertInto=="target")?this.target:(this.settings.insertInto=="body")?"body":this.settings.insertInto;
h.appendTo(l).css({visibility:"hidden",display:"block"});var k=this.handler.get(this);
if(!k){return;}g.html(k).children().show();if(this.settings.addClass){g.addClass(this.settings.addClass);
}if(this.settings.dropShadow){h.addClass("outerbox");}this.pos={cx:m.clientX,cy:m.clientY,px:m.pageX,py:m.pageY};
this.setPosition();h.css({display:"none",visibility:""}).show();a=this;if(this.settings.insertInto=="body"){var j=this;
h.hover(function(n){j.tipHoverIn(n);},function(){j.tipHoverOut();});}if(this.settings.onOpen){this.settings.onOpen(h,this.target);
}},hoverOut:function(){var j=this;this.timer=setTimeout(function(){if(!j.tipHover){j.close();
}},this.settings.closeDelay);},tipHoverIn:function(){this.tipHover=true;},tipHoverOut:function(){this.tipHover=false;
this.hoverOut();},setPosition:function(){var q,p,m=d(window).width(),k=d(window).height(),o,n;
o=h.offsetParent();n=(this.settings.insertInto=="body")?{left:0,top:0,scrollLeft:0,scrollTop:0}:o.offset();
if(this.settings.insertInto=="target"&&o.css("position")=="fixed"){q=this.pos.cx;
p=this.pos.cy;}else{q=this.pos.px;p=this.pos.py;}q+=this.settings.leftOffset-n.left-n.scrollLeft;
p+=this.settings.topOffset-n.top-n.scrollTop;if(m<this.pos.cx+h[0].clientWidth+this.settings.leftOffset){var l=d(window).scrollLeft();
q-=h[0].clientWidth+this.settings.leftOffset*2;if(n.left-l+q<0){q-=n.left-l+q;}}if(k<this.pos.cy+h[0].clientHeight+this.settings.topOffset){var j=d(window).scrollTop();
p-=h[0].clientHeight+this.settings.topOffset*2;if(n.top-j+p<0){p-=n.top-j+p;}}h.css({left:q,top:p});
},close:function(){if(this.timer){clearTimeout(this.timer);}h.hide().unbind(f).unbind(b).css({left:0,top:0}).removeClass("outerbox");
if(this.settings.addClass){g.removeClass(this.settings.addClass);}a=false;if(this.handler.end){this.handler.end(this);
}if(this.settings.onClose){this.settings.onClose(h,this.target);}}}});d.fn.extend({leviTip:function(j){return this.each(function(){new d.LeviTip(this,j);
});}});d.LeviTip.addSourceHandler({type:"attribute",get:function(k){var j=d(k.target).attr(k.settings.source);
if(k.settings.source=="title"){k.titleAttr=j;d(k.target).attr("title","");}return j;
},end:function(j){if(j.settings.source=="title"&&j.titleAttr){d(j.target).attr("title",j.titleAttr);
}}});d.LeviTip.addSourceHandler({type:"element",prepare:function(j){if(j.settings.hideSourceElement){d(j.settings.source).hide();
}},get:function(j){var k=[];if(j.settings.source){k=d(j.settings.source);if(k.length){k=k.clone(true).show();
}}return k;}});d.LeviTip.addSourceHandler({type:"firstchild",prepare:function(j){if(j.settings.hideSourceElement){d(j.target.firstChild).hide();
}},get:function(j){var k=d(j.target.firstChild);if(k.length){k=k.clone(true).show();
}return k;}});})(jQuery);
/*
 * Superfish v1.4.8 - jQuery menu widget
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
 */
(function(b){b.fn.superfish=function(l){var g=b.fn.superfish,k=g.c,f=b(['<span class="',k.arrowClass,'"> &#187;</span>'].join("")),j=function(){var c=b(this),m=d(c);
clearTimeout(m.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl();},e=function(){var c=b(this),n=d(c),m=g.op;
clearTimeout(n.sfTimer);n.sfTimer=setTimeout(function(){m.retainPath=(b.inArray(c[0],m.$path)>-1);
c.hideSuperfishUl();if(m.$path.length&&c.parents(["li.",m.hoverClass].join("")).length<1){j.call(m.$path);
}},m.delay);},d=function(c){var m=c.parents(["ul.",k.menuClass,":first"].join(""))[0];
g.op=g.o[m.serial];return m;},h=function(c){c.addClass(k.anchorClass).append(f.clone());
};return this.each(function(){var c=this.serial=g.o.length;var n=b.extend({},g.defaults,l);
n.$path=b("li."+n.pathClass,this).slice(0,n.pathLevels).each(function(){b(this).addClass([n.hoverClass,k.bcClass].join(" ")).filter("li:has(ul)").removeClass(n.pathClass);
});g.o[c]=g.op=n;b("li:has(ul)",this)[(b.fn.hoverIntent&&!n.disableHI)?"hoverIntent":"hover"](j,e).each(function(){if(n.autoArrows){h(b(">a:first-child",this));
}}).not("."+k.bcClass).hideSuperfishUl();var m=b("a",this);m.each(function(o){var p=m.eq(o).parents("li");
m.eq(o).focus(function(){j.call(p);}).blur(function(){e.call(p);});});n.onInit.call(this);
}).each(function(){var c=[k.menuClass];if(g.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){c.push(k.shadowClass);
}b(this).addClass(c.join(" "));});};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;
if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off");
}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};
a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};
b.fn.extend({hideSuperfishUl:function(){var e=a.op,d=(e.retainPath===true)?e.$path:"";
e.retainPath=false;var c=b(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");
e.onHide.call(c);return this;},showSuperfishUl:function(){var e=a.op,d=a.c.shadowClass+"-off",c=this.addClass(e.hoverClass).find(">ul:hidden").css("visibility","visible");
a.IE7fix.call(c);e.onBeforeShow.call(c);c.animate(e.animation,e.speed,function(){a.IE7fix.call(c);
e.onShow.call(c);});return this;}});})(jQuery);
/*
	parseUri 1.2.1
	(c) 2007 Steven Levithan <stevenlevithan.com>
	MIT License
*/
function parseUri(e){var d=parseUri.options,a=d.parser[d.strictMode?"strict":"loose"].exec(e),c={},b=14;
while(b--){c[d.key[b]]=a[b]||"";}c[d.q.name]={};c[d.key[12]].replace(d.q.parser,function(g,f,h){if(f){c[d.q.name][f]=h;
}});return c;}parseUri.options={strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};
/*
Copyright (c) 2005 JSON.org

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 Software shall be used for Good, not Evil.

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.
*/
var JSON=function(){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s={"boolean":function(x){return String(x);
},number:function(x){return isFinite(x)?String(x):"null";},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];
if(c){return c;}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);
});}return'"'+x+'"';},object:function(x){if(x){var a=[],b,f,i,l,v;if(x instanceof Array){a[0]="[";
l=x.length;for(i=0;i<l;i+=1){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=",";
}a[a.length]=v;b=true;}}}a[a.length]="]";}else{if(x instanceof Object){a[0]="{";for(i in x){v=x[i];
f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=",";}a.push(s.string(i),":",v);
b=true;}}}a[a.length]="}";}else{return;}}return a.join("");}return"null";}};return{copyright:"(c)2005 JSON.org",license:"http://www.JSON.org/license.html",stringify:function(v){var f=s[typeof v];
if(f){v=f(v);if(typeof v=="string"){return v;}}return null;},parse:function(text){try{return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(text.replace(/"(\\.|[^"\\])*"/g,"")))&&eval("("+text+")");
}catch(e){return false;}}};}();var Cookie={c_escape:function(a){return encodeURIComponent(a||"").replace(/ /g,"+");
},c_unescape:function(a){return decodeURIComponent(a.replace(/\+/g," "));},set:function(c,e,b){var a="";
if(!b){b=365;}var h=new Date();h.setTime(h.getTime()+(86400000*parseFloat(b)));a="expires="+h.toGMTString();
var f="path=/";var g=Cookie.c_escape(c)+"="+Cookie.c_escape(e)+"; "+f+"; "+a+";";
return document.cookie=g;},get:function(a){var b=document.cookie.match(new RegExp("(^|;)\\s*"+Cookie.c_escape(a)+"=([^;\\s]+)"));
return(b?Cookie.c_unescape(b[2]):null);},erase:function(a){var b=Cookie.get(a)||true;
Cookie.set(a,"",-1);return b;},eraseAll:function(){var e=""+document.cookie;var b=e.split("; ");
for(var d=0;d<b.length;++d){var a=b[d].split("=");if(a.length!=2){continue;}var c=Cookie.c_unescape(a[0]);
Cookie.erase(c);}},accept:function(){if(typeof navigator.cookieEnabled=="boolean"){return navigator.cookieEnabled;
}Cookie.set("_test","1");return(Cookie.erase("_test")==="1");},exists:function(b){var a=Cookie.get(b);
if(!a){return false;}return a.toString()!="";}};var Flash=new Object();Flash.data={};
Flash.transferFromCookies=function(){var a=JSON.parse(Cookie.get("flash"));if(!a){a={};
}Flash.data=a;Cookie.erase("flash");};Flash.writeDataTo=function(a,b){b=$(b);if(Flash.data[a]){content=Flash.data[a].toString();
b.html(content);b.slideDown("fast").animate({opacity:1},20000).slideUp("fast");}};
function to_i(a){var b=parseInt(a);return isNaN(b)?0:b;}(function(d){var c={symbol:'<span class="ell_symbol" unselectable="on">&hellip;</span>',hide_last_chars:0,split_words:false,get_max:function(e){return e.offset().left+to_i(e.css("border-left-width"))+to_i(e.css("padding-left"))+e.width()-1;
},overflows:function(g,j,f){var e=g.offset();if((e.left<f.left)||(e.top<f.top)){var h=g.position();
e.left=f.left+h.left;}return e.left>j;},partially_overflows:function(g,j,f){var e=g.offset();
if((e.left<f.left)||(e.top<f.top)){var h=g.position();e.left=f.left+h.left;}return(e.left+g.width())>j;
}};var a=function(j,g){if(j==undefined){return;}var h=d(j);if(h.hasClass("ell_added")){return;
}h.addClass("ell_added");var o=h.textNodes();var k=o.length-1;while((k>=0)&&(/^\s*$/.test(o[k].nodeValue))){k--;
}o.slice(0,k+1).wrap('<span class="ell"></span>');if(g.split_words){d("span.ell",h).each(function(){var u=d(this);
var w=u.html();var v="";var r="";var s=/\s+|\S+/g;while(r=s.exec(w)){v=v+'<span class="ell">'+r[0]+"</span>";
}u.replaceWith(v);});}var q,l,p,n;var f=g.get_max(h);var m=h.offset();o=d("span.ell",j).get().reverse();
k=0;while(k<o.length){h=d(o[k]);if(g.overflows(h,f,m)){h.hide();k++;}else{if(g.partially_overflows(h,f,m)){q=h.html();
l=0;p=/&[^&]+;|.|\s/g;while(p.exec(q)){l++;}if(l>1){p=new RegExp("^((&[^&]+;|.|s){"+Math.floor(l/2)+"})((.|s)+)$");
n=d(q.replace(p,'<span class="ell">$1</span><span class="ell">$3</span>'));h.replaceWith(n);
o.splice(k,1,n[1],n[0]);}else{h.hide();k++;}}else{break;}}}if(k>0){var e=g.hide_last_chars;
while((k<o.length)&&(e>0)){h=d(o[k]);q=h.html();l=0;p=/&[^&]+;|./g;while(p.exec(q)){l++;
}if(l>1){n=q.replace(/^((.|\s)+)(&[^&]+;|.|\s)$/,'<span class="ell">$1</span><span style="display: none;" class="ell">$3</span>');
n=d(n);h.replaceWith(n);o.splice(k,1,n[1],n[0]);k++;}else{h.hide();k++;}e--;}d(o[0]).after(g.symbol);
}};var b=function(g,e,h){if(g.nodeName=="SCRIPT"){return;}if((g.nodeName=="#text")||((g.nodeName=="BR")&&(h==false))){e.push(g);
}else{for(var f=0;f<g.childNodes.length;++f){b(g.childNodes[f],e,h);}}};d.fn.extend({textNodes:function(f){var f=(f==undefined)?true:f;
var e=[];this.each(function(){b(this,e,f);});return d(e);},makeEllipsisX:function(){return this.each(function(){a(this,c);
});}});})(jQuery);$(function(){$(".ell").makeEllipsisX();});function pseudoGCircle(l,b,m,h,a){var o=36;
var f=6378137;var g=298.257223563;var j=((2*g)-1)/Math.pow(g,2);var k=Math.PI*f;var q=1-j*Math.pow(Math.sin(l.latRadians()),2);
var d=(k*(1-j))/(180*Math.pow(q,3/2));var r=(k*Math.cos(l.latRadians()))/(180*Math.pow(q,1/2));
var c=b*1000;var n=new Array(o);for(i=0;i<=o;i++){var p=(i/(o/2))*Math.PI;var e=(c/d)*Math.sin(p)+parseFloat(l.lat());
var s=(c/r)*Math.cos(p)+parseFloat(l.lng());n[i]=new google.maps.LatLng(e,s);}return new GPolygon(n,m,h,0.6,m,a);
}$(function(){$(".gallery a:has(img)").lightBox({imageLoading:"/images/lightbox/ico-loading.gif",imageBtnClose:"/images/lightbox/btn-close.gif",imageBtnPrev:"/images/lightbox/btn-prev.gif",imageBtnNext:"/images/lightbox/btn-next.gif",imageBlank:"/images/lightbox/blank.gif",txtImage:"Zdjęcie",txtOf:"z"});
});$(function(){Flash.transferFromCookies();Flash.writeDataTo("error","#error_div_id");
Flash.writeDataTo("notice","#notice_div_id");});$(function(){function b(A){var d=15;
var v=10;var y=null;var z=function(){if(!y){y={id:[],name:[]};}Cookie.set(A,JSON.stringify(y));
};var x=function(){y=null;z();};var t=function(){if(!y){y=JSON.parse(Cookie.get(A));
if(y&&$.isArray(y.id)&&$.isArray(y.name)&&y.id.length>0){var C;for(C=0;C<y.id.length;
C++){if(parseInt(y.id[C])>0){y.name[C]=""+y.name[C];if(y.name[C].length==0){y.name[C]=""+y.id[C];
}}else{y.id.splice(C,1);y.name.splice(C,1);C--;}}}else{x();}}return y;};var c=function(D){var C;
for(C=0;C<y.id.length;C++){if(y.id[C]==D){return C;}}return -1;};var B=function(E,C){var D=t();
if(c(E)>=0){return false;}if(D.id.length>=v){alert("Dodać można max. "+v+" pozycji!");
return false;}D.id.push(E);D.name.push(C.substring(0,d));z();return true;};var w=function(E){var D=t();
var C=c(E);if(C<0){return false;}D.id=D.id.slice(0,C).concat(D.id.slice(C+1));D.name=D.name.slice(0,C).concat(D.name.slice(C+1));
z();return true;};var u=function(C){return c(C)>=0;};t();return{get:t,save:z,clear:x,add:B,remove:w,has_id:u};
}var l=["place","band","photo_op","video_op"];var q=["sale-weselne","zespol-weselny","fotografia-slubna","wideofilmowanie"];
var p=["Sale weselne","Oprawa muzyczna","Fotografia","Wideofilmowanie"];NotebookItems={};
var h,o,k;for(o in l){k=l[o];NotebookItems[k]=b("NB_"+k);}var f=$("#query_category").val();
if(!f){return;}Items=NotebookItems[f];if(!Items){return;}function e(t){var d=$("h3:first",t);
var u=/\/(\d+)-/.exec($("a",d).attr("href"));if(u){u=u[1];}var c=d.text();return{id:u,name:c};
}function s(d,c){$(":checkbox",d)[0].checked=c;$(d).toggleClass("nb_checked",c);}function a(){$("div.position").each(function(){s(this,Items.has_id(e(this).id));
});}function j(){$("#NB").remove();$("body").prepend('<div id="NB" style="display: none;"></div>');
var d=$("#NB");d.append('<div class="nb_title">Notatnik</div>');var w=false,y,t;for(y in l){k=l[y];
d.append('<div id="NB_'+k+'" style="display: none;"></div>');var u=$("#NB_"+k);u.append('<div class="nbc_title hvr"><a href="/katalog/'+q[y]+'">'+p[y]+"</a></div>");
u.append('<div class="nbc_list" style="display: none;"></div>');var x=$(".nbc_list",u);
if(k==f){x.show();}var v=NotebookItems[k].get();for(t=0;t<v.id.length;t++){x.append('<div id="NB_'+v.id[t]+'" class="hvr"><div class="nbc_firm_name"><a href="/'+v.id[t]+'-">'+v.name[t]+'</a></div><div class="nbc_firm_remove">[x]</div><div style="clear:both;"></div></div>');
}if(v.id.length>0){u.show();w=true;}}d.append('<div class="nb_title hvr"><a href="/drukuj-notatnik">Wydrukuj</s></div>');
$(".nbc_firm_remove").click(function(){var c=/^NB_(\d+)$/.exec($(this).parent().attr("id"))[1];
Items.remove(c);a();$(this).parent().remove();});if(w){d.show("normal");}}function g(){var c=this;
setTimeout(function(){var t=c.checked;var v=$(c).parents(".position");var u=e(v);
var d=false;if(t){d=Items.add(u.id,u.name);if(!d){t=false;}}else{d=Items.remove(u.id);
}s(v,t);if(d){j();}},50);}var n=$("div.position");n.prepend('<div style="display: none;" class="add_to_notebook"><input type="checkbox" style="margin: 15px 0 0 70px; padding: 0px;"></div>');
var m=null,r=null;n.hover(function(){if(r){$(r).stop(true,true);}$(".add_to_notebook",this).each(function(){m=this;
}).show("normal",function(){if(m==this){m=null;}});},function(){if(m){$(m).stop(true,true);
}$(".add_to_notebook",this).each(function(){m=this;}).hide("normal",function(){if(r==this){r=null;
}});});$(":checkbox",n).keyup(g).mouseup(g);a();j();});$(function(){var a=Cookie.get("user_name");
$("span#logged_in_text > a.login").html(a);$("span#"+(a?"logged_in_text":"not_logged_in_text")).show();
});$(function(){var f=$("#catalog_map_div");if(!f[0]){return;}var e=f[0].style.backgroundImage;
var m=parseUri(e.replace(/.*url\((.*)\).*/,"$1")).queryKey;var l,n;var d=unescape(m.center).split(",");
var l=parseFloat(d[0]);var n=parseFloat(d[1]);var p=parseInt(m.zoom);var c=new GMap2(f[0]);
var o=new GLatLng(l,n);var h=new GMarker(o);var g=new GSmallMapControl();c.enableContinuousZoom();
c.setCenter(o,p);c.addOverlay(h);var b=false;function a(){f.css("background-image",null);
if(b){return;}c.addControl(g);b=true;}function k(){if(!b){return;}c.removeControl(g);
b=false;}f.hover(a,k);var j;if(j=f.attr("radius")){j=parseInt(j);if(j>0&&j<800){circle=pseudoGCircle(o,parseInt(j),"#00ff00",4,0);
c.addOverlay(circle);}}$(window).unload(GUnload);});$(function(){function b(){var d=a.options[a.selectedIndex].value;
$("a[template][href]").each(function(){this.href=this.getAttribute("template").replace(":region",d).replace(/\/$/,"");
});}var c=$("#region");var a=c[0];if(!a){return;}c.change(b);b();});$(function(){$("#errorExplanation").add("form .focusMe:first").eq(0).focus();
if($().superfish){$(".sf-menu").superfish({speed:"fast",animation:{height:"show"},autoArrows:false,delay:400});
}$("a.willPopup").live("click",function(g){g.preventDefault();var f=$(this).attr("popup-width")||500;
var c=$(this).attr("popup-height")||300;var d=$(this).attr("href");d=d+((d.indexOf("?")<0)?"?":"&")+"ie8fix="+Math.floor(new Date().getTime()/1000);
open_simple_window(d,f,c);});$("a.showOtherHideSelf").click(function(c){c.preventDefault();
$("#"+$(this).attr("other_id")).slideDown("fast");$(this).slideUp("fast");});$("input.show-hide-checkbox").change(function(){element=$("#"+$(this).attr("other_id"));
if($(this).attr("checked")){element.slideDown("fast");}else{element.slideUp("fast");
}});$("input.show-hide-checkbox").trigger("change");$("input.autocomplete").each(function(){var c=$(this);
c.autocomplete({url:c.attr("ac_url"),extra_input:c.attr("ac_extra"),ajaxDelay:600,max:40,width:c.width()+to_i(c.css("padding-left"))+to_i(c.css("padding-right")),formatMatch:function(d){return d[0];
},formatItem:function(h,j,d,g,f){var f=f.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1");
var e=h[0];e=e.replace(new RegExp("^("+f+")","i"),"<strong>$1</strong>");e+="<br>";
e+='<span class="ac-small">';if(h[1]!=""&&(h[1]!=h[0])){e+="gm. "+h[1]+", ";}if(h[2]!=""&&(h[2]!=h[0])){e+="pow. "+h[2]+", ";
}e+=h[3];e+="</span>";return e;},highlight:null});});$(".hasTooltip").each(function(){var f=$(this);
if(f.attr("title")!=""){$(this).leviTip({addClass:"tooltip"});}else{var e="#"+f.attr("id")+"_tip";
if($(e).length!=1){e=null;var d=f.attr("class").split(" ");for(var c in d){if(d[c].match(/_tip$/)){e="#"+d[c];
break;}}if(e&&($(e).length!=1)){e=null;}}if(e){$(this).leviTip({sourceType:"element",source:e,addClass:"",hideSourceElement:true});
}}});$("form").submit(function(){$("form :submit").attr("disabled",true);});$(window).unload(function(){$("form :submit").attr("disabled",false);
});var a=/^[A-Za-z]+:\/\//;var b=/^[A-Za-z]+:\/\/([A-Za-z0-9_\.]+\.)?planujemywesele.pl/;
$("a").each(function(){var d=$(this);var e=d.attr("href");if(a.test(e)&&!b.test(e)){var c=d.attr("rel")||"";
if(c!=""){c+=" ";}d.attr("rel",c+"external");}});if(typeof(pageTracker)!="undefined"){$("a[rel*='external']").click(function(){pageTracker._trackPageview("/outgoing/"+$(this).attr("href"));
});}$("a.target_blank").click(function(){window.open(this.href);return false;});});
Element={update:function(a,b){$("#"+a).text(b);}};function Tooltip(a,b){$("#"+a).leviTip({sourceType:"element",source:"#"+b,addClass:""});
}function open_simple_window(b,c,a){var e=(screen.width/2)-(c/2);var d=(screen.height/2)-(a/2);
var g="height="+a+", width="+c+", left="+e+", top="+d+", directories=no, location=no, menubar=no,, scrollbars=no, status=no, toolbar=no";
var f=window.open(b,"",g);if(window.focus){f.focus();}}$(function(){$("#adsense_250x250_hidden iframe").appendTo("#adsense_250x250");
});