function addLoadEvent(func) {	var oldonload = window.onload;	if (typeof window.onload != 'function') {		window.onload = func;	}	else {		window.onload = function() {			oldonload();			func();		}	}}$(document).ready(function(){	$(".sm-h-info a").click(function() {		if( $(this).attr("class") == "email" ) {			return true;		}		else {			//reset			$("div").hide();			$("#content").show();			$(".sm-h-info").show();			$(".sm-h-info .active").removeClass("active");				//act			if( $(this).attr("class") == "showall" ) {				$("div").show();				return false;			}				else {				var typeWork = $(this).attr("class").replace("link","");				$("." + typeWork).show();				$("." + typeWork + " .slidelink").show();				$("." + typeWork + " img").show();				$("." + typeWork + " .text").show();				$("#thumbBox").show();				$("#thumbImage").show();				$("#thumbLoading").show();				$(this).addClass("active");				return false;			}		}	});		$('a.email').nospam({ replaceText: true });});	