function goHome(url) {
	if (window.opener) {
		try {
			window.opener.location.href='http://book.mycom.co.jp/wd/';
			window.opener.focus();
		} catch(e) {
			window.open('http://book.mycom.co.jp/wd/','_blank');
		}
	} else {
		window.open('http://book.mycom.co.jp/wd/','_blank');
	}
	return false
}

function openWin(wObj,wName,wWidth,wHeight,wScroll,wResize,wStatus,wCenter){
	if (wObj.getAttribute('href')) {
		wOption1 = "toolbar=no,location=no,directories=no,status=" + wStatus + ",menubar=no,scrollbars=" + wScroll + ",resizable=" + wResize + ",width=" + wWidth + ",height=" + wHeight;
		if (wCenter == "yes" || wCenter == 1) {
			scWidthCenter = screen.availWidth / 2;
			scHeightCenter = screen.availHeight / 2;
			wOption2 = ",left=" + (scWidthCenter - (wWidth / 2)) + ",top=" + (scHeightCenter - (wHeight / 2));
		}
		else {
			wOption2 = "";
		}
		w = window.open(wObj.getAttribute('href'),wName,wOption1+wOption2);
		w.focus();
		return false;
	} else {
		return true;
	}
}


function openSubSub(o,w) {
	window.open(o.getAttribute('href'),w,'width='+Math.round(parseInt(o.getElementsByTagName('img')[0].getAttribute('width'))*1.5)+',height='+Math.round(parseInt(o.getElementsByTagName('img')[0].getAttribute('height'))*1.5)+',scrollbars=no,status=no,resizable=yes')
}



$(function(){
	if (!($.support.borderRadius)) {		
		 $(".desc, .desc-info, .main, .bnr-wide, #bnr-wdexpress, #bnr-flash, nav, #ads li").each(function(){
		 	var $wrapper = $("<div/>");
		 	$(this).wrap($wrapper);
		 	$wrapper = $(this).parent();
		 	$wrapper.css("line-height", "0");
			$wrapper.css("background-color", "#dddddd");
			$wrapper.css("margin-bottom",$(this).css("margin-bottom"));
			$wrapper.css("padding", "1px");
			$wrapper.corner("5px");
			$(this).corner("5px");
			$(this).css("margin-bottom", "0");
		 
		 });
		 
		
	}
	//if (!$.support.opacity) {
		$("#footer dd:last-child, #footer li:last-child").addClass("last-child");
	//}
});
