(function($){$.fn.hoverFlow=function(c,d,e,f,g){if($.inArray(c,['mouseover','mouseenter','mouseout','mouseleave'])==-1){return this}var h=typeof e==='object'?e:{complete:g||!g&&f||$.isFunction(e)&&e,duration:e,easing:g&&f||f&&!$.isFunction(f)&&f};h.queue=false;var i=h.complete;h.complete=function(){$(this).dequeue();if($.isFunction(i)){i.call(this)}};return this.each(function(){var b=$(this);if(c=='mouseover'||c=='mouseenter'){b.data('jQuery.hoverFlow',true)}else{b.removeData('jQuery.hoverFlow')}b.queue(function(){var a=(c=='mouseover'||c=='mouseenter')?b.data('jQuery.hoverFlow')!==undefined:b.data('jQuery.hoverFlow')===undefined;if(a){b.animate(d,h)}else{b.queue([])}})})}})(jQuery);(function(jQuery){jQuery.fn.ata=function(options){options=jQuery.extend({timer:100},options);return this.each(function(i){var $t=jQuery(this),t=this;t.style.resize='none';t.style.overflow='hidden';var tVal=t.value;t.style.height='0px';t.value="W\nW\nW";var H3=t.scrollHeight;t.value="W\nW\nW\nW";var H4=t.scrollHeight;var H=H4-H3;t.value=tVal;tVal=null;$t.before("<div id=\"ataa_"+i+"\"></div>");var $c=jQuery('#ataa_'+i),c=$c.get(0);c.style.padding='0px';c.style.margin='0px';$t.appendTo($c);$t.bind('focus',function(){t.startUpdating()}).bind('blur',function(){t.stopUpdating()});this.heightUpdate=function(){if(tVal!=t.value){tVal=t.value;t.style.height='0px';var tH=t.scrollHeight+H;t.style.height=tH+'px';c.style.height='auto';c.style.height=c.offsetHeight+'px';}}
this.startUpdating=function(){t.interval=window.setInterval(function(){t.heightUpdate()},options.timer);}
this.stopUpdating=function(){clearInterval(t.interval);}
jQuery(function(){t.heightUpdate()});});};})(jQuery);(function(jQuery){jQuery.each(['backgroundColor','borderBottomColor','borderLeftColor','borderRightColor','borderTopColor','color','outlineColor'],function(i,attr){jQuery.fx.step[attr]=function(fx){if(fx.state==0){fx.start=getColor(fx.elem,attr);fx.end=getRGB(fx.end);}
fx.elem.style[attr]="rgb("+[Math.max(Math.min(parseInt((fx.pos*(fx.end[0]-fx.start[0]))+fx.start[0]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[1]-fx.start[1]))+fx.start[1]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[2]-fx.start[2]))+fx.start[2]),255),0)].join(",")+")";}});})
(jQuery);jQuery.fn.reload=function(){setTimeout("document.location.reload()",200);};function login(){$("#dark").fadeTo(350,0.85,function(){$("#dark").css({display:"block"});$("#dark").click(function(){closeLogin();})
$("#login_box").css({display:"block"});$("#login_box").animate({top:"53%",height:"195px"},350).animate({top:"50%",height:"200px"},"fast");});return false;}
function closeLogin(){$("#login_box").animate({top:"53%",height:"195px"},200).animate({top:"-50%"},"fast",'swing',function(){$("#dark").fadeTo(150,0,function(){$("#dark").unbind("click");$("#login_box").css({display:"none"});$("#dark").css({display:"none"});});});return false;}