 
 $(document).ready(function() {
							   
		$('a[rel=external]').click(function() {
            window.open($(this).attr('href'));
            
            return false;
        });					   
						
		$("#cancelPix").click(function() {
			dataString = "idazie="+$("#idazie").val();
			$.ajax({
				type: "POST",
				url: "/newjobagency/update_data.php",
				data: dataString,
				cache: false,
				success: function(){
					$("#rcode").html("Nessun logo caricato");
				}
			});
			return false;
		});
				 $("#clienti").jCarouselLite({
            btnNext: "#nextBtn2",
            btnPrev: "#prevBtn2",
            auto: 5000,
            speed: 500,
            circular: true,
            visible: 3,
            scroll: 1
        });
						
		dropdown('#menu_principale ul');
		
		$("#blocco_annunci").carouFredSel({
		items: 2,
		direction: 'up', 
		scroll: {duration:700, items:1},
		width: 268
	});
		$('#advertising4').cycle({})
		
		$("#user-riservata").DefaultValue("username");
        $("#password-riservata").DefaultValue("password");
		
		if ( $('#slider-home').length )
		{
			$('#photos').cycle({
				allowPagerClickBubble: true,
				fx: 'fade',
				speed: 500,
				timeout: 7000,
				pager: '#menu_slide ul',
				pagerEvent: 'mouseover',
				pause: 1,
				prev: "#prev",
				next: "#next",
				pauseOnPagerHover: 1, 
				pagerAnchorBuilder: function(idx, slide) {
					return $('#menu_slide ul li:eq('+idx+')');
				} 
			});
		}
		
    });
	
	
