//<![CDATA[
	$(document).ready(function() {

		// initialize tabs
		$('#specialReports').tabs({fxFade: true});
		$('#frontline').tabs({fxFade: true});
		$('#newsTabs').tabs({fxFade: true, fxSpeed: 'fast'});

		//rotate tabs and then stop at second rotation	
		(function() {
			// rotation interval
			var t = 0, rotations = 0;
			var tabs = $('li.t', '#specialReports').size();
			var rotation = setInterval(function() {
				t = ++t <= tabs ? t : 1;
				if (t == 1) {
					rotations++;
				}
				$('#specialReports').triggerTab(t);
				if (rotations > 2 && rotation) { // stop rotation after second
					clearInterval(rotation);
				}
			}, 5000);
			// stop rotation on tab click
			$('#limited>ul:eq(0)>li>a').click(function(e) {
				if (e.clientX) { // true mouse click ocurred
					clearInterval(rotation);
					rotation = null;
				}
			});
		})();
		
		(function() {
			// rotation interval
			var v = 0, nrotations = 0;
			var ntabs = $('li.nt', '#newsTabs').size();
			var nrotation = setInterval(function() {
				v = ++v <= ntabs ? v : 1;
				if (v == 1) {
					nrotations++;
				}
				$('#newsTabs').triggerTab(v);
				if (nrotations > 2 && nrotation) { // stop rotation after second
					clearInterval(nrotation);
				}
			}, 60000);
			// stop rotation on tab click
			$('#newsTabs>ul:eq(0)>li>a').click(function(e) {
				if (e.clientX) { // true mouse click ocurred
					clearInterval(rotation);
					nrotation = null;
				}
			});
		})();
		
		//Scrolls Page to top - Dino
		$('.btt').click(function(){$('#pagetop').ScrollTo(800);return false});
		
		/* Text Sizer by Dino*/
		$("#zin").click(function(){ $("#contentLeft, #contentRight").find("p,li").css({fontSize:"15px;"}); });
		$("#zout").click(function(){ $("#contentLeft, #contentRight").find("p,li").css({fontSize:"11px;"}); });
		//$("#zout").click(function(){ $("div.econtent").find("p").css({fontSize:"11px;"}); });
		
	});
	

//]]>