// modefi date
modify_date="Mar. 24, 2005 "

// folder image change

function wsStyle(location,flag) {
 if(flag==3){
		location.style.backgroundImage="url(img/h1round.gif)";
		} else if(flag==4){
		location.style.backgroundImage="url(img/h1.gif)";
		} else if(flag==5){
		location.style.listStyleImage="url(img/folder_open.gif)";
		} else if(flag==6){
		location.style.listStyleImage="url(img/folder_close.gif)";
		}
}

//top nabi

bgImg=new Array("home_a","home","download_a","download","new_a","new","info_a","info","books_a","books",
"install_a","install","samples_a","samples","mailing_a","mailing","english_a","english","1","home","2","download",
"3","new","4","info","5","books","6","install","7","samples","8","mailing","9","english");

function wsNabi(i){
  switch(i%2) {case 1:num=i-1;break; default: num=i;}
 document.getElementsByTagName("li")[num/2].style.backgroundImage= 'url(img/'+bgImg[i+opera]+".gif)";
}

//top menu select country

var goJamp = new Array(); 
goJamp[2] = "http://www.widestudio.org/cn/index.html";//China 
goJamp[3] = "http://www.widestudio.org/index_soon.html";// Danish
goJamp[4] = "http://www.widestudio.org/index_soon.html";// Dutch
goJamp[5] = "http://www.widestudio.org/EE/index.html";// English
goJamp[6] = "http://www.widestudio.org/index_soon.html";// Finnish
goJamp[7] = "http://www.widestudio.org/index_soon.html";// Italian
goJamp[8] = "http://www.widestudio.org/ja/index.html";// Japanese
goJamp[9] = "http://www.widestudio.org/ko/index.html";//Korean
goJamp[10] = "http://www.widestudio.org/pt/index.html";//Portuguese
goJamp[11] = "http://www.widestudio.org/index_soon.html";//Russia
goJamp[12] = "http://www.widestudio.org/index_soon.html";//Spanish
goJamp[13] = "http://www.widestudio.org/index_soon.html";//Swedish
goJamp[14] = "http://www.widestudio.org/index_soon.html";//Thai
goJamp[15] = "http://www.widestudio.org/index_soon.html";//Vietnamese


function goLang(){ 
 var goURL = document.selectLang.urlLang.selectedIndex; 
 if (goURL <= 1) return; 
 window.location.href = goJamp[goURL]; 
} 

// select country

function goCountry(){ 
var goURL2 =  document.selectCountry.urlCountry.options[document.selectCountry.urlCountry.selectedIndex].value ;
 var goURLcheck= document.selectCountry.urlCountry.selectedIndex;
 if (goURLcheck <= 1) return; 
 window.location.href = goURL2; 
} 

// if mac fontsize change

var ua = navigator.userAgent ;
        if(ua.indexOf('Mac')!=-1){
        document.write("<style type='text/css'><!-- body {font-size: 10px; line-height: 12px;} --> <"+"/style>")
}

// counter

function counter(){
document.write('<img src="http:\/\/vcgi.mmjp.or.jp\/cgi-bin\/Count.cgi?df=index.dat|domain=www.widestudio.org|md=7|ft=1|df=count2.dat" ALT="">')
}