// JavaScript Document
//fader
$(document).ready(function(){
   //$("a[rel^='lightbox']").append('<img src="/_sysimg/zoom.png" style="position:relative; top:5px; left:5px;">');
   //$("a[rel^='lightbox']").addClass('lb');
   $(".imagegroup .first, .social img, .rightcol a img, .thumb").fadeTo("400", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
   $(".imagegroup .first, .social img, .rightcol a img, .thumb").hover(function(){
   $(this).fadeTo("400", 0.6); // This should set the opacity to 100% on hover
   },function(){
   $(this).fadeTo("400",1.0); // This should set the opacity back to 30% on mouseout
        });
      
   $(".cat").fadeTo("400", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
   $(".cat").hover(function(){
   $(this).fadeTo("400", 0.6); // This should set the opacity to 100% on hover
   },function(){
   $(this).fadeTo("400",1.0); // This should set the opacity back to 30% on mouseout
        });
   /*
   $(".cat").hover(function(){
        $(this).find('a').animate({marginTop: '-=174'}, 600);
   },function(){
       $(this).find('a').animate({marginTop: '+=174'}, 600);
        //$(this).fadeTo("400",1.0); // This should set the opacity back to 30% on mouseout
   });
   */
   	$("#slider").easySlider({
		auto: true,
		continuous: true,
		vertical: false,
		pause: 3000,
		speed: 2500,
		prevText: '',
		nextText: '',
		controlsFade: true

	});
});
Cufon.replace('h1, h2');
