Event.observe(document,"dom:loaded",function(){new VisitPage()});var VisitPage=Class.create({recentCheck:[{title:"MacCTO",url:"/jp/mac/"},{title:"MacCTO",url:"/jp/imac/"},{title:"MacCTO",url:"/jp/macbookair/"},{title:"MacCTO",url:"/jp/macbookpro/"},{title:"MacCTO",url:"/jp/macbook/"},{title:"MacCTO",url:"/jp/macmini/"},{title:"MacCTO",url:"/jp/macpro/"},{title:"iPodEngraving",url:"/jp/ipod/"},{title:"iPodEngraving",url:"/jp/ipodshuffle/"},{title:"iPodEngraving",url:"/jp/ipodnano/"},{title:"iPodEngraving",url:"/jp/ipodclassic/ "},{title:"iPodEngraving",url:"/jp/ipodtouch/"},{title:"EducationStore",url:"/jp/education/"},{title:"iPadstore",url:"/jp/ipad/"}],index:[{title:"iPhoto Print Products",url:"/jp/ilife/"},{title:"Environment",url:"/jp/environment/"},{title:"Apple Rebates",url:"/jp/promo/"},{title:"Apple Battery Charger",url:"/jp/battery-charger/"},{title:"iTunes U",url:"/jp/education/itunes-u/"},{title:"Mac OS X - What is Mac",url:"/jp/macosx/what-is-macosx/"},{title:"Mac OS X - Compatibility",url:"/jp/macosx/compatibility/"},{title:"Mac OS X - Security",url:"/jp/macosx/security/"},{title:"Get a Mac",url:"/jp/why-mac/"},{title:"iPod touch Game Showcase",url:"/jp/ipodtouch/games-and-apps/"},{title:"iPod Everywhere",url:"/jp/ipod/everywhere/"},{title:"Game Center",url:"/jp/game-center/"},{title:"iTunes AirPlay",url:"/jp/itunes/airplay/"},{title:"iTunes Ping",url:"/jp/itunes/ping/"},{title:"iPhone in Business",url:"/jp/iphone/business/"},{title:"Apps for Everything",url:"/jp/iphone/apps-for-iphone/"},{title:"MobileMe",url:"/jp/mobileme/"},{title:"iCloud get-started",url:"/jp/icloud/get-started/"},{title:"Mac OS X how-to-buy",url:"/jp/macosx/how-to-buy/"},{title:"Mac app-store",url:"/jp/mac/app-store/"},{title:"Apps Cards",url:"/jp/apps/cards/"},{title:"iPad in Business",url:"/jp/ipad/business/"},{title:"Support products",url:"/jp/support/products/"}],allJSON:[{title:"iPhoto Print Products",type:"equal",id:"jpiphoto",check:[{url:"/jp/ilife/print-products.html"}]},{title:"Environment",type:"equal",id:"jpenvironment",check:[{url:"/jp/environment/"},{url:"/jp/environment/index.html"},{url:"/jp/environment/complete-lifecycle/"},{url:"/jp/environment/complete-lifecycle/index.html"},{url:"/jp/environment/product-usage/"},{url:"/jp/environment/product-usage/index.html"},{url:"/jp/environment/reports/"},{url:"/jp/environment/reports/index.html"},{url:"/jp/environment/news/"},{url:"/jp/environment/news/index.html"}]},{title:"Apple Rebates",type:"equal",id:"jppromo",check:[{url:"/jp/promo/"},{url:"/jp/promo/index.html"},{url:"/jp/promo/rebate/status.html"},{url:"/jp/promo/past.html"},{url:"/jp/promo/faq.html"}]},{title:"Apple Battery Charger",type:"match",id:"jpbattery",check:[{url:"/jp/battery-charger/"}]},{title:"iTunes U",type:"match",id:"jpeducation",check:[{url:"/jp/education/itunes-u/"}]},{title:"Mac OS X - What is Mac",type:"match",id:"jpwhatismacosx",check:[{url:"/jp/macosx/what-is-macosx/"}]},{title:"Mac OS X - Compatibility",type:"equal",id:"jpcompatibility",check:[{url:"/jp/macosx/compatibility/"},{url:"/jp/macosx/compatibility/index.html"}]},{title:"Mac OS X - Security",type:"equal",id:"jpsecurity",check:[{url:"/jp/macosx/security/"},{url:"/jp/macosx/security/index.html"}]},{title:"Get a Mac",type:"match",id:"jpwhymac",check:[{url:"/jp/why-mac/"}]},{title:"iPod touch Game Showcase",type:"equal",id:"jpgamesandapps",check:[{url:"/jp/ipodtouch/games-and-apps/"},{url:"/jp/ipodtouch/games-and-apps/index.html"}]},{title:"iPod Everywhere",type:"equal",id:"jpeverywhere",check:[{url:"/jp/ipod/everywhere/"},{url:"/jp/ipod/everywhere/index.html"}]},{title:"Game Center",type:"equal",id:"jpgamecenter",check:[{url:"/jp/game-center/"},{url:"/jp/game-center/index.html"}]},{title:"iTunes AirPlay",type:"equal",id:"jpairplay",check:[{url:"/jp/itunes/airplay/"},{url:"/jp/itunes/airplay/index.html"}]},{title:"iCloud get-started",type:"equal",id:"jpgetstarted",check:[{url:"/jp/icloud/get-started/"},{url:"/jp/icloud/get-started/index.html"}]},{title:"Mac OS X how-to-buy",type:"equal",id:"jphowtobuy",check:[{url:"/jp/macosx/how-to-buy/"},{url:"/jp/macosx/how-to-buy/index.html"}]},{title:"Mac app-store",type:"match",id:"jpappstore",check:[{url:"/jp/mac/app-store/"}]},{title:"Apps Cards",type:"equal",id:"jpcards",check:[{url:"/jp/apps/cards/"},{url:"/jp/apps/cards/index.html"}]},{title:"iTunes Ping",type:"equal",id:"jpping",check:[{url:"/jp/itunes/ping/"},{url:"/jp/itunes/ping/index.html"}]},{title:"iPhone in Business",type:"match",id:"jpbusiness",check:[{url:"/jp/iphone/business/"}]},{title:"iPad in Business",type:"match",id:"jpipadbusiness",check:[{url:"/jp/ipad/business/"}]},{title:"Apps for Everything",type:"match",id:"jpappsforiphone",check:[{url:"/jp/iphone/apps-for-iphone/"}]},{title:"Support products",type:"match",id:"jpproducts",check:[{url:"/jp/support/products/"}]},{title:"MobileMe",type:"match",id:"jpmobileme",check:[{url:"/jp/mobileme/"}]}],RECENT_COOKIE_NAME:"rc_cn",INVISIT_COOKIE_NAME:"vs_cn",initialize:function(){var f=location.href;
var e=f.indexOf("/jp/");var d=f.substring(e);this.recentPageSet(d,this.recentCheck);
this.indexSearch(d,this.index)},recentPageSet:function(i,f){var h=null;for(var j=0;
j<f.length;j++){var g=i.match(f[j].url);if(g!=null){h=f[j].title}}if(h!=null){this.setCookie("rc_cn",h,1000*60*60*24*100)
}},indexSearch:function(j,k){var i=null;for(var l=0;l<k.length;l++){var h=j.match(k[l].url);
if(h!=null){i=k[l].title}}if(i!=null){for(var l=0;l<this.allJSON.length;l++){if(this.allJSON[l].title==i){m_j=this.allJSON[l]
}}var g=null;if(m_j.type=="equal"){for(var l=0;l<m_j.check.length;l++){if(m_j.check[l].url==j){g=m_j.id
}}}else{if(m_j.type=="match"){for(var l=0;l<m_j.check.length;l++){if(m_j.check[l].url.match(j)!=null){g=m_j.id
}}}}if(g!=null){this.visitedPageSet(g)}}},visitedPageSet:function(f){var e=null;
if(this.getCookie("vs_cn")!=null){var d=this.getCookie("vs_cn");if(d.match(f)!=null){e=d
}else{e=d+f+" "}}else{e=f+" "}this.setCookie("vs_cn",e,1000*60*60*24*100)},setCookie:function(i,j,k){var l=location.hostname;
var h=new Date();h.setTime(h.getTime()+k);var g=i+"="+escape(j)+"; domain="+l+"; path=/; expires="+h.toGMTString();
document.cookie=g},getCookie:function(i){if(null==document.cookie||null==i){return null
}var l=document.cookie.split(";");var h=null;for(var c=0;c<l.length;c++){var j=l[c];
var k=j.split("=");if(-1<k[0].indexOf(i)){h=unescape(k[1]);break}}return h}});
