jQuery(document).ready( function () {

	obrir = function(pag,x,y,title) {
		//alert(title);
		var alcada=y;
		var amplada=x;
		var top=(screen.height-alcada)/2;
		var left=(screen.width-amplada)/2;
		mides = 'top='+top+',left='+left+',width='+x+',height='+y+',scrollbars=yes,resizable=yes,toolbar=no,directories=no';
		window.open(pag+'&url=' + escape(location.href) + '&titol=' + title,'', mides);
	}

	hslides = function() {
		jQuery('.hslides').innerfade({
			animationtype: 'fade',
			speed: 3000,
			timeout: 4000,
			type: 'sequence'
		});
    }

	slides = function() {
		jQuery('.slides').innerfade({
			animationtype: 'fade',
			speed: 'slow',
			timeout: 4000,
			type: 'sequence',
			containerheight: '100px'
		});

        jQuery("#followus img").mouseover(function () {
            jQuery(this).css({opacity: 0.75});
        });
        
        jQuery("#followus img").mouseout(function () {
            jQuery(this).css({opacity: 1});
        });

	}
})

