$(document).ready(function() {	
		function popup(url) {
			var width = 250;
			var height = 50;
			var left = (screen.width - width) / 2;
			var top = (screen.height - height) / 2;
			var params = "width=" + width + ", height=" + height;
			params += ", top=" + top + ", left=" + left;
			params += ", directories=no";
			params += ", location=no";
			params += ", menubar=no";
			params += ", resizable=yes";
			params += ", scrollbars=no";
			params += ", status=no";
			params += ", toolbar=no";
			newwin = window.open(
					"typo3conf/ext/itspn_news/pi1/popup.php?url=" + url,
					"IT-Service-PN", params);
			if (window.focus) {
				newwin.focus();
			}
			return false;
		}
		$("#scrollablePortfolio").scrollable( {
			circular : true,
			easing : 'easeInOutExpo',
			speed : 1000,
			next : "#portfolioNavigationRight",
			prev : "#portfolioNavigationLeft"
		}).navigator().autoscroll( {
			interval : 8000
		});
		$("#scrollableNews").scrollable( {
			vertical : true,
			easing : 'easeInOutElastic',
			speed : 1500,
			prev : "#newsNavigationLeft",
			next : "#newsNavigationRight"
		});
		
		$('.refImgBox a, .lightbox').lightBox({
			txtImage: 'Bild',
			txtOf: 'von',
		});
});
