function changeImage(obj) {
	var img = $("main_pic");
	if (img.alt != obj.alt) {
		var new_src_path = "http://" + location.hostname + "/image/get/D/brand/F/" + obj.alt + "/R/340";
		var $$ = jQuery('#main_pic');
		$.ajax({
			url: new_src_path,
			complete: function(){ // 読込完了後に切替を行う
//				$$.fadeOut('normal',function(){
					$$.attr('src', new_src_path );
//				}) // fadeOut
//				.fadeIn();
				ajaxSending = true;
			}
		});//ajax
	}
}

function closeWin() {
	window.close();
}

function showPaperPopup(number) {
	var w;
	w = window.open(
		"http://" + location.hostname + "/paper/index/N/" + number,
		"paper",
		"resizable=yes,width=900,height=600"
	);
	if (w && !w.closed) {
		w.focus();
	}
}

function showItemMore(idno){
	pc = ('PlagClose' + (idno));
	po = ('PlagOpen' + (idno));
	if( document.getElementById(pc).style.display == "none" ) {
		document.getElementById(pc).style.display = "block";
		document.getElementById(po).style.display = "none";
	} else {
		document.getElementById(pc).style.display = "none";
		document.getElementById(po).style.display = "block";
	}
}
