/*******************************************************************************************************
	
	PROJECT HOVER EFFECTS
	
********************************************************************************************************/

function projHover(elem, panel) {
	
	if ($(panel).hasClass('active')) {
		$(panel).removeClass('active');
		$(panel).hide("slide", { direction: "down" }, 500, function() {
			
		});
		return false;
	}
	$(panel).addClass('active').show("slide", { direction: "down" }, 500);
	
	sIFR.replace(cartierBook, {
	  selector: 'h3',
	  css: '.sIFR-root { color: #000000; font-size: 21px; text-transform: uppercase; letter-spacing: 5;} a { color: #000; text-decoration: none; } a:hover { color: #000; }',
	  wmode: 'transparent'
	});
	
}

/*
// prevent double click
		if (newCardContent[0] != currCardContent[0]) {	
			currCardContent.hide("slide", { direction: "down" }, 500, function() {
				currCard.hide("slide", { direction: "left" }, 500);
				newCard.show("slide", { direction: "right" }, 450, function () {
					
					if ($(newCardContent[0]).find(".tdc-active").length > 0) {
						var activeContent = $(newCardContent[0]).find(".tdc-active")[0];
						window.location = activeContent.parentNode.getElementsByTagName("a")[0].href;
					}
					
					sIFR.replace(gothamBold, {
					  selector: 'h1.tdc-sifr ',
					  css: '.sIFR-root { color: #ffffff; letter-spacing: -2; }',
					  wmode: 'transparent',
					  forceSingleLine: false,
					  filters: {
							DropShadow: {
							   distance: 1
							   ,color: '#000000'
							   ,strength: 2
							   ,alpha: .5
							   ,blurX: 0
							   ,blurY: 0
							}
						  }
					 });
					 
					newCardContent.show("slide", { direction: "down" }, 500);
				});
			});*/