(function($){
$.fn.equalizeCols=function(_2){
var _3=0,_4=$.browser.msie?"1%":"auto";
return this.css("height",_4).each(function(){
_3=Math.max(_3,(this.offsetHeight+_2[this.id]));
}).css("height",_3).each(function(){
var h=this.offsetHeight+_2[this.id];
if(h>_3){
$(this).css("height",_3-(h-_3));
}
});
};
})(jQuery);
(function($){
var _7=$.scrollTo=function(_8,_9,_a){
$(window).scrollTo(_8,_9,_a);
};
_7.defaults={axis:"xy",duration:parseFloat($.fn.jquery)>=1.3?0:1};
_7.window=function(_b){
return $(window)._scrollable();
};
$.fn._scrollable=function(){
return this.map(function(){
var _c=this,_d=!_c.nodeName||$.inArray(_c.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;
if(!_d){
return _c;
}
var _e=(_c.contentWindow||_c).document||_c.ownerDocument||_c;
return $.browser.safari||_e.compatMode=="BackCompat"?_e.body:_e.documentElement;
});
};
$.fn.scrollTo=function(_f,_10,_11){
if(typeof _10=="object"){
_11=_10;
_10=0;
}
if(typeof _11=="function"){
_11={onAfter:_11};
}
if(_f=="max"){
_f=9000000000;
}
_11=$.extend({},_7.defaults,_11);
_10=_10||_11.speed||_11.duration;
_11.queue=_11.queue&&_11.axis.length>1;
if(_11.queue){
_10/=2;
}
_11.offset=both(_11.offset);
_11.over=both(_11.over);
return this._scrollable().each(function(){
var _12=this,_13=$(_12),_14=_f,_15,_16={},win=_13.is("html,body");
switch(typeof _14){
case "number":
case "string":
if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(_14)){
_14=both(_14);
break;
}
_14=$(_14,this);
case "object":
if(_14.is||_14.style){
_15=(_14=$(_14)).offset();
}
}
$.each(_11.axis.split(""),function(i,_19){
var Pos=_19=="x"?"Left":"Top",pos=Pos.toLowerCase(),key="scroll"+Pos,old=_12[key],max=_7.max(_12,_19);
if(_15){
_16[key]=_15[pos]+(win?0:old-_13.offset()[pos]);
if(_11.margin){
_16[key]-=parseInt(_14.css("margin"+Pos))||0;
_16[key]-=parseInt(_14.css("border"+Pos+"Width"))||0;
}
_16[key]+=_11.offset[pos]||0;
if(_11.over[pos]){
_16[key]+=_14[_19=="x"?"width":"height"]()*_11.over[pos];
}
}else{
var val=_14[pos];
_16[key]=val.slice&&val.slice(-1)=="%"?parseFloat(val)/100*max:val;
}
if(/^\d+$/.test(_16[key])){
_16[key]=_16[key]<=0?0:Math.min(_16[key],max);
}
if(!i&&_11.queue){
if(old!=_16[key]){
animate(_11.onAfterFirst);
}
delete _16[key];
}
});
animate(_11.onAfter);
function animate(_20){
_13.animate(_16,_10,_11.easing,_20&&function(){
_20.call(this,_f,_11);
});
}
}).end();
};
_7.max=function(_21,_22){
var Dim=_22=="x"?"Width":"Height",_24="scroll"+Dim;
if(!$(_21).is("html,body")){
return _21[_24]-$(_21)[Dim.toLowerCase()]();
}
var _25="client"+Dim,_26=_21.ownerDocument.documentElement,_27=_21.ownerDocument.body;
return Math.max(_26[_24],_27[_24])-Math.min(_26[_25],_27[_25]);
};
function both(val){
return typeof val=="object"?val:{top:val,left:val};
}
})(jQuery);
jQuery.fn.extend({haccordion:function(_29){
var jQ=jQuery;
var _29=jQ.extend({speed:350,headerclass:"header",contentclass:"content",contentwidth:250,openone:0},_29);
return this.each(function(_2b){
jQ("."+_29.headerclass,this).each(function(_2c){
if(_2c==_29.openone){
var p=jQ(this).parent()[0];
p.opened=this;
jQ(this).next("div."+_29.contentclass).animate({width:_29.contentwidth+"px"},_29.speed);
}
}).click(function(){
var p=jQ(this).parent()[0];
if(p.opened==this){
return;
}
if(p.opened!="undefined"){
jQ(p.opened).next("div."+_29.contentclass).animate({width:"0px"},_29.speed);
}
p.opened=this;
jQ(this).next("div."+_29.contentclass).animate({width:_29.contentwidth+"px"},_29.speed);
});
});
}});
var pod_fix_list=[];
var small_pod_fix_list=[];
var mini_pod_fix_list=[];
function pod_start(){
jQuery(".pod-plain").removeClass("pod-plain").wrap("<div class='pod'></div>").each(function(){
jQuery(this).parent().addClass(jQuery(this).attr("class"));
}).attr("class","pod-content").before("<div class=\"pod-ul\"></div><div class=\"pod-ur\"></div>"+"<div class=\"pod-left\"></div><div class=\"pod-right\"></div>"+"<div class=\"pod-ll\"></div><div class=\"pod-lr\"></div>");
jQuery(".pod-left,.pod-right").each(function(){
pod_fix_list[pod_fix_list.length]=jQuery(this);
});
pod_fix();
}
function pod_fix(){
jQuery.each(pod_fix_list,function(i){
var c=pod_fix_list[i];
var h=Math.max(jQuery(c).parent().height()-jQuery(c).siblings(".pod-ul").height()-jQuery(c).siblings(".pod-ur").height(),0)+15;
jQuery(c).height(h+"px");
});
}
function small_pod_start(){
jQuery(".pod-small-plain").removeClass("pod-small-plain").wrap("<div class='pod-small'></div>").each(function(){
jQuery(this).parent().addClass(jQuery(this).attr("class"));
}).attr("class","pod-small-content").before("<div class=\"pod-small-ul\"></div><div class=\"pod-small-ur\"></div>"+"<div class=\"pod-small-left\"></div><div class=\"pod-small-right\"></div>"+"<div class=\"pod-small-ll\"></div><div class=\"pod-small-lr\"></div>");
jQuery(".pod-small-left,.pod-small-right").each(function(){
small_pod_fix_list[small_pod_fix_list.length]=jQuery(this);
});
small_pod_fix();
}
function small_pod_fix(){
jQuery.each(small_pod_fix_list,function(i){
var c=small_pod_fix_list[i];
var h=Math.max(jQuery(c).parent().height()-jQuery(c).siblings(".pod-small-ul").height()-jQuery(c).siblings(".pod-small-ur").height(),0)+15;
jQuery(c).height(h+"px");
});
}
function mini_pod_start(){
jQuery(".pod-mini-plain").removeClass("pod-mini-plain").wrap("<div class='pod-mini'></div>").each(function(){
jQuery(this).parent().addClass(jQuery(this).attr("class"));
}).attr("class","pod-mini-content").before("<div class=\"pod-mini-ul\"></div><div class=\"pod-mini-ur\"></div>"+"<div class=\"pod-mini-left\"></div><div class=\"pod-mini-right\"></div>"+"<div class=\"pod-mini-ll\"></div><div class=\"pod-mini-lr\"></div>");
jQuery(".pod-mini-left,.pod-mini-right").each(function(){
mini_pod_fix_list[mini_pod_fix_list.length]=jQuery(this);
});
mini_pod_fix();
}
function mini_pod_fix(){
jQuery.each(mini_pod_fix_list,function(i){
var c=mini_pod_fix_list[i];
var h=Math.max(jQuery(c).parent().height()-jQuery(c).siblings(".pod-mini-ul").height()-jQuery(c).siblings(".pod-mini-ur").height(),0)+15;
jQuery(c).height(h+"px");
});
}
function initialize_pods(){
pod_start();
small_pod_start();
mini_pod_start();
}
function update_pods(){
pod_fix();
small_pod_fix();
mini_pod_fix();
}
jQuery(window).resize(function(){
update_pods();
});
jQuery.notifyBar = function(settings) {
  
  (function($) {
    
    var bar = notifyBarNS = {};
    notifyBarNS.shown = false;
     
    if( !settings) {
    settings = {};
    }
    // HTML inside bar
    notifyBarNS.html = settings.html || "Your message here";
     
    //How long bar will be delayed, doesn't count animation time.
    notifyBarNS.delay = settings.delay || 2000;
     
    //How long notifyBarNS bar will be slided up and down
    notifyBarNS.animationSpeed = settings.animationSpeed || 200;
     
    //Use own jquery object usually DIV, or use default
    notifyBarNS.jqObject = settings.jqObject;
     
    //Set up own class
    notifyBarNS.cls = settings.cls || "";
    
    //close button
    notifyBarNS.close = settings.close || false;
    
    if( notifyBarNS.jqObject) {
      bar = notifyBarNS.jqObject;
      notifyBarNS.html = bar.html();
    } else {
      bar = jQuery("<div></div>")
      .addClass("jquery-notify-bar")
      .addClass(notifyBarNS.cls)
      .attr("id", "__notifyBar");
    }
         
    bar.html(notifyBarNS.html).hide();
    var id = bar.attr("id");
    switch (notifyBarNS.animationSpeed) {
      case "slow":
      asTime = 600;
      break;
      case "normal":
      asTime = 400;
      break;
      case "fast":
      asTime = 200;
      break;
      default:
      asTime = notifyBarNS.animationSpeed;
    }
    if( bar != 'object'); {
      jQuery("body").prepend(bar);
    }
    
    // Style close button in CSS file
    if( notifyBarNS.close) {
      bar.append(jQuery("<a href='#' class='notify-bar-close'>Close [X]</a>"));
      jQuery(".notify-bar-close").click(function() {
        if( bar.attr("id") == "__notifyBar") {
          jQuery("#" + id).slideUp(asTime, function() { jQuery("#" + id).remove() });
        } else {
          jQuery("#" + id).slideUp(asTime);
        }
        return false;
      });
    }
    
    bar.slideDown(asTime);
     
    // If taken from DOM dot not remove just hide
    if( bar.attr("id") == "__notifyBar") {
      setTimeout("jQuery('#" + id + "').slideUp(" + asTime +", function() {jQuery('#" + id + "').remove()});", notifyBarNS.delay + asTime);
    } else {
      setTimeout("jQuery('#" + id + "').slideUp(" + asTime +", function() {jQuery('#" + id + "')});", notifyBarNS.delay + asTime);
    }

})(jQuery) };
