
function WinOpen(url){
	window.open(url, "report", "width=980,height=800,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,location=yes,directories=no,status=no");
}

function WinClose(url){
	window.close();
}

function ReportWinOpen(id){
	window.open("https://secure327b.sakura.ne.jp/qcon.jp/campaign/report?place=" + id, "report", "width=980,height=800,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,location=no,directories=no,status=no");
}

window.onload = function () {
   var url = location.pathname;
   /* トピックス */
   if (url.match(/\/topics\/.*/)) {
       this.globalNav("topics");
   }
   /* スキルアップ・コラム */
   if (url.match(/\/skillups\/.*/)) {
       this.globalNav("skillups");
   }
   /* 品評コーナー */
   if (url.match(/\/hinpyou\/.*/)) {
       this.globalNav("hinpyou");
   }
   /* ブログ */
   if (url.match(/\/blogs\/.*/)) {
       this.globalNav("blog");
   }
   /* リコメンド */
   if (url.match(/\/recommend\/.*/)) {
       this.globalNav("recommend");
   }
   /* インフォメーション */
   if (url.match(/\/infomartion\/.*/)) {
       this.globalNav("hotereswedding");
   }
}

function globalNav(name) {
   var elms = document.getElementById("globalNav").getElementsByTagName("li");
   for (var i = 0; i < elms.length; i++) {
       var str = elms[i].className;
       if (str == name) {
           elms[i].className += " on";
       }
   }
}
