// JavaScript Document

//fader
$(document).ready(function(){
    $(".imagegroup .first, .rightcol a img, .thumb, .content a img, .ref").fadeTo("400", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
	$(".imagegroup .first, .rightcol a img, .thumb, .content a img, .ref").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
	});

	//$(".partners img").fadeTo("50", 0.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
	$(".partners img").hover(function(){
	    $(this).fadeTo("50", 1.0); // This should set the opacity to 100% on hover
	},function(){
	    $(this).fadeTo("50",0.0); // This should set the opacity back to 30% on mouseout
	});
	
		$(".social img").fadeTo("100", 0.7); // This sets the opacity of the thumbs to fade down to 30% when the page loads
	$(".social img").hover(function(){
	    $(this).fadeTo("100", 1.0); // This should set the opacity to 100% on hover
	},function(){
	    $(this).fadeTo("100",0.7); // This should set the opacity back to 30% on mouseout
	});

	$("[rel='lightbox[sw]']").wrap('<div class="plus" />');
	$("[rel='lightbox']").wrap('<div class="plus" />');
	$('.plus').append('<div class="sign"><img src="/_sysimg/zoom.png"/></div>');
});
