var murl='hsmania.co.kr/default/mo/',mtop=0; if(murl!='' && murl.length>3 && document.location.href.indexOf('mobile=0')<0) { var i, ua = window.navigator.userAgent.toLowerCase(); // var ma=['iphone','android','opera mini','bada','ppc','windows ce']; var ma=['iphone','android','opera mini','bada','windows ce']; for(i=0;i< ma.length;i++) { if(ua.indexOf(ma[i])>0) { if(murl.substr(0,5)!='http:') murl='http://'+murl; if(mtop==1 && top) top.document.location.replace(murl); else document.location.replace(murl); break; } } }