Cufon.replace('#header .brand .Intro h2', { fontFamily: 'sohogothicpro-regular' });
Cufon.replace('#header .brand .Intro p', { fontFamily: 'sohogothicpro-light' });
Cufon.replace('#content .PageTitle h1', { fontFamily: 'sohogothicpro-medium' });
Cufon.replace('#rightbar .Newsfeed h2.title', { fontFamily: 'sohogothicpro-medium' });
Cufon.replace('#rightbar .Partners h2.title a', { fontFamily: 'sohogothicpro-medium' });
Cufon.replace('#infobar .Copyright strong', { fontFamily: 'sohogothicpro-medium' });
Cufon.replace('#content .top h1', { fontFamily: 'sohogothicpro-medium' });

function formatTitle(title, currentArray, currentIndex, currentOpts) {
	var popup = title.split('$');
    //return popup[1];
	return '<div id="popup-title">' + (title && title.length ? '<b>' + popup[0] + '</b><br />' : '' ) + (currentIndex + 1) + ' / ' + currentArray.length + '<br /><br />' + popup[1]+ '</div>';
}


$(document).ready (function () {
	
	// hide
	$("a span").hide();
	$("button.img").html('');
	
	//easy slider
	
	$('div#rightbar div.SlideShow').easySlider({
		auto: true,
		continuous: true 
	});
	
	//innerfade
	$('div#header div.SlideShow ul').innerfade({   
        speed: 'slow',
		timeout: 4000,
		type: 'sequence', 
	});  
	
	//fancybox
	$('#catalog ul.pictures a').fancybox({
	    'titlePosition' : 'inside',
		'showNavArrows' : true,
		'titleFormat'	: formatTitle,
		'overlayColor'  : '#000',
		'overlayOpacity': 0.8,
	});
	
	//nav arrow show
	$("#fancybox-wrap span").show();
	
	//dropdown menu
	$("div#menu div.Menu ul ul").hide();
	$("div#menu div.Menu ul li").hover(function () {
		  // mouseover
		 $(this).find('> ul').show();
		 }, function() {
		 // mouseout
		 $(this).find('> ul').hide(); 
	}); 
	
	//active menu
	/*$("div#menu div.Menu").activeMenu({ 
        idSwitch: 'active',  // id used for active state 
        defaultSite: 'https://brill.dev.ruff.hu/',  // site URL 
        defaultIndex: 5  // active item used for default site URL 
    });*/
	
	//$("div#menu div.Menu a:current").addClass('active')

	//active menu
		// highlight tab function
		var path = location.pathname;
		var home = "/";
		$("a[href='" + [path || home] + "']").parents("h2").each(function() {   
				$(this).addClass("active");
});

	
	
});


// Input default content del

function delDefault(e,o){
	if ( o.firstTime ) {
			return
	}
	o.firstTime=true;
	o.value="";
}


