(function(b){if(typeof b.log==="undefined"){if(typeof window.console!=="undefined"&&typeof window.console.log==="function"){b.console={};b.console.log=b.log=function(){for(var a=[],c=0;c<arguments.length;c++){a.push(arguments[c])}window.console.log.apply(window.console,a)};b.console.debug=typeof window.console.debug!=="undefined"?function(){for(var a=[],c=0;c<arguments.length;c++){a.push(arguments[c])}window.console.debug.apply(window.console,a)}:function(){for(var a=[],c=0;c<arguments.length;c++){a.push(arguments[c])}window.console.log.apply(window.console,a)};b.console.warn=typeof window.console.warn!=="undefined"?function(){for(var a=[],c=0;c<arguments.length;c++){a.push(arguments[c])}window.console.warn.apply(window.console,a)}:function(){for(var a=[],c=0;c<arguments.length;c++){a.push(arguments[c])}window.console.log.apply(window.console,a)};b.console.error=typeof window.console.error!=="undefined"?function(){for(var a=["An error has occured:"],c=0;c<arguments.length;c++){a.push(arguments[c])}window.console.error.apply(window.console,a);b.console.trace()}:function(){for(var a=["An error has occured:"],c=0;c<arguments.length;c++){a.push(arguments[c])}window.console.log.apply(window.console,a);b.console.trace()};b.console.trace=typeof window.console.trace!=="undefined"?function(){window.console.trace()}:function(){window.console.log.apply(window.console,["Attempted trace... but window.console.trace does not exist."])}}else{b.console={};b.log=b.console.log=b.console.debug=b.console.warn=b.console.trace=function(){};b.console.error=function(){alert("An error has occured. Please use another browser to obtain more detailed information.")}}}b.params_to_json=b.params_to_json||function(a){a=String(a);a=a.substring(a.indexOf("?")+1);a=a.replace(/\+/g,"%20");if(a.substring(0,1)==="{"&&a.substring(a.length-1)==="}"){return eval(decodeURIComponent(a))}a=a.split(/\&|\&\;/);for(var c={},d=0,g=a.length;d<g;++d){var f=a[d]||null;if(f!==null){f=f.split("=");if(f!==null){var i=f[0]||null;if(i!==null){if(typeof f[1]!=="undefined"){var e=f[1];i=decodeURIComponent(i);e=decodeURIComponent(e);try{e=eval(e)}catch(h){}f=i.split(".");if(f.length===1){c[i]=e}else{e="";for(ii in f){i=f[ii];e+="."+i;eval("json"+e+" = json"+e+" || {}")}eval("json"+e+" = value")}}}}}}return c};Array.prototype.remove=function(a,c){var d=this.slice((c||a)+1||this.length);this.length=a<0?this.length+a:a;return this.push.apply(this,d)};Array.prototype.get=function(a,c){if(a==="first"){a=0}else{if(a==="last"){a=this.length-1}else{if(!a&&a!==0){a=this.index}}}c!==false&&this.setIndex(a);return this[a]||undefined};Array.prototype.each=function(a){for(var c=0;c<this.length;++c){if(a(c,this[c],this)===false){break}}return this};Array.prototype.setIndex=function(a){this.index=a<this.length&&a>=0?a:null;return this};Array.prototype.current=function(a){return this.get(a,true)};Array.prototype.isEmpty=function(){return this.length===0};Array.prototype.isSingle=function(){return this.length===1};Array.prototype.isMany=function(){return this.length!==0};Array.prototype.isLast=function(a){a=typeof a==="undefined"?this.index:a;return !this.isEmpty()&&a===this.length-1};Array.prototype.isFirst=function(a){a=typeof a==="undefined"?this.index:a;return !this.isEmpty()&&a===0};Array.prototype.clear=function(){this.length=0};Array.prototype.next=function(a){return this.get(this.index+1,a)};Array.prototype.prev=function(a){return this.get(this.index-1,a)};Array.prototype.reset=function(){this.index=null;return this};Array.prototype.set=function(a,c){if(a<this.length&&a>=0){this[a]=c}else{$error("index above array length");return false}return this};Array.prototype.loop=function(){if(!this.index&&this.index!==0){return this.current(0)}return this.next()};Array.prototype.add=function(){this.push.apply(this,arguments);return this};Array.prototype.insert=function(a,c){if(typeof a!=="number"){a=this.length}a=a<=this.length?a:this.length;var d=this.slice(a);this.length=a;this.push(c);this.push.apply(this,d);return this};b.LightboxClass=function(){this.construct()};b.fn.lightbox=function(a){b.Lightbox=b.Lightbox||new b.LightboxClass;if(b.Lightbox.ie6&&!b.Lightbox.ie6_support){return this}a=b.extend({start:false,events:true},a);var c=b(this);if(a.events){c.unbind("click").click(function(){var d=b(this);d=c.index(d);if(!b.Lightbox.init(d,c)){return false}if(!b.Lightbox.start()){return false}return false});c.addClass("lightbox-enabled")}if(a.start){b(this);if(!b.Lightbox.init(0,c)){return this}if(!b.Lightbox.start()){return this}}return this};b.extend(b.LightboxClass.prototype,{images:[],constructed:false,compressed:null,src:null,baseurl:null,files:{compressed:{scripts:{lightbox:"scripts/jquery.lightbox.min.js",colorBlend:"scripts/jquery.color.min.js"},styles:{lightbox:"styles/jquery.lightbox.min.css"}},uncompressed:{scripts:{lightbox:"scripts/jquery.lightbox.js",colorBlend:"scripts/jquery.color.js"},styles:{lightbox:"styles/jquery.lightbox.css"}},images:{prev:"images/prev.gif",next:"images/next.gif",blank:"images/blank.gif",loading:"images/loading.gif"}},text:{image:"Image",of:"of",close:"Inchide X",closeInfo:"Poti sa inchizi si daca dai click oriunde in afara imaginii.",download:"Descarca.",help:{close:"Click in afara pozei pentru a inchide",interact:"Duceti mouse-ul peste poza pentru a interactiona"},about:{text:"jQuery Lightbox Plugin (balupton edition)",title:"Licenced under the GNU Affero General Public License.",link:"http://github.com/balupton/jquery-lightbox"}},keys:{close:"c",prev:"p",next:"n"},handlers:{show:null},opacity:0.9,padding:null,speed:400,rel:"lightbox",auto_relify:true,auto_scroll:"follow",auto_resize:true,ie6:null,ie6_support:true,colorBlend:null,download_link:true,show_helper_text:true,show_linkback:true,show_info:"auto",show_extended_info:"auto",options:["show_helper_text","auto_scroll","auto_resize","download_link","show_info","show_extended_info","ie6_support","colorBlend","baseurl","files","text","show_linkback","keys","opacity","padding","speed","rel","auto_relify"],construct:function(a){var c=typeof this.constructed==="undefined"||this.constructed===false;this.constructed=true;var d=c;a=a||{};var g=function(e,h){if(typeof e==="object"){for(var j in e){e[j]=g(e[j],h)}}else{if(typeof h==="array"){j=0;for(var k=e.length;j<k;++j){e[j]=g(e[j],h)}}else{e=h+e}}return e};if(c&&typeof a.files==="undefined"){this.compressed=null;var f=b("script[src*="+this.files.compressed.scripts.lightbox+"]:first");if(f.length!==0){b.extend(true,this.files,this.files.compressed);this.compressed=true}else{f=b("script[src*="+this.files.uncompressed.scripts.lightbox+"]:first");if(f.length!==0){b.extend(true,this.files,this.files.uncompressed);this.compressed=false}}if(this.compressed===null){b.console.error("Lightbox was not able to find it's javascript script tag necessary for auto-inclusion.");d=false}else{this.src=f.attr("src");this.baseurl=this.src.substring(0,this.src.indexOf(this.files.scripts.lightbox));this.files=g(this.files,this.baseurl);a=b.extend(a,b.params_to_json(this.src))}this.images.image={src:"",title:"Untitled",description:"",name:"",color:null,width:null,height:null,id:null,image:true};this.images.prepare=function(e){var h=b.extend({},this.image);if(e.tagName){e=b(e);if(e.attr("src")||e.attr("href")){h.src=e.attr("src")||e.attr("href");h.title=e.attr("title")||e.attr("alt")||h.title;h.name=e.attr("name")||"";h.color=e.css("backgroundColor");e=h.title.indexOf(": ");if(e>0){h.description=h.title.substring(e+2)||h.description;h.title=h.title.substring(0,e)||h.title}}else{h=null}}else{h=e.src?b.extend(this.image,e):null}if(h){h.id=h.id||h.src+h.title+h.description}return h};this.images.create=function(e){var h=this;if(e.each){e.each(function(k,l){h.create(l)})}else{var j=h.prepare(e);j?h.push(j):b.console.error("We dont know what we have:",e,j);return h}}}else{if(typeof a.files==="object"){a.files=g(a.files,this.baseurl)}else{d=false}}for(var i in this.options){f=this.options[i];if(typeof a[f]==="object"&&typeof this[f]==="object"){this[f]=b.extend(true,this[f],a[f])}else{if(typeof a[f]!=="undefined"){this[f]=a[f]}}}delete i;this.ie6=c&&navigator.userAgent.indexOf("MSIE 6")>=0?true:false;if(d||typeof a.download_link!=="undefined"||typeof a.colorBlend!=="undefined"||typeof a.files==="object"||typeof a.text==="object"||typeof a.show_linkback!=="undefined"||typeof a.scroll_with!=="undefined"){b(function(){b.Lightbox.domReady()})}return true},domReady:function(){var a=document.getElementsByTagName(b.browser.safari?"head":"body")[0],c=this.files.styles,d=this.files.scripts;if(this.colorBlend===true&&typeof b.colorBlend==="undefined"){this.colorBlend=true}else{this.colorBlend=typeof b.colorBlend!=="undefined";delete d.colorBlend}for(stylesheet in c){var g=document.createElement("link");g.type="text/css";g.rel="stylesheet";g.media="screen";g.href=c[stylesheet];g.id="lightbox-stylesheet-"+stylesheet.replace(/[^a-zA-Z0-9]/g,"");b("#"+g.id).remove();a.appendChild(g)}for(script in d){g=document.createElement("script");g.type="text/javascript";g.src=d[script];g.id="lightbox-script-"+script.replace(/[^a-zA-Z0-9]/g,"");b("#"+g.id).remove();a.appendChild(g)}delete d;delete c;delete a;b("#lightbox,#lightbox-overlay").remove();b("body").append('<div id="lightbox-overlay"><div id="lightbox-overlay-text">'+(this.show_linkback?'<p><span id="lightbox-overlay-text-about"><a href="#" title="'+this.text.about.title+'">'+this.text.about.text+"</a></span></p><p> </p>":"")+(this.show_helper_text?'<p><span id="lightbox-overlay-text-close">'+this.text.help.close+'</span><br/> <span id="lightbox-overlay-text-interact">'+this.text.help.interact+"</span></p>":"")+'</div></div><div id="lightbox"><div id="lightbox-imageBox"><div id="lightbox-imageContainer"><img id="lightbox-image" /><div 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="'+this.files.images.loading+'" /></a></div></div></div><div id="lightbox-infoBox"><div id="lightbox-infoContainer"><div id="lightbox-infoHeader"><span id="lightbox-caption">'+(this.download_link?'<a href="#" title="'+this.text.download+'" id="lightbox-caption-title"></a>':'<span id="lightbox-caption-title"></span>')+'<span id="lightbox-caption-seperator"></span><span id="lightbox-caption-description"></span></span></div><div id="lightbox-infoFooter"><span id="lightbox-currentNumber"></span><span id="lightbox-close"><a href="#" id="lightbox-close-button" title="'+this.text.closeInfo+'">'+this.text.close+'</a></span></div><div id="lightbox-infoContainer-clear"></div></div></div></div>');this.resizeBoxes();this.repositionBoxes();b("#lightbox,#lightbox-overlay,#lightbox-overlay-text-interact").hide();this.ie6&&this.ie6_support&&b("#lightbox-overlay").css({position:"absolute",top:"0px",left:"0px"});b.each(this.files.images,function(){var f=new Image;f.onload=function(){f=f.onload=null};f.src=this});b(window).unbind("resize").resize(function(){b.Lightbox.resizeBoxes("resized")});this.scroll==="follow"&&b(window).scroll(function(){b.Lightbox.repositionBoxes()});b("#lightbox-nav-btnPrev").unbind().hover(function(){b(this).css({background:"url("+b.Lightbox.files.images.prev+") left 45% no-repeat"})},function(){b(this).css({background:"transparent url("+b.Lightbox.files.images.blank+") no-repeat"})}).click(function(){b.Lightbox.images.prev();b.Lightbox.showImage();return false});b("#lightbox-nav-btnNext").unbind().hover(function(){b(this).css({background:"url("+b.Lightbox.files.images.next+") right 45% no-repeat"})},function(){b(this).css({background:"transparent url("+b.Lightbox.files.images.blank+") no-repeat"})}).click(function(){b.Lightbox.images.next();b.Lightbox.showImage();return false});this.show_linkback&&b("#lightbox-overlay-text-about a").click(function(){window.open(b.Lightbox.text.about.link);return false});b("#lightbox-overlay-text-close").unbind().hover(function(){b("#lightbox-overlay-text-interact").fadeIn()},function(){b("#lightbox-overlay-text-interact").fadeOut()});this.download_link&&b("#lightbox-caption-title").click(function(){window.open(b(this).attr("href"));return false});b("#lightbox-overlay, #lightbox, #lightbox-loading-link, #lightbox-btnClose").unbind().click(function(){b.Lightbox.finish();return false});this.auto_relify&&this.relify();return true},relify:function(){var a={},c=0,d=this.rel;b.each(b("[rel*="+d+"]"),function(g,f){var i=b(f).attr("rel");if(i===d){i=c}if(typeof a[i]==="undefined"){a[i]=[];c++}a[i].push(f)});b.each(a,function(g,f){b(f).lightbox()});return true},init:function(a,c){if(typeof c==="undefined"){c=a;a=0}this.images.clear();this.images.create(c);if(this.images.isEmpty()){b.console.warn("WARNING","Lightbox started, but no images: ",a,c);return false}if(!this.images.current(a)){b.console.warn("WARNING","Could not find current image: ",a,this.images);return false}return true},start:function(){this.visible=true;this.scroll==="disable"&&b(document.body).css("overflow","hidden");b("embed, object, select").css("visibility","hidden");this.resizeBoxes("general");this.repositionBoxes({speed:0});b("#lightbox-infoFooter").hide();b("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-infoBox").hide();b("#lightbox-overlay").css("opacity",this.opacity).fadeIn(400,function(){b("#lightbox").fadeIn(300);if(!b.Lightbox.showImage()){b.Lightbox.finish();return false}});return true},finish:function(){b("#lightbox").hide();b("#lightbox-overlay").fadeOut(function(){b("#lightbox-overlay").hide()});b("embed, object, select").css({visibility:"visible"});this.images.reset();this.scroll==="disable"&&b(document.body).css("overflow","visible");this.visible=false},resizeBoxes:function(a){if(a!=="transition"){var c=b(this.ie6?document.body:document);b("#lightbox-overlay").css({width:c.width(),height:c.height()});delete c}switch(a){case"general":return true;case"resized":if(this.auto_resize===false){this.repositionBoxes({nHeight:e,speed:this.speed});return true}case"transition":default:break}var d=this.images.current();if(!d||!d.width||!this.visible){return false}c=d.width;d=d.height;e=b(window).width();var g=b(window).height();if(this.auto_resize!==false){e=Math.floor(e*0.8);g=Math.floor(g*0.8);for(var f;c>e||d>g;){if(c>e){f=e/c;c=e;d=Math.floor(d*f)}if(d>g){f=g/d;d=g;c=Math.floor(c*f)}}}var i=b("#lightbox-imageBox").width();f=b("#lightbox-imageBox").height();g=c+this.padding*2;var e=d+this.padding*2;i=i-g;f=f-e;b("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css("height",e);b("#lightbox-infoBox").css("width",g);if(a==="transition"){if(i===0&&f===0){this.pause(this.speed/3);this.showImage(null,3)}else{b("#lightbox-image").width(c).height(d);b("#lightbox-imageBox").animate({width:g,height:e},this.speed,function(){b.Lightbox.showImage(null,3)})}}else{b("#lightbox-image").animate({width:c,height:d},this.speed);b("#lightbox-imageBox").animate({width:g,height:e},this.speed)}this.repositionBoxes({nHeight:e,speed:this.speed});return true},repositioning:false,reposition_failsafe:false,repositionBoxes:function(a){if(this.repositioning){this.reposition_failsafe=true;return null}this.repositioning=true;a=b.extend({},a);a.callback=a.callback||null;a.speed=a.speed||"slow";var c=this.getPageScroll(),d=a.nHeight||parseInt(b("#lightbox").height(),10);d=c.yScroll+(b(window).height()-d)/2.5;c={left:c.xScroll,top:d};if(a.speed){b("#lightbox").animate(c,"slow",function(){if(b.Lightbox.reposition_failsafe){b.Lightbox.repositioning=b.Lightbox.reposition_failsafe=false;b.Lightbox.repositionBoxes(a)}else{b.Lightbox.repositioning=false;a.callback&&a.callback()}})}else{b("#lightbox").css(c);if(this.reposition_failsafe){this.repositioning=this.reposition_failsafe=false;this.repositionBoxes(a)}else{this.repositioning=false}}return true},visible:false,showImage:function(a,c){c=c||1;if(a=this.images.current(a)||this.images.get("first",true)){switch(c){case 1:this.KeyboardNav_Disable();b("#lightbox-loading").show();b("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-infoBox").hide();b("#lightbox-imageBox").unbind();if(a.width&&a.height){this.showImage(null,2)}else{var d=new Image;d.onload=function(){a.width=d.width;a.height=d.height;b.Lightbox.showImage(null,2);d=d.onload=null};d.src=a.src}break;case 2:b("#lightbox-image").attr("src",a.src);if(typeof this.padding==="undefined"||this.padding===null||isNaN(this.padding)){this.padding=parseInt(b("#lightbox-imageContainer").css("padding-left"),10)||parseInt(b("#lightbox-imageContainer").css("padding"),10)||0}if(this.colorBlend){b("#lightbox-overlay").animate({backgroundColor:a.color},this.speed*2);b("#lightbox-imageBox").css("borderColor",a.color)}this.resizeBoxes("transition");break;case 3:b("#lightbox-loading").hide();b("#lightbox-image").fadeIn(this.speed*1.5,function(){b.Lightbox.showImage(null,4)});this.preloadNeighbours();this.handlers.show!==null&&this.handlers.show(a);break;case 4:var g=b("#lightbox-caption-title").html(a.title||"Untitled");if(this.download_link){g.attr("href",this.download_link?a.src:"")}delete g;b("#lightbox-caption-seperator").html(a.description?": ":"");b("#lightbox-caption-description").html(a.description||" ");this.images.length>1?b("#lightbox-currentNumber").html(this.text.image+" "+(this.images.index+1)+" "+this.text.of+" "+this.images.length):b("#lightbox-currentNumber").html(" ");b("#lightbox-imageBox").unbind("mouseover").mouseover(function(){b("#lightbox-infoBox:not(:visible)").stop().slideDown("fast")});b("#lightbox-infoBox").unbind("mouseover").mouseover(function(){b("#lightbox-infoFooter:not(:visible)").stop().slideDown("fast")});if(this.show_extended_info===true){b("#lightbox-imageBox").trigger("mouseover");b("#lightbox-infoBox").trigger("mouseover")}else{this.show_info===true&&b("#lightbox-imageBox").trigger("mouseover")}b("#lightbox-nav-btnPrev, #lightbox-nav-btnNext").css({background:"transparent url("+this.files.images.blank+") no-repeat"});this.images.isFirst()||b("#lightbox-nav-btnPrev").show();this.images.isLast()||b("#lightbox-nav-btnNext").show();b("#lightbox-nav").show();this.KeyboardNav_Enable();break;default:b.console.error("Don't know what to do: ",a,c);return this.showImage(a,1)}return true}},preloadNeighbours:function(){if(this.images.isSingle()||this.images.isEmpty()){return true}var a=this.images.current(),c=this.images.index;if(!a){return a}var d=this.images.prev();if(d){a=new Image;a.src=d.src}this.images.setIndex(c);if(d=this.images.next()){a=new Image;a.src=d.src}this.images.setIndex(c)},KeyboardNav_Enable:function(){b(document).keydown(function(a){b.Lightbox.KeyboardNav_Action(a)})},KeyboardNav_Disable:function(){b(document).unbind("keydown")},KeyboardNav_Action:function(a){a=a||window.event;var c=a.keyCode;a=a.DOM_VK_ESCAPE||27;var d=String.fromCharCode(c).toLowerCase();if(d===this.keys.close||c===a){return b.Lightbox.finish()}if(d===this.keys.prev||c===37){return b.Lightbox.showImage(b.Lightbox.images.prev())}if(d===this.keys.next||c===39){return b.Lightbox.showImage(b.Lightbox.images.next())}return true},getPageScroll:function(){var a,c;if(self.pageYOffset){c=self.pageYOffset;a=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){c=document.documentElement.scrollTop;a=document.documentElement.scrollLeft}else{if(document.body){c=document.body.scrollTop;a=document.body.scrollLeft}}}return{xScroll:a,yScroll:c}},pause:function(a){var c=new Date,d=null;do{d=new Date}while(d-c<a)}});if(typeof b.Lightbox==="undefined"){b.Lightbox=new b.LightboxClass}})(jQuery);(function(h){var e=h.browser.msie&&parseInt(h.browser.version)==6&&typeof window.XMLHttpRequest!="object",g=null,f=[];h.modal=function(a,b){return h.modal.impl.init(a,b)};h.modal.close=function(){h.modal.impl.close()};h.fn.modal=function(a){return h.modal.impl.init(this,a)};h.modal.defaults={appendTo:"body",focus:true,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:false,autoPosition:true,zIndex:1000,close:true,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",escClose:true,overlayClose:false,position:null,persist:false,modal:true,onOpen:null,onShow:null,onClose:null};h.modal.impl={o:null,d:{},init:function(a,c){var b=this;if(b.d.data){return false}g=h.browser.msie&&!h.boxModel;b.o=h.extend({},h.modal.defaults,c);b.zIndex=b.o.zIndex;b.occb=false;if(typeof a=="object"){a=a instanceof jQuery?a:h(a);b.d.placeholder=false;if(a.parent().parent().size()>0){a.before(h("<span></span>").attr("id","simplemodal-placeholder").css({display:"none"}));b.d.placeholder=true;b.display=a.css("display");if(!b.o.persist){b.d.orig=a.clone(true)}}}else{if(typeof a=="string"||typeof a=="number"){a=h("<div></div>").html(a)}else{alert("SimpleModal Error: Unsupported data type: "+typeof a);return b}}b.create(a);a=null;b.open();if(h.isFunction(b.o.onShow)){b.o.onShow.apply(b,[b.d])}return b},create:function(a){var b=this;f=b.getDimensions();if(b.o.modal&&e){b.d.iframe=h('<iframe src="javascript:false;"></iframe>').css(h.extend(b.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:f[0],width:f[1],zIndex:b.o.zIndex,top:0,left:0})).appendTo(b.o.appendTo)}b.d.overlay=h("<div></div>").attr("id",b.o.overlayId).addClass("simplemodal-overlay").css(h.extend(b.o.overlayCss,{display:"none",opacity:b.o.opacity/100,height:b.o.modal?f[0]:0,width:b.o.modal?f[1]:0,position:"fixed",left:0,top:0,zIndex:b.o.zIndex+1})).appendTo(b.o.appendTo);b.d.container=h("<div></div>").attr("id",b.o.containerId).addClass("simplemodal-container").css(h.extend(b.o.containerCss,{display:"none",position:"fixed",zIndex:b.o.zIndex+2})).append(b.o.close&&b.o.closeHTML?h(b.o.closeHTML).addClass(b.o.closeClass):"").appendTo(b.o.appendTo);b.d.wrap=h("<div></div>").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(b.d.container);b.d.data=a.attr("id",a.attr("id")||b.o.dataId).addClass("simplemodal-data").css(h.extend(b.o.dataCss,{display:"none"})).appendTo("body");a=null;b.setContainerDimensions();b.d.data.appendTo(b.d.wrap);if(e||g){b.fixIE()}},bindEvents:function(){var a=this;h("."+a.o.closeClass).bind("click.simplemodal",function(b){b.preventDefault();a.close()});if(a.o.modal&&a.o.close&&a.o.overlayClose){a.d.overlay.bind("click.simplemodal",function(b){b.preventDefault();a.close()})}h(document).bind("keydown.simplemodal",function(b){if(a.o.modal&&a.o.focus&&b.keyCode==9){a.watchTab(b)}else{if((a.o.close&&a.o.escClose)&&b.keyCode==27){b.preventDefault();a.close()}}});h(window).bind("resize.simplemodal",function(){f=a.getDimensions();a.setContainerDimensions(true);if(e||g){a.fixIE()}else{if(a.o.modal){a.d.iframe&&a.d.iframe.css({height:f[0],width:f[1]});a.d.overlay.css({height:f[0],width:f[1]})}}})},unbindEvents:function(){h("."+this.o.closeClass).unbind("click.simplemodal");h(document).unbind("keydown.simplemodal");h(window).unbind("resize.simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var b=this,a=b.o.position;h.each([b.d.iframe||null,!b.o.modal?null:b.d.overlay,b.d.container],function(c,C){if(C){var i="document.body.clientHeight",K="document.body.clientWidth",I="document.body.scrollHeight",L="document.body.scrollLeft",z="document.body.scrollTop",D="document.body.scrollWidth",E="document.documentElement.clientHeight",d="document.documentElement.clientWidth",s="document.documentElement.scrollLeft",H="document.documentElement.scrollTop",G=C[0].style;G.position="absolute";if(c<2){G.removeExpression("height");G.removeExpression("width");G.setExpression("height",""+I+" > "+i+" ? "+I+" : "+i+' + "px"');G.setExpression("width",""+D+" > "+K+" ? "+D+" : "+K+' + "px"')}else{var A,F;if(a&&a.constructor==Array){var J=a[0]?typeof a[0]=="number"?a[0].toString():a[0].replace(/px/,""):C.css("top").replace(/px/,"");A=J.indexOf("%")==-1?J+" + (t = "+H+" ? "+H+" : "+z+') + "px"':parseInt(J.replace(/%/,""))+" * (("+E+" || "+i+") / 100) + (t = "+H+" ? "+H+" : "+z+') + "px"';if(a[1]){var B=typeof a[1]=="number"?a[1].toString():a[1].replace(/px/,"");F=B.indexOf("%")==-1?B+" + (t = "+s+" ? "+s+" : "+L+') + "px"':parseInt(B.replace(/%/,""))+" * (("+d+" || "+K+") / 100) + (t = "+s+" ? "+s+" : "+L+') + "px"'}}else{A="("+E+" || "+i+") / 2 - (this.offsetHeight / 2) + (t = "+H+" ? "+H+" : "+z+') + "px"';F="("+d+" || "+K+") / 2 - (this.offsetWidth / 2) + (t = "+s+" ? "+s+" : "+L+') + "px"'}G.removeExpression("top");G.removeExpression("left");G.setExpression("top",A);G.setExpression("left",F)}}})},focus:function(a){var c=this,b=a||"first";var d=h(":input:enabled:visible:"+b,c.d.wrap);d.length>0?d.focus():c.d.wrap.focus()},getDimensions:function(){var a=h(window);var b=h.browser.opera&&h.browser.version>"9.5"&&h.fn.jquery<="1.2.6"?document.documentElement.clientHeight:h.browser.opera&&h.browser.version<"9.5"&&h.fn.jquery>"1.2.6"?window.innerHeight:a.height();return[b,a.width()]},getVal:function(a){return a=="auto"?0:a.indexOf("%")>0?a:parseInt(a.replace(/px/,""))},setContainerDimensions:function(m){var c=this;if(!m||(m&&c.o.autoResize)){var d=h.browser.opera?c.d.container.height():c.getVal(c.d.container.css("height")),p=h.browser.opera?c.d.container.width():c.getVal(c.d.container.css("width")),b=c.d.data.outerHeight(true),n=c.d.data.outerWidth(true);var o=c.o.maxHeight&&c.o.maxHeight<f[0]?c.o.maxHeight:f[0],a=c.o.maxWidth&&c.o.maxWidth<f[1]?c.o.maxWidth:f[1];if(!d){if(!b){d=c.o.minHeight}else{if(b>o){d=o}else{if(b<c.o.minHeight){d=c.o.minHeight}else{d=b}}}}else{d=d>o?o:d}if(!p){if(!n){p=c.o.minWidth}else{if(n>a){p=a}else{if(n<c.o.minWidth){p=c.o.minWidth}else{p=n}}}}else{p=p>a?a:p}c.d.container.css({height:d,width:p});if(b>d||n>p){c.d.wrap.css({overflow:"auto"})}}if(c.o.autoPosition){c.setPosition()}},setPosition:function(){var d=this,b,c,a=(f[0]/2)-(d.d.container.outerHeight(true)/2),j=(f[1]/2)-(d.d.container.outerWidth(true)/2);if(d.o.position&&Object.prototype.toString.call(d.o.position)==="[object Array]"){b=d.o.position[0]||a;c=d.o.position[1]||j}else{b=a;c=j}d.d.container.css({left:c,top:b})},watchTab:function(b){var c=this;if(h(b.target).parents(".simplemodal-container").length>0){c.inputs=h(":input:enabled:visible:first, :input:enabled:visible:last",c.d.data[0]);if((!b.shiftKey&&b.target==c.inputs[c.inputs.length-1])||(b.shiftKey&&b.target==c.inputs[0])||c.inputs.length==0){b.preventDefault();var a=b.shiftKey?"last":"first";setTimeout(function(){c.focus(a)},10)}}else{b.preventDefault();setTimeout(function(){c.focus()},10)}},open:function(){var a=this;a.d.iframe&&a.d.iframe.show();if(h.isFunction(a.o.onOpen)){a.o.onOpen.apply(a,[a.d])}else{a.d.overlay.show();a.d.container.show();a.d.data.show()}a.focus();a.bindEvents()},close:function(){var b=this;if(!b.d.data){return false}b.unbindEvents();if(h.isFunction(b.o.onClose)&&!b.occb){b.occb=true;b.o.onClose.apply(b,[b.d])}else{if(b.d.placeholder){var a=h("#simplemodal-placeholder");if(b.o.persist){a.replaceWith(b.d.data.removeClass("simplemodal-data").css("display",b.display))}else{b.d.data.hide().remove();a.replaceWith(b.d.orig)}}else{b.d.data.hide().remove()}b.d.container.hide().remove();b.d.overlay.hide().remove();b.d.iframe&&b.d.iframe.hide().remove();b.d={}}}}})(jQuery);jQuery(function(c){var d={message:null,init:function(){c("#contact-form input.contact, #contact-form a.contact").click(function(a){a.preventDefault();c.get("/js/contact/data/contact.php",function(b){c(b).modal({closeHTML:"<a href='#' title='Inchide' class='modal-close'>x</a>",position:["15%",],overlayId:"contact-overlay",containerId:"contact-container",onOpen:d.open,onShow:d.show,onClose:d.close})})});c("#contact-agenda input.contact, #contact-agenda a.contact").click(function(a){a.preventDefault();c.get("/js/contact/data/contact.php",function(b){c(b).modal({closeHTML:"<a href='#' title='Inchide' class='modal-close'>x</a>",position:["15%",],overlayId:"contact-overlay",containerId:"contact-container",onOpen:d.open,onShow:d.show,onClose:d.close})})})},open:function(f){if(c.browser.mozilla){c("#contact-container .contact-button").css({"padding-bottom":"2px"})}if(c.browser.safari){c("#contact-container .contact-input").css({"font-size":".9em"})}var b=280;if(c("#contact-subject").length){b+=26}if(c("#contact-cc").length){b+=22}var a=c("#contact-container .contact-title").html();c("#contact-container .contact-title").html("Loading...");f.overlay.fadeIn(200,function(){f.container.fadeIn(200,function(){f.data.fadeIn(200,function(){c("#contact-container .contact-content").animate({height:b},function(){c("#contact-container .contact-title").html(a);c("#contact-container form").fadeIn(200,function(){c("#contact-container #contact-name").focus();c("#contact-container .contact-cc").click(function(){var e=c("#contact-container #contact-cc");e.is(":checked")?e.attr("checked",""):e.attr("checked","checked")});if(c.browser.msie&&c.browser.version<7){c("#contact-container .contact-button").each(function(){if(c(this).css("backgroundImage").match(/^url[("']+(.*\.png)[)"']+$/i)){var e=RegExp.$1;c(this).css({backgroundImage:"none",filter:'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+e+'", sizingMethod="crop")'})}})}})})})})})},show:function(a){c("#contact-container .contact-send").click(function(e){e.preventDefault();if(d.validate()){var b=c("#contact-container .contact-message");b.fadeOut(function(){b.removeClass("contact-error").empty()});c("#contact-container .contact-title").html("Sending...");c("#contact-container form").fadeOut(200);c("#contact-container .contact-content").animate({height:"80px"},function(){c("#contact-container .contact-loading").fadeIn(200,function(){c.ajax({url:"/js/contact/data/contact.php",data:c("#contact-container form").serialize()+"&action=send",type:"post",cache:false,dataType:"html",success:function(f){c("#contact-container .contact-loading").fadeOut(200,function(){c("#contact-container .contact-title").html("Multumim!");b.html(f).fadeIn(200)})},error:d.error})})})}else{if(c("#contact-container .contact-message:visible").length>0){var b=c("#contact-container .contact-message div");b.fadeOut(200,function(){b.empty();d.showError();b.fadeIn(200)})}else{c("#contact-container .contact-message").animate({height:"30px"},d.showError)}}})},close:function(a){c("#contact-container .contact-message").fadeOut();c("#contact-container .contact-title").html("La revedere...");c("#contact-container form").fadeOut(200);c("#contact-container .contact-content").animate({height:40},function(){a.data.fadeOut(200,function(){a.container.fadeOut(200,function(){a.overlay.fadeOut(200,function(){c.modal.close()})})})})},error:function(a){alert(a.statusText)},validate:function(){d.message="";if(!c("#contact-container #contact-name").val()){d.message+="Numele este necesar. "}var a=c("#contact-container #contact-email").val();if(!a){d.message+="Email este necesar. "}else{if(!d.validateEmail(a)){d.message+="Email invalid. "}}if(!c("#contact-container #contact-message").val()){d.message+="Mesajul este necesar."}if(d.message.length>0){return false}else{return true}},validateEmail:function(g){var h=g.lastIndexOf("@");if(h<1||(h+1)===g.length){return false}if(/(\.{2,})/.test(g)){return false}var b=g.substring(0,h);var a=g.substring(h+1);if(b.length<1||b.length>64||a.length<4||a.length>255){return false}if(/(^\.|\.$)/.test(b)||/(^\.|\.$)/.test(a)){return false}if(!/^"(.+)"$/.test(b)){if(!/^[-a-zA-Z0-9!#$%*\/?|^{}`~&'+=_\.]*$/.test(b)){return false}}if(!/^[-a-zA-Z0-9\.]*$/.test(a)||a.indexOf(".")===-1){return false}return true},showError:function(){c("#contact-container .contact-message").html(c('<div class="contact-error"></div>').append(d.message)).fadeIn(200)}};d.init()});(function(e){e.ui=e.ui||{};e.fn.extend({accordion:function(h,i){var g=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof h=="string"){var j=e.data(this,"ui-accordion");j[h].apply(j,g)}else{if(!e(this).is(".ui-accordion")){e.data(this,"ui-accordion",new e.ui.accordion(this,h))}}})},activate:function(g){return this.accordion("activate",g)}});e.ui.accordion=function(g,h){this.options=h=e.extend({},e.ui.accordion.defaults,h);this.element=g;e(g).addClass("ui-accordion");if(h.navigation){var k=e(g).find("a").filter(h.navigationFilter);if(k.length){if(k.filter(h.header).length){h.active=k}else{h.active=k.parent().parent().prev();k.addClass("current")}}}h.headers=e(g).find(h.header);h.active=c(h.headers,h.active);if(h.fillSpace){var j=e(g).parent().height();h.headers.each(function(){j-=e(this).outerHeight()});var i=0;h.headers.next().each(function(){i=Math.max(i,e(this).innerHeight()-e(this).height())}).height(j-i)}else{if(h.autoheight){var j=0;h.headers.next().each(function(){j=Math.max(j,e(this).outerHeight())}).height(j)}}h.headers.not(h.active||"").next().hide();h.active.parent().andSelf().addClass(h.selectedClass);if(h.event){e(g).bind((h.event)+".ui-accordion",f)}};e.ui.accordion.prototype={activate:function(g){f.call(this.element,{target:c(this.options.headers,g)[0]})},enable:function(){this.options.disabled=false},disable:function(){this.options.disabled=true},destroy:function(){this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoheight){this.options.headers.next().css("height","")}e.removeData(this.element,"ui-accordion");e(this.element).removeClass("ui-accordion").unbind(".ui-accordion")}};function b(h,g){return function(){return h.apply(g,arguments)}}function d(i){if(!e.data(this,"ui-accordion")){return}var g=e.data(this,"ui-accordion");var h=g.options;h.running=i?0:--h.running;if(h.running){return}if(h.clearStyle){h.toShow.add(h.toHide).css({height:"",overflow:""})}e(this).triggerHandler("change.ui-accordion",[h.data],h.change)}function a(g,k,l,j,m){var i=e.data(this,"ui-accordion").options;i.toShow=g;i.toHide=k;i.data=l;var h=b(d,this);i.running=k.size()==0?g.size():k.size();if(i.animated){if(!i.alwaysOpen&&j){e.ui.accordion.animations[i.animated]({toShow:jQuery([]),toHide:k,complete:h,down:m,autoheight:i.autoheight})}else{e.ui.accordion.animations[i.animated]({toShow:g,toHide:k,complete:h,down:m,autoheight:i.autoheight})}}else{if(!i.alwaysOpen&&j){g.toggle()}else{k.hide();g.show()}h(true)}}function f(l){var j=e.data(this,"ui-accordion").options;if(j.disabled){return false}if(!l.target&&!j.alwaysOpen){j.active.parent().andSelf().toggleClass(j.selectedClass);var i=j.active.next(),m={instance:this,options:j,newHeader:jQuery([]),oldHeader:j.active,newContent:jQuery([]),oldContent:i},g=j.active=e([]);a.call(this,g,i,m);return false}var k=e(l.target);if(k.parents(j.header).length){while(!k.is(j.header)){k=k.parent()}}var h=k[0]==j.active[0];if(j.running||(j.alwaysOpen&&h)){return false}if(!k.is(j.header)){return}j.active.parent().andSelf().toggleClass(j.selectedClass);if(!h){k.parent().andSelf().addClass(j.selectedClass)}var g=k.next(),i=j.active.next(),m={instance:this,options:j,newHeader:k,oldHeader:j.active,newContent:g,oldContent:i},n=j.headers.index(j.active[0])>j.headers.index(k[0]);j.active=h?e([]):k;a.call(this,g,i,m,h,n);return false}function c(h,g){return g!=undefined?typeof g=="number"?h.filter(":eq("+g+")"):h.not(h.not(g)):g===false?e([]):h.filter(":eq(0)")}e.extend(e.ui.accordion,{defaults:{selectedClass:"selected",alwaysOpen:true,animated:"slide",event:"click",header:"a",autoheight:true,running:0,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(g,i){g=e.extend({easing:"swing",duration:300},g,i);if(!g.toHide.size()){g.toShow.animate({height:"show"},g);return}var h=g.toHide.height(),j=g.toShow.height(),k=j/h;g.toShow.css({height:0,overflow:"hidden"}).show();g.toHide.filter(":hidden").each(g.complete).end().filter(":visible").animate({height:"hide"},{step:function(l){var m=(h-l)*k;if(e.browser.msie||e.browser.opera){m=Math.ceil(m)}g.toShow.height(m)},duration:g.duration,easing:g.easing,complete:function(){if(!g.autoheight){g.toShow.css("height","auto")}g.complete()}})},bounceslide:function(g){this.slide(g,{easing:g.down?"bounceout":"swing",duration:g.down?1000:200})},easeslide:function(g){this.slide(g,{easing:"easeinout",duration:700})}}})})(jQuery);eval(function(h,b,j,f,g,i){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(j--){i[g(j)]=f[j]||g(j)}f=[function(a){return i[a]}];g=function(){return"\\w+"};j=1}while(j--){if(f[j]){h=h.replace(new RegExp("\\b"+g(j)+"\\b","g"),f[j])}}return h}('8={3b:"1.6",2o:"1B.1Y,1B.23,1B.2e",2i:"",2H:1a,12:"",2C:1a,Z:"",2a:\'<H V="$0">$$</H>\',R:"&#F;",1j:"&#F;&#F;&#F;&#F;",1f:"&#F;<1W/>",3c:5(){9 $(y).39("1k")[0]},I:{},N:{}};(5($){$(5(){5 1J(l,a){5 2I(A,h){4 3=(1v h.3=="1h")?h.3:h.3.1w;k.1m({A:A,3:"("+3+")",u:1+(3.c(/\\\\./g,"%").c(/\\[.*?\\]/g,"%").3a(/\\((?!\\?)/g)||[]).u,z:(h.z)?h.z:8.2a})}5 2z(){4 1E=0;4 1x=x 2A;Q(4 i=0;i<k.u;i++){4 3=k[i].3;3=3.c(/\\\\\\\\|\\\\(\\d+)/g,5(m,1F){9!1F?m:"\\\\"+(1E+1+1t(1F))});1x.1m(3);1E+=k[i].u}4 1w=1x.3d("|");9 x 1u(1w,(a.3g)?"2j":"g")}5 1S(o){9 o.c(/&/g,"&3h;").c(/</g,"&3e;")}5 1R(o){9 o.c(/ +/g,5(1X){9 1X.c(/ /g,R)})}5 G(o){o=1S(o);7(R){o=1R(o)}9 o}5 2m(2E){4 i=0;4 j=1;4 h;19(h=k[i++]){4 1b=D;7(1b[j]){4 1U=/(\\\\\\$)|(?:\\$\\$)|(?:\\$(\\d+))/g;4 z=h.z.c(1U,5(m,1V,K){4 3f=\'\';7(1V){9"$"}v 7(!K){9 G(1b[j])}v 7(K=="0"){9 h.A}v{9 G(1b[j+1t(K,10)])}});4 1A=D[D.u-2];4 2h=D[D.u-1];4 2G=2h.2v(11,1A);11=1A+2E.u;14+=G(2G)+z;9 z}v{j+=h.u}}}4 R=8.R;4 k=x 2A;Q(4 A 2r a.k){2I(A,a.k[A])}4 14="";4 11=0;l.c(2z(),2m);4 2y=l.2v(11,l.u);14+=G(2y);9 14}5 2B(X){7(!8.N[X]){4 Y=\'<Y 32="1p" 33="p/2u"\'+\' 30="\'+X+\'">\';8.N[X]=1H;7($.31.34){4 W=J.1L(Y);4 $W=$(W);$("2d").1O($W)}v{$("2d").1O(Y)}}}5 1q(e,a){4 l=e&&e.1g&&e.1g[0]&&e.1g[0].37;7(!l)l="";l=l.c(/\\r\\n?/g,"\\n");4 C=1J(l,a);7(8.1j){C=C.c(/\\t/g,8.1j)}7(8.1f){C=C.c(/\\n/g,8.1f)}$(e).38(C)}5 1o(q,13){4 1l={12:8.12,2x:q+".1d",Z:8.Z,2w:q+".2u"};4 B;7(13&&1v 13=="2l")B=$.35(1l,13);v B=1l;9{a:B.12+B.2x,1p:B.Z+B.2w}}7($.2q)$.2q({36:"2l.15"});4 2n=x 1u("\\\\b"+8.2i+"\\\\b","2j");4 1e=[];$(8.2o).2D(5(){4 e=y;4 1n=$(e).3i("V");7(!1n){9}4 q=$.3u(1n.c(2n,""));7(\'\'!=q){1e.1m(e);4 f=1o(q,e.15);7(8.2H||e.15){7(!8.N[f.a]){1D{8.N[f.a]=1H;$.3v(f.a,5(M){M.f=f.a;8.I[f.a]=M;7(8.2C){2B(f.1p)}$("."+q).2D(5(){4 f=1o(q,y.15);7(M.f==f.a){1q(y,M)}})})}1I(3s){3t("a 3w Q: "+q+\'@\'+3z)}}}v{4 a=8.I[f.a];7(a){1q(e,a)}}}});7(J.1i&&J.1i.29){5 22(p){7(\'\'==p){9""}1z{4 16=(x 3A()).2k()}19(p.3x(16)>-1);p=p.c(/\\<1W[^>]*?\\>/3y,16);4 e=J.1L(\'<1k>\');e.3l=p;p=e.3m.c(x 1u(16,"g"),\'\\r\\n\');9 p}4 T="";4 18=1G;$(1e).3j().G("1k").U("2c",5(){18=y}).U("1M",5(){7(18==y)T=J.1i.29().3k});$("3n").U("3q",5(){7(\'\'!=T){2p.3r.3o(\'3p\',22(T));2V.2R=1a}}).U("2c",5(){T=""}).U("1M",5(){18=1G})}})})(1Z);8.I["1Y.1d"]={k:{2M:{3:/\\/\\*[^*]*\\*+(?:[^\\/][^*]*\\*+)*\\//},25:{3:/\\<!--(?:.|\\n)*?--\\>/},2f:{3:/\\/\\/.*/},2P:{3:/2L|2T|2J|2O|2N|2X|2K|2Z|2U|2S|2W|2Y|2Q|51|c-50/},53:{3:/\\/[^\\/\\\\\\n]*(?:\\\\.[^\\/\\\\\\n]*)*\\/[52]*/},1h:{3:/(?:\\\'[^\\\'\\\\\\n]*(?:\\\\.[^\\\'\\\\\\n]*)*\\\')|(?:\\"[^\\"\\\\\\n]*(?:\\\\.[^\\"\\\\\\n]*)*\\")/},27:{3:/\\b[+-]?(?:\\d*\\.?\\d+|\\d+\\.?\\d*)(?:[1r][+-]?\\d+)?\\b/},4X:{3:/\\b(D|1N|1K|1I|2t|2s|4W|1z|v|1a|Q|5|7|2r|4Z|x|1G|9|1Q|y|1H|1D|1v|4|4Y|19|59)\\b/},1y:{3:/\\b(58|2k|2p|5b|5a|55|J|54|57|1t|56|4L|4K|4N|4M|4H|4G|4J)\\b/},1C:{3:/(?:\\<\\w+)|(?:\\>)|(?:\\<\\/\\w+\\>)|(?:\\/\\>)/},26:{3:/\\s+\\w+(?=\\s*=)/},20:{3:/([\\"\\\'])(?:(?:[^\\1\\\\\\r\\n]*?(?:\\1\\1|\\\\.))*[^\\1\\\\\\r\\n]*?)\\1/},21:{3:/&[\\w#]+?;/},4I:{3:/(\\$|1Z)/}}};8.I["23.1d"]={k:{25:{3:/\\<!--(?:.|\\n)*?--\\>/},1h:{3:/(?:\\\'[^\\\'\\\\\\n]*(?:\\\\.[^\\\'\\\\\\n]*)*\\\')|(?:\\"[^\\"\\\\\\n]*(?:\\\\.[^\\"\\\\\\n]*)*\\")/},27:{3:/\\b[+-]?(?:\\d*\\.?\\d+|\\d+\\.?\\d*)(?:[1r][+-]?\\d+)?\\b/},1C:{3:/(?:\\<\\w+)|(?:\\>)|(?:\\<\\/\\w+\\>)|(?:\\/\\>)/},26:{3:/\\s+\\w+(?=\\s*=)/},20:{3:/([\\"\\\'])(?:(?:[^\\1\\\\\\r\\n]*?(?:\\1\\1|\\\\.))*[^\\1\\\\\\r\\n]*?)\\1/},21:{3:/&[\\w#]+?;/}}};8.I["2e.1d"]={k:{4S:{3:/\\/\\*[^*]*\\*+([^\\/][^*]*\\*+)*\\//},2f:{3:/(?:\\/\\/.*)|(?:[^\\\\]\\#.*)/},4V:{3:/\\\'[^\\\'\\\\]*(?:\\\\.[^\\\'\\\\]*)*\\\'/},4U:{3:/\\"[^\\"\\\\]*(?:\\\\.[^\\"\\\\]*)*\\"/},4P:{3:/\\b(?:[4O][2b][1s][1s]|[4R][4Q][2b][1P]|[5c][5v][1s][5u][1P])\\b/},5x:{3:/\\b[+-]?(\\d*\\.?\\d+|\\d+\\.?\\d*)([1r][+-]?\\d+)?\\b/},5y:{3:/\\b(?:5z|5w(?:5A|5E(?:5F(?:17|1c)|5G(?:17|1c))|17|1T|5B|5C|5D(?:17|1T|1c)|1c)|P(?:5h(?:5k|5j)|5e(?:5d|5g(?:5f|5l)|5r|E(?:5t|5s)|5n(?:5m|5p)|L(?:3X|3W)|O(?:S|3Y(?:3T|3S|3V))|3U|S(?:44|47|46)|41))|40)\\b/},1y:{3:/(?:\\$43|\\$42|\\$3R|\\$3G|\\$3F|\\$3I|\\$3H|\\$3C|\\$3B|\\$3D)\\b/},28:{3:/\\b(?:3O|3N|3P|3K|3J|3M|3L|48|4v|1N|1K|1I|4u|V|4x|4w|2t|4r|2s|4q|1z|4t|v|4s|4D|4C|4F|4E|4z|4y|4B|4A|4p|4d|2F|2F|4g|Q|4f|5|1y|7|4a|4m|4l|4o|4i|4k|x|4j|4h|4n|4b|4c|49|4e|3Q|3E|9|45|1Q|y|3Z|1D|5o|5q|4|19|5i)\\b/},2g:{3:/\\$(\\w+)/,z:\'<H V="28">$</H><H V="2g">$1</H>\'},1C:{3:/(?:\\<\\?[24][4T][24])|(?:\\<\\?)|(?:\\?\\>)/}}}',62,353,"|||exp|var|function||if|ChiliBook|return|recipe||replace||el|path||step|||steps|ingredients|||str|text|recipeName||||length|else||new|this|replacement|stepName|settings|dish|arguments||160|filter|span|recipes|document|||recipeLoaded|required|||for|replaceSpace||insidePRE|bind|class|domLink|stylesheetPath|link|stylesheetFolder||lastIndex|recipeFolder|options|perfect|chili|newline|ERROR|downPRE|while|false|aux|WARNING|js|codes|replaceNewLine|childNodes|string|selection|replaceTab|pre|settingsDef|push|elClass|getPath|stylesheet|makeDish|eE|Ll|parseInt|RegExp|typeof|source|exps|global|do|offset|code|tag|try|prevLength|aNum|null|true|catch|cook|case|createElement|mouseup|break|append|Ee|switch|replaceSpaces|escapeHTML|NOTICE|pattern|escaped|br|spaces|mix|jQuery|avalue|entity|preformatted|xml|Pp|htcom|aname|numbers|keyword|createRange|defaultReplacement|Uu|mousedown|head|php|com|variable|input|elementClass|gi|valueOf|object|chef|selectClass|elementPath|window|metaobjects|in|default|continue|css|substring|stylesheetFile|recipeFile|lastUnmatched|knowHow|Array|checkCSS|stylesheetLoading|each|matched|extends|unmatched|recipeLoading|prepareStep|unblockUI|ajaxSubmit|silverlight|jscom|unblock|block|plugin|clearFields|returnValue|fieldValue|blockUI|formSerialize|event|resetForm|ajaxForm|clearForm|fieldSerialize|href|browser|rel|type|msie|extend|selector|data|html|next|match|version|getPRE|join|lt|bit|ignoreCase|amp|attr|parents|htmlText|innerHTML|innerText|body|setData|Text|copy|clipboardData|recipeNotAvailable|alert|trim|getJSON|unavailable|indexOf|ig|recipePath|Date|_SESSION|_SERVER|php_errormsg|require_once|_GET|_FILES|_REQUEST|_POST|__METHOD__|__LINE__|and|abstract|__FILE__|__CLASS__|__FUNCTION__|require|_ENV|END|CONT|PREFIX|START|OCALSTATEDIR|IBDIR|UTPUT_HANDLER_|throw|__COMPILER_HALT_OFFSET__|VERSION|_COOKIE|GLOBALS|API|static|YSCONFDIR|HLIB_SUFFIX|array|protected|implements|print|private|exit|public|foreach|final|or|isset|old_function|list|include_once|include|php_user_filter|interface|exception|die|declare|elseif|echo|cfunction|as|const|clone|endswitch|endif|eval|endwhile|enddeclare|empty|endforeach|endfor|isNaN|NaN|jquery|Infinity|clearTimeout|setTimeout|clearInterval|setInterval|Nn|value|Rr|Tt|mlcom|Hh|string2|string1|delete|keywords|void|instanceof|content|taconite|gim|regexp|escape|constructor|parseFloat|unescape|toString|with|prototype|element|Ff|BINDIR|HP_|PATH|CONFIG_FILE_|EAR_|xor|INSTALL_DIR|EXTENSION_DIR|SCAN_DIR|MAX|INT_|unset|SIZE|use|DATADIR|XTENSION_DIR|OL|Ss|Aa|E_|number|const1|DEFAULT_INCLUDE_PATH|ALL|PARSE|STRICT|USER_|CO|MPILE_|RE_".split("|"),0,{}));jQuery.extend(jQuery.easing,{easein:function(e,f,a,h,g){return h*(f/=g)*f+a},easeinout:function(e,f,a,i,h){if(f<h/2){return 2*i*f*f/(h*h)+a}var g=f-h/2;return -2*i*g*g/(h*h)+2*i*g/h+i/2+a},easeout:function(e,f,a,h,g){return -h*f*f/(g*g)+2*h*f/g+a},expoin:function(e,f,a,i,h){var g=1;if(i<0){g*=-1;i*=-1}return g*(Math.exp(Math.log(i)/h*f))+a},expoout:function(e,f,a,i,h){var g=1;if(i<0){g*=-1;i*=-1}return g*(-Math.exp(-Math.log(i)/h*(f-h))+i+1)+a},expoinout:function(e,f,a,i,h){var g=1;if(i<0){g*=-1;i*=-1}if(f<h/2){return g*(Math.exp(Math.log(i/2)/(h/2)*f))+a}return g*(-Math.exp(-2*Math.log(i/2)/h*(f-h))+i+1)+a},bouncein:function(e,f,a,h,g){return h-jQuery.easing.bounceout(e,g-f,0,h,g)+a},bounceout:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},bounceinout:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.bouncein(e,f*2,0,h,g)*0.5+a}return jQuery.easing.bounceout(e,f*2-g,0,h,g)*0.5+h*0.5+a},elasin:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},elasout:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},elasinout:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},backin:function(e,f,a,i,h){var g=1.70158;return i*(f/=h)*f*((g+1)*f-g)+a},backout:function(e,f,a,i,h){var g=1.70158;return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},backinout:function(e,f,a,i,h){var g=1.70158;if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a}});(function(b){b.dimensions={version:"@VERSION"};b.each(["Height","Width"],function(d,c){b.fn["inner"+c]=function(){if(!this[0]){return}var f=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";return a(this,c.toLowerCase())+a(this,"padding"+f)+a(this,"padding"+e)};b.fn["outer"+c]=function(f){if(!this[0]){return}var g=c=="Height"?"Top":"Left",e=c=="Height"?"Bottom":"Right";f=b.extend({margin:false},f||{});return a(this,c.toLowerCase())+a(this,"border"+g+"Width")+a(this,"border"+e+"Width")+a(this,"padding"+g)+a(this,"padding"+e)+(f.margin?(a(this,"margin"+g)+a(this,"margin"+e)):0)}});b.each(["Left","Top"],function(d,c){b.fn["scroll"+c]=function(e){if(!this[0]){return}return e!=undefined?this.each(function(){this==window||this==document?window.scrollTo(c=="Left"?e:b(window)["scrollLeft"](),c=="Top"?e:b(window)["scrollTop"]()):this["scroll"+c]=e}):this[0]==window||this[0]==document?self[(c=="Left"?"pageXOffset":"pageYOffset")]||b.boxModel&&document.documentElement["scroll"+c]||document.body["scroll"+c]:this[0]["scroll"+c]}});b.fn.extend({position:function(){var h=0,g=0,f=this[0],i,c,e,d;if(f){e=this.offsetParent();i=this.offset();c=e.offset();i.top-=a(f,"marginTop");i.left-=a(f,"marginLeft");c.top+=a(e,"borderTopWidth");c.left+=a(e,"borderLeftWidth");d={top:i.top-c.top,left:i.left-c.left}}return d},offsetParent:function(){var c=this[0].offsetParent;while(c&&(!/^body|html$/i.test(c.tagName)&&b.css(c,"position")=="static")){c=c.offsetParent}return b(c)}});function a(c,d){return parseInt(b.css(c.jquery?c[0]:c,d))||0}})(jQuery);(function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(g.state==0){g.start=c(g.elem,e);g.end=b(g.end)}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return a.transparent}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}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]}})(jQuery);(function(e){e.fn.blend=function(p){if(e.browser.mozilla&&parseFloat(e.browser.version)<1.9){return this}var c=e.extend({},e.fn.blend.settings,p);e(this).each(function(){function l(m){j&&f.fadeTo(c.speed,m,function(){l(m===g?h:g)})}var n=e(this),b=e(c.target?c.target:this),f,o=[],a,k,d={},j=false,g=0,h=c.opacity,i=["background-color","background-image","background-repeat","background-attachment","background-position","background-position-x","background-position-y"];k=i.length;b[0].style.position!=="absolute"&&b.css({position:"relative"});b.hasClass("hover")||b.wrapInner('<div style="position:relative" />');for(a=0;a<k;a++){o[a]=b.css(i[a])}b.addClass("hover");d={};d.position="absolute";d.top=0;d.left=0;d.width=b.width();d.height=b.height();for(a=0;a<k;a++){d[i[a]]=b.css(i[a])}if(b.find(".jsblend").length===0){f=e('<div class="jsblend" />').css(d);c.top?f.appendTo(b):f.prependTo(b)}else{f=b.find(".jsblend")}d={};for(a=0;a<k;a++){d[i[a]]=o[a]}b.css(d);if(c.reverse){g=c.opacity;h=0}f.css({opacity:g});if(c.pulse&&c.active){j=true;l(h)}else{c.pulse?n.hover(function(){j=true;l(h)},function(){j=false;f.stop(true).fadeTo(c.speed,g)}):n.hover(function(){f.stop().fadeTo(c.speed,h)},function(){f.stop().fadeTo(c.speed,g)})}});return this};e.fn.blend.settings={speed:500,opacity:1,target:false,reverse:false,pulse:false,active:false,top:false}})(jQuery);(function($){var ie6=$.browser.msie&&parseInt($.browser.version)==6&&typeof window.XMLHttpRequest!="object",ieQuirks=null,w=[];$.modal=function(data,options){return $.modal.impl.init(data,options)};$.modal.close=function(){$.modal.impl.close()};$.fn.modal=function(options){return $.modal.impl.init(this,options)};$.modal.defaults={appendTo:"body",focus:true,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:false,autoPosition:true,zIndex:1000,close:true,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",escClose:true,overlayClose:false,position:null,persist:false,modal:true,onOpen:null,onShow:null,onClose:null};$.modal.impl={o:null,d:{},init:function(data,options){var s=this;if(s.d.data){return false}ieQuirks=$.browser.msie&&!$.boxModel;s.o=$.extend({},$.modal.defaults,options);s.zIndex=s.o.zIndex;s.occb=false;if(typeof data=="object"){data=data instanceof jQuery?data:$(data);s.d.placeholder=false;if(data.parent().parent().size()>0){data.before($("<span></span>").attr("id","simplemodal-placeholder").css({display:"none"}));s.d.placeholder=true;s.display=data.css("display");if(!s.o.persist){s.d.orig=data.clone(true)}}}else{if(typeof data=="string"||typeof data=="number"){data=$("<div></div>").html(data)}else{alert("SimpleModal Error: Unsupported data type: "+typeof data);return s}}s.create(data);data=null;s.open();if($.isFunction(s.o.onShow)){s.o.onShow.apply(s,[s.d])}return s},create:function(data){var s=this;w=s.getDimensions();if(s.o.modal&&ie6){s.d.iframe=$('<iframe src="javascript:false;"></iframe>').css($.extend(s.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:w[0],width:w[1],zIndex:s.o.zIndex,top:0,left:0})).appendTo(s.o.appendTo)}s.d.overlay=$("<div></div>").attr("id",s.o.overlayId).addClass("simplemodal-overlay").css($.extend(s.o.overlayCss,{display:"none",opacity:s.o.opacity/100,height:s.o.modal?w[0]:0,width:s.o.modal?w[1]:0,position:"fixed",left:0,top:0,zIndex:s.o.zIndex+1})).appendTo(s.o.appendTo);s.d.container=$("<div></div>").attr("id",s.o.containerId).addClass("simplemodal-container").css($.extend(s.o.containerCss,{display:"none",position:"fixed",zIndex:s.o.zIndex+2})).append(s.o.close&&s.o.closeHTML?$(s.o.closeHTML).addClass(s.o.closeClass):"").appendTo(s.o.appendTo);s.d.wrap=$("<div></div>").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(s.d.container);s.d.data=data.attr("id",data.attr("id")||s.o.dataId).addClass("simplemodal-data").css($.extend(s.o.dataCss,{display:"none"})).appendTo("body");data=null;s.setContainerDimensions();s.d.data.appendTo(s.d.wrap);if(ie6||ieQuirks){s.fixIE()}},bindEvents:function(){var s=this;$("."+s.o.closeClass).bind("click.simplemodal",function(e){e.preventDefault();s.close()});if(s.o.modal&&s.o.close&&s.o.overlayClose){s.d.overlay.bind("click.simplemodal",function(e){e.preventDefault();s.close()})}$(document).bind("keydown.simplemodal",function(e){if(s.o.modal&&s.o.focus&&e.keyCode==9){s.watchTab(e)}else{if((s.o.close&&s.o.escClose)&&e.keyCode==27){e.preventDefault();s.close()}}});$(window).bind("resize.simplemodal",function(){w=s.getDimensions();s.setContainerDimensions(true);if(ie6||ieQuirks){s.fixIE()}else{if(s.o.modal){s.d.iframe&&s.d.iframe.css({height:w[0],width:w[1]});s.d.overlay.css({height:w[0],width:w[1]})}}})},unbindEvents:function(){$("."+this.o.closeClass).unbind("click.simplemodal");$(document).unbind("keydown.simplemodal");$(window).unbind("resize.simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var s=this,p=s.o.position;$.each([s.d.iframe||null,!s.o.modal?null:s.d.overlay,s.d.container],function(i,el){if(el){var bch="document.body.clientHeight",bcw="document.body.clientWidth",bsh="document.body.scrollHeight",bsl="document.body.scrollLeft",bst="document.body.scrollTop",bsw="document.body.scrollWidth",ch="document.documentElement.clientHeight",cw="document.documentElement.clientWidth",sl="document.documentElement.scrollLeft",st="document.documentElement.scrollTop",s=el[0].style;s.position="absolute";if(i<2){s.removeExpression("height");s.removeExpression("width");s.setExpression("height",""+bsh+" > "+bch+" ? "+bsh+" : "+bch+' + "px"');s.setExpression("width",""+bsw+" > "+bcw+" ? "+bsw+" : "+bcw+' + "px"')}else{var te,le;if(p&&p.constructor==Array){var top=p[0]?typeof p[0]=="number"?p[0].toString():p[0].replace(/px/,""):el.css("top").replace(/px/,"");te=top.indexOf("%")==-1?top+" + (t = "+st+" ? "+st+" : "+bst+') + "px"':parseInt(top.replace(/%/,""))+" * (("+ch+" || "+bch+") / 100) + (t = "+st+" ? "+st+" : "+bst+') + "px"';if(p[1]){var left=typeof p[1]=="number"?p[1].toString():p[1].replace(/px/,"");le=left.indexOf("%")==-1?left+" + (t = "+sl+" ? "+sl+" : "+bsl+') + "px"':parseInt(left.replace(/%/,""))+" * (("+cw+" || "+bcw+") / 100) + (t = "+sl+" ? "+sl+" : "+bsl+') + "px"'}}else{te="("+ch+" || "+bch+") / 2 - (this.offsetHeight / 2) + (t = "+st+" ? "+st+" : "+bst+') + "px"';le="("+cw+" || "+bcw+") / 2 - (this.offsetWidth / 2) + (t = "+sl+" ? "+sl+" : "+bsl+') + "px"'}s.removeExpression("top");s.removeExpression("left");s.setExpression("top",te);s.setExpression("left",le)}}})},focus:function(pos){var s=this,p=pos||"first";var input=$(":input:enabled:visible:"+p,s.d.wrap);input.length>0?input.focus():s.d.wrap.focus()},getDimensions:function(){var el=$(window);var h=$.browser.opera&&$.browser.version>"9.5"&&$.fn.jquery<="1.2.6"?document.documentElement.clientHeight:$.browser.opera&&$.browser.version<"9.5"&&$.fn.jquery>"1.2.6"?window.innerHeight:el.height();return[h,el.width()]},getVal:function(v){return v=="auto"?0:v.indexOf("%")>0?v:parseInt(v.replace(/px/,""))},setContainerDimensions:function(resize){var s=this;if(!resize||(resize&&s.o.autoResize)){var ch=$.browser.opera?s.d.container.height():s.getVal(s.d.container.css("height")),cw=$.browser.opera?s.d.container.width():s.getVal(s.d.container.css("width")),dh=s.d.data.outerHeight(true),dw=s.d.data.outerWidth(true);var mh=s.o.maxHeight&&s.o.maxHeight<w[0]?s.o.maxHeight:w[0],mw=s.o.maxWidth&&s.o.maxWidth<w[1]?s.o.maxWidth:w[1];if(!ch){if(!dh){ch=s.o.minHeight}else{if(dh>mh){ch=mh}else{if(dh<s.o.minHeight){ch=s.o.minHeight}else{ch=dh}}}}else{ch=ch>mh?mh:ch}if(!cw){if(!dw){cw=s.o.minWidth}else{if(dw>mw){cw=mw}else{if(dw<s.o.minWidth){cw=s.o.minWidth}else{cw=dw}}}}else{cw=cw>mw?mw:cw}s.d.container.css({height:ch,width:cw});if(dh>ch||dw>cw){s.d.wrap.css({overflow:"auto"})}}if(s.o.autoPosition){s.setPosition()}},setPosition:function(){var s=this,top,left,hc=(w[0]/2)-(s.d.container.outerHeight(true)/2),vc=(w[1]/2)-(s.d.container.outerWidth(true)/2);if(s.o.position&&Object.prototype.toString.call(s.o.position)==="[object Array]"){top=s.o.position[0]||hc;left=s.o.position[1]||vc}else{top=hc;left=vc}s.d.container.css({left:left,top:top})},watchTab:function(e){var s=this;if($(e.target).parents(".simplemodal-container").length>0){s.inputs=$(":input:enabled:visible:first, :input:enabled:visible:last",s.d.data[0]);if((!e.shiftKey&&e.target==s.inputs[s.inputs.length-1])||(e.shiftKey&&e.target==s.inputs[0])||s.inputs.length==0){e.preventDefault();var pos=e.shiftKey?"last":"first";setTimeout(function(){s.focus(pos)},10)}}else{e.preventDefault();setTimeout(function(){s.focus()},10)}},open:function(){var s=this;s.d.iframe&&s.d.iframe.show();if($.isFunction(s.o.onOpen)){s.o.onOpen.apply(s,[s.d])}else{s.d.overlay.show();s.d.container.show();s.d.data.show()}s.focus();s.bindEvents()},close:function(){var s=this;if(!s.d.data){return false}s.unbindEvents();if($.isFunction(s.o.onClose)&&!s.occb){s.occb=true;s.o.onClose.apply(s,[s.d])}else{if(s.d.placeholder){var ph=$("#simplemodal-placeholder");if(s.o.persist){ph.replaceWith(s.d.data.removeClass("simplemodal-data").css("display",s.display))}else{s.d.data.hide().remove();ph.replaceWith(s.d.orig)}}else{s.d.data.hide().remove()}s.d.container.hide().remove();s.d.overlay.hide().remove();s.d.iframe&&s.d.iframe.hide().remove();s.d={}}}}})(jQuery);jQuery(function($){var contact={message:null,init:function(){$("#contact-form input.contact, #contact-form a.contact").click(function(e){e.preventDefault();$.get("/js/contact/data/contact.php",function(data){$(data).modal({closeHTML:"<a href='#' title='Close' class='modal-close'>x</a>",position:["15%",],overlayId:"contact-overlay",containerId:"contact-container",onOpen:contact.open,onShow:contact.show,onClose:contact.close})})})},open:function(dialog){if($.browser.mozilla){$("#contact-container .contact-button").css({"padding-bottom":"2px"})}if($.browser.safari){$("#contact-container .contact-input").css({"font-size":".9em"})}var h=280;if($("#contact-subject").length){h+=26}if($("#contact-cc").length){h+=22}var title=$("#contact-container .contact-title").html();$("#contact-container .contact-title").html("Loading...");dialog.overlay.fadeIn(200,function(){dialog.container.fadeIn(200,function(){dialog.data.fadeIn(200,function(){$("#contact-container .contact-content").animate({height:h},function(){$("#contact-container .contact-title").html(title);$("#contact-container form").fadeIn(200,function(){$("#contact-container #contact-name").focus();$("#contact-container .contact-cc").click(function(){var cc=$("#contact-container #contact-cc");cc.is(":checked")?cc.attr("checked",""):cc.attr("checked","checked")});if($.browser.msie&&$.browser.version<7){$("#contact-container .contact-button").each(function(){if($(this).css("backgroundImage").match(/^url[("']+(.*\.png)[)"']+$/i)){var src=RegExp.$1;$(this).css({backgroundImage:"none",filter:'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+src+'", sizingMethod="crop")'})}})}})})})})})},show:function(dialog){$("#contact-container .contact-send").click(function(e){e.preventDefault();if(contact.validate()){var msg=$("#contact-container .contact-message");msg.fadeOut(function(){msg.removeClass("contact-error").empty()});$("#contact-container .contact-title").html("Trimitere...");$("#contact-container form").fadeOut(200);$("#contact-container .contact-content").animate({height:"80px"},function(){$("#contact-container .contact-loading").fadeIn(200,function(){$.ajax({url:"/js/contact/data/contact.php",data:$("#contact-container form").serialize()+"&action=send",type:"post",cache:false,dataType:"html",success:function(data){$("#contact-container .contact-loading").fadeOut(200,function(){$("#contact-container .contact-title").html("Multumim!");msg.html(data).fadeIn(200)})},error:contact.error})})})}else{if($("#contact-container .contact-message:visible").length>0){var msg=$("#contact-container .contact-message div");msg.fadeOut(200,function(){msg.empty();contact.showError();msg.fadeIn(200)})}else{$("#contact-container .contact-message").animate({height:"30px"},contact.showError)}}})},close:function(dialog){$("#contact-container .contact-message").fadeOut();$("#contact-container .contact-title").html("La revedere...");$("#contact-container form").fadeOut(200);$("#contact-container .contact-content").animate({height:40},function(){dialog.data.fadeOut(200,function(){dialog.container.fadeOut(200,function(){dialog.overlay.fadeOut(200,function(){$.modal.close()})})})})},error:function(xhr){alert(xhr.statusText)},validate:function(){contact.message="";if(!$("#contact-container #contact-name").val()){contact.message+="Numele necesar. "}var email=$("#contact-container #contact-email").val();if(!email){contact.message+="Email-ul necesar. "}else{if(!contact.validateEmail(email)){contact.message+="Email-ul nu este valid. "}}if(!$("#contact-container #contact-message").val()){contact.message+="Mesajul necesar."}if(contact.message.length>0){return false}else{return true}},validateEmail:function(email){var at=email.lastIndexOf("@");if(at<1||(at+1)===email.length){return false}if(/(\.{2,})/.test(email)){return false}var local=email.substring(0,at);var domain=email.substring(at+1);if(local.length<1||local.length>64||domain.length<4||domain.length>255){return false}if(/(^\.|\.$)/.test(local)||/(^\.|\.$)/.test(domain)){return false}if(!/^"(.+)"$/.test(local)){if(!/^[-a-zA-Z0-9!#$%*\/?|^{}`~&'+=_\.]*$/.test(local)){return false}}if(!/^[-a-zA-Z0-9\.]*$/.test(domain)||domain.indexOf(".")===-1){return false}return true},showError:function(){$("#contact-container .contact-message").html($('<div class="contact-error"></div>').append(contact.message)).fadeIn(200)}};contact.init()});jQuery(function($){var contact={message:null,init:function(){$("#contact-form2 input.contact, #contact-form2 a.contact").click(function(e){e.preventDefault();$.get("/js/contact/data/contact.php",function(data){$(data).modal({closeHTML:"<a href='#' title='Close' class='modal-close'>x</a>",position:["15%",],overlayId:"contact-overlay",containerId:"contact-container",onOpen:contact.open,onShow:contact.show,onClose:contact.close})})})},open:function(dialog){if($.browser.mozilla){$("#contact-container .contact-button").css({"padding-bottom":"2px"})}if($.browser.safari){$("#contact-container .contact-input").css({"font-size":".9em"})}var h=280;if($("#contact-subject").length){h+=26}if($("#contact-cc").length){h+=22}var title=$("#contact-container .contact-title").html();$("#contact-container .contact-title").html("Loading...");dialog.overlay.fadeIn(200,function(){dialog.container.fadeIn(200,function(){dialog.data.fadeIn(200,function(){$("#contact-container .contact-content").animate({height:h},function(){$("#contact-container .contact-title").html(title);$("#contact-container form").fadeIn(200,function(){$("#contact-container #contact-name").focus();$("#contact-container .contact-cc").click(function(){var cc=$("#contact-container #contact-cc");cc.is(":checked")?cc.attr("checked",""):cc.attr("checked","checked")});if($.browser.msie&&$.browser.version<7){$("#contact-container .contact-button").each(function(){if($(this).css("backgroundImage").match(/^url[("']+(.*\.png)[)"']+$/i)){var src=RegExp.$1;$(this).css({backgroundImage:"none",filter:'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+src+'", sizingMethod="crop")'})}})}})})})})})},show:function(dialog){$("#contact-container .contact-send").click(function(e){e.preventDefault();if(contact.validate()){var msg=$("#contact-container .contact-message");msg.fadeOut(function(){msg.removeClass("contact-error").empty()});$("#contact-container .contact-title").html("Trimitere...");$("#contact-container form").fadeOut(200);$("#contact-container .contact-content").animate({height:"80px"},function(){$("#contact-container .contact-loading").fadeIn(200,function(){$.ajax({url:"/js/contact/data/contact.php",data:$("#contact-container form").serialize()+"&action=send",type:"post",cache:false,dataType:"html",success:function(data){$("#contact-container .contact-loading").fadeOut(200,function(){$("#contact-container .contact-title").html("Multumim!");msg.html(data).fadeIn(200)})},error:contact.error})})})}else{if($("#contact-container .contact-message:visible").length>0){var msg=$("#contact-container .contact-message div");msg.fadeOut(200,function(){msg.empty();contact.showError();msg.fadeIn(200)})}else{$("#contact-container .contact-message").animate({height:"30px"},contact.showError)}}})},close:function(dialog){$("#contact-container .contact-message").fadeOut();$("#contact-container .contact-title").html("La revedere...");$("#contact-container form").fadeOut(200);$("#contact-container .contact-content").animate({height:40},function(){dialog.data.fadeOut(200,function(){dialog.container.fadeOut(200,function(){dialog.overlay.fadeOut(200,function(){$.modal.close()})})})})},error:function(xhr){alert(xhr.statusText)},validate:function(){contact.message="";if(!$("#contact-container #contact-name").val()){contact.message+="Numele necesar. "}var email=$("#contact-container #contact-email").val();if(!email){contact.message+="Email-ul necesar. "}else{if(!contact.validateEmail(email)){contact.message+="Email-ul nu este valid. "}}if(!$("#contact-container #contact-message").val()){contact.message+="Mesajul necesar."}if(contact.message.length>0){return false}else{return true}},validateEmail:function(email){var at=email.lastIndexOf("@");if(at<1||(at+1)===email.length){return false}if(/(\.{2,})/.test(email)){return false}var local=email.substring(0,at);var domain=email.substring(at+1);if(local.length<1||local.length>64||domain.length<4||domain.length>255){return false}if(/(^\.|\.$)/.test(local)||/(^\.|\.$)/.test(domain)){return false}if(!/^"(.+)"$/.test(local)){if(!/^[-a-zA-Z0-9!#$%*\/?|^{}`~&'+=_\.]*$/.test(local)){return false}}if(!/^[-a-zA-Z0-9\.]*$/.test(domain)||domain.indexOf(".")===-1){return false}return true},showError:function(){$("#contact-container .contact-message").html($('<div class="contact-error"></div>').append(contact.message)).fadeIn(200)}};contact.init()});
