$(document).ready(function(){
			
			$("a#fancybox").fancybox();
			
			  $(".gallery a").fancybox({
				"titleShow"	: true,
				"titlePosition"	: "over",
				"transitionIn"	: "elastic",
				"transitionOut"	: "elastic"
    			});
			
			// Slider for switching between pages
    $("#coda-slider-5").codaSlider({dynamicArrows:false, dynamicTabs:false});

    // To avoid conflict with coda slider when clicking menu links
    $("#plibrico").removeAttr("id");
    $("#super").removeAttr("id");
    $("#richo").removeAttr("id");
    $("#fire").removeAttr("id");
	$("#calcium").removeAttr("id");
    $("#blanket").removeAttr("id");
    $("#slab").removeAttr("id");
    $("#pipe").removeAttr("id");
	$("#blanket2").removeAttr("id");
    $("#board").removeAttr("id");
    $("#bulk").removeAttr("id");
	
	$(".gallery li").quickpaginate({ perpage: 12, pager : $(".pagination") });
	
	
});

var flashvars = {};
		flashvars.xml = "config.xml";
		flashvars.font = "font.swf";
		var attributes = {};
		attributes.wmode = "transparent";
		attributes.id = "slider";
		swfobject.embedSWF("cu3er.swf", "cu3er-container", "960", "262", "9", "expressInstall.swf", flashvars, attributes);
		

// Cufon Replacements
Cufon.replace(' h1, h2, h3, h4, h5, .featured-top, .pack .button, .pack-last .button, .textbutton, .applyfont, ul.css-tabs a', { hover: true, fontFamily: 'Museo' });
Cufon.replace('.leftcolumn-inner-home h3, .rightcolumn-inner h3, #main-wide h3 ,#main h3, .header-alt h4, .header-alt-sec h4, .header-inner h1, .subtitle h3', { hover: true, textShadow: '1px 1px 0 #444444', fontFamily: 'Museo' });
Cufon.replace('.btn-small, .btn-medium, .btn-big, .btn-big-light, .form-button, .accordion h2, .text-replace, .big-home-button', { hover: true, textShadow: '1px 1px 0 #ffffff', fontFamily: 'Museo' });
Cufon.replace('.coda-nav', { hover: true, textShadow: '1px 1px 0 #cb6a20', fontFamily: 'hicfont' });
Cufon.replace('.coll3 h4', { hover: true, textShadow: '1px 1px 0 #588b11', fontFamily: 'Geometr415 Md BT' });
Cufon.replace('.jqueryslidemenu', {hover:true, textShadow: '1px 1px 0 #555555', fontFamily: 'Aller Light' });
