﻿//トップページメインイメージ
function TOP01() {
	document.location.href = "zoom_up/atl/lv01.html";
	}
function TOP02() {
	document.location.href = "zoom_up/atr/tr03.html";
	}
/*function TOP03() {
	document.location.href = "zoom_up/atr/tr03.html";
	}*/
	
function SP01() {
	document.location.href = w_sp01;
	}

//今週のルートディレクトリ
function ZM00() {
	document.location.href = w_zoom01;
	}
function LV00() {
//01:Editor's Note 02:Zakka 03:gift_catalog 04:FreePaper 05:CSR活動 06:Gift_card
	document.location.href = w_lv01;
	}
function TR00() {
//01:Editor's Note 02:TEAROOM Menu 03:Take Out Menu 04:bridal 05:Freepaper 06:Food Quality
	document.location.href = w_tr01;
	}
function GIFT00() {
	document.location.href = w_gift00;
	}
function AE00() {
//01:廣瀬 02:いがらし 03:山村 04:wool 05:chajin
	document.location.href = w_ae02;
	}
function HT00() {
	document.location.href = w_ht01;
	}
function DL00() {
//01:壁紙 02:ブログパーツ 03:スクリーンセーバー
	document.location.href = w_down01;
	}
function MN00() {
	document.location.href = w_member01;
	}
function RECRUIT00() {
	document.location.href = w_recruit01;
	}
function FREEPAPER00() {
	document.location.href = w_freepaper01;
	}

//ランダムにバナー画像を表示する(壁紙)
imgURL  = new Array();
imgURL[0]  = "<a href='download/wallpaper/index.html'><img src='navi/wall_banner_a.gif' border='0'></a>";
imgURL[1]  = "<a href='download/wallpaper/index.html'><img src='navi/wall_banner_b.gif' border='0'></a>";
imgURL[2]  = "<a href='download/wallpaper/index.html'><img src='navi/wall_banner_c.gif' border='0'></a>";
//imgURL[3]  = "<a href='download/wallpaper/index.html'><img src='navi/wall_banner_d.gif' border='0'></a>";

wp = Math.floor(Math.random()*imgURL.length);

function WP_banner() {
	document.write(""+imgURL[wp]+"");
	}

//ランダムにバナー画像を表示する(コクーニスト)
imgURL_CO  = new Array();
imgURL_CO[0]  = "<a href='link/top_cocoonist_banner.html' target='_blank'><img src='navi/banner_co_080708.gif' border='0'></a>";
imgURL_CO[1]  = "<a href='link/top_cocoonist_banner.html' target='_blank'><img src='navi/banner_co_080708.gif' border='0'></a>";
imgURL_CO[2]  = "<a href='link/top_cocoonist_banner_recruit.html'><img src='navi/banner_co_081121.gif' border='0'></a>";

co = Math.floor(Math.random()*imgURL_CO.length);

function CO_banner() {
	document.write(""+imgURL_CO[co]+"");
	}

//ランダムにバナー画像を表示する(ATR説明会・面接会@名古屋)
imgURL_ATR  = new Array();
imgURL_ATR[0]  = "<a href='link/top_recruit_banner_mensetsukai_nagoya.html'><img src='navi/banner_atr_mensetsukai_nagoya.gif' width='210' height='85' border='0'></a>";
imgURL_ATR[1]  = "<a href='link/top_recruit_banner_setsumeikai_april.html'><img src='navi/banner_atr_setsumei_april.gif' width='210' height='85' border='0'></a>";

tr = Math.floor((Math.random()*5)/5*imgURL_ATR.length);

function ATR_banner() {
	document.write(""+imgURL_ATR[tr]+"");
	}


//ランダムにバナー画像を表示する(フリペ・スクリーンセーバー)
imgURL3  = new Array();
imgURL3[0]  = "<a href='freepaper/index.html'><img src='freepaper/img/banner.gif' border='0'></a>";
imgURL3[1]  = "<a href='download/screensaver/index.html'><img src='navi/ss_banner.gif' border='0'></a>";

n = Math.floor(Math.random()*imgURL3.length);

function FP_SS_banner() {
	document.write(""+imgURL3[n]+"");
	}

//Script

var Mac = navigator.appVersion.indexOf('Mac',0) != -1;
var Win = navigator.appVersion.indexOf('Win',0) != -1;
var IE  = navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1;
var NN  = navigator.appName.indexOf("Netscape",0) != -1;
var Moz = navigator.userAgent.indexOf("Gecko") != -1;
var Vmajor = parseInt(navigator.appVersion);	// ex. 3
var Vminor = parseFloat(navigator.appVersion);	// ex. 3.01

var MacIE4 = ((Mac && navigator.appVersion.indexOf('MSIE 4.',0) != -1));
var MacIE3 = ((Mac && navigator.appVersion.indexOf('MSIE 3.',0) != -1));

// --------------------
// [window] scroll
// --------------------

function getScrollLeft() { // 020225
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollLeft;
 } else if (window.pageXOffset) {
  return window.pageXOffset;
 } else {
  return 0;
 }
}

function getScrollTop() { // 020225
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollTop;
 } else if (window.pageYOffset) {
  return window.pageYOffset;
 } else {
  return 0;
 }
}

function getScrollWidth() { // 010317
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollWidth;
 } else if (window.innerWidth) {
  return window.innerWidth;
 }
 return 0;
}

function getScrollHeight() { // 010317
 if ((navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1)) {
  return document.body.scrollHeight;
 } else if (window.innerHeight) {
  return window.innerHeight;
 }
 return 0;
}


//サブウィンドウを開く(汎用)
function openWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
	}
function opWin(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
	}
