Cufon.replace('.content h2,#subnav h3');
Cufon.replace('#sidenav a,#nav a', { hover: { color: 'white' } })
$(document).ready(function(){
	$("#navigation .sf-menu li li:last-child a").css({border:"0"});

	$('ul.sf-menu').superfish({ 
		delay:       100,                            // 100 ms delay on mouseout 
		animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
		speed:       'fast',                          // faster animation speed 
		autoArrows:  false,                           // disable generation of arrow mark-up 
		dropShadows: false                            // disable drop shadows 
	});
	if($("#featportfolio").length>0){
		$("#featportfolio li a" ).each(
		function( intIndex ){
			$( this ).bind (
			"mouseenter",
			function(){
				/*if ($('#tab'+intIndex).is (':hidden')){
					$("#tab"+tab_current).hide();
					$("#tab"+intIndex).show();
					tab_current=intIndex;
				}*/
				$('#pic_name').html($(this).find('img').attr('title'));
				$('#pic_loc').html($(this).find('img').attr('alt'));
				return false;
			});
			$( this ).bind (
			"mouseleave",
			function(){
				$('#pic_name').html("");
				$('#pic_loc').html("");
				return false;
			});
		});
	}
	if($("#flashcontent").length>0){
		var flashvars = {
			wmode: "transparent",
			menu: "false",
			dataPath: "accordion/accordion_asset/data.xml"
		};
		var params = {};
		params.menu = "false";
		params.dataPath = "accordion/accordion_asset/data.xml";
		params.wmode = "transparent";
		swfobject.embedSWF("accordion/accordion.swf", "flashcontent", "580", "300", "9.0.0", "accordion/expressInstall.swf", flashvars,params); 
	}
});
