/*
 * jQuery replaceText - v1.1 - 11/21/2009
 * http://benalman.com/projects/jquery-replacetext-plugin/
 * 
 * Copyright (c) 2009 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($){$.fn.replaceText=function(b,a,c){return this.each(function(){var f=this.firstChild,g,e,d=[];if(f){do{if(f.nodeType===3){g=f.nodeValue;e=g.replace(b,a);if(e!==g){if(!c&&/</.test(e)){$(f).before(e);d.push(f)}else{f.nodeValue=e}}}}while(f=f.nextSibling)}d.length&&$(d).remove()})}})(jQuery);

/* Require jquery.effects.core.min.js from jQuery UI */

$(document).ready(function() {

	
	
	// Trigger the HOVER on MainMenu's Catalog link
	$("#mainMenu .catalogue .subtree").hover(function() {
		$('#mainMenu .catalogue').addClass('hover');
	},function(){
		$('#mainMenu .catalogue').removeClass('hover', 2000);
	});

	//sidebarTabs animation
	$('#sidebarTabs').addClass('hidingTabContents', 1000);
	$("#sidebarTabs").hover(function() {
		$(this).animate({top: "-132px"},{ queue: false, duration:250});
	},function(){
		$(this).stop().animate({top: "-54px"},{duration:250});
	});
	$("#sidebarTabs a.control").click(function() {
		$('#sidebarTabs').toggleClass('hidingTabContents', 250);
		return false;
	});
	// Switch from tab to tab
	$("#newsletterAnchor a").click(function() {
		$('#sidebarTabs').addClass('showNewsletterContent');
		$('#sidebarTabs').removeClass('hidingTabContents');
		$('#recherche-search.tabContent').addClass('hidden');
		$('#infolettre-newsletter.tabContent').removeClass('hidden');
		return false;
	});
	$("#searchAnchor a").click(function() {
		$('#sidebarTabs').removeClass('showNewsletterContent');
		$('#recherche-search.tabContent').removeClass('hidden');
		$('#infolettre-newsletter.tabContent').addClass('hidden');
		return false;
	});
	$("p.wysiwyg").replaceText( '[...]', "[<span style='color:#fff;'>...</span>]" );
});


$(document).ready(function(){
	var flashvars = {};
	var params = {
	menu:"false",
	wmode:"transparent"
	};
	var attributes = {};
	swfobject.embedSWF("http://www.lutek.ca/2010/wp-content/themes/acte1Lutek2010/swf/banner.swf", "flashbanner", "956", "323", "9.0.0", "expressInstall.swf", flashvars, params, attributes);  
});

$(document).ready(function(){
	var flashvars = {};
	var params = {
	menu:"false",
	wmode:"transparent"
	};
	var attributes = {};
	swfobject.embedSWF("http://www.lutek.ca/2010/wp-content/themes/acte1Lutek2010/swf/banner.swf", "flashbannerContent", "956", "141", "9.0.0", "expressInstall.swf", flashvars, params, attributes);  
});
