﻿var m_arr = new Array(42,149,256,363,470,577);
var join_arr = new Array(50,155,260);
function swf_load(fileid, filename, widths, heights, fvs, wmd)
{
this.FlashVars = (fvs != undefined)? fvs :'';
this.Wmod = (wmd != undefined)? wmd :''; 
var strSwf = "";
strSwf += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
strSwf += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"';
strSwf += 'width="'+widths+'" height="'+heights+'" id="'+fileid+'" >';
strSwf += '<param name="movie" value="'+filename+'" />';
strSwf += '<param name="quality" value="high" />';
strSwf += '<param name="menu" value="false" />';
strSwf += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : '';
strSwf += (Wmod != null) ? '<param name="wmode" value="'+Wmod+'">' : ''; 
strSwf += '<embed';
strSwf += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : ''; 
strSwf += (Wmod != null) ? ' wmode="'+Wmod+'"' : ''; 
strSwf += ' src="'+filename+'" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer"';
strSwf += 'type="application/x-shockwave-flash" width="'+widths+'" height="'+heights+'"  name="'+fileid+'" ></embed>';
strSwf += '</object>';
document.write(strSwf);
}
function $(id){
try {return document.getElementById(id);}catch(e){alert("error！");}
}
function n_show(id,b_len){
var i;
b_len = Math.floor(b_len) + 1;
for(i=1;i<b_len;i++){
try {	
$("nav_p_"+i).src = "images/nav_"+i+".jpg";
}
catch(e){}
}
$("nav_p_"+id).src = "images/nav_"+id+"_.jpg";
}
function n_show_out(id){
$("nav_p_"+id).src = "images/nav_"+id+".jpg";	
}
function arr_move(id,m_n){
$(id).style.paddingLeft = m_arr[m_n-1] + "px";
var i;
var a_len = 7;
for(i=1;i<a_len;i++){
$("c_f_d_"+i).style.display = "none";	
}
$("c_f_d_"+m_n).style.display = "block";
}
function imgLoad(p_img){
  var img = new Image();
  img.src = p_img;
}
function join_show(id,b_len){
var i;
b_len = Math.floor(b_len) + 1;
for(i=1;i<b_len;i++){
try {	
$("c_join_img_"+i).src = "images/b_join_"+i+".jpg";
$("c_join_c_"+i).style.display = "none";
}
catch(e){}
}
$("c_join_img_"+id).src = "images/b_join_"+id+"_.jpg";
$("c_join_arr").style.paddingLeft = join_arr[id-1] + "px";
$("c_join_c_"+id).style.display = "block";
}

function join_3_show(id,b_len){
var i;
b_len = Math.floor(b_len) + 1;
for(i=1;i<b_len;i++){
try {	
$("c_join_c_3_"+i).style.display = "none";
$("c_join_a_"+i).className = "c_join_a_c";
}
catch(e){}
}
$("c_join_c_3_"+id).style.display = "block";
$("c_join_a_"+id).className = "c_join_a_m";
}
// get locatioin value # 
function getLocaValue(){
var i;
var locationStr = location.href;
    locationStr = unescape(locationStr);
var locationStrArr = locationStr.split("#");
var tmpStr="";
if(locationStrArr.length<=1)
{
return null;
}else{
tmpStr = locationStrArr[1]; 
	if(tmpStr.length!=1){
	return null;
	}else if(isNaN(tmpStr)){
	return null;
	}else if(tmpStr>4 || tmpStr<1){
	return null;	
	}
}
join_show(3,3);
join_3_show(tmpStr,4);
}
window.onload = function(){getLocaValue()}