[<script type="text/javascript">
function chkMobile(){
//모바일 페이지로 이동.
if(document.referrer.substring(0,22)!="모바일 홈페이지 주소"){
var uAgent = navigator.userAgent.toLowerCase();
var mobileKeyWords = new Array('iPhone', 'iPod', 'BlackBerry', 'Android', 'Windows CE', 'LG', 'MOT', 'SAMSUNG', 'SonyEricsson', 'Nokia', 'Opera mini', 'Webos', 'Mot', 'Opera Mobi', 'ieMobile', 'LG');
for (var word in mobileKeyWords){
if (navigator.userAgent.match(mobileKeyWords[word]) != null){
parent.window.location.href='모바일 홈페이지 주소';
break;
}
}
}
}
var main={
init: function(){
//Mobile Device Check
chkMobile();
}
}
main.init();
</script>]