//plus poli トップ　top.swf読み込み
function active1()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="950" height="355" id="top">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="allowFullScreen" value="false" />\n');
document.write('<param name="movie" value="wp-content/themes/pluspoli/swf/top.swf" />\n');
document.write('<param name="loop" value="false" />\n');
document.write('<param name="quality" value="best" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<embed src="wp-content/themes/pluspoli/swf/top.swf" loop="false" quality="best" wmode="transparent" width="950" height="355" name="top" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
}

//plus poli トップ　top_login.swf読み込み（ログイン中用）
function active2()
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="950" height="355" id="top">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="allowFullScreen" value="false" />\n');
document.write('<param name="movie" value="wp-content/themes/pluspoli/swf/top_login.swf" />\n');
document.write('<param name="loop" value="false" />\n');
document.write('<param name="quality" value="best" />\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<embed src="wp-content/themes/pluspoli/swf/top_login.swf" loop="false" quality="best" wmode="transparent" width="950" height="355" name="top" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
}


//plus poli トップ　マウスオーバー時に写真とボタン画像を切り替える
function changeImage(num){
	if(num == 1){
		document.getElementById("stylebtn1").src="wp-content/themes/pluspoli/images/wp_btn_active1_on.gif";
		document.getElementById("styleimg").src="wp-content/themes/pluspoli/images/wp_photo_ac00.jpg";
	}else if(num == 2){
		document.getElementById("stylebtn2").src="wp-content/themes/pluspoli/images/wp_btn_career1_on.gif";
		document.getElementById("styleimg").src="wp-content/themes/pluspoli/images/wp_photo_ca00.jpg";
	}else if(num == 3){
		document.getElementById("stylebtn3").src="wp-content/themes/pluspoli/images/wp_btn_kirari1_on.gif";
		document.getElementById("styleimg").src="wp-content/themes/pluspoli/images/wp_photo_ki00.jpg";
	}else if(num == 4){
		document.getElementById("stylebtn4").src="wp-content/themes/pluspoli/images/wp_btn_yururi1_on.gif";
		document.getElementById("styleimg").src="wp-content/themes/pluspoli/images/wp_photo_yu00.jpg";
	}else if(num == 5){
		document.getElementById("stylebtn5").src="wp-content/themes/pluspoli/images/wp_btn_mirai1_on.gif";
		document.getElementById("styleimg").src="wp-content/themes/pluspoli/images/wp_photo_mi00.jpg";
	}else if(num == 6){
		document.getElementById("stylebtn6").src="wp-content/themes/pluspoli/images/wp_btn_joy1_on.gif";
		document.getElementById("styleimg").src="wp-content/themes/pluspoli/images/wp_photo_jo00.jpg";
	}
}


//plus poli トップ　マウスアウト時に写真とボタン画像を元に戻す
function returnImage(){
	document.getElementById("styleimg").src="wp-content/themes/pluspoli/images/wp_photo_style00.jpg";
	document.getElementById("stylebtn1").src="wp-content/themes/pluspoli/images/wp_btn_active1.gif";
	document.getElementById("stylebtn2").src="wp-content/themes/pluspoli/images/wp_btn_career1.gif";
	document.getElementById("stylebtn3").src="wp-content/themes/pluspoli/images/wp_btn_kirari1.gif";
	document.getElementById("stylebtn4").src="wp-content/themes/pluspoli/images/wp_btn_yururi1.gif";
	document.getElementById("stylebtn5").src="wp-content/themes/pluspoli/images/wp_btn_mirai1.gif";
	document.getElementById("stylebtn6").src="wp-content/themes/pluspoli/images/wp_btn_joy1.gif";
}


//一般カテゴリリスト　オンマウスでページ切り替え
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='?cat="+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


//キーワード検索の入力チェック ※wpのhome.phpとsearchform.phpに反映
function chkKeyWord(frm){
	msg = "";
	if(frm.s.value==""){
		msg = "キーワードを入力してください。";
	}
	
	if(msg != ""){
		alert(msg);
		return false;
	}
	return true;
}


