// browser test
browserVer=navigator.appVersion.charAt(0);
//image no


var IMG=new Array;
IMG[0]=0;
IMG[1]=0;
IMG[2]=0;
IMG[3]=0;
IMG[4]=0;
IMG[5]=0;
IMG[6]=0;
IMG[7]=0;
IMG[8]=0;
IMG[9]=0;

IMG[20]=0;


IMG[22]=0;
IMG[23]=0;

//Preload Images
if (browserVer >= 3){
    Cell1b = new Image(194,60);
    Cell1b.src = "main_img/IQD2.gif";
    Cell1 = new Image(194,60);
    Cell1.src = "main_img/IQD1.gif";
	Cell2b = new Image(194,60);
	Cell2b.src = "main_img/baby2.gif";
	Cell2 =new Image(194,60);
	Cell2.src = "main_img/baby1.gif";
	Cell3b = new Image(194,60);
	Cell3b.src = "main_img/chiiku2.gif";
	Cell3 =new Image(194,60);
	Cell3.src = "main_img/chiiku1.gif";
	Cell4b = new Image(194,60);
	Cell4b.src = "main_img/ohuro2.gif";
	Cell4 =new Image(194,60);
	Cell4.src = "main_img/ohuro1.gif";
	Cell5b = new Image(194,60);
	Cell5b.src = "main_img/mamagoto2.gif";
	Cell5 =new Image(194,60);
	Cell5.src = "main_img/mamagoto1.gif";
	Cell8b =new Image(194,60);
	Cell8b.src ="main_img/sunaba2.gif";
	Cell8 =new Image(194,60);
	Cell8.src ="main_img/sunaba1.gif";
	Cell9b =new Image(194,60);
	Cell9b.src ="main_img/kidssports2.gif";
	Cell9 =new Image(194,60);
	Cell9.src ="main_img/kidssports1.gif";
	Cell10b =new Image(194,60);
	Cell10b.src ="main_img/b-goods2.gif";
	Cell10 =new Image(194,60);
	Cell10.src ="main_img/b-goods1.gif";

	Cell21b =new Image(194,90);
	Cell21b.src ="main_img/rody_toy2.gif";
	Cell21 =new Image(194,90);
	Cell21.src ="main_img/rody_toy1.gif";
	Cell23b =new Image(194,30);
	Cell23b.src ="main_img/company2.gif";
	Cell23 =new Image(194,30);
	Cell23.src ="main_img/company1.gif";
	Cell24b =new Image(194,30);
	Cell24b.src ="main_img/otoiawase2.gif";
	Cell24 =new Image(194,30);
	Cell24.src ="main_img/otoiawase1.gif";




}

function criani(imageID)
{
	if (browserVer >= 3)
	{
	    if(imageID==IMG[0]){document.images[imageID ].src=Cell1b.src}
		if(imageID==IMG[1]){document.images[imageID ].src=Cell2b.src}
		if(imageID==IMG[2]){document.images[imageID ].src=Cell3b.src}
		if(imageID==IMG[3]){document.images[imageID ].src=Cell4b.src}
		if(imageID==IMG[4]){document.images[imageID ].src=Cell5b.src}
		if(imageID==IMG[5]){document.images[imageID ].src=Cell6b.src}
		if(imageID==IMG[6]){document.images[imageID ].src=Cell7b.src}
		if(imageID==IMG[7]){document.images[imageID ].src=Cell8b.src}
		if(imageID==IMG[8]){document.images[imageID ].src=Cell9b.src}
		if(imageID==IMG[9]){document.images[imageID ].src=Cell10b.src}
		
		if(imageID==IMG[20]){document.images[imageID ].src=Cell21b.src}

		if(imageID==IMG[22]){document.images[imageID ].src=Cell23b.src}
		if(imageID==IMG[23]){document.images[imageID ].src=Cell24b.src}
		
	}
}

function resetAni(imageID)
{
	if (browserVer >= 3)
	{
	    if(imageID==IMG[0]){document.images[imageID ].src=Cell1.src}
		if(imageID==IMG[1]){document.images[imageID ].src=Cell2.src}
		if(imageID==IMG[2]){document.images[imageID ].src=Cell3.src}
		if(imageID==IMG[3]){document.images[imageID ].src=Cell4.src}
		if(imageID==IMG[4]){document.images[imageID ].src=Cell5.src}

		if(imageID==IMG[7]){document.images[imageID ].src=Cell8.src}
		if(imageID==IMG[8]){document.images[imageID ].src=Cell9.src}
		if(imageID==IMG[9]){document.images[imageID ].src=Cell10.src}
		
		if(imageID==IMG[20]){document.images[imageID ].src=Cell21.src}

		if(imageID==IMG[22]){document.images[imageID ].src=Cell23.src}
		if(imageID==IMG[23]){document.images[imageID ].src=Cell24.src}
	}
}
//-->
