/*
** Author: Ujeen
** Required JQuery
*/
$(document).ready(function()
{
	var boxclass = '.circle-banner';
	var shift = $(boxclass + ' td').width();
	var time = 9000;	// timeout before first rotation occurs
	var speed = 500;	// delay between rotations
    
	if ($.browser.msie && $.browser.version == '6.0')
	{
		speed = 0;
	}

	$.timer(time, function(timer)
		{
			var new_top = $(boxclass+' tr:first-child td:first-child').clone();
			var new_bot = $(boxclass+' tr:last-child td:first-child').clone();

			$(boxclass+' tr:first-child').append(new_top);
			$(boxclass+' tr:last-child').append(new_bot);

			$(boxclass).animate(
				{
					marginLeft:('-'+(shift))
				},
				speed,
				function()
				{
					$(boxclass+' tr:first-child td:first-child').remove();
					$(boxclass+' tr:last-child td:first-child').remove();
					$(boxclass).css({
						'margin-left':'0px'
					});
				}
			);
			timer.reset(time);
		}
	);
});



//--fix bugs for ie6---
$(document).ready(function(){
	if ($.browser.msie && $.browser.version == '6.0') {
		$('.corner_indent_box .toprightcorner').css({'right':'-1px'});
		$('.corner_indent_box .bottomrightcorner').css({'right':'-1px'});
	}
})
//--#fix bugs for ie6---

