// \n")}}if(Browser==undefined){var Browser={isIE:function(){return(window.ActiveXObject&&document.all&&navigator.userAgent.toLowerCase().indexOf("msie")>-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1)?true:false}}}var Flash=function(b,g,d,a,f){this.html="";this.attributes=this.params=this.variables=null;this.variables=new Array();var e=(("https:"==document.location.protocol)?"https://":"http://");this.attributes={classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",codebase:e+"fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0",type:"application/x-shockwave-flash"};this.params={pluginurl:e+"www.macromedia.com/go/getflashplayer_br"};if(b){this.addAttribute("data",b);this.addParameter("movie",b)}if(g&&g!=null){this.addAttribute("id",g)}if(d){this.addAttribute("width",d)}if(a){this.addAttribute("height",a)}if(f!=undefined){for(var c in f){this.addParameter(c.toString(),f[c])}}};Flash.version="1.2b";Flash.getObjectByExceptions=function(f,e){var b={};for(var d in f){var a=true;for(var c=0;c< e.length;c++){if(e[c]==d.toString()){a=false;break}}if(a){b[d]=f[d]}}return b};Flash.prototype.addAttribute=function(b,a){this.attributes[b]=a};Flash.prototype.addParameter=function(b,a){this.params[b]=a};Flash.prototype.addVariable=function(b,a){this.variables.push([b,a])};Flash.prototype.getFlashVars=function(){var b=new Array();for(var a=0;a ";var c=Flash.getObjectByExceptions(this.params,["pluginurl","extend"]);for(var b in c){if(b.toString()!="extend"){this.html+=' '}}this.html+=" "}else{this.html=" ";var c=Flash.getObjectByExceptions(this.params,["extend"]);for(var b in c){if(b.toString()!="extend"){this.html+=' '}}this.html+=" "}return this.html};Flash.prototype.write=Flash.prototype.outIn=Flash.prototype.writeIn=function(a){if(typeof a=="string"&&document.getElementById){var a=document.getElementById(a)}if(a!=undefined&&a){a.innerHTML=this.toString()}else{document.write(this.toString())}};
/* fim flash.js */
/* jquery.blockUI.js */
(function(g){if(/1\.(0|1|2)\.(0|1|2)/.test(g.fn.jquery)||/^1.1/.test(g.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later! You are using v"+g.fn.jquery);return}g.fn._fadeIn=g.fn.fadeIn;var i=document.documentMode||0;var d=g.browser.msie&&((g.browser.version<8&&!i)||i<8);var e=g.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!i;g.blockUI=function(o){c(window,o)};g.unblockUI=function(o){h(window,o)};g.growlUI=function(s,q,r,o){var p=g('
');if(s){p.append(""+s+" ")}if(q){p.append(""+q+" ")}if(r==undefined){r=3000}g.blockUI({message:p,fadeIn:700,fadeOut:1000,centerY:false,timeout:r,showOverlay:false,onUnblock:o,css:g.blockUI.defaults.growlCSS})};g.fn.block=function(o){return this.unblock({fadeOut:0}).each(function(){if(g.css(this,"position")=="static"){this.style.position="relative"}if(g.browser.msie){this.style.zoom=1}c(this,o)})};g.fn.unblock=function(o){return this.each(function(){h(this,o)})};g.blockUI.version=2.26;g.blockUI.defaults={message:"Please wait... ",title:null,draggable:true,theme:false,css:{padding:"10px",margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#fff",border:"none",backgroundColor:"#000",cursor:"default","-webkit-border-radius":"10px","-moz-border-radius":"10px",opacity:0.6},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:0.6,cursor:"default"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:9999999,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onUnblock:null,quirksmodeOffsetHack:4};var b=null;var f=[];function c(o,B){var v=(o==window);var r=B&&B.message!==undefined?B.message:undefined;B=g.extend({},g.blockUI.defaults,B||{});B.overlayCSS=g.extend({},g.blockUI.defaults.overlayCSS,B.overlayCSS||{});var x=g.extend({},g.blockUI.defaults.css,B.css||{});var I=g.extend({},g.blockUI.defaults.themedCSS,B.themedCSS||{});r=r===undefined?B.message:r;if(v&&b){h(window,{fadeOut:0})}if(r&&typeof r!="string"&&(r.parentNode||r.jquery)){var D=r.jquery?r[0]:r;var J={};g(o).data("blockUI.history",J);J.el=D;J.parent=D.parentNode;J.display=D.style.display;J.position=D.style.position;if(J.parent){J.parent.removeChild(D)}}var w=B.baseZ;var H=(g.browser.msie||B.forceIframe)?g(''):g('
');var G=g('
');var F;if(B.theme&&v){var C='';F=g(C)}else{F=v?g('
'):g('
')}if(r){if(B.theme){F.css(I);F.addClass("ui-widget-content")}else{F.css(x)}}if(!B.applyPlatformOpacityRules||!(g.browser.mozilla&&/Linux/.test(navigator.platform))){G.css(B.overlayCSS)}G.css("position",v?"fixed":"absolute");if(g.browser.msie||B.forceIframe){H.css("opacity",0)}g([H[0],G[0],F[0]]).appendTo(v?"body":o);if(B.theme&&B.draggable&&g.fn.draggable){F.draggable({handle:".ui-dialog-titlebar",cancel:"li"})}var q=d&&(!g.boxModel||g("object,embed",v?null:o).length>0);if(e||q){if(v&&B.allowBodyStretch&&g.boxModel){g("html,body").css("height","100%")}if((e||!g.boxModel)&&!v){var A=l(o,"borderTopWidth"),E=l(o,"borderLeftWidth");var u=A?"(0 - "+A+")":0;var y=E?"(0 - "+E+")":0}g.each([H,G,F],function(t,M){var z=M[0].style;z.position="absolute";if(t<2){v?z.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+B.quirksmodeOffsetHack+') + "px"'):z.setExpression("height",'this.parentNode.offsetHeight + "px"');v?z.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):z.setExpression("width",'this.parentNode.offsetWidth + "px"');if(y){z.setExpression("left",y)}if(u){z.setExpression("top",u)}}else{if(B.centerY){if(v){z.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}z.marginTop=0}else{if(!B.centerY&&v){var K=(B.css&&B.css.top)?parseInt(B.css.top):0;var L="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+K+') + "px"';z.setExpression("top",L)}}}})}if(r){if(B.theme){F.find(".ui-widget-content").append(r)}else{F.append(r)}if(r.jquery||r.nodeType){g(r).show()}}if((g.browser.msie||B.forceIframe)&&B.showOverlay){H.show()}if(B.fadeIn){if(B.showOverlay){G._fadeIn(B.fadeIn)}if(r){F.fadeIn(B.fadeIn)}}else{if(B.showOverlay){G.show()}if(r){F.show()}}k(1,o,B);if(v){b=F[0];f=g(":input:enabled:visible",b);if(B.focusInput){setTimeout(n,20)}}else{a(F[0],B.centerX,B.centerY)}if(B.timeout){var p=setTimeout(function(){v?g.unblockUI(B):g(o).unblock(B)},B.timeout);g(o).data("blockUI.timeout",p)}}function h(r,s){var q=(r==window);var p=g(r);var t=p.data("blockUI.history");var u=p.data("blockUI.timeout");if(u){clearTimeout(u);p.removeData("blockUI.timeout")}s=g.extend({},g.blockUI.defaults,s||{});k(0,r,s);var o;if(q){o=g("body").children().filter(".blockUI").add("body > .blockUI")}else{o=g(".blockUI",r)}if(q){b=f=null}if(s.fadeOut){o.fadeOut(s.fadeOut);setTimeout(function(){j(o,t,s,r)},s.fadeOut)}else{j(o,t,s,r)}}function j(o,r,q,p){o.each(function(s,t){if(this.parentNode){this.parentNode.removeChild(this)}});if(r&&r.el){r.el.style.display=r.display;r.el.style.position=r.position;if(r.parent){r.parent.appendChild(r.el)}g(r.el).removeData("blockUI.history")}if(typeof q.onUnblock=="function"){q.onUnblock(p,q)}}function k(o,s,t){var r=s==window,q=g(s);if(!o&&(r&&!b||!r&&!q.data("blockUI.isBlocked"))){return}if(!r){q.data("blockUI.isBlocked",o)}if(!t.bindEvents||(o&&!t.showOverlay)){return}var p="mousedown mouseup keydown keypress";o?g(document).bind(p,t,m):g(document).unbind(p,m)}function m(r){if(r.keyCode&&r.keyCode==9){if(b&&r.data.constrainTabKey){var q=f;var p=!r.shiftKey&&r.target==q[q.length-1];var o=r.shiftKey&&r.target==q[0];if(p||o){setTimeout(function(){n(o)},10);return false}}}if(g(r.target).parents("div.blockMsg").length>0){return true}return g(r.target).parents().children().filter("div.blockUI").length==0}function n(o){if(!f){return}var p=f[o===true?f.length-1:0];if(p){p.focus()}}function a(v,o,z){var w=v.parentNode,u=v.style;var q=((w.offsetWidth-v.offsetWidth)/2)-l(w,"borderLeftWidth");var r=((w.offsetHeight-v.offsetHeight)/2)-l(w,"borderTopWidth");if(o){u.left=q>0?(q+"px"):"0"}if(z){u.top=r>0?(r+"px"):"0"}}function l(o,q){return parseInt(g.css(o,q))||0}})(jQuery);
/* jquery.blockUI.js */
/* jquery.easing.1.3.js */
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic: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},easeOutElastic: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},easeInOutElastic: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},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){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},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce: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}}}},easeInOutBounce:function(e,f,a,h,g){if(f< g/2){ return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
/* fim jquery.easing.1.3.js */
/* jquery.fancybox-1.2.1.js */
(function(f){f.fn.fixPNG=function(){return this.each(function(){var j=f(this).css("backgroundImage");if(j.match(/^url\(["']?(.*\.png)["']?\)$/i)){j=RegExp.$1;f(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod="+(f(this).css("backgroundRepeat")=="no-repeat"?"crop":"scale")+", src='"+j+"')"}).each(function(){var k=f(this).css("position");if(k!="absolute"&&k!="relative"){f(this).css("position","relative")}})}})};var d,a,g=false,c=new Image,h,i=1,e=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i;var b=(f.browser.msie&&parseInt(f.browser.version.substr(0,1))<8);f.fn.fancybox=function(k){k=f.extend({},f.fn.fancybox.defaults,k);var s=this;function n(){d=this;a=k;l();return false}function l(){if(g){return}if(f.isFunction(a.callbackOnStart)){a.callbackOnStart()}a.itemArray=[];a.itemCurrent=0;if(k.itemArray.length>0){a.itemArray=k.itemArray}else{var u={};if(!d.rel||d.rel==""){var u={href:d.href,title:d.title};if(f(d).children("img:first").length){u.orig=f(d).children("img:first")}a.itemArray.push(u)}else{var v=f(s).filter("a[rel="+d.rel+"]");var u={};for(var t=0;t< v.length;t++){u={href:v[t].href,title:v[t].title};if(f(v[t]).children("img:first").length){u.orig=f(v[t]).children("img:first")}a.itemArray.push(u)}while(a.itemArray[a.itemCurrent].href!=d.href){a.itemCurrent++}}}if(a.overlayShow){if(b){f("embed, object, select").css("visibility","hidden")}f("#fancy_overlay").css("opacity",a.overlayOpacity).show()}o()}function o(){f("#fancy_right, #fancy_left, #fancy_close, #fancy_title").hide();var t=a.itemArray[a.itemCurrent].href;f.fn.fancybox.showLoading();if(t.match(/#/)){var u=window.location.href.split("#")[0];u=t.replace(u,"");u=u.substr(u.indexOf("#"));m(''+f(u).html()+"
",a.frameWidth,a.frameHeight)}else{if(t.match(e)){c=new Image;c.src=t;if(c.complete){r()}else{f(c).unbind().bind("load",function(){f(".fancy_loading").hide();r()})}}else{if(t.match("iframe")||d.className.indexOf("iframe")>=0){m('',a.frameWidth,a.frameHeight)}else{f.get(t,function(v){m(''+v+"
",a.frameWidth,a.frameHeight);f(".fancy_loading").hide()})}}}}function r(){if(a.imageScale){var u=f.fn.fancybox.getViewport();var x=Math.min(Math.min(u[0]-36,c.width)/c.width,Math.min(u[1]-60,c.height)/c.height);var v=Math.round(x*c.width);var t=Math.round(x*c.height)}else{var v=c.width;var t=c.height}m(' ',v,t)}function p(){if((a.itemArray.length-1)>a.itemCurrent){var t=a.itemArray[a.itemCurrent+1].href;if(t.match(e)){objNext=new Image();objNext.src=t}}if(a.itemCurrent>0){var t=a.itemArray[a.itemCurrent-1].href;if(t.match(e)){objNext=new Image();objNext.src=t}}}function m(z,u,B){g=true;var x=a.padding;if(b){f("#fancy_content")[0].style.removeExpression("height");f("#fancy_content")[0].style.removeExpression("width")}if(x>0){x=0;u+=x*2;B+=x*2;f("#fancy_content").css({top:x+"px",right:x+"px",bottom:x+"px",left:x+"px",width:"auto",height:"auto"});if(b){f("#fancy_content")[0].style.setExpression("height","(this.parentNode.clientHeight - 20)");f("#fancy_content")[0].style.setExpression("width","(this.parentNode.clientWidth - 20)")}}else{f("#fancy_content").css({top:0,right:0,bottom:0,left:0,width:"100%",height:"100%"})}if(f("#fancy_outer").is(":visible")&&u==f("#fancy_outer").width()&&B==f("#fancy_outer").height()){f("#fancy_content").fadeOut("fast",function(){f("#fancy_content").empty().append(f(z)).fadeIn("normal",function(){j()})});return}var A=f.fn.fancybox.getViewport();var v=(u+36)>A[0]?A[2]:(A[2]+Math.round((A[0]-u-36)/2));var D=(B+50)>A[1]?A[3]:(A[3]+Math.round((A[1]-B-50)/2));var C={left:v,top:D,width:u+"px",height:B+"px"};if(f("#fancy_outer").is(":visible")){f("#fancy_content").fadeOut("normal",function(){f("#fancy_content").empty();f("#fancy_outer").animate(C,a.zoomSpeedChange,a.easingChange,function(){f("#fancy_content").append(f(z)).fadeIn("normal",function(){j()})})})}else{if(a.zoomSpeedIn>0&&a.itemArray[a.itemCurrent].orig!==undefined){f("#fancy_content").empty().append(f(z));var y=a.itemArray[a.itemCurrent].orig;var t=f.fn.fancybox.getPosition(y);f("#fancy_outer").css({left:(t.left-18)+"px",top:(t.top-18)+"px",width:f(y).width(),height:f(y).height()});if(a.zoomOpacity){C.opacity="show"}f("#fancy_outer").animate(C,a.zoomSpeedIn,a.easingIn,function(){j()})}else{f("#fancy_content").hide().empty().append(f(z)).show();f("#fancy_outer").css(C).fadeIn("normal",function(){j()})}}}function q(){if(a.itemCurrent!=0){f("#fancy_left, #fancy_left_ico").unbind().bind("click",function(t){t.stopPropagation();a.itemCurrent--;o();return false});f("#fancy_left").show()}if(a.itemCurrent!=(a.itemArray.length-1)){f("#fancy_right, #fancy_right_ico").unbind().bind("click",function(t){t.stopPropagation();a.itemCurrent++;o();return false});f("#fancy_right").show()}}function j(){q();p();f(document).keydown(function(t){if(t.keyCode==27){f.fn.fancybox.close();f(document).unbind("keydown")}else{if(t.keyCode==37&&a.itemCurrent!=0){a.itemCurrent--;o();f(document).unbind("keydown")}else{if(t.keyCode==39&&a.itemCurrent!=(a.itemArray.length-1)){a.itemCurrent++;o();f(document).unbind("keydown")}}}});if(a.centerOnScroll){f(window).bind("resize scroll",f.fn.fancybox.scrollBox)}else{f("div#fancy_outer").css("position","absolute")}if(a.hideOnContentClick){f("#fancy_wrap").click(f.fn.fancybox.close)}f("#fancy_overlay, #fancy_close").bind("click",f.fn.fancybox.close);f("#fancy_close").show();if(a.itemArray[a.itemCurrent].title!==undefined&&a.itemArray[a.itemCurrent].title.length>0){f("#fancy_title div:first").html(a.itemArray[a.itemCurrent].title);f("#fancy_title").show()}if(a.overlayShow&&b){f("embed, object, select",f("#fancy_content")).css("visibility","visible")}if(f.isFunction(a.callbackOnShow)){a.callbackOnShow()}g=false}return this.unbind("click").click(n)};f.fn.fancybox.scrollBox=function(){var j=f.fn.fancybox.getViewport();f("#fancy_outer").css("left",((f("#fancy_outer").width()+36)>j[0]?j[2]:j[2]+Math.round((j[0]-f("#fancy_outer").width()-36)/2)));f("#fancy_outer").css("top",((f("#fancy_outer").height()+50)>j[1]?j[3]:j[3]+Math.round((j[1]-f("#fancy_outer").height()-50)/2)))};f.fn.fancybox.getNumeric=function(j,k){return parseInt(f.curCSS(j.jquery?j[0]:j,k,true))||0};f.fn.fancybox.getPosition=function(j){var k=j.offset();k.top+=f.fn.fancybox.getNumeric(j,"paddingTop");k.top+=f.fn.fancybox.getNumeric(j,"borderTopWidth");k.left+=f.fn.fancybox.getNumeric(j,"paddingLeft");k.left+=f.fn.fancybox.getNumeric(j,"borderLeftWidth");return k};f.fn.fancybox.showIframe=function(){f(".fancy_loading").hide();f("#fancy_frame").show()};f.fn.fancybox.getViewport=function(){return[f(window).width(),f(window).height(),f(document).scrollLeft(),f(document).scrollTop()]};f.fn.fancybox.animateLoading=function(){if(!f("#fancy_loading").is(":visible")){clearInterval(h);return}f("#fancy_loading > div").css("top",(i*-40)+"px");i=(i+1)%12};f.fn.fancybox.showLoading=function(){clearInterval(h);var j=f.fn.fancybox.getViewport();f("#fancy_loading").css({left:((j[0]-40)/2+j[2]),top:((j[1]-40)/2+j[3])}).show();f("#fancy_loading").bind("click",f.fn.fancybox.close);h=setInterval(f.fn.fancybox.animateLoading,66)};f.fn.fancybox.close=function(){g=true;f(c).unbind();f("#fancy_overlay, #fancy_close").unbind();if(a.hideOnContentClick){f("#fancy_wrap").unbind()}f("#fancy_close, .fancy_loading, #fancy_left, #fancy_right, #fancy_title").hide();if(a.centerOnScroll){f(window).unbind("resize scroll")}__cleanup=function(){f("#fancy_overlay, #fancy_outer").hide();if(a.centerOnScroll){f(window).unbind("resize scroll")}if(b){f("embed, object, select").css("visibility","visible")}if(f.isFunction(a.callbackOnClose)){a.callbackOnClose()}g=false};if(f("#fancy_outer").is(":visible")!==false){if(a.zoomSpeedOut>0&&a.itemArray[a.itemCurrent].orig!==undefined){var k=a.itemArray[a.itemCurrent].orig;var j=f.fn.fancybox.getPosition(k);var l={left:(j.left-18)+"px",top:(j.top-18)+"px",width:f(k).width(),height:f(k).height()};if(a.zoomOpacity){l.opacity="hide"}f("#fancy_outer").stop(false,true).animate(l,a.zoomSpeedOut,a.easingOut,__cleanup)}else{f("#fancy_outer").stop(false,true).fadeOut("fast",__cleanup)}}else{__cleanup()}return false};f.fn.fancybox.build=function(){var j="";j+='
';j+='';j+='
';j+='
';j+='
';j+='
';j+='
';j+='
';j+='
';j+='
';j+="
";j+="
";j+="
";f(j).appendTo("body");f('').appendTo("#fancy_title");if(b){f("#fancy_close, .fancy_bg, .fancy_title, .fancy_ico").fixPNG()}};f.fn.fancybox.defaults={padding:10,imageScale:true,zoomOpacity:true,zoomSpeedIn:600,zoomSpeedOut:500,zoomSpeedChange:300,easingIn:"easeOutBack",easingOut:"easeInBack",easingChange:"swing",frameWidth:425,frameHeight:355,overlayShow:true,overlayOpacity:0.6,hideOnContentClick:false,centerOnScroll:true,itemArray:[],callbackOnStart:null,callbackOnShow:null,callbackOnClose:null};f(document).ready(function(){f.fn.fancybox.build()})})(jQuery);
/* fim jquery.fancybox-1.2.1.js */
/* jcarousellite_1.0.1.pack.js */
eval(function(p,a,c,k,e,r){e=function(c){return(c< a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(6($){$.1g.1w=6(o){o=$.1f({r:n,x:n,N:n,17:q,J:n,L:1a,16:n,y:q,u:12,H:3,B:0,k:1,K:n,I:n},o||{});8 G.R(6(){p b=q,A=o.y?"15":"w",P=o.y?"t":"s";p c=$(G),9=$("9",c),E=$("10",9),W=E.Y(),v=o.H;7(o.u){9.1h(E.D(W-v-1+1).V()).1d(E.D(0,v).V());o.B+=v}p f=$("10",9),l=f.Y(),4=o.B;c.5("1c","H");f.5({U:"T",1b:o.y?"S":"w"});9.5({19:"0",18:"0",Q:"13","1v-1s-1r":"S","z-14":"1"});c.5({U:"T",Q:"13","z-14":"2",w:"1q"});p g=o.y?t(f):s(f);p h=g*l;p j=g*v;f.5({s:f.s(),t:f.t()});9.5(P,h+"C").5(A,-(4*g));c.5(P,j+"C");7(o.r)$(o.r).O(6(){8 m(4-o.k)});7(o.x)$(o.x).O(6(){8 m(4+o.k)});7(o.N)$.R(o.N,6(i,a){$(a).O(6(){8 m(o.u?o.H+i:i)})});7(o.17&&c.11)c.11(6(e,d){8 d>0?m(4-o.k):m(4+o.k)});7(o.J)1p(6(){m(4+o.k)},o.J+o.L);6 M(){8 f.D(4).D(0,v)};6 m(a){7(!b){7(o.K)o.K.Z(G,M());7(o.u){7(a<=o.B-v-1){9.5(A,-((l-(v*2))*g)+"C");4=a==o.B-v-1?l-(v*2)-1:l-(v*2)-o.k}F 7(a>=l-v+1){9.5(A,-((v)*g)+"C");4=a==l-v+1?v+1:v+o.k}F 4=a}F{7(a<0||a>l-v)8;F 4=a}b=12;9.1o(A=="w"?{w:-(4*g)}:{15:-(4*g)},o.L,o.16,6(){7(o.I)o.I.Z(G,M());b=q});7(!o.u){$(o.r+","+o.x).1n("X");$((4-o.k<0&&o.r)||(4+o.k>l-v&&o.x)||[]).1m("X")}}8 q}})};6 5(a,b){8 1l($.5(a[0],b))||0};6 s(a){8 a[0].1k+5(a,\'1j\')+5(a,\'1i\')};6 t(a){8 a[0].1t+5(a,\'1u\')+5(a,\'1e\')}})(1x);',62,96,'||||curr|css|function|if|return|ul|||||||||||scroll|itemLength|go|null||var|false|btnPrev|width|height|circular||left|btnNext|vertical||animCss|start|px|slice|tLi|else|this|visible|afterEnd|auto|beforeStart|speed|vis|btnGo|click|sizeCss|position|each|none|hidden|overflow|clone|tl|disabled|size|call|li|mousewheel|true|relative|index|top|easing|mouseWheel|padding|margin|200|float|visibility|append|marginBottom|extend|fn|prepend|marginRight|marginLeft|offsetWidth|parseInt|addClass|removeClass|animate|setInterval|0px|type|style|offsetHeight|marginTop|list|jCarouselLite|jQuery'.split('|'),0,{}))
/* fim jcarousellite_1.0.1.pack.js */
/* jquery.numberFormat.js */
function number_format(f,c,l,e){var b=f,a=c;var h=function(r,q){var i=Math.pow(10,q);return(Math.round(r*i)/i).toString()};b=!isFinite(+b)?0:+b;a=!isFinite(+a)?0:Math.abs(a);var p=(typeof e==="undefined")?",":e;var d=(typeof l==="undefined")?".":l;var o=(a>0)?h(b,a):h(Math.round(b),a);var m=h(Math.abs(b),a);var k,g;if(m>=1000){k=m.split(/\D/);g=k[0].length%3||3;k[0]=o.slice(0,g+(b<0))+k[0].slice(g).replace(/(\d{3})/g,p+"$1");o=k.join(d)}else{o=o.replace(".",d)}var j=o.indexOf(d);if(a>=1&&j!==-1&&(o.length-j-1)< a){o+=new Array(a-(o.length-j-1)).join(0)+"0"}else{if(a>=1&&j===-1){o+=d+new Array(a).join(0)+"0"}}return o};
/* fim jquery.numberFormat.js */
/* outros */
Function.prototype.method=function(a,b){this.prototype[a]=b;return this};
String.method("trim",function(){return this.replace(/^\s+|\s+$/g,"")});
function email(str){var a=/^[\w!#$%&'*+\/=?^`{|}~-]+(\.[\w!#$%&'*+\/=?^`{|}~-]+)*@(([\w-]+\.)+[A-Za-z]{2,6}|\[\d{1,3}(\.\d{1,3}){3}\])$/;return a.test(str);}
/* fim outros */
/* jquery-hotkeys.js */
(function(b){b.fn.__bind__=b.fn.bind;b.fn.__unbind__=b.fn.unbind;b.fn.__find__=b.fn.find;var a={version:"0.7.9",override:/keypress|keydown|keyup/g,triggersMap:{},specialKeys:{27:"esc",9:"tab",32:"space",13:"return",8:"backspace",145:"scroll",20:"capslock",144:"numlock",19:"pause",45:"insert",36:"home",46:"del",35:"end",33:"pageup",34:"pagedown",37:"left",38:"up",39:"right",40:"down",109:"-",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",191:"/"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},newTrigger:function(e,d,f){var c={};c[e]={};c[e][d]={cb:f,disableInInput:false};return c}};a.specialKeys=b.extend(a.specialKeys,{96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/"});b.fn.find=function(c){this.query=c;return b.fn.__find__.apply(this,arguments)};b.fn.unbind=function(h,e,g){if(b.isFunction(e)){g=e;e=null}if(e&&typeof e==="string"){var f=((this.prevObject&&this.prevObject.query)||(this[0].id&&this[0].id)||this[0]).toString();var d=h.split(" ");for(var c=0;c< d.length;c++){delete a.triggersMap[f][d[c]][e]}}return this.__unbind__(h,g)};b.fn.bind=function(j,f,k){var h=j.match(a.override);if(b.isFunction(f)||!h){return this.__bind__(j,f,k)}else{var n=null,i=b.trim(j.replace(a.override,""));if(i){n=this.__bind__(i,f,k)}if(typeof f==="string"){f={combi:f}}if(f.combi){for(var m=0;m< h.length;m++){var d=h[m];var g=f.combi.toLowerCase(),e=a.newTrigger(d,g,k),l=((this.prevObject&&this.prevObject.query)||(this[0].id&&this[0].id)||this[0]).toString();e[d][g].disableInInput=f.disableInInput;if(!a.triggersMap[l]){a.triggersMap[l]=e}else{if(!a.triggersMap[l][d]){a.triggersMap[l][d]=e[d]}}var c=a.triggersMap[l][d][g];if(!c){a.triggersMap[l][d][g]=[e[d][g]]}else{if(c.constructor!==Array){a.triggersMap[l][d][g]=[c]}else{a.triggersMap[l][d][g][c.length]=e[d][g]}}this.each(function(){var o=b(this);if(o.attr("hkId")&&o.attr("hkId")!==l){l=o.attr("hkId")+";"+l}o.attr("hkId",l)});n=this.__bind__(h.join(" "),f,a.handler)}}return n}};a.findElement=function(c){if(!b(c).attr("hkId")){if(b.browser.opera||b.browser.safari){while(!b(c).attr("hkId")&&c.parentNode){c=c.parentNode}}}return c};a.handler=function(e){var o=a.findElement(e.currentTarget),i=b(o),d=i.attr("hkId");if(d){d=d.split(";");var g=e.which,q=e.type,p=a.specialKeys[g],n=!p&&String.fromCharCode(g).toLowerCase(),h=e.shiftKey,c=e.ctrlKey,m=e.altKey||e.originalEvent.altKey,f=null;for(var r=0;r< d.length;r++){if(a.triggersMap[d[r]][q]){f=a.triggersMap[d[r]][q];break}}if(f){var j;if(!h&&!c&&!m){j=f[p]||(n&&f[n])}else{var l="";if(m){l+="alt+"}if(c){l+="ctrl+"}if(h){l+="shift+"}j=f[l+p];if(!j){if(n){j=f[l+n]||f[l+a.shiftNums[n]]||(l==="shift+"&&f[a.shiftNums[n]])}}}if(j){var s=false;for(var r=0;r< j.length;r++){if(j[r].disableInInput){var k=b(e.target);if(i.is("input")||i.is("textarea")||i.is("select")||k.is("input")||k.is("textarea")||k.is("select")){return true}}s=s||j[r].cb.apply(this,[e])}return s}}}};window.hotkeys=a;return b})(jQuery);
/* fim jquery-hotkeys.js */
/* jquery.onlyint.js */
(function($){
$.fn.onlyint = function(){
this.keypress(function(e){
if(!e.ctrlKey){
var code = e.keyCode;
var permitidas = [8,9,13,27,33,34,35,36,37,38,39,40,45,46,112,113,114,115,116,117,118,119,1];
if( permitidas.indexOf(code) == -1){
var key = e.which;
var s = String.fromCharCode(key);
var digito = /\D+/.test(s);
if (digito == true){
return false;
}
}
}
}).keyup(function(e){
if(!e.ctrlKey && !e.altKey && !e.shiftKey){
$(this).val($(this).val().replace(/\D+|\W+|\s+/gi,""));
}
});
}
})(jQuery);
/* fim jquery.onlyint.js */
/* jquery.nextfield.js */
(function($){
$.fn.nextfield = function(options){
var defaults = {
maxLength:false,
next:false,
onblur:false
}
var options = $.extend(defaults,options);
this.unbind("keyup").keyup(function(e){
if(e.keyCode != 9 && e.keyCode != 16){
if(typeof options.maxLength == 'number'){
if( $(this).val().replace(/_/g,'').length >= options.maxLength ){
if(typeof options.next == "object"){
if(typeof options.onblur == "function"){
options.onblur();
}
if($(options.next).is("a")){
options.next.focus();
}else{
options.next.select();
}
}else{
alert("Por favor defina o atributo 'next' para o INPUT "+$(this).attr("name")+".");
}
}
}else{
alert("Por favor defina o atributo 'maxength' para o INPUT "+$(this).attr("name")+".");
}
}
});
}
})(jQuery);
/* fim jquery.nextfield.js */
function FancyboxResumo(){
$(".resumoProduto a").fancybox({
'frameWidth' : 750,
'frameHeight' : 500
});
}
function FancyboxAviseme(){
$(".avise_me a").fancybox({
frameWidth :495,
frameHeight :270
});
}
$(document).ready(function(){
/* ============= PROBLEMAS DE CSS NO IE6 ========================*/
if($.browser.msie && parseFloat($.browser.version) < 7){
$(document).pngFix();
}
if($.browser.msie && $.browser.version == "7.0"){
}
/* ============= PROBLEMAS DE CSS NO IE6 ========================*/
$(".emailOFertas a, #emailOFertasMinhaConta a").fancybox({
frameWidth:365,
frameHeight:500
});
$(".popUp a").fancybox({
frameWidth:550,
frameHeight:410
});
$("#fale_conosco_link a, .campo_titulo_email a").fancybox({
frameWidth:380,
frameHeight:550
});
$(".external").attr("target","_blank");
/*=================================== CAMPOS DE DEPARTAMENTOS (SELECT) DA BUSCA HEADER E FOOTER ================================================= */
function MostraSelect(Local){
$('.departamentos_open_'+Local).slideDown(100,function(){
$('.link_departamentos_opem_'+Local+':first').focus();
});
}
function EscondeSelect(Local,foco){
$('.departamentos_open_'+Local).hide();
}
$('#BotaoDepartamentos_top, #BotaoDepartamentos_bottom').unbind('click').click(function(){
var Local = $(this).attr('name');
if(!$('.departamentos_open_'+Local).is(':visible')){
MostraSelect(Local);
return false;
}
}).bind('keydown',"down",function(){
var Local = $(this).attr('name');
MostraSelect(Local);
return false;
});
$('.link_departamentos_opem_top, .link_departamentos_opem_bottom').click(function(){
var Local = $(this).attr('name');
$('#TextoDepartamentos_'+Local).html($(this," a").text());
$('#loja_selecionada_'+Local).val($(this).attr("id"));
}).each(function(){
var Local = $(this).attr('name');
$(this).focus(function(){
$('.link_departamentos_opem_'+Local).removeClass("selected");
$(this).addClass("selected");
}).mouseenter(function(){
$(this).focus();
});
$(this).bind('keydown',"down",function(){
$(this).next().focus();
return false;
});
$(this).bind('keydown',"up",function(){
$(this).prev().focus();
return false;
});
});
function ReposicionaBottom(){
var DocumentHeight = $(document).height();
var WindowHeight = $(window).height();
var ScrollTop = $(document).scrollTop();
var Bottom = DocumentHeight - ScrollTop - WindowHeight;
$('.departamentos_open_bottom').css({'bottom':(220-Bottom)+'px'});
}
ReposicionaBottom();
$(window).scroll(function(){
EscondeSelect("top",false);
EscondeSelect("bottom",false);
ReposicionaBottom();
});
$(document).click(function(){
EscondeSelect("top",false);
EscondeSelect("bottom",false);
});
$(".descontos_exclusivos a, .emailOFertasLateral").fancybox({
'frameWidth' : 500,
'frameHeight' : 365
});
$(".texto_promocoes a").fancybox({
'frameWidth' : 555,
'frameHeight': 420
});
/*=================================== CAMPOS DE DEPARTAMENTOS (SELECT) DA BUSCA HEADER E FOOTER ================================================= */
/*================================================= BUSCA ======================================================*/
var TextoDefault = "Digite aqui o que deseja encontrar.";
function Buscar(Local){
var Campo = $(".campo_busca_"+Local);
var q = $(Campo).val();
if(q.length < 2 || q == TextoDefault){
$(Campo).focus();
}else{
$('#form_busca_'+Local).submit();
}
}
$('#busca_superior,#busca_inferior').focus(function(){
if( $(this).val() == TextoDefault ) {
$(this).val("").removeClass('campo_buscar');
}
}).blur(function(){
if( $(this).val() == "") {
$(this).addClass('campo_buscar').val(TextoDefault);
}
}).keypress(function(e){
if(e.keyCode == 13){
Buscar($(this).parent().attr("id"));
}
});
$("#BotaoBuscarHeader").click(function(){
Buscar("top");
});
$("#BotaoBuscarFooter").click(function(){
Buscar("bottom");
});
/*================================================= BUSCA ======================================================*/
FancyboxAviseme();
$(".head_links_televendas a").fancybox({
'frameWidth': 500,
'frameHeight': 550
});
$(".resumo a").fancybox({
'frameWidth' : 750,
'frameHeight' : 500
});
FancyboxResumo();
/* ================= Fale Conosco Site, Loja Fisica e Ainda Estou com Duvida ======================== */
$(".FaleConoscoSite, .FaleConoscoLojaFisica").fancybox({
'frameWidth' : 600,
'frameHeight' : 435
});
$(".AindaEstouDuvida").fancybox({
'frameWidth' : 600,
'frameHeight' : 385
});
});