// JavaScript Document

$(function(){	
// latest commercial overlay
	$("div[class=ad commercial]").append('<div class="commercial_overlay"><a href="commercial.html"><span>Commercial</span></a></div>');										


				
// insert any other functions above this line
});

var mImg = 4;
var cImg = 0, iId;

                function image_change() {

                                $('.rotator_image img').each(function(){

                                                if ($(this).is(':visible')) $(this).fadeOut(2000);

                                });

                                if (cImg==(mImg-1)) cImg = -1;

                                cImg++;

                                var ci = 0;

                                var clicked = cImg;

                                $('.rotator_image img').each(function(){

                                                if (clicked==ci) $(this).fadeIn(2000);

                                                ci++;

                                });

                }

                setInterval('image_change();',5000);  