$(document).ready(function(){
	if ($('#naviID').length == 1) {
		var ides = $('#naviID').val().split(',');
		for (var idx = 0; idx < ides.length; idx++) {
			var id = '#' + ides[idx];
			if ($(id).length == 1) {
				$(id).removeClass('imgover').attr('src', $(id).attr('src').replace(/\.(gif|jpe?g|png)$/, '_ov.$1'));
			}
		}
	}

	if ($('#menuID').length == 1) {
		var ides = $('#menuID').val().split(',');
		for (var idx = 0; idx < ides.length; idx++) {
			var id = '#' + ides[idx];
			if ($(id).length == 1) {
				$(id).addClass('on');
			}
		}
	}

	$('.imgover').not('[src*="'+ '_ov' +'."]').mouseover(function(){
		$(this).attr('src', $(this).attr('src').replace(/\.(gif|jpe?g|png)$/, '_ov.$1'));
	});
	$('.imgover').not('[src*="'+ '_ov' +'."]').mouseout(function(){
		$(this).attr('src', $(this).attr('src').replace(/_ov\.(gif|jpe?g|png)$/, '.$1'));
	});	
});
$(window).unload(function() {	});

