
function startRollIn(){
	/*$("#group1").fadeIn("fast");
	$("#trigger1").css({ textDecoration:"underline", color:"black"});*/
	$("#group6all").fadeIn("fast");
}

$(function() {
  $(".projthumb").click(function() {
	$(".projhover").fadeOut("slow");
    //$(this).slideUp("slow");
	for (var m=0;m<this.parentNode.childNodes.length;m++) {
		if(this.parentNode.childNodes[m].className == "projhover"){
			var toShow = this.parentNode.childNodes[m]; //alert(toShow);
		}
	}
	var img = this.childNodes[0].src;
	var img_name = img.split("p_",2);
	var img_mod = img_name[1].replace("_o", "_big");

//	alert(img_mod);
	$("#"+toShow.id).css({ backgroundImage:"url(images/project/p_"+img_mod+")", backgroundColor:"black" });
//     $(this).css({backgroudImage: 'url(ico/ico_shout_o.gif)'}); 	
	$("#"+toShow.id).fadeIn("slow");
  }, function() {
    //$(this).fadeIn();
	//$(this).attr("src", $(this).attr("src").split("-hover.").join("."));
  });
});

$(function() {
  $(".hoverclose").click(function() {
    var toHide = this.parentNode.parentNode; //alert(toShow);
	$("#"+toHide.id).fadeOut("slow");
  }, function() {
    //$(this).fadeIn();
	//$(this).attr("src", $(this).attr("src").split("-hover.").join("."));
  });
});

$(function() {
  $(".projgrouptrigger").click(function() {
    $(".projgrouptrigger").css({ textDecoration:"none", color:"#666"});
	var which = this.id.charAt(7); //alert(toShow);
	//alert("test");
	$(".projgroup").hide();
	var underline = $(this).css("textDecoration");
	if(underline!="underline") {
		$(this).css({ textDecoration:"underline", color:"black"});
	}
	$("#group"+which).fadeIn("slow");
  }, function() {
    //$(this).attr("src", $(this).attr("src").split("-hover.").join("."));
  });
});

$(document).ready(function() {
	startRollIn();
});
