/////////////////////////////////////////////
//Sandy 4-21-2001 version 1.0
//Supports IE4.0+,NS4+
//NS4 - no mouseover hover and button effect
/////////////////////////////////////////////
//
//creating an array of arrays 
//
var myArray = new Array( 
new Array(
"力宏档案","http://www.leehom-cn.com/OurHomechina.files/aboutlh/aboutlh.html target=_blank",
"力宏简介I","http://www.leehom-cn.com/OurHomechina.files/aboutlh/resume1.html target=_blank",
"力宏简介II","http://www.leehom-cn.com/OurHomechina.files/aboutlh/resume2.html target=_blank",
"得奖纪录","http://www.leehom-cn.com/OurHomechina.files/aboutlh/index.htm target=_blank",
"广告纪录","http://www.leehom-cn.com/OurHomechina.files/aboutlh/ad.htm target=_blank",
"发行纪事","http://www.leehom-cn.com/OurHomechina.files/aboutlh/album.htm target=_blank",
"演艺纪事","http://www.leehom-cn.com/OurHomechina.files/aboutlh/events.htm target=_blank",
" ","/goodies/support.shtml"
),
new Array(
"新闻台","http://www.leehom-cn.com/bbs/forum-2-1.html target=_blank",
"力宏最新行程","http://www.google.com/calendar/embed?src=info%40leehom-cn.com&title=Hom'Schedule&chrome=NAVIGATION&mode=AGENDA&height=220 target=_blank",
" ","/feature/costar3.shtml"
),
new Array(
"个人专辑","http://www.leehom-cn.com/OurHomechina.files/albums/albums.htm target=_blank",
"专辑歌词","http://www.leehom-cn.com/OurHomechina.files/albums/albums.htm target=_blank",
"电影","http://www.leehom-cn.com/OurHomechina.files/movies/index.htm target=_blank",
"其他参与作品","http://www.leehom-cn.com/OurHomechina.files/albums/others.htm target=_blank",
"力宏乐评全记录","http://www.leehom-cn.com/OurHomechina.files/comments/index.htm target=_blank",
"写真文字书","http://www.leehom-cn.com/OurHomechina.files/books/index.htm target=_blank",
" ","/goodies/support.shtml"
),
new Array(
"力宏周记","http://www.leehom-cn.com/OurHomechina.files/diary/diary.htm target=_blank",
"日本纪行","http://www.leehom-cn.com/OurHomechina.files/diary/diaryinjapan.htm target=_blank",
"力宏手稿","http://www.leehom-cn.com/OurHomechina.files/manuscript/index.htm target=_blank",
"日本官网心情日记","http://www.leehom-cn.com/OurHomechina.files/diary/diaryjapan.htm target=_blank",
" ","/photos/photo12.shtml"
),
new Array(
"演唱会大搜集","/multimedia/screensaver.shtml",
"慈善活动纪录等","/multimedia/wallpaper.shtml",
" ","/multimedia/tvbthemesong.shtml"
),
new Array(
"演唱会大搜集","http://www.leehom-cn.com/OurHomechina.files/concert/index.htm target=_blank",
"慈善活动纪录等(建设中)","建设中",
" ","/goodies/chris.shtml"
),
new Array(
"MTV大搜查(建设中)","建设中",
"广告全纪录","http://www.leehom-cn.com/OurHomechina.files/ad/index.htm target=_blank",
"其他影音档(建设中)","建设中",
"历年杂志专访","http://www.leehom-cn.com/OurHomechina.files/magazine/index.htm target=_blank",
"封面大搜集","http://www.leehom-cn.com/OurHomechina.files/coverleehom/index.htm target=_blank",
" ","/special/heavenly/tony.html"
),
new Array(
"北京歌迷会","http://www.leehom-cn.com/bbs/forum-20-1.html target=_blank",
"上海歌迷会","http://www.leehom-cn.com/bbs/forum-21-1.html target=_blank",
"杭州歌迷会","http://www.leehom-cn.com/bbs/forum-41-1.html target=_blank",
"成都歌迷会","http://www.leehom-cn.com/bbs/forum-55-1.html target=_blank",
"更多...","http://www.leehom-cn.com/bbs/forum-18-1.html target=_blank",
" ","/special/heavenly/tony.html"
),
new Array(
" ","/tvb/index.shtml",
" ","/magazines/1.shtml",
" ","/special/itmfl/picture.html",
" ","/special/happy/1.html",
" ","/special/under/1.html",
" ","/special/heavenly/tony.html"
),
new Array(
"创站历史", "http://www.leehom-cn.com/OurHomechina.files/aboutclub/index.htm target=_blank",
"管理员和歌迷会干部资料","http://www.leehom-cn.com/OurHomechina.files/aboutclub/index.htm target=_blank",
"Email Us","mailto:info@leehom-cn.com"
)
);

function isEven(x) { return (x%2)?false:true; }
function isOdd(x) { return !isEven(x); }
var str ='';

function getContent(i){
	var newLength=myArray[i].length;
	var j=0;
	str='';
	while (j<newLength){
		if (isEven(j)){
			var myLink=myArray[i][j];
			var myURL=myArray[i][j+1];
		}
		str = str + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='+myURL+' class=tony>'+myLink+'</a>'
		j=j+2;
	}
	return str;
}

function moveout(which, html){
	which.style.background='#CC3300';
	for (i=0; i<8; i++){
		var menu = 'menu'+i;
		if (i!=html){
			document.getElementById(menu).style.background='#808080';
		}
	}
}

function movein(which, html){
	which.style.background='#CC3300'
	if (document.getElementById){
		document.getElementById("descriptions").innerHTML=getContent(html);
	} else {
		boxdescription.innerHTML=getContent(html);
	}
}

function rollmessage(html){
	if (document.all||document.getElementById){
		cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
		cross_el.innerHTML=(getContent(html))
	} else if (document.layers){
		document.d1.document.d2.document.write(getContent(html))
		document.d1.document.d2.document.close()
	}

}

function appear(){
	document.d1.visibility='show'
}

function regenerate(){
	window.location.reload()
}
function regenerate2(){
	if (document.layers){
		appear()
		setTimeout("window.onresize=regenerate",450)
	}
}


window.onload=regenerate2

function openWindow(theURL) {
  
var mywindow = window.open(theURL,"newwindow","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=400");

mywindow.focus();

}

function openWindowSize(url, w, h) {
    var options = "width=" + w + ",height=" + h + ",";
    options += "resizable=yes,scrollbars=no,status=no,";
    options += "menubar=no,toolbar=no,location=no,directories=no";
    var newWin = window.open(url, 'newWin', options);
    /*
    if (w!=undefined){
    	newWin.resizeTo(w+30,h+30)
    }else{
    	newwin.resizeTo(300,300)
    }
    */
    newWin.focus();
}

function openWindow(url, w, h) {
    var options = "width=" + w + ",height=" + h + ",";
    options += "resizable=yes,scrollbars=no,status=no,";
    options += "menubar=no,toolbar=no,location=no,directories=no";
    var newWin = window.open(url, 'newWin', options);
    /*
    if (w!=undefined){
    	newWin.resizeTo(w+30,h+30)
    }else{
    	newwin.resizeTo(300,300)
    }
    */
    newWin.focus();
}



