function gl_write(){
	html = '';
	sindex = 0;
	for(i=0; i<country_text.length; i++){

//		if(country_text[i]=="Japan"){
//			sindex = i;
//		}
// ここから（伊藤）
		html += '<option value="' + country_link[i] + '"' ; 
		if(country_text[i]=="Japan"){
			html += ' selected="selected" '; 
		}
		html += '>' + country_text[i] + '';
		if(country_text[i]=="Japan"){
			html += ' </option>'; 
		}
//　ここまで編集（伊藤）
	}
	document.write(html);
	sb = document.getElementById("country_select");
//	sb.options[sindex].defaultSelected = true;
}

function menu_write(category){
	html = '<table border="0" cellspacing="1" style="cursor:hand" class="submenu" id="sm_'+category+'" onmouseover="menu_popup('+category+');" onmouseout="menu_hide('+category+');">';
	for(i=0; i<menu_item_max; i++){
		if(menu_text[category][i]){
			html += "<tr>\n"+'<td id="cell_'+ category + i +'" onmouseover="cell_over('+category+','+i+');" onclick="document.location.href=\''+ root + menu_link[category][i]+'\';">';
			html += menu_text[category][i];
			html += "</td>\n</tr>\n";
		}
	}
	html += "</table>";
	document.write(html);
	
	//alert(html);
	
	sm_table = document.getElementById("sm_"+category);
	sm_table.style.display = "none";
	sm_table.style.position = "absolute";
	sm_table.style.top = top[category];
	sm_table.style.left = left[category];
	
	return;
}

function footer_write(){
	separator = '<img src="http://www.sonicjapan.co.jp/shared/images/spacer.gif" alt="" width="15" height="3">|<img src="http://www.sonicjapan.co.jp/shared/images/spacer.gif" alt="" width="15" height="3">';
	html = '';
	html = '<a href="'+ root + footer_link[0] +'">'+ footer_text[0] +'</a>';
	for(i=1; i<footer_num; i++){
		html += separator;
		html = html +'<a href="'+ root + footer_link[i] +'">'+ footer_text[i] +'</a>';
	}
	html = html +"<br>\n";
	html += copy_text;
	document.write(html);
	return;
}

function header_write(){
	separator = '<img src="http://www.sonicjapan.co.jp/shared/images/spacer.gif" alt="" width="15" height="3">|<img src="http://www.sonicjapan.co.jp/shared/images/spacer.gif" alt="" width="15" height="3">';
	html = '';
	html = '<a href="'+ root + header_link[0] +'">'+ header_text[0] +'</a>';
	for(i=1; i<header_num; i++){
		html += separator;
		html = html +'<a href="'+ root + header_link[i] +'">'+ header_text[i] +'</a>';
	}
	html = html +"<br>\n";
//	html += copy_text;
	document.write(html);
	return;
}
