$(function(){
	Cufon.replace('#main-menu A')('H1')('H2')('H3')('.box-title')('.title', {hover:true,hoverables:{ strong: true, em: true }})('.subheading')('#oferta')('.form-heading')('.button-big');
	//OLD BROWSER NOTIFICATION
		//var notification = '<div id="browser-upgrade"><div class="upgrade-container"><p>Browser-ul tau <strong>este mult prea vechi</strong>. Versiunea pe care o folosesti are probleme si vulnerabilitati si nu afiseaza multe din functionalitatile site-ului. <strong>Iti recomandam sa instalezi o versiune noua!</strong></p><div class="browsers"><a href="http://www.google.com/chrome" title="Google Chrome" id="chrome" rel="blank"></a><a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home" title="Internet Explorer" id="ie9" rel="blank"></a><a href="http://www.mozilla.org/en-US/firefox/new/" title="Mozilla Firefox" id="firefox" rel="blank"></a><a href="http://www.opera.com/download/" title="Opera" id="opera" rel="blank"></a><a href="http://www.apple.com/safari/download/" title="Safari" id="safari" rel="blank"></a></div><div class="clear">&nbsp;</div></div></div>';
		//var b = $.browser;
		//var body = $('body');
		//if((b.msie && b.version < '8.0')){
		//	body.prepend(notification);
		//}
		//if((b.opera) && (b.version < '10.1')){
		//	body.prepend(notification);
		//}
		//if((b.safari) && (b.version < '3.2')){
		//	body.prepend(notification);
		//}
		//if((b.mozilla) && (b.version.slice(0,2) == '1.9')){
		//	body.prepend(notification);
		//}
		//$('.empty').focus(function(){
		//	if ($(this).val() == this.defaultValue) {
		//		$(this).val('');
		//	}
		//}).blur(function(){
		//	if($(this).val() == '') {
		//		$(this).val(this.defaultValue);
		//	}
		//});
	//open a link in a blank window
	$('a[rel="blank"]').click(function(){
		window.open(this.href);
		return false;
	});
    //homepage hovering category boxes
    $('.category').hover(function(){
        $(this).addClass('hovered');
    }, function(){
        $(this).removeClass('hovered');
    });
    //destinatii de vacata content box
    $('.content-box').hover(function(){
        $(this).addClass('hovered');
    }, function(){
        $(this).removeClass('hovered');
    });
	$('.empty').focus(function(){
		if ($(this).val() == this.defaultValue) {
			$(this).val('');
		}
	}).blur(function(){
		if($(this).val() == '') {
			$(this).val(this.defaultValue);
		}
	});
});
