(function($){$.extend($.fn,{swpClass:function(s1,s2){var s1Elements=this.filter("."+s1);this.filter("."+s2).removeClass(s2).addClass(s1);s1Elements.removeClass(s1).addClass(s2);return this},replaceClass:function(s1,s2){if(s2){return this.filter("."+s1).removeClass(s1).addClass(s2).end()}return this.filter("."+s1).removeClass(s1).end()},chkClass:function(s1,inv){if(this.filter("."+s1).length){if(inv){this.removeClass(s1)}}else{if(!inv){this.addClass(s1)}}return this},hoverClass:function(className){className=className||"hover";return this.hover(function(){$(this).addClass(className)},function(){$(this).removeClass(className)})},groupClass:function(from,to,remove){for(var i=0;i<from.length;i++){if(!remove){$(from[i],this).addClass(to[i])}else{$(from[i],this).removeClass(to[i])}}},f_click:function(funk,data){data=data||null;return this.unbind("click").bind("click",data,function(e){eval(funk)})},f_dblclick:function(funk,data){data=data||null;return this.unbind("dblclick").bind("dblclick",data,function(e){eval(funk)})},getposition:function(){var f_list=this.offset();return{left:f_list.left,top:f_list.top,width:this.width(),height:this.height()}},option_anime:function(t1,c1,f1,p1,t2,c2,f2,p2){return this.css({color:c1}).html(t1).animate({fontSize:f1+"px"},p1,function(){$(this).css({color:c2})}).animate({fontSize:f2+"px"},p2,function(){$(this).html(t2).focus()})},select_anime:function(c1,bg1,f1,p1,c2,bg2){return this.css({color:c1,background:bg1}).animate({fontSize:f1+"px"},p1,function(){$(this).css({color:c2,background:bg2})})},input_anime:function(t1,c1,bg1,f1,w1,p1,t2,c2,bg2,f2,w2,p2){return this.css({color:c1,background:bg1}).val(t1).animate({fontSize:f1+"px",width:w1},p1,function(){$(this).css({color:c2,background:bg2})}).animate({fontSize:f2+"px",width:w2},p2,function(){$(this).val((t2?t2:""))})},check_value:function(){return(this.val())},checkInput_and_anime:function(a1,a2){if(!$(this).check_value()){$(this).input_anime(a1[0],a1[1],a1[2],a1[3],a1[4],a1[5],a2[0],a2[1],a2[2],a2[3],a2[4],a2[5]);return false}return true},checkSelect_and_anime:function(a1,a2,t){if($(this).val()==t){$(this).select_anime(a1[0],a1[1],a1[2],a1[3],a2[0],a2[1]);return false}return true},email_validate:function(){var reg=/^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;return reg.test(this.val())}})})(jQuery);(function(c){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var d=function(f){f=f.replace(/\x0d\x0a/g,"\x0a");var e="";for(var h=0;h<f.length;h++){var g=f.charCodeAt(h);if(g<128){e+=String.fromCharCode(g)}else{if((g>127)&&(g<2048)){e+=String.fromCharCode((g>>6)|192);e+=String.fromCharCode((g&63)|128)}else{e+=String.fromCharCode((g>>12)|224);e+=String.fromCharCode(((g>>6)&63)|128);e+=String.fromCharCode((g&63)|128)}}}return e};var a=function(f){var e="";var g=0;var h=c1=c2=0;while(g<f.length){h=f.charCodeAt(g);if(h<128){e+=String.fromCharCode(h);g++}else{if((h>191)&&(h<224)){c2=f.charCodeAt(g+1);e+=String.fromCharCode(((h&31)<<6)|(c2&63));g+=2}else{c2=f.charCodeAt(g+1);c3=f.charCodeAt(g+2);e+=String.fromCharCode(((h&15)<<12)|((c2&63)<<6)|(c3&63));g+=3}}}return e};c.extend({base64Encode:function(g){var e="";var p,n,l,o,m,k,h;var f=0;g=d(g);while(f<g.length){p=g.charCodeAt(f++);n=g.charCodeAt(f++);l=g.charCodeAt(f++);o=p>>2;m=((p&3)<<4)|(n>>4);k=((n&15)<<2)|(l>>6);h=l&63;if(isNaN(n)){k=h=64}else{if(isNaN(l)){h=64}}e=e+b.charAt(o)+b.charAt(m)+b.charAt(k)+b.charAt(h)}return e},base64Decode:function(g){var e="";var p,n,l;var o,m,k,h;var f=0;g=g.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<g.length){o=b.indexOf(g.charAt(f++));m=b.indexOf(g.charAt(f++));k=b.indexOf(g.charAt(f++));h=b.indexOf(g.charAt(f++));p=(o<<2)|(m>>4);n=((m&15)<<4)|(k>>2);l=((k&3)<<6)|h;e=e+String.fromCharCode(p);if(k!=64){e=e+String.fromCharCode(n)}if(h!=64){e=e+String.fromCharCode(l)}}e=a(e);return e},doKeyPressNumbers:function(k,g,e){var n,m,l;if(window.event){n=k.keyCode}else{if(k.which){n=k.which}}m=String.fromCharCode(n);if((n==null)||(n==0)||(n==8)||(n==9)||(n==13)||(n==27)){return true}l=/\d/;var f=(g?l.test(m):!l.test(m));if(!e||!f){return f}for(var h=0;h<e.length;h++){if(m==e[h]){return true}}return false},numbersonly:function(l,g,k){
/* copyright 1999 Idocs, Inc. http://www.idocs.com
             Distribute this script freely but keep this notice in place
            onKeyPress="return numbersonly(this, event)"*/
var f,h="";if(window.event){f=window.event.keyCode}else{if(g){f=g.which}else{return true}}h=String.fromCharCode(f);if((f==null)||(f==0)||(f==8)||(f==9)||(f==13)||(f==27)){return true}else{if((("0123456789").indexOf(h)>-1)){return true}else{if(k&&(h==".")){l.form.elements[k].focus();return false}else{return false}}}},getPageSize:function(){
/*
            / THIRD FUNCTION
            * getPageSize() by quirksmode.com
            *
            * @return Array Return an array with page width, height and window width, height
            */
var g,e;if(window.innerHeight&&window.scrollMaxY){g=window.innerWidth+window.scrollMaxX;e=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){g=document.body.scrollWidth;e=document.body.scrollHeight}else{g=document.body.offsetWidth;e=document.body.offsetHeight}}var f,h;if(self.innerHeight){if(document.documentElement.clientWidth){f=document.documentElement.clientWidth}else{f=self.innerWidth}h=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){f=document.documentElement.clientWidth;h=document.documentElement.clientHeight}else{if(document.body){f=document.body.clientWidth;h=document.body.clientHeight}}}if(e<h){pageHeight=h}else{pageHeight=e}if(g<f){pageWidth=g}else{pageWidth=f}arrayPageSize=new Array(pageWidth,pageHeight,f,h);return arrayPageSize},getPageScroll:function(){
/*
            / THIRD FUNCTION
            * getPageScroll() by quirksmode.com
            *
            * @return Array Return an array with x,y page scroll values.
            */
var f,e;if(self.pageYOffset){e=self.pageYOffset;f=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){e=document.documentElement.scrollTop;f=document.documentElement.scrollLeft}else{if(document.body){e=document.body.scrollTop;f=document.body.scrollLeft}}}arrayPageScroll=new Array(f,e);return arrayPageScroll},setDIV:function(n){var m=(n.id?'id="'+n.id+'"':"");var e=(n.c?n.c:(n.clasa?n.clasa:""));var g=(e?'class="'+e+'"':"");e=(n.s?n.s:(n.styl?n.styl:""));var k=(e?'style="'+e+'"':"");e=(n.h?n.h:(n.href?n.href:""));var f=(e?'href="'+e+'"':"");e=(n.t?n.t:(n.title?n.title:""));var l=(e?'title="'+e+'"':"");var h=(n.html?n.html:"");return"<div "+m+" "+g+" "+k+" "+l+" >"+h+"</div>"},number_format:function(h,e,g,k){var l;var f="";if(typeof(e)=="undefined"){e=2}if(typeof(g)=="undefined"){g=""}if(typeof(k)=="undefined"){k=""}_int=parseInt(h);_float=parseInt((parseFloat(h)-_int)*Math.pow(10,e));l=_int+"";j=l.length;if((i=j%3)!=0){f+=l.substring(0,i)}while(i<j){f+=g+""+l.substring(i,i+3);i+=3}if(_float>0){f+=k+""+_float}return(f)}})})(jQuery);
/*
* author Remy Sharp
* url http://remysharp.com/tag/marquee
*/
(function(a){a.fn.marquee=function(b){var e=[],d=this.length;function c(o,m,n){var l=n.behavior,h=n.width,g=n.dir;var k=0;if(l=="alternate"){k=o==1?m[n.widthAxis]-(h*2):h}else{if(l=="slide"){if(o==-1){k=g==-1?m[n.widthAxis]:h}else{k=g==-1?m[n.widthAxis]-(h*2):0}}else{k=o==-1?m[n.widthAxis]:0}}return k}function f(){var h=e.length,k=null,n=null,m={},l=[],g=false;while(h--){k=e[h];n=a(k);m=n.data("marqueeState");if(n.data("paused")!==true){k[m.axis]+=(m.scrollamount*m.dir);g=m.dir==-1?k[m.axis]<=c(m.dir*-1,k,m):k[m.axis]>=c(m.dir*-1,k,m);if((m.behavior=="scroll"&&m.last==k[m.axis])||(m.behavior=="alternate"&&g&&m.last!=-1)||(m.behavior=="slide"&&g&&m.last!=-1)){if(m.behavior=="alternate"){m.dir*=-1}m.last=-1;n.trigger("stop");m.loops--;if(m.loops===0){if(m.behavior!="slide"){k[m.axis]=c(m.dir,k,m)}else{k[m.axis]=c(m.dir*-1,k,m)}n.trigger("end")}else{l.push(k);n.trigger("start");k[m.axis]=c(m.dir,k,m)}}else{l.push(k)}m.last=k[m.axis];n.data("marqueeState",m)}else{l.push(k)}}e=l;if(e.length){setTimeout(f,m.speed-(browser.firefox?35:0))}}this.each(function(l){var p=a(this),h=p.attr("width")||p.width(),q=p.attr("height")||p.height(),g=p.attr("id")||"marquee_id",r=p.after("<div "+(b?'class="'+b+'" ':"")+'style="display: block-inline; width: '+h+"px; height: "+q+'px; overflow: hidden;"><div id="'+g+'" style="float: left; white-space: nowrap;">'+p.html()+"</div></div>").next(),o=r.get(0),m=0,n=(p.attr("direction")||"left").toLowerCase(),k={dir:/down|right/.test(n)?-1:1,axis:/left|right/.test(n)?"scrollLeft":"scrollTop",widthAxis:/left|right/.test(n)?"scrollWidth":"scrollHeight",last:-1,loops:p.attr("loop")||-1,scrollamount:p.attr("scrollamount")||this.scrollAmount||2,behavior:(p.attr("behavior")||"scroll").toLowerCase(),width:/left|right/.test(n)?h:q,speed:(p.attr("speed")?parseInt(p.attr("speed")):75)};if(p.attr("loop")==-1&&k.behavior=="slide"){k.loops=1}p.remove();if(/left|right/.test(n)){r.find("> div").css("padding","0 "+h+"px")}else{r.find("> div").css("padding",q+"px 0")}r.bind("stop",function(){r.data("paused",true)}).bind("pause",function(){r.data("paused",true)}).bind("start",function(){r.data("paused",false)}).bind("unpause",function(){r.data("paused",false)}).data("marqueeState",k);e.push(o);o[k.axis]=c(k.dir,o,k);r.trigger("start");if(l+1==d){f()}});return a(e)}}(jQuery));
/* Copyright 2011, Ben Lin (http://dreamerslab.com/)
* Licensed under the MIT License (LICENSE.txt).
*
* Version: 1.0.4
*
* Requires: jQuery 1.2.3+
*/
(function(a){a.fn.extend({actual:function(b,m){var c,d,h,g,f,l,e,k;if(!this[b]){throw'$.actual => The jQuery method "'+b+'" you called does not exist'}h=a.extend({absolute:false,clone:false,includeMargin:undefined},m);d=this;if(h.clone===true){e=function(){d=d.filter(":first").clone().css({position:"absolute",top:-1000}).appendTo("body")};k=function(){d.remove()}}else{e=function(){c=d.parents().andSelf().filter(":hidden");g=h.absolute===true?{position:"absolute",visibility:"hidden",display:"block"}:{visibility:"hidden",display:"block"};f=[];c.each(function(){var o={},n;for(n in g){o[n]=this.style[n];this.style[n]=g[n]}f.push(o)})};k=function(){c.each(function(o){var p=f[o],n;for(n in g){this.style[n]=p[n]}})}}e();l=d[b](h.includeMargin);k();return l}})})(jQuery);
/*
*
*	jQuery Timer plugin v0.1
*		Matt Schmidt [http://www.mattptr.net]
*
*	Licensed under the BSD License:
*		http://mattptr.net/license/license.txt
*
*/
jQuery.timer=function(a,b){var a=a||100;if(!b){return false}_timer=function(d,e){this.stop=function(){clearInterval(c.id)};this.internalCallback=function(){e(c)};this.reset=function(f){if(c.id){clearInterval(c.id)}var f=f||100;this.id=setInterval(this.internalCallback,f)};this.interval=d;this.id=setInterval(this.internalCallback,this.interval);var c=this};return new _timer(a,b)};
