	
	
	function popup(url,windowname,width,height,scrollbars,features) {
		width=(width)?width:screen.width/2;
		height=(height)?height:screen.height/2;
		scrollbars=(scrollbars)?scrollbars:'yes';
		var screenX = (screen.width/2 - width/2);
		var screenY = (screen.height/2 - height/2);
		var features= "width=" + width + ",height=" + height +",scrollbars=" + scrollbars + ",status=no";
		features += ",screenX=" + screenX + ",left=" + screenX;
		features += ",screenY=" + screenY + ",top=" + screenY;
		
		var mywin=window.open(url, windowname, features);
		if (mywin)
		mywin.focus();
		return mywin;
	}

	function checkPopup(){
		
		if($('#norebre').attr('value') == 1){ canvi = 0; }else{ canvi = 1; }
		$('#norebre').attr('value', canvi);
		
	}

/* --------------------------------------------------------------------
	jCarousel
 -------------------------------------------------------------------- */

	jQuery.easing['BounceEaseOut'] = function(p, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	};
	 
	jQuery(document).ready(function() {
		jQuery('#mycarousel').jcarousel({
			easing: 'BounceEaseOut',
			vertical: true,
			scroll: 1,
			auto: 5,
			animation: 1000
		});
	});
	
	