jQuery(document).ready(function() {
	jQuery('#category_dropdown').change(
		function() {
			window.location = blogurl+'/category/'+jQuery(this).val();
		}
	);
});

/* Image rotate */
$(document).everyTime(8000, function() {
	rotate_image();
});

var rotate_image = function()
{
	var visible_image = jQuery("#focus-ul > li:visible");
	var next = visible_image.next("li");

	visible_image.css("z-index", "1");

	if( next.length <= 0)
	{
		next = visible_image.siblings("li:first");
	}

	next.css("z-index", "5");

	next.fadeIn('normal',function(){
		visible_image.hide();
	});
}
