 $(document).ready(function(){
   $("img.dropshadow").wrap("<div class='wrap1'><div class='wrap2'>" +
     "<div class='wrap3'></div></div></div>");
   $("ul li:first-child").addClass("first");
   $("ul li:last-child").addClass("last");
   $(".slidetabs li:nth-child(3n)").addClass("no-margin");
   $("a[href^=http], a[href*=.pdf], a[href*=.doc]").attr("target", "_blank");
   $(".stripe tr:even").addClass("alt");
   $(".stripe tr").mouseover(function() {
		$(this).addClass("over"); }).mouseout(function() {
			$(this).removeClass("over"); });
 });
 
// Opens a "pop up Window" to a specific size.
jQuery('a.popup').live('click', function(){
	newwindow=window.open($(this).attr('href'),'','height=600,width=600');
	if (window.focus) {newwindow.focus()}
	return false;
});


$(document).ready(function(){
	$(".slidetabs img").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
	$(".slidetabs img").hover(function(){
	$(this).fadeTo("medium", 0.3); // This should set the opacity to 100% on hover
		},function(){
			$(this).fadeTo("medium", 1.0); // This should set the opacity back to 30% on mouseout
		});
});
	


