function SendMail(email)
{
	location.href = "mailto:" + email.replace("[at]", "@") + "?Subject=MatchPoint Project";
}


$(function() {
	
	var fancyboxSettings = {		
		showCloseButton: true,
		speedIn		:	600, 
		speedOut		:	200, 
		overlayShow	:	true,
		overlayOpacity: 0.6,
		overlayColor:   "#000",
		titleShow:      true,
		titlePosition: "inside",
		enableEscapeButton: true,		
		showNavArrows: true
	};	

	$("a.lightbox").fancybox(settings2);
 
	var settings2 = fancyboxSettings;
	settings2.width = 640;
	settings2.height = 505;
	settings2.type = "swf";
         settings2.swf = {allowfullscreen: true, autoPlay: true}; // <-- flashvars here 
	
	$("a.screencast").fancybox(settings2);

	

	/*$(".content img").each(function() {
			var $n = $(this);
			var w = $n.attr("width");
			if (w && parseInt(w) > 380)
			{
				$n.removeAttr("height");
				$n.attr("width", 380);	
			}
		});*/

	/*$("td.tab").click(function(e) {
		
			$("td.selectedTab").removeClass("selectedTab");
			$(this).addClass("selectedTab");
			
			var tabId = $(this).attr("TabId");

			$("div.tabSheet").hide();
			$("div.tabSheet[TabId=" + tabId + "]").show();

		});*/

	//ChiliBook.automatic = false; 
	ChiliBook.recipeFolder = "/scripts/chili/";
		
	$("pre").each(function() { $(this).addClass($(this).text().indexOf("<") == 0 ? "html" : "csharp");}).chili(); 


	oldSolutionTitle = $("#solutionCaption").html();

	$("td.iconCell img").mouseover(function(e) {			
			$(this).attr("width", "55");
			$(this).fadeTo(300, 1);
			$("#solutionCaption").html($(this).attr("title"));
		})

		.mouseout(function(e) {
			$(this).attr("width", "45");
			$(this).fadeTo(300, 0.5);
			$("#solutionCaption").html(oldSolutionTitle);
		});
		
		
	
	/*$(".box1").mouseenter(function(e) {			
			$(this).find(".icon").animate({width:55}, 200);
		})

		.mouseleave(function(e) {			
			$(this).find(".icon").animate({width:40}, 200);							
		});
		*/


 });




