$(document).ready(function(){

    $("a[@imi]").bind('click', function(){
        $(this).prev().click();
    });	

	try {
		/*
		function moveup1(){
			$('#marquee1 .ppjg:first').slideUp('slow', function() {
				$(this).appendTo($('#marquee1>div'));
				$(this).show();
			});			
		}
		var timer1 = setInterval(moveup1, 6000);
		$("#marquee1 a").mouseover(function() {
			clearInterval(timer1);
		});
		$("#marquee1 a").mouseout(function() {
			timer1 = setInterval(moveup1, 6000);
		});
		*/
		function moveup2(){
			$('#marquee2 .uls:first').slideUp('slow', function() {
				$(this).appendTo($('#marquee2>div'));
				$(this).show();
			});
		}
		str = $("#marquee2>div").html();
		if (str!=null && marquee2_allow) {
			str = str.toLowerCase().replace('<ul class=uls style="margin: 0px"></ul>', "");
			$("#marquee2 > div").html(str);
			var timer2 = setInterval(moveup2,6000);
			$("#marquee2 a").mouseover(function() {
				clearInterval(timer2);
			});
			$("#marquee2 a").mouseout(function() {
				timer2 = setInterval(moveup2,6000);
			});
		}

		function moveup3(){
			$('#marquee3 .history:first').slideUp('slow', function() {
				$(this).appendTo($('#marquee3 ul'));
				$(this).show();
			});
		}
		str = $("#marquee3>div").html()
		if (str!=null && marquee3_allow) {
			str = str.toLowerCase();
			$("#marquee3>div").html(str);
			var timer3 = setInterval(moveup3, 6000);
			$("#marquee3 a").mouseover(function() {
				clearInterval(timer3);
			});
			$("#marquee3 a").mouseout(function() {
				timer3 = setInterval(moveup3, 6000);
			});
		}

	} catch(e) {}

})
