jQuery.noConflict();
(function($) {
  $(function() {
    // more code using $ as alias to jQuery
    $(document).ready
    (
    	function()
    	{
    		var tCapUrl = $("#capImg").attr('src');
    	
    		var dateStr = $('#countdown span').text()
			countDate = new Date(dateStr);
			$('#countdown').countdown({until: countDate, format: 'dHM'}); 
			
			if($("#newsTeaserBoxHolder .newsBoxItems").size() > 0) {
				$("#newsTeaserBoxHolder").scrollable({
					items: ".newsBoxItems",
					prev: ".newsboxPrev",
					next: ".newsboxNext",
					circular: true
				});
			}
			
			$("#capRefresh").click(function(){
				$("#capImg").attr('src', tCapUrl + '?' + Math.round(Math.random() * 100000));
				return false;
			}); 

    	}
    );

  });
})(jQuery);



