// JavaScript Document

//アーチストオブジェクトを定義
function artist() {
this.name1="name"
this.name2="name2"
this.urlText=""
this.cText=""
this.title = new Array()
this.size = new Array()
this.mat = new Array()
this.price = new Array()
this.other = new Array()
}

//乱数発生関数
function rangeRandom(num1,num2) {
	if((num1-num2)>0) {
		var N1=num1
		var N2=num2
	} else {
		var N1=num2
		var N2=num1
	}
	var R=N1-N2+1
	var number=Math.floor(Math.random()*R)+N2
	return number
}

//index用の関すう定義
//取り扱い作家を描画
function toriatukaiDraw() {
var artNum=artists.length
var str=""
for (i=1;i<artNum;i++) { 
//str="<a href='javascript:linking("+i+",1)'"+"　"+artists[i].name1+"</a><br>"
str="　"+"<a href='javascript:linking("+i+",1)'>"+"<span class='honbun1'>"+artists[i].name1+"</span></a><br>"

document.write(str) 
}
}


//ランダムにピックアップする
function randomPicup() {
//ランダムにピックアップする
a= new Array()
protNum = new Array()
var b=0
var c=""
var d=""
for (i=1;i<artists.length;i++) { 
b=rangeRandom(1,100)
if ( i < 10 ) { c ="0"+i } else { c=i }
a[i]=b+""+ c
}
document.write("<br>")
for (i=0;i<artists.length;i++) { a[i]=a[i]-0 }
a.sort()
//ランダムにピックアップここまで
for (i=1;i<4;i++) {
b=a[i]%100
protNum[i]=rangeRandom(1,artists[b].title.length-1)
//index.htmlの中の変数を設定
artistID[i]=b
productID[i]=protNum[i]
//index.htmlの中の変数を設定ここまで
c="artist/"+artists[b].urlText+"/photo/photo"+protNum[i]+".jpg"
d="pickupImg"+i
document.images[d].src=c

//見出しの文字を表示
if(document.layers) {
//OldNN
} else if((document.getElementById) && (!document.all)) {
//for NN&Safari
d="nameText"+i
document.getElementById(d).innerHTML=artists[b].name1
d="titleText"+i
document.getElementById(d).innerHTML=artists[b].title[protNum[i]]
} else if(document.all) {
//for IE
d="nameText"+i
document.all[d].innerHTML=artists[b].name1
d="titleText"+i
document.all[d].innerHTML=artists[b].title[protNum[i]]
}
//見出しの文字を表示　ここまで
}
}

//リンクするための関数
function linking(ID1,ID2) {
if (ID1<10) { ID1="0"+ID1 }
if (ID2<10) { ID2="0"+ID2 }
window.location="product.html?"+ID1+ID2
}



//画像のリサイズをする関数
function picupImgResize(fn,size) {
var h=0
var w=0
document.images[fn].removeAttribute("width");
document.images[fn].removeAttribute("height");
w=document.images[fn].width
h=document.images[fn].height
	if (w>h) {
		document.images[fn].width=size
		document.images[fn].height=h*size/w
	}
	else {
		document.images[fn].height=size
		document.images[fn].width=w*size/h
	}
}


//プロフィールビューワー関連の関数定義
function setProfile(aID) {
//aID:アーティストのID
	var pas=""
	var w=0
	var h=0
	var protNum=rangeRandom(1,artists[aID].title.length-1)
	if(document.layers){
		//OldNN
	}

	else if((document.getElementById) && (!document.all)){
		//for NN&Safari
		document.getElementById("nameText").innerHTML=artists[aID].name1
		document.getElementById("furigana").innerHTML=artists[aID].name2
		document.getElementById("cText").innerHTML=artists[aID].cText
		if (artists[aID].cText=="") {document.getElementById("cMidasi").style.display="none" }
		document.getElementById("flameZone").innerHTML="<iframe src='artist/"+artists[aID].urlText+"/profile.html' name='proframe' width='100%' scrolling='auto' frameborder='0'></iframe>"	
		document.mainImg.src="artist/"+artists[aID].urlText+"/photo/photo"+protNum+".jpg"
	}
	else if(document.all){
	//for IE	
		document.all["nameText"].innerHTML=artists[aID].name1
		document.all["furigana"].innerHTML=artists[aID].name2
		document.all["cText"].innerHTML=artists[aID].cText
		if (artists[aID].cText=="") {document.all["cMidasi"].style.display="none" }
		document.all["proframe"].src="artist/"+artists[aID].urlText+"/profile.html"
		document.mainImg.src="artist/"+artists[aID].urlText+"/photo/photo"+protNum+".jpg"
	}
}

function imgResize() {
	document.mainImg.removeAttribute("width");
	document.mainImg.removeAttribute("height");
	w=document.mainImg.width;
	h=document.mainImg.height;
	if (w>h) {
		document.mainImg.width=300
		document.mainImg.height=h*300/w
	} else {
		document.mainImg.height=300
		document.mainImg.width=w*300/h
	}
}

//作品のビューワー関連関数の定義

function nextImg() {
	protNumber++
	if (protNumber>artists[atID].title.length-1) {protNumber=1}
	dataSet(atID,protNumber)	
}

function prevImg() {
	protNumber-=1
	if (protNumber==0) { protNumber=artists[atID].title.length-1 }
	dataSet(atID,protNumber)
}

//データをセットするための関数
function dataSet(artistID,productID) {
//artistID=アーティストの番号
//productID=作品番号
if(document.layers){
//OldNN
} else if((document.getElementById) && (!document.all)) {
//for NN&Safari
	document.getElementById("protIDNum").innerHTML=artistID+"-"+productID
	document.getElementById("artistName").innerHTML=artists[artistID].name1
	document.getElementById("TitleText").innerHTML=artists[artistID].title[productID]
	document.getElementById("SizeText").innerHTML=artists[artistID].size[productID]
	document.getElementById("MaterialText").innerHTML=artists[artistID].mat[productID]
	document.getElementById("PriceText").innerHTML=artists[artistID].price[productID]
	document.mainImg.src="artist/"+artists[artistID].urlText+"/photo/photo"+productID+".jpg"
	document.getElementById("mainLink").href="artist/"+artists[artistID].urlText+"/photo/photo"+productID+".jpg"

} else if(document.all) {
	//for IE
	document.all["protIDNum"].innerHTML=artistID+"-"+productID
	document.all["artistName"].innerHTML=artists[artistID].name1
	document.all["TitleText"].innerHTML=artists[artistID].title[productID]
	document.all["SizeText"].innerHTML=artists[artistID].size[productID]
	document.all["MaterialText"].innerHTML=artists[artistID].mat[productID]
	document.all["PriceText"].innerHTML=artists[artistID].price[productID]
	document.mainImg.src="artist/"+artists[artistID].urlText+"/photo/photo"+productID+".jpg"
	document.all["mainLink"].href="artist/"+artists[artistID].urlText+"/photo/photo"+productID+".jpg"
//
}
//
}
//関数定義ここまで

artists = new Array()


//変数設定
artists[1]= new artist;
with (artists[1]) {
name1="浅井　昭"
name2="あさい　あきら"
cText=""
urlText="asai"
title[1]=" Wrap  Shape-75"
size[1]="40×30 cm"
mat[1]="カシュー・鉛・真鍮"
price[1]="40000"
title[2]=" Wrap  Shape-70 "
size[2]="40×30 cm"
mat[2]="カシュー・鉛・真鍮"
price[2]="40000"
}

artists[2]= new artist;
with (artists[2]) {
name1="石塚　沙矢香"
name2="いしづか　さやか"
cText="日常生活で感じている様々な物事の記憶、感覚、を絵の具や糸や布をつかって表現。"
urlText="isiduka"
title[1]="帰りミチ"
size[1]="72.5×30.0cm"
mat[1]="油彩"
price[1]="17000"
title[2]="ささめく"
size[2]="72.5×53.0cm"
mat[2]="油彩"
price[2]="60000"
title[3]="春・・・雨"
size[3]="27.5×27.5(S3)"
mat[3]="油彩"
price[3]="10000"
title[4]="曇り菜の花"
size[4]="27.5×27.5(S3)"
mat[4]="油彩"
price[4]="6000"
title[5]="春の雨歌"
size[5]="27.5×22.0(F3)"
mat[5]="油彩"
price[5]="15000"
}

artists[3]= new artist;
with (artists[3]) {
name1="犬飼　三千子"
name2="いぬかい　みちこ"
cText="クリエイティブなことに一番重点をおいて人のしていない仕事、あまりみたことのない作品を制作することを心がけています。"
urlText="inukai"
title[1]="赤い世界"
size[1]="20×30cm"
mat[1]="木板"
price[1]="15000"
title[2]="Mの宇宙"
size[2]="40×30cm"
mat[2]="合板・アクリル"
price[2]="50000"
}

artists[4]= new artist;
with (artists[4]) {
name1="上野　秀一"
name2="うえの　しゅういち"
cText="生きている物から感じ取れる世界"
urlText="uenos"
title[1]="黄色いヒコーキNo.1"
size[1]="30×23cm"
mat[1]="油彩"
price[1]="20000"
title[2]="黄色いヒコーキNo.2"
size[2]="30×23cm"
mat[2]="油彩"
price[2]="20000"
title[3]="空飛ぶ船"
size[3]="30×23cm"
mat[3]="油彩"
price[3]="20000"
title[4]="雲を歩く"
size[4]="30×23cm"
mat[4]="油彩"
price[4]="20000"
title[5]="黄色い風"
size[5]="26×18.5cm"
mat[5]="水彩"
price[5]="15000"
}

artists[5]= new artist;
with (artists[5]) {
name1="上野　真由"
name2="うえの　まゆ　"
cText=""
urlText="uenom"
title[1]="蟻の墓標"
size[1]="30cm×30cm"
mat[1]="油彩・キャンバス・古木・楮・漆・鉄"
price[1]="28000"
title[2]="蟻の墓標"
size[2]="30cm×30cm"
mat[2]="油彩・キャンバス・古木・楮・漆・鉄"
price[2]="28000"
title[3]="蟻の墓標"
size[3]="30cm×30cm"
mat[3]="油彩・キャンバス・古木・楮・漆・鉄"
price[3]="28000"
title[4]="蟻の墓標"
size[4]="30cm×30cm"
mat[4]="油彩・キャンバス・古木・楮・漆・鉄"
price[4]="28000"
}

artists[6]= new artist;
with (artists[6]) {
name1="越前　和代"
name2="えちぜん　かずよ"
cText=""
urlText="etizen"
title[1]="黄色いバラ"
size[1]="A2"
mat[1]="シルクスクリーン（ケント紙）"
price[1]="35000"
title[2]="冬の位相"
size[2]="A4"
mat[2]="シルクスクリーン（ケント紙）"
price[2]="8000"
title[3]="ヴェルサイユ"
size[3]="A2"
mat[3]="シルクスクリーン（ケント紙）"
price[3]="25000"
}

artists[7]= new artist;
with (artists[7]) {
name1="岡田　幸子"
name2="おかだ　さちこ"
cText=""
urlText="okada"
title[1]="カップ、ソーサー"
size[1]=""
mat[1]="陶土、下絵の具"
price[1]="4000"
title[2]="TIME SPACE"
size[2]="20.5×20.5 cm"
mat[2]="陶板"
price[2]="25000"
title[3]="カップ、ソーサー"
size[3]=""
mat[3]="陶土、下絵の具"
price[3]="4000"
title[4]="カップ、ソーサー"
size[4]=""
mat[4]="陶土、下絵の具"
price[4]="4000"
}

artists[8]= new artist;
with (artists[8]) {
name1="小沢　かほる"
name2="おざわ　かほる"
cText="銅の腐食が生み出す色をつかまえたい"
urlText="ozawa"
title[1]="無題"
size[1]="20×34.5cm"
mat[1]="エッチング、ハーネミューレ（紙）"
price[1]="6000（シート）額￥5000"
title[2]="秋分の日"
size[2]="41.5×28.5cm"
mat[2]="エッチング、ハーネミューレ（紙）"
price[2]="7000（シート）額￥6000"
}

artists[9]= new artist;
with (artists[9]) {
name1="片岡　孝一"
name2="かたおか　こういち"
cText="扉は、空間Ａから空間Ｂへ入ることを許されたものに対しては「受容」という機能をもつが、空間Ｂに入ることを許されないものに対しては「拒絶」という、相反する機能を併せもつ。<br>扉は、人間の人生の節目節目においても、その境界面として存在する。"
urlText="kataoka"
title[1]="  作品　2003-4"
size[1]="30×40cm"
mat[1]="写真"
price[1]="10000"
title[2]="  作品　2003-5"
size[2]="40×30cm"
mat[2]="写真"
price[2]="10000"
title[3]=" 作品　2003-3"
size[3]="40×30cm"
mat[3]="写真"
price[3]="10000"
}

artists[10]= new artist;
with (artists[10]) {
name1="片山　晴恵"
name2="かたやま　はるえ"
cText="現代を生きる人間のふたした表情を捉え、その中に、個々の精神の持つ光と闇を表現する。"
urlText="katayama"
title[1]="アキレス"
size[1]="30×30cm"
mat[1]="石素、布、糸、その他"
price[1]="50000"
title[2]="火神"
size[2]="30×40cm"
mat[2]="石素、布、糸、その他"
price[2]="100000"
title[3]="羊神"
size[3]="30×40cm"
mat[3]="石素、布、糸、その他"
price[3]="80000"
}

artists[11]= new artist;
with (artists[11]) {
name1="門倉　直子"
name2="かどくら　なおこ"
cText="軽快で、美しく、とんがってる、表現を目指しています。"
urlText="kadokura"
title[1]="NAGANOヘルシー"
size[1]="A3"
mat[1]="水彩"
price[1]="30000"
title[2]="アオダチの花を見たか"
size[2]="A3"
mat[2]="水彩"
price[2]="30000"
title[3]="カサもって元気"
size[3]="A3"
mat[3]="水彩"
price[3]="30000"
}

artists[12]= new artist;
with (artists[12]) {
name1="国武　一弥"
name2="くにたけ　かずや"
cText=""
urlText="kunitake"
title[1]="時の色"
size[1]="27.3×27.3cm"
mat[1]="油彩"
price[1]="40000"
title[2]="時の色"
size[2]="27.3×27.3cm"
mat[2]="油彩"
price[2]="40000"
title[3]="時の色"
size[3]="27.3×27.3cm"
mat[3]="油彩"
price[3]="40000"
title[4]="時の色"
size[4]="27.3×27.3cm"
mat[4]="油彩"
price[4]="40000"
}

artists[13]= new artist;
with (artists[13]) {
name1="酒井　清一"
name2="さかい　せいいち"
cText="私の住む房総には、たくさんの漂流物が流れ着く海岸があり、かつて建築や舟に使われていた流木を拾い集め、箱舟を造っている。<br>　今回、これに積み込むものは「禁断の果実」である。エバが誘惑にかられてアダムとともに食べ、全能の神と同じ善悪を知り、楽園から追放された、あの果実である。来場者は、これを自由に持ち帰り、勇気を出して食べるもよし、眺めるもよし、あるいは私の作品の一部を共有する喜びを味わってもよい。<br>あなたは、たったひとつの果実を通して、この21世紀の希望と幸福そして美に満ちた世界＝エデンの園に住まうことができるかどうか考えられるのである。"
urlText="sakai"
title[1]="縄文の箱舟　Ｓ-0215"
size[1]="30×40×4 cm"
mat[1]="流木の箱舟　7000年前のバ倶　　砂　絵の具<br>2001-2002"
price[1]=""
title[2]="智の箱舟　Ｓ-0202"
size[2]="20×17×16 cm"
mat[2]="流木の箱舟　古書<br>2001-2002"
price[2]=""
title[3]="生命の箱舟　Ｓ-0215"
size[3]="31.5×15×7 cm"
mat[3]="流木の箱舟　せみのぬけがら<br>2001-2002"
price[3]=""
}

artists[14]= new artist;
with (artists[14]) {
name1="釣谷　百合子"
name2="つりたに　ゆりこ"
cText="絵／いつまでもさしのべる手そのもの<br>すべての無意識へと響く　ひとつの言葉"
urlText="turitani"
title[1]="海底を愛撫する女"
size[1]="ポストカードサイズ"
mat[1]="アクリルガッシュ"
price[1]="30000"
title[2]="∞"
size[2]="ポストカードサイズ"
mat[2]="アクリルガッシュ"
price[2]="30000"
}

artists[15]= new artist;
with (artists[15]) {
name1="中田　淳子"
name2="なかた　じゅんこ"
cText="ひとの感情がMAXになったとき、おもてに出てくるもの。<br>その度合いが強ければ強いほど、真剣な表情はおもしろい。<br>それは見ている側を笑わせるほどのものに昇華される。<br>共感とともに、私は具現を試みる。"
urlText="nakata"
title[1]="双面"
size[1]="120×200×35mm"
mat[1]="陶器"
price[1]="30000"
title[2]="忍耐面045"
size[2]="200×175×100mm"
mat[2]="陶器"
price[2]="50000"
title[3]="壁神"
size[3]="480×80×35mm"
mat[3]="陶器"
price[3]="70000"
title[4]="王花瓶"
size[4]="130×95×70mm"
mat[4]="陶器"
price[4]="30000"
title[5]="忍耐玉シリーズ"
size[5]="直径2〜3cm"
mat[5]="陶器"
price[5]="8000/1個"
}

artists[16]= new artist;
with (artists[16]) {
name1="原田　あづさ"
name2="はらだ　あづさ"
cText="絵を見つめているうちに、ゆっくりと、だんだんと、瞳の奥で像を結んでいくような、表情を変えていくような、そんな絵を描けたら良いと思っています。"
urlText="harada"
title[1]="GRADUALLY(2002)"
size[1]="390x310"
mat[1]="アクリルカラー"
price[1]="40000"
title[2]="GRADUALLY(05/#2/03)"
size[2]="315x247"
mat[2]="アクリルカラー"
price[2]="35000"
}

artists[17]= new artist;
with (artists[17]) {
name1="平田　清隆"
name2="ひらた　きよたか"
cText="「自己」を解放するために<br>・束縛された意識の中にある自分を絵画空間に解き放つこと。<br>・モノ（あるいは自然）と自己との協調・共存を図ること<br>"
urlText="hirata"
title[1]="無題"
size[1]="10p"
mat[1]="透明水彩、ガッシュ"
price[1]="55000"
title[2]="無題"
size[2]="5p"
mat[2]="透明水彩、ガッシュ"
price[2]="30000"
title[3]="無題"
size[3]="10p"
mat[3]="透明水彩、ガッシュ"
price[3]="55000"
title[4]="無題"
size[4]="10p"
mat[4]="透明水彩、ガッシュ"
price[4]="55000"
title[5]="無題"
size[5]="10p"
mat[5]="透明水彩、ガッシュ"
price[5]="55000"
title[6]="無題"
size[6]="5p"
mat[6]="透明水彩、ガッシュ"
price[6]="30000"
}

artists[18]= new artist;
with (artists[18]) {
name1="松尾　文洋"
name2="まつお　ふみひろ"
cText="好きなものを自由に表現したい！"
urlText="matuo"
title[1]="無題（ドローイング）"
size[1]="B4"
mat[1]="紙、フェルトペン"
price[1]=""
title[2]="無題（ドローイング）"
size[2]="B4"
mat[2]="紙、フェルトペン"
price[2]=""
title[3]="無題（ドローイング）"
size[3]="B4"
mat[3]="紙、フェルトペン"
price[3]=""
title[4]="無題（ドローイング）"
size[4]="B4"
mat[4]="紙、フェルトペン"
price[4]=""
title[5]="無題（ドローイング）"
size[5]="B4"
mat[5]="紙、フェルトペン"
price[5]=""
}

artists[19]= new artist;
with (artists[19]) {
name1="柳　ヨシカズ"
name2="やなぎ　ヨシカズ"
cText="主にシンメトリーな構図を用いて油彩画を制作。<br>日常にひそむカワイイ瞬間、フシギな瞬間に興味を持つ。"
urlText="yanagi"
title[1]="ウツクシイカタチ"
size[1]="455×530mm"
mat[1]="油彩"
price[1]="20000"
title[2]="ウツクシイカタチ"
size[2]="652×910mm"
mat[2]="油彩"
price[2]="40000"
title[3]="ウツクシイカタチ"
size[3]="158×227mm"
mat[3]="油彩"
price[3]="10000"
title[4]="ウツクシイカタチ"
size[4]="530×530mm"
mat[4]="油彩"
price[4]="30000"
title[5]="ウツクシイカタチ"
size[5]="158×227mm"
mat[5]="油彩"
price[5]="10000"
}

