function externalNavi(){
var domain = location.hostname;
//alert(domain);
//if (domain == 'www.papy.co.jp'){
if (domain == 'ebooks.biz.iact.co.jp'){
	character = 'euc';
	}
else if (domain == 'renta.papy.co.jp'){
	character = 'euc';
	}
else {
	character = 'sjis';
	}
var random=Math.random(); 


document.write('<style type="text/css"><!--');
document.write('#channelheader2 div.cwrap , #channelfooter div.cwrap{ width:750px; }');
document.write('#channelheader2 * , #channelfooter * { margin:0; padding:0;}');
document.write('#channelheader2 a img,#channelheader2 img , #channelfooter a img,#channelfooter img { border:0; }');
document.write('#channelheader2 input, #channelfooter input{ font-size:16px; font-style:inherit; font-weight:inherit; vertical-align: middle; }');
document.write('#channelheader2 , #channelfooter{ min-width:750px; }');
document.write('#channelheader2 , #channelfooter{ text-align:center; position:relative; font-style:normal; line-height:1; font-size:16px; font-size:100%; }');
document.write('#channelheader2 a:link ,#channelfooter a:link{ color: #00c; text-decoration:none; }');
document.write('#channelheader2 a:visited , #channelfooter a:visited{ color: #609; text-decoration:none; }');
document.write('#channelheader2 a:hover,a:active,#channelfooter a:hover,a:active { text-decoration: underline; }');
document.write('#channelheader2 div.cwrap{ margin:0 auto; text-align:left; }');
document.write('#channelfooter div.cwrap{ margin:15px auto 0 auto; text-align:left; }');
document.write('#channelheader2 hr , #channelfooter hr {clear:both; display: none;}');
document.write('#channelheader2 div.clear , #channelfooter div.clear {clear:both;}');
document.write('#channelheader2 div.line ,#channelfooter div.line {clear:both; border-top:solid 1px #ccc;}');
document.write('#channelheader2 h1.chogo{ width:197px; float:left; margin:1px -240px 10px 10px; position:relative; z-index:2; }');
document.write('#channelheader2 div.ck{ width:100%; float:left; margin-right:-280px; position:relative; text-align:center; z-index:1; padding:0 0 15px 0; }');
document.write('#channelheader2 div.ck div.inner{ margin:13px 240px 0 200px; }');
document.write('#channelheader2 div.ck input.cksrch{ width:185px; height: 18px; padding:2px 0px 0px 3px; }');
document.write('#channelheader2 div.tl{ width:230px; margin:4px 10px 0 0; float:right; text-align:right; position:relative; z-index:2; }');
document.write('#channelheader2 div.tl p{ margin:6px 0 0 0; font-size:75%; }');
document.write('#channelheader2 div.tl p span{ color:#999; padding:0 4px; }');
document.write('#channelheader2 div.cbanner{ width:100%; float:left; margin-right:-108px; position:relative; text-align:center; z-index:1; }');
document.write('#channelheader2 div.cbanner div.inner{ margin:5px 108px 0 70px; }');
document.write('#channelheader2 div.cbanner div.inner div.banner{ margin:0 auto; width:468px; }');
document.write('#channelheader2 div.sbanner{ width:108px; float:right; margin:11px 0 0 0; text-align:center; position:relative; z-index:2; }');
document.write('* html #channelheader2,* html #channelfooter,* html #channelfooter div.chsearch { height: 1%; width:expression((document.documentElement.clientWidth < 750)? "750px" :"auto"); }');
document.write('* html #channelheader2 div.tl{ width:235px; }');
document.write('#channelheader2{ margin-bottom:5px; }');
document.write('* html #channelheader2{ margin-bottom:7px; }');
document.write('*:first-child+html #channelheader2 { margin-bottom:7px; }');
document.write('div#channelheader2 div#headerMiddle { width: 750px; margin-bottom: 3px; }');
document.write('div#channelheader2 div#headerMiddle h1 { height: 46px; }');
document.write('div#channelheader2 div#headerMiddle div#globalNav a { display: block; text-indent: -9999px; outline-width: 0; position: absolute; right: 0; bottom: 0; background: url(http://www.ocn.ne.jp/ebooks/images/button_new.gif) 0 0 no-repeat; width:94px; height:25px; }');
document.write('div#channelheader2  div#headerMiddle div#globalNav a:hover  { background-position: 0 -25px; }');
document.write('div#toppg div#channelheader2  div#headerMiddle p#totalBooks { position: absolute; line-height: 25px; color: #666; font-weight: bold; font-size: 12px; text-align: center; right: 100px; bottom: 0px; }');
document.write('div#channelheader2 div#headerMiddle p#totalBooks { position: absolute; line-height: 25px; color: #666; font-weight: bold; font-size: 12px; text-align: center; right: 100px; bottom: 0px;}');
document.write('div#channelheader2  div#headerMiddle p#totalBooks span#bookNumber { margin-left: 10px; color: #f00; font-weight: bold; }');
document.write('.relative{position: relative;}');
document.write('* html #channelheader2{height: 1%;}');
document.write('* html #channelheader2 div.ck input.cksrch{height: 22px;}');
document.write('--></style>');
document.write('<script type="text/javascript" src="http://www.ocn.ne.jp/ebooks/js/navi.js"></script> ');

/* 20100325*/
document.write('<div id="channelheader2"><div class="cwrap"><!-- チャンネル専用ロゴ --><h1 class="chogo"><a href="http://www.ocn.ne.jp/ebooks/index.html" bitly="BITLY_PROCESSED"><img src="http://www.ocn.ne.jp/ebooks/images/books_logo.gif" width="182" height="46" alt="OCN eBooks"></a></h1><!-- /チャンネル専用ロゴ --><!-- channelheader2 ck --><div class="ck"><div class="inner"><form method="get" action="http://ocnsearch.goo.ne.jp/ocn.jsp" target="_blank"><input type="hidden" name="encode" value="euc"><input type="hidden" name="from" value="ocnebookshd"><input type="hidden" name="PT" value="ocnebookshd"><input type="hidden" name="SM" value="MC"><input type="hidden" name="IE" value="'+character+'"><input type="text" class="cksrch" name="MT"><input type="image" name="submit" src="http://www.ocn.ne.jp/ebooks/images/search_btn.gif" onclick="submit" alt="検索結果を別ウィンドウで表示します。"></form></div></div><!-- /channelheader2 ck --><!-- channelheader2 tl --><div class="tl"><p><a href="http://www.ocn.ne.jp/c-navi/" bitly="BITLY_PROCESSED">コンテンツ一覧</a><span> | </span><a href="http://www.ocn.ne.jp/" bitly="BITLY_PROCESSED">OCNトップ</a></p><p><a href="http://kabegami.ocn.ne.jp/" bitly="BITLY_PROCESSED">壁紙</a><span> | </span><a href="http://www.ocn.ne.jp/game/" bitly="BITLY_PROCESSED">ゲーム</a></p></div><div class="line"><hr></div><!-- channelheader2 banner --><div class="cbanner"><div class="inner"><div class="banner"><!-- ローテバナー --><iframe width="468" height="60" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="NO" bordercolor="#000000" src="http://ad.nttnavi.co.jp/html.ng/site=ocn&amp;spacedesc=ocnebook&amp;transactionID='+random+'?">&lt;SCRIPT LANGUAGE="JavaScript1.1" SRC="http://ad.nttnavi.co.jp/js.ng/Params.richmedia=yes&amp;site=ocn&amp;spacedesc=ocnebook&amp;transactionID='+random+'?"&gt;&lt;/SCRIPT&gt;</iframe><!-- /ローテバナー --></div></div></div><!-- /channelheader2 tl --><div class="clear"></div><!-- OCN eBooks ロゴ --><div id="headerMiddle" class="relative clearfix"><h1><a href="http://www.ocn.ne.jp/ebooks/index.html" bitly="BITLY_PROCESSED"><img src="http://www.ocn.ne.jp/ebooks/images/logo_ebooks.gif" width="157" height="46" alt="OCN eBooks"></a></h1><p id="totalBooks">取扱い作品数<span id="bookNumber">70,000</span>冊以上</p><div id="globalNav"><a href="http://www.ocn.ne.jp/ebooks/guide.html" bitly="BITLY_PROCESSED">初めての方へ</a></div></div><!-- end of #headerMiddle --><!-- /channelheader2 banner --><!-- channelheader2 sbanner --><div class="sbanner"><script type="text/javascript" src="http://www.ocn.ne.jp/c-navi/static/js/contets_footer4.js"><!-- text --></script></div><!-- /channelheader2 sbanner --><div class="clear"><hr></div></div></div>');
}
