var mtsoft_comm={url:null,form:"#comment-form",publish:function(b){var a=this;this.url=b;var c=jQuery(this.form).serialize();jQuery("#ajaxInfo").hide();jQuery("#ajaxWait").show();jQuery(this.form+" :text, input[type='submit'], textarea").attr("disabled","disabled");jQuery(document).ajaxError(function(i,f,e){jQuery("#ajaxWait").hide();var k=new RegExp(/<p>(.+)<\/p>/i);matches=k.exec(f.responseText);if((matches!=null&&matches[1])){jQuery("#ajaxInfo").html(matches[1]);jQuery("#ajaxInfo").show()}else{if(f.responseText){jQuery("#ajaxInfo").html(f.responseText);jQuery("#ajaxInfo").show()}}jQuery(a.form+" :text, input[type='submit'], textarea").removeAttr("disabled")});jQuery.post(this.url,c,function(e){jQuery("#ajaxWait").hide();jQuery(a.form+" :text, input[type='submit'], textarea").removeAttr("disabled");jQuery("#comment").val("");var i=jQuery(".comments-list > ol > li:last");jQuery(".comments-list > ol").append(e);var f=jQuery(".comments-list > ol > li:last");f.hide().slideDown();if(jQuery(".comments-list > ol").length>0){if(i.hasClass("odd")){f.removeClass("odd")}else{f.addClass("odd")}}f.mouseover(function(){jQuery(this).addClass("hover")}).mouseout(function(){jQuery(this).removeClass("hover")})});return false}};var _g={init:function(){jQuery(":text,:password,textarea,select").inpStylize();jQuery("form").keydown(function(c){var f=c.target;if(f.tagName.toUpperCase()!="TEXTAREA"){switch(c.keyCode){case 38:jQuery(f).blur();jQuery(f).focusNextInputField(true);return false;break;case 13:case 40:jQuery(f).blur();jQuery(f).focusNextInputField();return false;break;default:return true;break}}else{return true}});if(window.invalidInputs!=null){for(var a=0,b;b=invalidInputs[a];a++){this.inpInvalidData(b)}}jQuery(document).ready(function(){jQuery("#go-top").click(function(){jQuery("html, body").animate({scrollTop:0},"slow","swing")})})},inpInvalidData:function(b){var a=jQuery("#"+b);if(a!=null&&a.is("input[type=text]")||a.is("textarea")){a.addClass("error");a.keyup(function(){a.removeClass("error");a.unbind("keyup")})}},submit:function(c,a,b){var b=b||true;if(a!=null&&document.getElementById(a)!=null){document.getElementById(a).value=c.name}else{if(document.getElementById("subButton")!=null){document.getElementById("subButton").value=c.name}}c.disabled=b;c.form.submit()},info:function(a,b,i,e){if(i==null){i=a.replace(/[^a-zA-Z0-9]/g,"_")}if(document.getElementById(i)==null){var b=b||"caution";var f=document.createElement("div");f.className=b.toLowerCase();f.innerHTML="<p>"+a+'</p><div id="'+i+'" class="close" onclick="document.getElementById(\'announcements\').removeChild(this.parentNode);"></div>';try{document.getElementById("announcements").appendChild(f);document.getElementById("announcements").style.display="block"}catch(c){}}if(e==null||e){jQuery(jQuery("#"+i).parent()).fadeOut(10000,function(){jQuery(this).remove()})}},grayOut:function(b){id=b!=null?(b.attr("id")).replace(/[^a-zA-Z0-9]/g,"_"):"";if(document.getElementById("grayOutBg_"+id+"[]")!=null){var a=document.getElementById("grayOutBg_"+id+"[]");a.className="grayed-out"}else{var a=document.createElement("div");a.setAttribute("id","grayOutBg_"+id+"[]");a.setAttribute("name","grayOutBg_"+id+"[]");a.className="grayed-out";if(b==null){b=document.body.lastChild}else{var c=(jQuery(b).getParams())[0];a.style.position="absolute";a.style.left=c.relative.left+"px";a.style.top=c.relative.top+"px";a.style.width=c.size.width+"px";a.style.height=c.size.height+"px"}jQuery(b).parent().append(a)}return a},removeGrayOut:function(f){id=f!=null?(f.attr("id")).replace(/[^a-zA-Z0-9]/g,"_"):"";var a=new Array();var e=new Array("grayOutBg_"+id+"[]","grayOutMessage[]");for(var b=0;b<e.length;b++){for(var c=0;c<document.getElementsByName(e[b]).length;c++){var f=document.getElementsByName(e[b]).item(c);a.push(f)}}for(var c=0;c<a.length;c++){if(a[c]!=null){a[c].parentNode.removeChild(a[c])}}return true},selectBox:function(i,f,a,e){try{var c=document.getElementById(i);if(c!=null&&f!=""){c.value=f;if(c.value==""){c.selectedIndex=0}}else{if(a==null){c.selectedIndex=0}else{c.value=a}}if(e){c.onchange()}}catch(b){}},checkRadio:function(b,l,a,e){var k=jQuery("input[name='"+b+"']");var f=false;for(var c=0,o;o=k[c];c++){if(o.value==l){o.checked=true;if(o.onclick!=null&&e){o.onclick()}f=true}}if(!f){if(a==null){k[0].checked=true;if(k[0].onclick!=null&&e){k[0].onclick()}}else{this.checkRadio(b,a,null,e)}}if(e){var o=b.replace("[]","");document.getElementById(o).value=l}},winInfo:function(c){var c=jQuery.extend({txt:"",title:"Information",id:null,modal:false},c);if(c.id==null){var b=c.txt.length>0?c.txt.substring(0,128):(Math.random()+"").replace(".","");c.id=b.replace(/[^a-zA-Z0-9]/g,"_")}var a='<div id="'+c.id+'" title="'+c.title+'"><p>'+c.txt+"</p></div>";if(jQuery("#"+c.id).length<1){jQuery(a).dialog({modal:c.modal,resizable:false,buttons:{Ok:function(){jQuery(this).dialog("close");jQuery(this).remove()}},close:function(){jQuery(this).remove()}})}},winConfirm:function(c){var c=jQuery.extend({txt:"",title:"Please confirm",id:null,modal:true,ok:null,cancel:null},c);if(c.id==null){var b=c.txt.length>0?c.txt.substring(0,128):(Math.random()+"").replace(".","");c.id=b.replace(/[^a-zA-Z0-9]/g,"_")}var a='<div id="'+c.id+'" title="'+c.title+'"><p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>'+c.txt+"</p></div>";if(jQuery("#"+c.id).length<1){jQuery(a).dialog({modal:c.modal,resizable:false,buttons:{Ok:function(){jQuery(this).dialog("close");if(c.ok!=null){return c.ok()}jQuery(this).remove()},Cancel:function(){jQuery(this).dialog("close");if(c.cancel!=null){return c.cancel()}jQuery(this).remove()}},close:function(){jQuery(this).remove()}})}},winValidation:function(e){var f='<p><br /><span style="text-align: center;">Please correct below data:</span><br />';f+='<ul style="text-align:left;">';for(var b=0,a;a=e[b];b++){f+="<li>"+a+"</li>"}f+="</ul></p>";this.winInfo({txt:f,title:"Validation failed!",modal:true})},winInput:function(l){var l=jQuery.extend({txt:"",title:"Please enter below data",id:null,modal:true,inputs:null,width:"auto",height:"auto",ok:null,okLabel:"Ok",cancel:null,cancelLabel:"Cancel"},l);var x="";if(l.txt!=""){x='<p class="par" style="float:left;">'+l.txt+"</p>"}x+='<table style="float:left;width:100%;"><tbody>';var b=new Array();for(var u=0,n;n=l.inputs[u];u++){var e="guiWin_inp_"+(Math.random()+"").replace(".","");b.push(e);var z=n.label!=null?n.label:"";var f=n.style!=null?n.style:"";switch(n.type){default:case"text":x+='<tr><td align="right" style="width:10%;"><label for="'+e+'">'+z+'</label></td><td align="left" style="padding:0px;width:90%;'+f+';"><input type="text" id="'+e+'" name="'+e+'" value="'+(n.defaults!=null?n.defaults:"")+'" style="width:98%;'+f+'" /></td></tr>';break;case"textarea":x+='<tr><td align="right" valign="top" style="width:10%;"><label for="'+e+'">'+z+'</label></td><td align="left" style="padding:0px;width:90%;'+f+';"><textarea id="'+e+'" name="'+e+'" style="width:98%;'+f+'" >'+(n.defaults!=null?n.defaults:"")+"</textarea></td></tr>";break;case"select":var a="";for(var q=0,k;k=n.options[q];q++){var A=k.value!=null?k.value:k.label;a+='<option value="'+A+'" '+(n.defaults!=null&&n.defaults==A?'selected="selected"':"")+">"+k.label+"</option>"}x+='<tr><td align="right" style="width:10%;"><label for="'+e+'">'+z+'</label></td><td align="left" style="width:90%;"><select id="'+e+'" name="'+e+'" style="width:98%;'+f+'">'+a+"</select></td></tr>";break}}x+="</tbody></table>";if(l.id==null){var B=l.txt.length>0?l.txt.substring(0,128):(Math.random()+"").replace(".","");l.id=B.replace(/[^a-zA-Z0-9]/g,"_")}var w='<div id="'+l.id+'" title="'+l.title+'"><div id="'+l.id+'_info" class="info" style="height:40px;"></div>'+x+"</div>";if(jQuery("#"+l.id).length<1){var o={width:l.width,modal:l.modal,resizable:true,buttons:{},close:function(){jQuery(this).remove()}};o.buttons[l.okLabel]=function(){if(l.ok!=null){var c=new Array();for(var p=0;p<b.length;p++){c.push(jQuery("#"+b[p])._v())}if(l.ok(c,b,l.id)){jQuery(this).dialog("close");jQuery(this).remove()}else{}}};o.buttons[l.cancelLabel]=function(){jQuery(this).dialog("close");if(l.cancel!=null){return l.cancel()}jQuery(this).remove()};jQuery(w).dialog(o);jQuery("#"+l.id).find(":text,textarea,select").inpStylize();this.winId=l.id}},winViewInfo:function(a,c,b){b=b||this.winId;c=c||"caution";jQuery("#"+b+"_info").html('<div class="win '+c.toLowerCase()+'"><p>'+a+"</p></div>").children(":first").show().fadeOut(2500,function(){jQuery(this).remove()})}};(function(K){var A="colorbox",x="hover",G=true,Y=false,ad,v=!K.support.opacity,aa=v&&!window.XMLHttpRequest,H="cbox_open",S="cbox_load",D="cbox_complete",R="cbox_cleanup",w="cbox_closed",V="resize.cbox_resize",P,ab,ac,e,I,q,b,O,c,W,M,l,k,B,p,u,T,t,Q,C,ae,o,i,a,z,n,J,X,F,U,L={transition:"elastic",speed:350,width:Y,height:Y,innerWidth:Y,innerHeight:Y,initialWidth:"400",initialHeight:"400",maxWidth:Y,maxHeight:Y,scalePhotos:G,scrolling:G,inline:Y,html:Y,iframe:Y,photo:Y,href:Y,title:Y,rel:Y,opacity:0.9,preloading:G,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:Y,overlayClose:G,slideshow:Y,slideshowAuto:G,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:Y,onLoad:Y,onComplete:Y,onCleanup:Y,onClosed:Y};function N(af,ag){ag=ag==="x"?W.width():W.height();return(typeof af==="string")?Math.round((af.match(/%/)?(ag/100)*parseInt(af,10):parseInt(af,10))):af}function E(af){af=K.isFunction(af)?af.call(z):af;return X.photo||af.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function Z(){for(var af in X){if(K.isFunction(X[af])&&af.substring(0,2)!=="on"){X[af]=X[af].call(z)}}X.rel=X.rel||z.rel;X.href=X.href||z.href;X.title=X.title||z.title}function f(af){z=af;X=K(z).data(A);Z();if(X.rel&&X.rel!=="nofollow"){c=K(".cboxElement").filter(function(){var ag=K(this).data(A).rel||this.rel;return(ag===X.rel)});J=c.index(z);if(J<0){c=c.add(z);J=c.length-1}}else{c=K(z);J=0}if(!F){F=G;U=G;n=z;n.blur();K(document).bind("keydown.cbox_close",function(ag){if(ag.keyCode===27){ag.preventDefault();ad.close()}}).bind("keydown.cbox_arrows",function(ag){if(c.length>1){if(ag.keyCode===37){ag.preventDefault();Q.click()}else{if(ag.keyCode===39){ag.preventDefault();t.click()}}}});if(X.overlayClose){P.css({cursor:"pointer"}).one("click",ad.close)}K.event.trigger(H);if(X.onOpen){X.onOpen.call(z)}P.css({opacity:X.opacity}).show();X.w=N(X.initialWidth,"x");X.h=N(X.initialHeight,"y");ad.position(0);if(aa){W.bind("resize.cboxie6 scroll.cboxie6",function(){P.css({width:W.width(),height:W.height(),top:W.scrollTop(),left:W.scrollLeft()})}).trigger("scroll.cboxie6")}}u.add(Q).add(t).add(T).add(p).hide();C.html(X.close).show();ad.slideshow();ad.load()}ad=K.fn.colorbox=function(af,ah){var ag=this;if(!ag.length){if(ag.selector===""){ag=K("<a/>");af.open=G}else{return this}}ag.each(function(){var ai=K.extend({},K(this).data(A)?K(this).data(A):L,af);K(this).data(A,ai).addClass("cboxElement");if(ah){K(this).data(A).onComplete=ah}});if(af&&af.open){f(ag)}return this};ad.init=function(){function af(ag){return K('<div id="cbox'+ag+'"/>')}W=K(window);ab=K('<div id="colorbox"/>');P=af("Overlay").hide();ac=af("Wrapper");e=af("Content").append(M=af("LoadedContent").css({width:0,height:0}),k=af("LoadingOverlay"),B=af("LoadingGraphic"),p=af("Title"),u=af("Current"),T=af("Slideshow"),t=af("Next"),Q=af("Previous"),C=af("Close"));ac.append(K("<div/>").append(af("TopLeft"),I=af("TopCenter"),af("TopRight")),K("<div/>").append(q=af("MiddleLeft"),e,b=af("MiddleRight")),K("<div/>").append(af("BottomLeft"),O=af("BottomCenter"),af("BottomRight"))).children().children().css({"float":"left"});l=K("<div style='position:absolute; top:0; left:0; width:9999px; height:0;'/>");K("body").prepend(P,ab.append(ac,l));if(v){ab.addClass("cboxIE");if(aa){P.css("position","absolute")}}e.children().bind("mouseover mouseout",function(){K(this).toggleClass(x)}).addClass(x);ae=I.height()+O.height()+e.outerHeight(G)-e.height();o=q.width()+b.width()+e.outerWidth(G)-e.width();i=M.outerHeight(G);a=M.outerWidth(G);ab.css({"padding-bottom":ae,"padding-right":o}).hide();t.click(ad.next);Q.click(ad.prev);C.click(ad.close);e.children().removeClass(x);K(".cboxElement").live("click",function(ag){if(ag.button!==0&&typeof ag.button!=="undefined"){return G}else{f(this);return Y}})};ad.position=function(ak,ah){var aj,ag=W.height(),ai=Math.max(ag-X.h-i-ae,0)/2+W.scrollTop(),af=Math.max(document.documentElement.clientWidth-X.w-a-o,0)/2+W.scrollLeft();aj=(ab.width()===X.w+a&&ab.height()===X.h+i)?0:ak;ac[0].style.width=ac[0].style.height="9999px";function al(am){I[0].style.width=O[0].style.width=e[0].style.width=am.style.width;B[0].style.height=k[0].style.height=e[0].style.height=q[0].style.height=b[0].style.height=am.style.height}ab.dequeue().animate({width:X.w+a,height:X.h+i,top:ai,left:af},{duration:aj,complete:function(){al(this);U=Y;ac[0].style.width=(X.w+a+o)+"px";ac[0].style.height=(X.h+i+ae)+"px";if(ah){ah()}},step:function(){al(this)}})};ad.resize=function(aj){if(!F){return}var ak,ai,ag,am,aq,af,ao,ah=X.transition==="none"?0:X.speed;W.unbind(V);if(!aj){ao=setTimeout(function(){var ar=M.wrapInner("<div style='overflow:auto'></div>").children();X.h=ar.height();M.css({height:X.h});ar.replaceWith(ar.children());ad.position(ah)},1);return}M.remove();M=K('<div id="cboxLoadedContent"/>').html(aj);function an(){X.w=X.w||M.width();X.w=X.mw&&X.mw<X.w?X.mw:X.w;return X.w}function al(){X.h=X.h||M.height();X.h=X.mh&&X.mh<X.h?X.mh:X.h;return X.h}M.hide().appendTo(l).css({width:an(),overflow:X.scrolling?"auto":"hidden"}).css({height:al()}).prependTo(e);K("#cboxPhoto").css({cssFloat:"none"});if(aa){K("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(R,function(){this.style.visibility="inherit"})}function ap(ar){ad.position(ar,function(){if(!F){return}if(v){if(af){M.fadeIn(100)}ab[0].style.removeAttribute("filter")}if(X.iframe){M.append("<iframe id='cboxIframe'"+(X.scrolling?" ":"scrolling='no'")+" name='iframe_"+new Date().getTime()+"' frameborder=0 src='"+X.href+"' "+(v?"allowtransparency='true'":"")+" />")}M.show();p.show().html(X.title);if(c.length>1){u.html(X.current.replace(/\{current\}/,J+1).replace(/\{total\}/,c.length)).show();t.html(X.next).show();Q.html(X.previous).show();if(X.slideshow){T.show()}}k.hide();B.hide();K.event.trigger(D);if(X.onComplete){X.onComplete.call(z)}if(X.transition==="fade"){ab.fadeTo(ah,1,function(){if(v){ab[0].style.removeAttribute("filter")}})}W.bind(V,function(){ad.position(0)})})}if((X.transition==="fade"&&ab.fadeTo(ah,0,function(){ap(0)}))||ap(ah)){}if(X.preloading&&c.length>1){ai=J>0?c[J-1]:c[c.length-1];am=J<c.length-1?c[J+1]:c[0];aq=K(am).data(A).href||am.href;ag=K(ai).data(A).href||ai.href;if(E(aq)){K("<img />").attr("src",aq)}if(E(ag)){K("<img />").attr("src",ag)}}};ad.load=function(){var ag,af,ai,ah=ad.resize;U=G;z=c[J];X=K(z).data(A);X.maxWidth=K.getCliSize().width;X.maxHeight=K.getCliSize().height;Z();K.event.trigger(S);if(X.onLoad){X.onLoad.call(z)}X.h=X.height?N(X.height,"y")-i-ae:X.innerHeight?N(X.innerHeight,"y"):Y;X.w=X.width?N(X.width,"x")-a-o:X.innerWidth?N(X.innerWidth,"x"):Y;X.mw=X.w;X.mh=X.h;if(X.maxWidth){X.mw=N(X.maxWidth,"x")-a-o;X.mw=X.w&&X.w<X.mw?X.w:X.mw}if(X.maxHeight){X.mh=N(X.maxHeight,"y")-i-ae;X.mh=X.h&&X.h<X.mh?X.h:X.mh}ag=X.href;k.show();B.show();if(X.inline){K('<div id="cboxInlineTemp" />').hide().insertBefore(K(ag)[0]).bind(S+" "+R,function(){K(this).replaceWith(M.children())});ah(K(ag))}else{if(X.iframe){ah(" ")}else{if(X.html){ah(X.html)}else{if(E(ag)){af=new Image();af.onload=function(){var aj;af.onload=null;af.id="cboxPhoto";K(af).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(X.scalePhotos){ai=function(){af.height-=af.height*aj;af.width-=af.width*aj};if(X.mw&&af.width>X.mw){aj=(af.width-X.mw)/af.width;ai()}if(X.mh&&af.height>X.mh){aj=(af.height-X.mh)/af.height;ai()}}if(X.h){af.style.marginTop=Math.max(X.h-af.height,0)/2+"px"}ah(af);if(c.length>1){K(af).css({cursor:"pointer"}).click(ad.next)}if(v){af.style.msInterpolationMode="bicubic"}};af.src=ag}else{K("<div />").appendTo(l).load(ag,function(aj,ak){if(ak==="success"){ah(this)}else{ah(K("<p>Request unsuccessful.</p>"))}})}}}}};ad.next=function(){if(!U){J=J<c.length-1?J+1:0;ad.load()}};ad.prev=function(){if(!U){J=J>0?J-1:c.length-1;ad.load()}};ad.slideshow=function(){var ag,af,ah="cboxSlideshow_";T.bind(w,function(){T.unbind();clearTimeout(af);ab.removeClass(ah+"off "+ah+"on")});function ai(){T.text(X.slideshowStop).bind(D,function(){af=setTimeout(ad.next,X.slideshowSpeed)}).bind(S,function(){clearTimeout(af)}).one("click",function(){ag();K(this).removeClass(x)});ab.removeClass(ah+"off").addClass(ah+"on")}ag=function(){clearTimeout(af);T.text(X.slideshowStart).unbind(D+" "+S).one("click",function(){ai();af=setTimeout(ad.next,X.slideshowSpeed);K(this).removeClass(x)});ab.removeClass(ah+"on").addClass(ah+"off")};if(X.slideshow&&c.length>1){if(X.slideshowAuto){ai()}else{ag()}}};ad.close=function(){K.event.trigger(R);if(X.onCleanup){X.onCleanup.call(z)}F=Y;K(document).unbind("keydown.cbox_close keydown.cbox_arrows");W.unbind(V+" resize.cboxie6 scroll.cboxie6");P.css({cursor:"auto"}).fadeOut("fast");ab.stop(G,Y).fadeOut("fast",function(){K("#colorbox iframe").attr("src","about:blank");M.remove();ab.css({opacity:1});try{n.focus()}catch(af){}K.event.trigger(w);if(X.onClosed){X.onClosed.call(z)}})};ad.element=function(){return K(z)};ad.settings=L;K(ad.init)}(jQuery));
/*
 * jQuery Corners 0.3
 * Copyright (c) 2008 David Turnbull, Steven Wittens
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 */
jQuery.fn.corners=function(c){var u="rounded_by_jQuery_corners";var D=b(c);var i=false;try{i=(document.body.style.WebkitBorderRadius!==undefined);var G=navigator.userAgent.indexOf("Chrome");if(G>=0){i=false}}catch(f){}var E=false;try{E=(document.body.style.MozBorderRadius!==undefined);var G=navigator.userAgent.indexOf("Firefox");if(G>=0&&parseInt(navigator.userAgent.substring(G+8))<3){E=false}}catch(f){}return this.each(function(J,N){$e=jQuery(N);if($e.hasClass(u)){return}$e.addClass(u);var I=/{(.*)}/.exec(N.className);var K=I?b(I[1],D):D;var O=N.nodeName.toLowerCase();if(O=="input"){N=v(N)}if(i&&K.webkit){p(N,K)}else{if(E&&K.mozilla&&(K.sizex==K.sizey)){t(N,K)}else{var L=e(N.parentNode);var M=e(N);switch(O){case"a":case"input":H(N,K,L,M);break;default:z(N,K,L,M);break}}}});function p(L,K){var I=""+K.sizex+"px "+K.sizey+"px";var J=jQuery(L);if(K.tl){J.css("WebkitBorderTopLeftRadius",I)}if(K.tr){J.css("WebkitBorderTopRightRadius",I)}if(K.bl){J.css("WebkitBorderBottomLeftRadius",I)}if(K.br){J.css("WebkitBorderBottomRightRadius",I)}}function t(L,K){var I=""+K.sizex+"px";var J=jQuery(L);if(K.tl){J.css("-moz-border-radius-topleft",I)}if(K.tr){J.css("-moz-border-radius-topright",I)}if(K.bl){J.css("-moz-border-radius-bottomleft",I)}if(K.br){J.css("-moz-border-radius-bottomright",I)}}function H(Q,T,R,I){var S=A("table");var O=A("tbody");S.appendChild(O);var P=A("tr");var L=A("td","top");P.appendChild(L);var N=A("tr");var K=B(Q,T,A("td"));N.appendChild(K);var M=A("tr");var J=A("td","bottom");M.appendChild(J);if(T.tl||T.tr){O.appendChild(P);F(L,T,R,I,true)}O.appendChild(N);if(T.bl||T.br){O.appendChild(M);F(J,T,R,I,false)}Q.appendChild(S);if(jQuery.browser.msie){S.onclick=x}Q.style.overflow="hidden"}function x(){if(!this.parentNode.onclick){this.parentNode.click()}}function v(K){var J=document.createElement("a");J.id=K.id;J.className=K.className;if(K.onclick){J.href="javascript:";J.onclick=K.onclick}else{jQuery(K).parent("form").each(function(){J.href=this.action});J.onclick=n}var I=document.createTextNode(K.value);J.appendChild(I);K.parentNode.replaceChild(J,K);return J}function n(){jQuery(this).parent("form").each(function(){this.submit()});return false}function z(L,I,J,K){var M=B(L,I,document.createElement("div"));L.appendChild(M);if(I.tl||I.tr){F(L,I,J,K,true)}if(I.bl||I.br){F(L,I,J,K,false)}}function B(M,L,N){var J=jQuery(M);var O;while(O=M.firstChild){N.appendChild(O)}if(M.style.height){var K=parseInt(J.css("height"));N.style.height=K+"px";K+=parseInt(J.css("padding-top"))+parseInt(J.css("padding-bottom"));M.style.height=K+"px"}if(M.style.width){var I=parseInt(J.css("width"));N.style.width=I+"px";I+=parseInt(J.css("padding-left"))+parseInt(J.css("padding-right"));M.style.width=I+"px"}N.style.paddingLeft=J.css("padding-left");N.style.paddingRight=J.css("padding-right");if(L.tl||L.tr){N.style.paddingTop=C(M,L,J.css("padding-top"),true)}else{N.style.paddingTop=J.css("padding-top")}if(L.bl||L.br){N.style.paddingBottom=C(M,L,J.css("padding-bottom"),false)}else{N.style.paddingBottom=J.css("padding-bottom")}M.style.padding=0;return N}function C(M,I,L,K){if(L.indexOf("px")<0){try{console.error("%s padding not in pixels",(K?"top":"bottom"),M)}catch(J){}L=I.sizey+"px"}L=parseInt(L);if(L-I.sizey<0){try{console.error("%s padding is %ipx for %ipx corner:",(K?"top":"bottom"),L,I.sizey,M)}catch(J){}L=I.sizey}return L-I.sizey+"px"}function A(J,I){var K=document.createElement(J);K.style.border="none";K.style.borderCollapse="collapse";K.style.borderSpacing=0;K.style.padding=0;K.style.margin=0;if(I){K.style.verticalAlign=I}return K}function e(J){try{var K=jQuery.css(J,"background-color");if(K.match(/^(transparent|rgba\(0,\s*0,\s*0,\s*0\))$/i)&&J.parentNode){return e(J.parentNode)}if(K==null){return"#ffffff"}if(K.indexOf("rgb")>-1){K=a(K)}if(K.length==4){K=q(K)}return K}catch(I){return"#ffffff"}}function q(I){return"#"+I.substring(1,2)+I.substring(1,2)+I.substring(2,3)+I.substring(2,3)+I.substring(3,4)+I.substring(3,4)}function a(N){var I=255;var K="";var J;var L=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;var M=L.exec(N);for(J=1;J<4;J++){K+=("0"+parseInt(M[J]).toString(16)).slice(-2)}return"#"+K}function b(J,L){var J=J||"";var K={sizex:5,sizey:5,tl:false,tr:false,bl:false,br:false,webkit:true,mozilla:true,transparent:false};if(L){K.sizex=L.sizex;K.sizey=L.sizey;K.webkit=L.webkit;K.transparent=L.transparent;K.mozilla=L.mozilla}var I=false;var M=false;jQuery.each(J.split(" "),function(N,P){P=P.toLowerCase();var O=parseInt(P);if(O>0&&P==O+"px"){K.sizey=O;if(!I){K.sizex=O}I=true}else{switch(P){case"no-native":K.webkit=K.mozilla=false;break;case"webkit":K.webkit=true;break;case"no-webkit":K.webkit=false;break;case"mozilla":K.mozilla=true;break;case"no-mozilla":K.mozilla=false;break;case"anti-alias":K.transparent=false;break;case"transparent":K.transparent=true;break;case"top":M=K.tl=K.tr=true;break;case"right":M=K.tr=K.br=true;break;case"bottom":M=K.bl=K.br=true;break;case"left":M=K.tl=K.bl=true;break;case"top-left":M=K.tl=true;break;case"top-right":M=K.tr=true;break;case"bottom-left":M=K.bl=true;break;case"bottom-right":M=K.br=true;break}}});if(!M){if(!L){K.tl=K.tr=K.bl=K.br=true}else{K.tl=L.tl;K.tr=L.tr;K.bl=L.bl;K.br=L.br}}return K}function w(L,J,M){var K=Array(parseInt("0x"+L.substring(1,3)),parseInt("0x"+L.substring(3,5)),parseInt("0x"+L.substring(5,7)));var I=Array(parseInt("0x"+J.substring(1,3)),parseInt("0x"+J.substring(3,5)),parseInt("0x"+J.substring(5,7)));r="0"+Math.round(K[0]+(I[0]-K[0])*M).toString(16);g="0"+Math.round(K[1]+(I[1]-K[1])*M).toString(16);J="0"+Math.round(K[2]+(I[2]-K[2])*M).toString(16);return"#"+r.substring(r.length-2)+g.substring(g.length-2)+J.substring(J.length-2)}function F(M,I,J,L,K){if(I.transparent){k(M,I,J,K)}else{o(M,I,J,L,K)}}function o(N,Y,S,I,Q){var M,L;var O=document.createElement("div");O.style.fontSize="1px";O.style.backgroundColor=S;var J=0;for(M=1;M<=Y.sizey;M++){var V,U,T;arc=Math.sqrt(1-Math.pow(1-M/Y.sizey,2))*Y.sizex;var K=Y.sizex-Math.ceil(arc);var X=Math.floor(J);var W=Y.sizex-K-X;var R=document.createElement("div");var P=O;R.style.margin="0px "+K+"px";R.style.height="1px";R.style.overflow="hidden";for(L=1;L<=W;L++){if(L==1){if(L==W){V=((arc+J)*0.5)-X}else{U=Math.sqrt(1-Math.pow(1-(K+1)/Y.sizex,2))*Y.sizey;V=(U-(Y.sizey-M))*(arc-X-W+1)*0.5}}else{if(L==W){U=Math.sqrt(1-Math.pow((Y.sizex-K-L+1)/Y.sizex,2))*Y.sizey;V=1-(1-(U-(Y.sizey-M)))*(1-(J-X))*0.5}else{T=Math.sqrt(1-Math.pow((Y.sizex-K-L)/Y.sizex,2))*Y.sizey;U=Math.sqrt(1-Math.pow((Y.sizex-K-L+1)/Y.sizex,2))*Y.sizey;V=((U+T)*0.5)-(Y.sizey-M)}}l(Y,R,P,Q,w(S,I,V));P=R;var R=P.cloneNode(false);R.style.margin="0px 1px"}l(Y,R,P,Q,I);J=arc}if(Q){N.insertBefore(O,N.firstChild)}else{N.appendChild(O)}}function l(K,I,M,L,J){if(L&&!K.tl){I.style.marginLeft=0}if(L&&!K.tr){I.style.marginRight=0}if(!L&&!K.bl){I.style.marginLeft=0}if(!L&&!K.br){I.style.marginRight=0}I.style.backgroundColor=J;if(L){M.appendChild(I)}else{M.insertBefore(I,M.firstChild)}}function k(K,S,P,M){var L=document.createElement("div");L.style.fontSize="1px";var I=document.createElement("div");I.style.overflow="hidden";I.style.height="1px";I.style.borderColor=P;I.style.borderStyle="none solid";var Q=S.sizex-1;var N=S.sizey-1;if(!N){N=1}for(var J=0;J<S.sizey;J++){var R=Q-Math.floor(Math.sqrt(1-Math.pow(1-J/N,2))*Q);if(J==2&&S.sizex==6&&S.sizey==6){R=2}var O=I.cloneNode(false);O.style.borderWidth="0 "+R+"px";if(M){O.style.borderWidth="0 "+(S.tr?R:0)+"px 0 "+(S.tl?R:0)+"px"}else{O.style.borderWidth="0 "+(S.br?R:0)+"px 0 "+(S.bl?R:0)+"px"}M?L.appendChild(O):L.insertBefore(O,L.firstChild)}if(M){K.insertBefore(L,K.firstChild)}else{K.appendChild(L)}}};jQuery.fn.crossSlide=function(c,i){var a=this,f=this.width(),b=this.height();function e(n){for(var l=1;l<arguments.length;l++){n=n.replace(new RegExp("\\{"+(l-1)+"}","g"),arguments[l])}return n}function k(){arguments[0]="crossSlide: "+arguments[0];throw e.apply(null,arguments)}(function(o){var l=0;function n(q,p){p.onload=function(t){l++;i[q].width=p.width;i[q].height=p.height;if(l==i.length){o()}};p.src=i[q].src;if(q+1<i.length){n(q+1,new Image())}}n(0,new Image())})(function(){function B(G){var p=1;var F=G.replace(/^\s*|\s*$/g,"").split(/\s+/);if(F.length>3){throw new Error()}if(F[0]=="center"){if(F.length==1){F=["center","center"]}else{if(F.length==2&&F[1].match(/^[\d.]+x$/i)){F=["center","center",F[1]]}}}if(F.length==3){p=parseFloat(F[2].match(/^([\d.]+)x$/i)[1])}var H=F[0]+" "+F[1];if(H=="left top"||H=="top left"){return{xrel:0,yrel:0,zoom:p}}if(H=="left center"||H=="center left"){return{xrel:0,yrel:0.5,zoom:p}}if(H=="left bottom"||H=="bottom left"){return{xrel:0,yrel:1,zoom:p}}if(H=="center top"||H=="top center"){return{xrel:0.5,yrel:0,zoom:p}}if(H=="center center"){return{xrel:0.5,yrel:0.5,zoom:p}}if(H=="center bottom"||H=="bottom center"){return{xrel:0.5,yrel:1,zoom:p}}if(H=="right top"||H=="top right"){return{xrel:1,yrel:0,zoom:p}}if(H=="right center"||H=="center right"){return{xrel:1,yrel:0.5,zoom:p}}if(H=="right bottom"||H=="bottom right"){return{xrel:1,yrel:1,zoom:p}}return{xrel:parseInt(F[0].match(/^(\d+)%$/)[1])/100,yrel:parseInt(F[1].match(/^(\d+)%$/)[1])/100,zoom:p}}function n(G,F){switch(F){case 1:var H=0;break;case 2:var H=D/(G.time_ms+2*D);break;case 3:var H=1-D/(G.time_ms+2*D);break;case 4:var H=1;break}return{left:Math.round(G.from.left+H*(G.to.left-G.from.left)),top:Math.round(G.from.top+H*(G.to.top-G.from.top)),width:Math.round(G.from.width+H*(G.to.width-G.from.width)),height:Math.round(G.from.height+H*(G.to.height-G.from.height))}}if(!c.fade){k("missing fade parameter.")}if(c.speed&&c.sleep){k("you cannot set both speed and sleep at the same time.")}var D=Math.round(c.fade*1000);if(c.sleep){var C=Math.round(c.sleep*1000)}if(c.speed){var o=c.speed/1000,w=Math.round(D*o)}a.empty().css({overflow:"hidden",padding:0});if(!/^(absolute|relative|fixed)$/.test(a.css("position"))){a.css({position:"relative"})}if(!a.width()||!a.height()){k("container element does not have its own width and height")}if(c.shuffle){i.sort(function(){return Math.random()-0.5})}for(var u=0;u<i.length;++u){var l=i[u];if(!l.src){k("missing src parameter in picture {0}.",u+1)}if(o){switch(l.dir){case"up":l.from={xrel:0.5,yrel:0,zoom:1};l.to={xrel:0.5,yrel:1,zoom:1};var z=l.height-b-2*w;break;case"down":l.from={xrel:0.5,yrel:1,zoom:1};l.to={xrel:0.5,yrel:0,zoom:1};var z=l.height-b-2*w;break;case"left":l.from={xrel:0,yrel:0.5,zoom:1};l.to={xrel:1,yrel:0.5,zoom:1};var z=l.width-f-2*w;break;case"right":l.from={xrel:1,yrel:0.5,zoom:1};l.to={xrel:0,yrel:0.5,zoom:1};var z=l.width-f-2*w;break;default:k('missing or malformed "dir" parameter in picture {0}.',u+1)}if(z<=0){k("picture number {0} is too short for the desired fade duration.",u+1)}l.time_ms=Math.round(z/o)}else{if(!C){if(!l.from||!l.to||!l.time){k("missing either speed/sleep option, or from/to/time params in picture {0}.",u+1)}try{l.from=B(l.from)}catch(x){k('malformed "from" parameter in picture {0}.',u+1)}try{l.to=B(l.to)}catch(x){k('malformed "to" parameter in picture {0}.',u+1)}if(!l.time){k('missing "time" parameter in picture {0}.',u+1)}l.time_ms=Math.round(l.time*1000)}}if(l.from){jQuery.each([l.from,l.to],function(F,p){p.width=Math.round(l.width*p.zoom);p.height=Math.round(l.height*p.zoom);p.left=Math.round((f-p.width)*p.xrel);p.top=Math.round((b-p.height)*p.yrel)})}var A;if(l.href){A=jQuery(e('<a href="{0}"><img src="{1}"/></a>',l.href,l.src))}else{A=jQuery(e('<img src="{0}"/>',l.src))}if(l.onclick){A.click(l.onclick)}if(l.alt){A.find("img").attr("alt",l.alt)}A.appendTo(a)}o=undefined;var v=a.find("img").css({position:"absolute",visibility:"hidden",top:0,left:0,border:0});v.eq(0).css({visibility:"visible"});if(!C){v.eq(0).css(n(i[0],2))}var E=c.loop;function q(R,p){if(R%2==0){if(C){var H=R/2,V=(H-1+i.length)%i.length,S=v.eq(H),P=v.eq(V);var O=function(){P.css("visibility","hidden");setTimeout(p,C)}}else{var K=R/2,V=(K-1+i.length)%i.length,U=v.eq(K),P=v.eq(V),I=i[K].time_ms,Q=n(i[K],3);var O=function(){P.css("visibility","hidden");U.animate(Q,I,"linear",p)}}}else{if(C){var G=Math.floor(R/2),J=Math.ceil(R/2)%i.length,T=v.eq(G),F=v.eq(J),W={},N={visibility:"visible"},M={};if(J>G){N.opacity=0;M.opacity=1}else{W.opacity=0}var O=function(){F.css(N);if(W.opacity!=undefined){T.animate(W,D,"linear",p)}else{F.animate(M,D,"linear",p)}}}else{var G=Math.floor(R/2),J=Math.ceil(R/2)%i.length,T=v.eq(G),F=v.eq(J),W=n(i[G],4),N=n(i[J],1),M=n(i[J],2);if(J>G){N.opacity=0;M.opacity=1}else{W.opacity=0}N.visibility="visible";var O=function(){T.animate(W,D,"linear");F.css(N);F.animate(M,D,"linear",p)}}}if(c.loop&&R==i.length*2-2){var L=O;O=function(){if(--E){L()}}}if(R>0){return q(R-1,O)}else{return O}}var t=q(i.length*2-1,function(){return t()});t()});return a};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,k,i){return jQuery.easing[jQuery.easing.def](e,f,a,k,i)},easeInQuad:function(e,f,a,k,i){return k*(f/=i)*f+a},easeOutQuad:function(e,f,a,k,i){return -k*(f/=i)*(f-2)+a},easeInOutQuad:function(e,f,a,k,i){if((f/=i/2)<1){return k/2*f*f+a}return -k/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,k,i){return k*(f/=i)*f*f+a},easeOutCubic:function(e,f,a,k,i){return k*((f=f/i-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,k,i){if((f/=i/2)<1){return k/2*f*f*f+a}return k/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,k,i){return k*(f/=i)*f*f*f+a},easeOutQuart:function(e,f,a,k,i){return -k*((f=f/i-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,k,i){if((f/=i/2)<1){return k/2*f*f*f*f+a}return -k/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,k,i){return k*(f/=i)*f*f*f*f+a},easeOutQuint:function(e,f,a,k,i){return k*((f=f/i-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,k,i){if((f/=i/2)<1){return k/2*f*f*f*f*f+a}return k/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,k,i){return -k*Math.cos(f/i*(Math.PI/2))+k+a},easeOutSine:function(e,f,a,k,i){return k*Math.sin(f/i*(Math.PI/2))+a},easeInOutSine:function(e,f,a,k,i){return -k/2*(Math.cos(Math.PI*f/i)-1)+a},easeInExpo:function(e,f,a,k,i){return(f==0)?a:k*Math.pow(2,10*(f/i-1))+a},easeOutExpo:function(e,f,a,k,i){return(f==i)?a+k:k*(-Math.pow(2,-10*f/i)+1)+a},easeInOutExpo:function(e,f,a,k,i){if(f==0){return a}if(f==i){return a+k}if((f/=i/2)<1){return k/2*Math.pow(2,10*(f-1))+a}return k/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,k,i){return -k*(Math.sqrt(1-(f/=i)*f)-1)+a},easeOutCirc:function(e,f,a,k,i){return k*Math.sqrt(1-(f=f/i-1)*f)+a},easeInOutCirc:function(e,f,a,k,i){if((f/=i/2)<1){return -k/2*(Math.sqrt(1-f*f)-1)+a}return k/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,k,e,q,o){var l=1.70158;var n=0;var i=q;if(k==0){return e}if((k/=o)==1){return e+q}if(!n){n=o*0.3}if(i<Math.abs(q)){i=q;var l=n/4}else{var l=n/(2*Math.PI)*Math.asin(q/i)}return -(i*Math.pow(2,10*(k-=1))*Math.sin((k*o-l)*(2*Math.PI)/n))+e},easeOutElastic:function(f,k,e,q,o){var l=1.70158;var n=0;var i=q;if(k==0){return e}if((k/=o)==1){return e+q}if(!n){n=o*0.3}if(i<Math.abs(q)){i=q;var l=n/4}else{var l=n/(2*Math.PI)*Math.asin(q/i)}return i*Math.pow(2,-10*k)*Math.sin((k*o-l)*(2*Math.PI)/n)+q+e},easeInOutElastic:function(f,k,e,q,o){var l=1.70158;var n=0;var i=q;if(k==0){return e}if((k/=o/2)==2){return e+q}if(!n){n=o*(0.3*1.5)}if(i<Math.abs(q)){i=q;var l=n/4}else{var l=n/(2*Math.PI)*Math.asin(q/i)}if(k<1){return -0.5*(i*Math.pow(2,10*(k-=1))*Math.sin((k*o-l)*(2*Math.PI)/n))+e}return i*Math.pow(2,-10*(k-=1))*Math.sin((k*o-l)*(2*Math.PI)/n)*0.5+q+e},easeInBack:function(e,f,a,l,k,i){if(i==undefined){i=1.70158}return l*(f/=k)*f*((i+1)*f-i)+a},easeOutBack:function(e,f,a,l,k,i){if(i==undefined){i=1.70158}return l*((f=f/k-1)*f*((i+1)*f+i)+1)+a},easeInOutBack:function(e,f,a,l,k,i){if(i==undefined){i=1.70158}if((f/=k/2)<1){return l/2*(f*f*(((i*=(1.525))+1)*f-i))+a}return l/2*((f-=2)*f*(((i*=(1.525))+1)*f+i)+2)+a},easeInBounce:function(e,f,a,k,i){return k-jQuery.easing.easeOutBounce(e,i-f,0,k,i)+a},easeOutBounce:function(e,f,a,k,i){if((f/=i)<(1/2.75)){return k*(7.5625*f*f)+a}else{if(f<(2/2.75)){return k*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return k*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return k*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,k,i){if(f<i/2){return jQuery.easing.easeInBounce(e,f*2,0,k,i)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-i,0,k,i)*0.5+k*0.5+a}});(function(a){a.fn.extend({elastic:function(){var b=["paddingTop","paddingRight","paddingBottom","paddingLeft","fontSize","lineHeight","fontFamily","width","fontWeight"];return this.each(function(){if(this.type!="textarea"){return false}var l=a(this),c=a("<div />").css({position:"absolute",display:"none","word-wrap":"break-word"}),n=parseInt(l.css("line-height"),10)||parseInt(l.css("font-size"),"10"),p=parseInt(l.css("height"),10)||n*3,o=parseInt(l.css("max-height"),10)||Number.MAX_VALUE,e=0,k=0;if(o<0){o=Number.MAX_VALUE}c.appendTo(l.parent());var k=b.length;while(k--){c.css(b[k].toString(),l.css(b[k].toString()))}function q(i,t){curratedHeight=Math.floor(parseInt(i,10));if(l.height()!=curratedHeight){l.css({height:curratedHeight+"px",overflow:t})}}function f(){var u=l.val().replace(/&/g,"&amp;").replace(/  /g,"&nbsp;").replace(/<|>/g,"&gt;").replace(/\n/g,"<br />");var i=c.html();if(u+"&nbsp;"!=i){c.html(u+"&nbsp;");if(Math.abs(c.height()+n-l.height())>3){var t=c.height()+n;if(t>=o){q(o,"auto")}else{if(t<=p){q(p,"hidden")}else{q(t,"hidden")}}}}}l.css({overflow:"hidden"});l.keyup(function(){f()});l.live("input paste",function(i){setTimeout(f,250)});f()})}})})(jQuery);jQuery.fn._v=(function(b){var a=null;return function(){this.each(function(){var e=this;if(e.tagName){var c=e.tagName.toLowerCase();if(c!="select"){if(e.type=="radio"){a=b("input:radio[name="+e.name+"]:checked").val()}else{a=e.type=="checkbox"?(e.checked?e.value!=undefined&&e.value!=""?e.value:1:0):(e.value!=undefined?e.value:e.innerHTML)}}else{a=b(this).val()}}else{a=this}return false});return a}})(jQuery);jQuery.fn.extend({_nv:function(){return jQuery(this)._nvf_()}});jQuery.fn.extend({_nvf_:function(){var a=(jQuery(this)._v()+"").replace(/[^\d\.-]/g,"");return !isNaN(parseFloat(a))?parseFloat(a):""}});jQuery.fn.extend({limitChars:function(c){var c=c||255;var b=jQuery(this)._v(),a="";for(off=0;off<b.length;off++){a=(c+off>=b.length?b:(b[c+off]==" "?b.substring(0,c+off)+" ...":""));if(a!=""){return a}}}});jQuery.fn.focusNextInputField=function(a){var a=a!=null?a:false;return this.each(function(){var b=jQuery(this).parents("form:eq(0),body").find("button,input[type!='hidden'],textarea,select");var c=b.index(this);var e=a?-1:1;if(c>-1&&(c+e)<b.length){b.eq(c+e).focus()}return false})};jQuery.fn.inpStylize=function(){return this.each(function(){jQuery(this).mouseover(function(){jQuery(this).addClass("hover")}).mouseout(function(){jQuery(this).removeClass("hover")}).focus(function(){jQuery(this).addClass("focus")}).blur(function(){jQuery(this).removeClass("focus")})})};jQuery.fn.smartLabel=function(a){return this.each(function(){var b=jQuery(this).val();if(b==""){jQuery(this).val(a)}jQuery(this).focus(function(){if(jQuery(this).val()==a){jQuery(this).val("")}}).blur(function(){if(jQuery(this).val()==""){jQuery(this).val(a)}})})};jQuery.fn.extend({getSize:function(){var a=[];this.each(function(){a.push({width:jQuery(this).width(),height:jQuery(this).height()})});return a},getPosition:function(){var a=[];this.each(function(){a.push(jQuery(this).offset())});return a},getPositionRelativ:function(){var a=[];this.each(function(){a.push(jQuery(this).position())});return a},getParams:function(){var a=[];this.each(function(){var c=this;if(c.style.display=="none"){c.style.visiblity="hidden";c.style.display="block";hide=true}else{hide=false}var b={position:(jQuery(c).getPosition())[0],relative:(jQuery(c).getPositionRelativ())[0],size:(jQuery(c).getSize())[0]};a.push(b);if(hide){c.style.display="none";c.style.visiblity="visible"}});return a},center:function(b,a){return this.each(function(){var i=this;var c=jQuery(i).getSize()[0];var f=$.getCliSize();i.style.position="fixed";if(b==null){i.style.left="50%";var e=parseInt(c.width/2);if(e<f.height/2){i.style.marginLeft=-e+"px"}else{i.style.left=0}}else{i.style.left=b+"px"}if(a==null){i.style.top="50%";var e=parseInt(c.height/2);if(e<f.height/2){i.style.marginTop=-e+"px"}else{i.style.top=0}}else{i.style.top=a+"px"}return true})}});jQuery.extend({getDocSize:function(){var e=window.innerWidth&&window.scrollMaxX?window.innerWidth+window.scrollMaxX:Math.max(document.body.scrollWidth,document.body.offsetWidth);var c=window.innerHeight&&window.scrollMaxY?window.innerHeight+window.scrollMaxY:Math.max(document.body.scrollHeight,document.body.offsetHeight);var a=$.getClientSize();var b=a.width;var f=a.height;return{width:Math.max(e,b),height:Math.max(c,f)}},getCliSize:function(){var a=document.documentElement?document.documentElement.clientWidth:document.body.clientWidth;var b=document.documentElement?document.documentElement.clientHeight:document.body.clientHeight;return{width:a,height:b}},getMouseCoo:function(a){var a=a||window.event;if(a!=null){if(a.pageX||a.pageY){return{x:a.pageX,y:a.pageY,e:a}}else{return{x:a.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft),y:a.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop),e:a}}}},getMouseBtn:function(b){var b=b||window.event,a=null;if(b.which){switch(b.which){case 1:a="left";break;case 2:a="middle";break;case 3:a="right";break}}else{switch(b.button){case 1:a="left";break;case 4:a="middle";break;case 2:a="right";break}}return a}});jQuery(function(){});var j=0;var quantofamo=0;jQuery.fn.slideView=function(a){a=jQuery.extend({width:576,height:300,easeFunc:"easeInOutExpo",easeTime:750,slideshow:false,slideshowSpeed:10000,linkUrl:"",linkLabel:"",toolTip:false},a);return this.each(function(){var c=jQuery(this);var e=c.find("li").size();var b=a.width*e;c.find("ul").css("width",b);c.css("width",a.width);c.css("height",a.height);c.each(function(k){jQuery(this).after('<div class="selectors" id="selectors'+(j)+'">'+(a.linkUrl?'<a class="rounded {transparent} button all-galls" onclick="window.location=\''+a.linkUrl+"'\">"+a.linkLabel+"</a>":"")+'<ul class="out"></ul></div>');jQuery(this).find("li").each(function(i){jQuery("div#selectors"+j+" ul").append('<li><a class="rounded {transparent} button" title=\''+jQuery(this).find("img").attr("alt")+"' href='#'>"+(i+1)+"</a></li>")});jQuery("div#selectors"+j+" ul.out a").each(function(i){jQuery(this).bind("click",function(){jQuery(this).addClass("current").parent().parent().find("a").not(jQuery(this)).removeClass("current");var n=-(a.width*i);c.find("ul").animate({left:n},a.easeTime,a.easeFunc,function(){c.find("span").slideDown()});c.find("span").slideUp();return false})});jQuery("div#selectors"+j+" ul.out a").parent().parent().parent().prev().find("img").each(function(i){jQuery(this).bind("click",function(){var n=jQuery(this).parent().parent().parent().next().find("ul.out a");if(i+1<e){n.eq(i+1).trigger("click")}else{n.eq(0).trigger("click")}})});jQuery("div#selectors"+j).css("width",a.width);jQuery("div#selectors"+j+" ul.out a:first").addClass("current");if(a.toolTip){c.next(".selectors ul.out").find("a").Tooltip({track:true,delay:0,showURL:false,showBody:false})}if(k==0){c.find("span").slideDown()}if(a.slideshow&&jQuery(".out").children().length>1){var f=window.setInterval(function(){if(!c.data("mouseOver")){var i=jQuery("a.current").parent().next();var n=i.length>0?i.find("a"):jQuery("a.current").parent().parent().children(":first").find("a");n.trigger("click")}},parseInt(a.slideshowSpeed));c.data("slideShowInterval",f)}var l="#"+c.attr("id");jQuery(l+", "+l+" ~ div.selectors").mouseover(function(){c.data("mouseOver",true)}).mouseout(function(){c.data("mouseOver",false)})});j++})};var _val={doCheck:function(a){var p=true;var b="";for(var c=0,e;e=a[c];c++){var l=true;var k=e.required==null?false:(e.required?true:false);var o=e.field;if(e.rule!=null){switch(e.rule){case"email":if((k||!_val.isEmpty($_v(o)))&&!_val.isValidEmail($_v(o))){l=false}break;case"login":case"password":if(k||!_val.isEmpty($_v(o))&&(!_val.isSafeExpr($_v(o))||!_val.isLenBetween($_v(o),e.params[0],e.params[1]))){l=false}break;case"date":if(k||!_val.isEmpty($_v(o))&&(!_val.isDateFormat($_v(o),e.params[0]))){l=false}break;case"url":if((k||!_val.isEmpty($_v(o)))&&!_val.isValidUrl($_v(o))){l=false}break;case"quote":case"number":case"float":if((k||!_val.isEmpty($_v(o)))&&!_val.isFloat($_v(o))){l=false}break;case"int":if((k||!_val.isEmpty($_v(o)))&&!_val.isInteger($_v(o))){l=false}break;case"equal":if((k||!_val.isEmpty($_v(o[0])))&&$_v(o[0])!=$_v(o[1])){l=false}break;default:case"empty":if((k||!_val.isEmpty($_v(o)))&&_val.isEmpty($_v(o))){l=false}break}if(!l){b+=e.message;GUI.invalidData($_(e.field));p=false}}else{if(typeof e.ruleFunc=="function"){p=e.ruleFunc(o)}}}if(!p){var n=new GuiWinDef(true,420,null,true);n.addHead("Invalid data");n.addHtml('<p style="text-align:left;"><br />Please correct below values: <br /><br /> '+b+"</p>");n.addButton("OK","winBtnOk",null,"button min");var f=new GuiWin(n);f.open();n=null;return false}return true},live:function(f,i){var f=_e.get(f);var b=f.keyCode;var c=key2char(b);var a=[8,9,13,16,17,18,20,35,36,37,38,39,40,46];if(a.inArray(b)||b==86&&GUI.isCtrl){return true}else{if(i.test(c)){return true}else{return false}}},check:function(e,b,a,c){var a=a!=null?a:true;if(!this.isEmpty($_v(e))||a){switch(b){case"email":if(!this.isValidEmail($_v(e))){GUI.invalidData(e);return false}else{return true}break;case"date":if(!this.isDateFormat($_v(e),c[0])){GUI.invalidData(e);return false}else{return true}break;case"number":case"quote":if(!this.isFloat($_v(e))){GUI.invalidData(e);return false}else{return true}break;case"int":if(!this.isInteger($_v(e))){GUI.invalidData(e);return false}else{return true}break;case"postcode":if(!this.isPostCode($_v(e))){GUI.invalidData(e);return false}else{return true}break;case"phone":if(!this.isTelephone($_v(e))){GUI.invalidData(e);return false}else{return true}break;case"url":if(!this.isValidUrl($_v(e))){GUI.invalidData(e);return false}else{return true}break;case"login":case"password":if(!_val.isSafeExpr($_v(e))||!_val.isLenBetween($_v(e),c[0],c[1])){GUI.invalidData(e);return false}else{return true}break;default:case"empty":if(this.isEmpty($_v(e))){GUI.invalidData(e);return false}else{return true}break}}},isEmpty:function(a){return((a==null)||(a.length==0))},isNotEmpty:function(a){return !((a==null)||(a.length==0))},isOnlyLetters:function(a){var b=/^[a-zA-Z\ ]+$/;return(b.test(a))},isAlphaNumericExt:function(a){var b=/^[a-zA-Z0-9\ \_\-\.\'\"\$\@\!\%\&\:\;\/]+$/;return(b.test(a))},isInteger:function(a){var b=/(^-?\d\d*$)/;return(b.test(a))},isValidEmail:function(a){var b=/^.+\@.+\..+$/;return(b.test(a))},isValidImgUrl:function(a){var b=/^(http:|https:)[a-zA-Z0-9\/\.\_\-\~]+(gif|jpg|jpeg|png)$/;return(b.test(a))},isValidUrl:function(a){var b=/^(http:|https:|index.php)[a-zA-Z0-9\/\.\_\=\-\~\?\&]+$/;return(b.test(a))},isMatch:function(b,a){return(b==a)},isLen:function(b,a){s=b.length;return(s==a)},isLenBetween:function(c,b,a){s=c.length;if(a!=null){return((s>=b)&&(s<=a))}else{return((s>=b))}},isValueBetween:function(c,b,a){s=parseFloat(c);return((s>=b)&&(s<=a))},isColor:function(b){var a=/^(#[a-fA-F0-9]{6}|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|purple|red|silver|teal|white|yellow)$/;return(a.test(b))},isSafeExpr:function(a){var b=/^[a-zA-Z0-9_]+$/;return(b.test(a))},isSecure:function(a){var b=/^\w*(?=\w*\d)(?=\w*[a-z])(?=\w*[A-Z])\w*$/;return(b.test(a))},isFloat:function(a){var b=/^([0-9\.\-]+)$/;return(b.test(a))},isYear:function(a){return(this.isInteger(a))},isMonth:function(a){return(this.isValueBetween(parseFloat(a),1,12))},isDay:function(a){return(this.isValueBetween(parseFloat(a),1,31))},isHour:function(a){return(this.isValueBetween(parseFloat(a),1,24))},isMinute:function(a){return(this.isValueBetween(parseFloat(a),0,59))},isSecond:function(a){return(this.isMinute(a))},isDateFormat:function(b,a){res=false;switch(a){case"yyyy.mm.dd hh:mm:ss":case"yyyy-mm-dd hh:mm:ss":case"yyyy/mm/dd hh:mm:ss":y=b.substring(0,4);m=b.substring(5,7);d=b.substring(8,10);h=b.substring(11,13);mi=b.substring(14,16);s=b.substring(17,19);res=(b.length==19&&this.isDate(y,m,d,h,mi,s))?true:false;break;case"yyyy-mm-dd":case"yyyy/mm/dd":y=b.substring(0,4);m=b.substring(5,7);d=b.substring(8,10);res=(b.length==10&&this.isDate(y,m,d))?true:false;break;case"dd/mm/yyyy":case"dd-mm-yyyy":d=b.substring(0,2);m=b.substring(3,5);y=b.substring(6,10);res=(b.length==10&&this.isDate(y,m,d))?true:false;break}return res},isDate:function(i,a,f,e,b,c){r=true;if(i!=null&&!this.isYear(i)){r=false}if(a!=null&&!this.isMonth(a)){r=false}if(f!=null&&!this.isDay(f)){r=false}if(e!=null&&!this.isHour(e)){r=false}if(b!=null&&!this.isMinute(b)){r=false}if(c!=null&&!this.isSecond(c)){r=false}return r},isPostCode:function(a){var b=/^[0-9A-Z\ ]{5,9}$/;return b.test(a)},isTelephone:function(a){var b=/^[0-9\+\(\)\-\#\*\ ]{3,}$/;return(b.test(a))},typeIsInteger:function(a){if(!this.isInteger(a.value)){a.value=a.value.substring(0,a.value.length-1);return false}else{return true}},isImageFile:function(a){var b=/^.+\.(jpg|jpeg|gif|png)$/;return(b.test(a))},isFileType:function(b,a){var c=/^.+\.(xls)$/;return(c.test(b))}};var _kb={isCtrl:false,isShift:false,isCapsLock:false,isAlt:false,start:function(){jQuery(document).keydown(function(a){if(a.keyCode==20){_kb.isCapsLock=_kb.checkIsCapsLockOn()}if(a.keyCode==16){_kb.isShift=true}if(a.keyCode==17){_kb.isCtrl=true}});jQuery(document).keyup(function(a){if(a.keyCode==16){_kb.isShift=false}if(a.keyCode==17){_kb.isCtrl=false}})},checkIsCapsLockOn:function(a){kc=a.keyCode?a.keyCode:a.which;sk=a.shiftKey?a.shiftKey:((kc==16)?true:false);if(((kc>=65&&kc<=90)&&!sk)||((kc>=97&&kc<=122)&&sk)){return true}else{return false}},key2char:function(f){var b=f.keyCode;var c=String.fromCharCode(b),i=[],a=_browser();if(_kb.isShift){i[49]="!";i[50]="@";i[51]="#";i[52]="$";i[53]="%";i[54]="^";i[55]="&";i[56]="*";i[57]="(";i[48]=")";i[59]=":";i[107]="+";i[109]="_";i[192]="~";i[219]="{";i[220]="|";i[221]="}";i[222]='"';i[226]="|";i[188]="<";i[190]=">";i[191]="?";if(a.IE||a.WebKit){i[187]="+";i[189]="_";i[186]=":";i[222]='"'}if(a.Opera){i[61]="+"}if(i[b]!=undefined){c=i[b]}if(b>=65&&b<=90){if(_kb.isCapsLock){c=c.toLowerCase()}}}else{i[107]="=";i[109]="-";i[110]=".";i[188]=",";i[190]=".";i[191]="/";i[192]="`";i[226]="\\";i[219]="[";i[220]="\\";i[221]="]";i[222]="'";i[96]=0;i[97]=1;i[98]=2;i[99]=3;i[100]=4;i[101]=5;i[102]=6;i[103]=7;i[104]=8;i[105]=9;if(a.IE||a.WebKit){i[187]="=";i[189]="-";i[186]=";"}if(i[b]!=undefined){c=i[b]}if(b>=65&&b<=90){if(!_kb.isCapsLock){c=c.toLowerCase()}}}return c}};

