Cufon.replace('h2 b', { fontFamily: 'MagistralC' });

//swfobject
	var flashvars = {};
	var params = {
		wmode: "transparent"
		};
	var attributes = {};
	
    swfobject.embedSWF("css/banner.swf", "flash", "436", "141", "8.0.0", "expressInstall.swf", flashvars, params, attributes);
//**********

$(document).ready(function(){

//TOP Menu Accordion

     $("a.top_l").hover(function() { //When trigger is clicked...  
   
         //Following events are applied to the subnav itself (moving subnav up and down)  
         $(this).parent().find("div.h_podmenu").slideDown('fast').show(); //Drop down the subnav on click  
		 $(this).addClass("active");
         $(this).parent().hover(function() {  
         }, function(){  
             $('a.top_l').removeClass("active");
			 $(this).parent().find("div.h_podmenu").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up  
		 });  
   
         //Following events are applied to the trigger (Hover events for the trigger)  
         }
);


 $("a.cat_aa").hover(function() {
		$(this).next("div").animate({opacity: "show", bottom: "87"}, "fast");
    }, function() {
		$(this).next("div").animate({opacity: "hide",bottom: "70"}, "fast");
    });
	
//Fancy	
	$("a.fancybox").fancybox({
	'titlePosition'	: 'over',
	'transitionOut' : 'elastic',
	'transitionIn' : 'elastic'
});
	$("a[rel=gal]").fancybox({
	'titlePosition'	: 'over'
});

//LEFT menu

	$(".td_cat_menu a.active").next('div').show();
	t=1000;
	var t;
	$('a.l_menu').mouseover(function(){
		t=clearTimeout(t);
		if (!$(this).next('div:visible').get(0)) {
			$curDiv = $(this).next('div');
			$curA = $(this);
			t=setTimeout(function(){
			//$('ul.sub_left_menu').next('div').hide(500);
			$curA.siblings('a').removeClass("active");
			$curA.addClass("active");
			$curDiv.siblings('div:visible').slideUp(200);
			$curDiv.slideDown(200);
		},200);
		}
	});
$('.td_cat_menu a.active').mouseout(function(){
		t=clearTimeout(t);
	}); 

//$("input, textarea, select, button").uniform();
	
});

//Nifty
window.onload=function(){
	//Nifty("a.l_menu","transparent");
}

