var $baseURL = "http://www.airpen.jp";
var $alt = "Copyright 2006 Pentel Co., All Rights Reserved.";

var $alt2007 = "Copyright 2007 Pentel Co., Ltd. All Rights Reserved.";
var $image2007 = $baseURL+"/images/footer2007.gif";
var $image2007_2 = $baseURL+"/images/footer2007_2.gif";

var $image = $baseURL+"/images/footer.gif";
var $top_image = $baseURL+"/images/top_footer.gif";
var $image2 = $baseURL+"/images/footer_pentel.gif";
var $top_image2 = $baseURL+"/images/top_footer_pentel.gif";

function writeCopyright() {
	document.write("<img src='"+$image+"' width='665' height='40' alt='"+$alt+"' border='0'><a href='http://www.pentel.co.jp/' target='_blank'><img src='"+$image2+"' width='85' height='40' alt='"+$alt+"' border='0'></a>");
}
function writeTopCopyright() {
	document.write("<img src='"+$top_image+"' width='665' height='40' alt='"+$alt+"' border='0'><a href='http://www.pentel.co.jp/' target='_blank'><img src='"+$top_image2+"' width='80' height='40' alt='"+$alt+"' border='0'></a>");
}
function writeCopyright2007() {
	document.write("<img src='"+$image2007+"' width='665' height='40' alt='"+$alt2007+"'><a href='http://www.pentel.co.jp/' target='_blank'><img src='"+$image2+"' width='85' height='40' alt='"+$alt+"' class='pentel'></a>");
}
function writeShopCopyright2007() {
	document.write("<img src='"+$image2007_2+"' width='480' height='40' alt='"+$alt2007+"'><a href='http://www.pentel.co.jp/' target='_blank'><img src='"+$image2+"' width='85' height='40' alt='"+$alt+"' class='pentel'></a>");
}

menuNameList = new Array(
	'gaiyo',
	'shoukai',
	'katsuyou',
	'teian',
	'support',
	'hanbaiten',
	'soft',
	'contact',
	'sitemap',
	'solution',
	'shop',
	'psoft'
	
);
topMenuOffImageList = new Array();
topMenuOffImageList[0] = new Image(); topMenuOffImageList[0].src = $baseURL+"/images/top_gaiyo_off.jpg";
topMenuOffImageList[1] = new Image(); topMenuOffImageList[1].src = $baseURL+"/images/top_shoukai_off.jpg";
topMenuOffImageList[2] = new Image(); topMenuOffImageList[2].src = $baseURL+"/images/top_katsuyou_off.jpg";
topMenuOffImageList[3] = new Image(); topMenuOffImageList[3].src = $baseURL+"/images/top_teian_off.jpg";
topMenuOffImageList[4] = new Image(); topMenuOffImageList[4].src = $baseURL+"/images/top_support_off.jpg";
topMenuOffImageList[5] = new Image(); topMenuOffImageList[5].src = $baseURL+"/images/top_hanbaiten_off.gif";
topMenuOffImageList[6] = new Image(); topMenuOffImageList[6].src = $baseURL+"/images/top_soft_off.gif";
topMenuOffImageList[7] = new Image(); topMenuOffImageList[7].src = $baseURL+"/images/top_contact_off.gif";
topMenuOffImageList[8] = new Image(); topMenuOffImageList[8].src = $baseURL+"/images/top_sitemap_off.gif";
topMenuOffImageList[9] = new Image(); topMenuOffImageList[9].src = $baseURL+"/images/top_solution_off.jpg";
topMenuOffImageList[10] = new Image(); topMenuOffImageList[10].src = $baseURL+"/images/top_shop_off.gif";
topMenuOffImageList[11] = new Image(); topMenuOffImageList[11].src = $baseURL+"/images/top_psoft_off.gif";


topMenuOnImageList = new Array();
topMenuOnImageList[0] = new Image(); topMenuOnImageList[0].src = $baseURL+"/images/top_gaiyo_on.jpg";
topMenuOnImageList[1] = new Image(); topMenuOnImageList[1].src = $baseURL+"/images/top_shoukai_on.jpg";
topMenuOnImageList[2] = new Image(); topMenuOnImageList[2].src = $baseURL+"/images/top_katsuyou_on.jpg";
topMenuOnImageList[3] = new Image(); topMenuOnImageList[3].src = $baseURL+"/images/top_teian_on.jpg";
topMenuOnImageList[4] = new Image(); topMenuOnImageList[4].src = $baseURL+"/images/top_support_on.jpg";
topMenuOnImageList[5] = new Image(); topMenuOnImageList[5].src = $baseURL+"/images/top_hanbaiten_on.gif";
topMenuOnImageList[6] = new Image(); topMenuOnImageList[6].src = $baseURL+"/images/top_soft_on.gif";
topMenuOnImageList[7] = new Image(); topMenuOnImageList[7].src = $baseURL+"/images/top_contact_on.gif";
topMenuOnImageList[8] = new Image(); topMenuOnImageList[8].src = $baseURL+"/images/top_sitemap_on.gif";
topMenuOnImageList[9] = new Image(); topMenuOnImageList[9].src = $baseURL+"/images/top_solution_on.jpg";
topMenuOnImageList[10] = new Image(); topMenuOnImageList[10].src = $baseURL+"/images/top_shop_on.gif";
topMenuOnImageList[11] = new Image(); topMenuOnImageList[11].src = $baseURL+"/images/top_psoft_on.gif";

menuOffImageList = new Array();
menuOffImageList[0] = new Image(); menuOffImageList[0].src = $baseURL+"/images/local_gaiyo_off.gif";
menuOffImageList[1] = new Image(); menuOffImageList[1].src = $baseURL+"/images/local_seihin_off.gif";
menuOffImageList[2] = new Image(); menuOffImageList[2].src = $baseURL+"/images/local_katsuyou_off.gif";
menuOffImageList[3] = new Image(); menuOffImageList[3].src = $baseURL+"/images/local_teian_off.gif";
menuOffImageList[4] = new Image(); menuOffImageList[4].src = $baseURL+"/images/local_support_off.gif";
menuOffImageList[5] = new Image(); menuOffImageList[5].src = $baseURL+"/images/local_hanbaiten_off.gif";
menuOffImageList[6] = new Image(); menuOffImageList[6].src = $baseURL+"/images/local_soft_off.gif";
menuOffImageList[7] = new Image(); menuOffImageList[7].src = $baseURL+"/images/local_contact_off.gif";
menuOffImageList[8] = new Image(); menuOffImageList[8].src = $baseURL+"/images/local_sitemap_off.gif";
menuOffImageList[9] = new Image(); menuOffImageList[9].src = $baseURL+"/images/local_solution_off.gif";
menuOffImageList[10] = new Image(); menuOffImageList[10].src = $baseURL+"/images/local_airpenShop_off.gif";
menuOffImageList[11] = new Image(); menuOffImageList[11].src = $baseURL+"/images/local_Psoft_off.gif";

menuOnImageList = new Array();
menuOnImageList[0] = new Image(); menuOnImageList[0].src = $baseURL+"/images/local_gaiyo_on.gif";
menuOnImageList[1] = new Image(); menuOnImageList[1].src = $baseURL+"/images/local_seihin_on.gif";
menuOnImageList[2] = new Image(); menuOnImageList[2].src = $baseURL+"/images/local_katsuyou_on.gif";
menuOnImageList[3] = new Image(); menuOnImageList[3].src = $baseURL+"/images/local_teian_on.gif";
menuOnImageList[4] = new Image(); menuOnImageList[4].src = $baseURL+"/images/local_support_on.gif";
menuOnImageList[5] = new Image(); menuOnImageList[5].src = $baseURL+"/images/local_hanbaiten_on.gif";
menuOnImageList[6] = new Image(); menuOnImageList[6].src = $baseURL+"/images/local_soft_on.gif";
menuOnImageList[7] = new Image(); menuOnImageList[7].src = $baseURL+"/images/local_contact_on.gif";
menuOnImageList[8] = new Image(); menuOnImageList[8].src = $baseURL+"/images/local_sitemap_on.gif";
menuOnImageList[9] = new Image(); menuOnImageList[9].src = $baseURL+"/images/local_solution_on.gif";
menuOnImageList[10] = new Image(); menuOnImageList[10].src = $baseURL+"/images/local_airpenShop_on.gif";
menuOnImageList[11] = new Image(); menuOnImageList[11].src = $baseURL+"/images/local_Psoft_on.gif";

function changeTopMenuImage($menuImageNo) {
	$menuImageName = menuNameList[$menuImageNo]
	document.images[$menuImageName].src = topMenuOnImageList[$menuImageNo].src;
}
function returnTopMenuImage($menuImageNo) {
	$menuImageName = menuNameList[$menuImageNo];
	document.images[$menuImageName].src = topMenuOffImageList[$menuImageNo].src;
}

function changeMenuImage($menuImageNo) {
	$menuImageName = menuNameList[$menuImageNo]
	document.images[$menuImageName].src = menuOnImageList[$menuImageNo].src;
}
function returnMenuImage($menuImageNo) {
	$menuImageName = menuNameList[$menuImageNo];
	document.images[$menuImageName].src = menuOffImageList[$menuImageNo].src;
}

//HelpWindow Open
function helpWinOpen(){
	var $URL = $baseURL+"/help.html";
	window.open($URL,"Help","toolbar=yes,location=no,directories=no,status=yes,scrollbars=no,resizable=no,width=430,height=460")
}
//shopWindow Open
function shopWinOpen(){
	var $URL = "https://ssl.pentel.co.jp/cgi-bin/airpenShop/shop.cgi"
	var $shopWindow = window.open($URL,"airpenShop","toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width=600,height=790");
	$shopWindow.focus();
}
function q1detailWinOpen(){
	var $URL = $baseURL+"/support/faq_q1detail.html";
	var $q1detailWindow = window.open($URL,"q1detail","toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width=600,height=360");
	$q1detailWindow.focus();
}