$(function(){ var SPFlag = 0; var SetPos = function (obj,kubun,dblX,dblY) { try { var intRight = 0; if (kubun == 'abs') { obj[0].style.position = 'absolute'; }else if (kubun == 'rel') { obj[0].style.position = 'relative'; }else if (kubun == 'fix') { obj[0].style.position = 'fixed'; }else if (kubun == 'absR') { obj[0].style.position = 'absolute'; intRight = 1; }else if (kubun == 'relR') { obj[0].style.position = 'relative'; intRight = 1; }else if (kubun == 'fixR') { obj[0].style.position = 'fixed'; intRight = 1; } if (intRight == 1) { obj[0].style.right = dblX + 'px'; obj[0].style.top = dblY + 'px'; }else{ obj[0].style.left = dblX + 'px'; obj[0].style.top = dblY + 'px'; } }catch (e) { } } var SizeFit = function () { var winW = $(window).width(); var winH = $(window).height(); var dblRate = winW / 1280; SetPos($("#title"),'fix',0,0); if (winW >= 1280 && SPFlag == 0) { //Contact PrivacyPolicy $("#wrap_policy").css('padding-top','0px'); SetPos($("#wrap_policy"),'abs',0,0); $("#wrap_policy_hd img").width(440); $("#wrap_policy_cnt").width(900); }else if (winW >= 880 && SPFlag == 0) { $("#wrap_policy").css('padding-top','0px'); SetPos($("#wrap_policy"),'abs',0,0); $("#wrap_policy_hd img").width(440); if (winW > 900) { $("#wrap_policy_cnt").width(900); }else{ $("#wrap_policy_cnt").width(winW-20); } }else{ $("#wrap_policy").css('padding-top','0px'); $("#wrap_policy_hd img").width(winW*0.8); SetPos($("#wrap_policy"),'abs',0,0); intW = winW - 20; $("#wrap_policy_cnt").width(intW); } } SizeFit(); $(window).on("resize",function(){ SizeFit(); }); });