$(function() {
   		
	$("#empty-autonoma").sexyCombo({
		filterFn: function() {
        		return true;
    		},
    		changeCallback: function() {
			url = window.location.href; 
			pos = url.lastIndexOf("/",url.length );  
			window.location.href = url.substring(0,pos+1) + this.getHiddenValue();			
		}, 
    		skin: "combo1", emptyText: "-"
    	});
	
	$("#empty-provincia").sexyCombo({
		filterFn: function() {
			return true;
    		},     	
    		changeCallback: function() {
			url = window.location.href; 
			pos = url.lastIndexOf("/",url.length );  
			window.location.href = url.substring(0,pos+1) + this.getHiddenValue();			
		},
		skin: "combo1", emptyText: "-"
	});
});


$(function(){
// find all the input elements with title attributes
$('input[title!=""]').hint();
});


$(function() {
    $('#slideshow1').cycle({
        speed:       3500,
        timeout:     8000,
        pager:      '#nav1',
        pagerEvent: 'mouseover',
	    fastOnEvent: true,
		pauseOnPagerHover: true
    });
    $('#slideshow1_copia').cycle({
        speed:       3500,
        timeout:     8000,
        pager:      '#nav1',
        pagerEvent: 'mouseover',
	    fastOnEvent: true,
		pauseOnPagerHover: true
    });
	
	    $('#slideshow2').cycle({
        speed:       1500,
        timeout:     4000,
        pager:      '#nav2',
        pagerEvent: 'mouseover',
	    fastOnEvent: true,
		pauseOnPagerHover: true
    });
    
     $('#slideshow2_copia').cycle({
        speed:       1500,
        timeout:     4000,
        pager:      '#nav2',
        pagerEvent: 'mouseover',
	    fastOnEvent: true,
		pauseOnPagerHover: true
    });
    
    $('#slideshow2c').cycle({
        pager:      '#nav4',
       	timeout:     0,
        speed:       0,
	    fastOnEvent: false,
		pauseOnPagerHover: false
    });
    
     $('#slideshow2b').cycle({
        pager:      '#nav3',
       	timeout:     0,
        speed:       0,
	    fastOnEvent: false,
		pauseOnPagerHover: false
    });
    
    
    
});