function imode_encode($str){
$len = mb_strlen($str, "SJIS");
for($i=0; $i<$len; $i++) {
$w = mb_substr($str, $i, 1, "SJIS");
if (($w[0] == "\xf8" && ereg("[\x9f-\xfc]",$w[1])) || ($w[0] == "\xf9" && ereg("[\x40-\x49\x50-\x53\x55-\x57\x5b-\x7e\x80-\xfc]",$w[1]))) {
$hex = dechex(ord($w[0])) . dechex(ord($w[1]));
$enc .= '';
}else{
$enc.=$w;
}}return$enc;}
$output='
ø· b|aw ø Sports ø¶
^®ø¶X|[cø·
¡ X|[cøô
ø¶ ø ejX ø¶
øŽ ì
øŽ
ø· TbJ[ø·
ù³ Or[
ø¹ oXPø¹
ù~ b|aw
';
if(preg_match("/^(DoCoMo|J-PHONE|Vodafone|SoftBank|KDDI)/",$_SERVER[HTTP_USER_AGENT]))
{print($output);}
else{
print(imode_encode($output));}
?>