Cufon.replace('h1', { fontFamily: 'Museo', textShadow: '#b84802 1px 1px' });
Cufon.replace('h2', { fontFamily: 'Museo' });
Cufon.replace('h3', { fontFamily: 'Museo' });
Cufon.replace('h4', { fontFamily: 'Museo' });
Cufon.replace('#sidebar .nav_bg_top a', { fontFamily: 'Museo', textShadow: '#fff 1px 1px', hover:true });

//Dom load
$(document).ready(function() { 

//Logo
$("#logo").hover(function () {
				$('.home_icon').stop().fadeIn('fast');
}, function () {
			$('.home_icon').stop().fadeOut('fast');
});


//Home try demo
$(".demo_container a").blend({speed:400});
$(".demo_container a").hover(function () {
	$(this).stop().animate({
				marginTop: "8px"
		}, {
				duration: 200
		});
}, function () {
			$(this).stop().animate({
				marginTop: "20px"
		}, {
				duration: 200
		});
});


//newsletter	
$('.newsletter_wrapper #cf_field_1').focus(function(){ 
	if($(this).val() == $(this).attr('defaultValue'))
	{
		$(this).css('color', '#333').val('');
	}
});

$('.newsletter_wrapper #cf_field_1').blur(function(){
	if($(this).val() == '')
	{
		$(this).val($(this).css('color', '#616161').attr('defaultValue'));
	} 
});


//preturi
$(".plans_wrapper dl").each(function() {
	$("dd:first",this).addClass('dd_first');
	$("dd:last",this).addClass('dd_last');
	$("dd:even",this).addClass('dd_bg');
});



//Parteneri

$(".sponsorListHolder li").hover(function () {
		$(this).addClass("hover");
		$('.sponsorListHolder li').not('.sponsorListHolder li.hover').stop().animate({
				opacity: 0.3
		}, {
				duration: 100
		});
}, function () {
		$(this).removeClass("hover")
		$('.sponsorListHolder li').stop().animate({
				opacity: 1
		}, {
				duration: 100
		});
});


$('.sponsorFlip').bind("click",function(){
	var elem = $(this);
	
	if(elem.data('flipped'))
	{
		elem.revertFlip();
		elem.data('flipped',false)
	}
	else
	{
		elem.flip({
			direction:'lr',
			speed: 350,
			color: 'transparent',
			onBefore: function(){
				elem.html(elem.siblings('.sponsorData').html());
			}
			
		});

		elem.data('flipped',true);
	}
	
});


	
});
//Dom ready