function change(id,class_name) {
	obj = document.getElementById(id);
	obj.className=class_name;
}

function change_out(id,class_name) {
	obj = document.getElementById(id);
	obj.className=class_name;
}

(function($) {
function init() {
  $("#featured .effectContainer").fadeTransition({
	pauseTime: 3000,
	transitionTime: 500,
	ignore: "#introslide",
	delayStart: 3000,
	pauseOnMouseOver: true,
	createNavButtons: true
});
}
$(document).ready(init);
})(jQuery);

var timer = setInterval(function() {
$.get("http://www.shukumaku.com/quick.php", function(data){
$("#quick_event").html(data);
});
}, 3000);

$('#imagetalk').cycle({
	fx: 'scrollDown',
	speed: 300,
	startingSlide: 0,
	delay: -4000
});

$(function () {
	$('#imp_marquee').marquee('pointer').mouseover(function () {
		$(this).trigger('stop');
	}).mouseout(function () {
		$(this).trigger('start');
	}).mousemove(function (event) {
		if ($(this).data('drag') == true) {
			this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
		}
	}).mousedown(function (event) {
		$(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
	}).mouseup(function () {
		$(this).data('drag', false);
	});
});
