function Login() { new Ajax.Request('http://www.thefaceshop.co.jp', { method:"post", parameters:Form.serialize('loginForm'), onComplete:location.reload}); } function RegistForm() { location.href = 'http://www.thefaceshop.co.jp/regist/'; } function rightClick(e) { menuX = e.pageX - 10; menuY = e.pageY - 10; jQuery("div#rightMenu").css('display','none'); //jQuery("div#rightMenu").css('position','absolute').css('top',menuY+'px').css('left',menuX+'px'); return false; } function rightMenu() { if (document.all) { menuX = event.clientX - 10; menuY = event.clientY + document.documentElement.scrollTop -10; } jQuery("div#rightMenu").css('display','none'); jQuery("div#rightMenu").css('position','absolute').css('top',menuY+'px').css('left',menuX+'px'); } function closeRightMenu() { jQuery("div#rightMenu").css('display','none'); } /* function newsOpen(id,title) { jQuery('#'+title).css('color','#FFFFFF').css('background','#C66E3C'); if (document.getElementById(id).style.display == 'block') { jQuery('#'+id).css('display','none'); } else { jQuery('.newsBody').css('display','none'); jQuery('#'+id).css('display','block'); } } function newsTitle(id,title) { if (document.getElementById(title).style.color == '#FFFFFF') { jQuery('#'+title).css('color',''); } else { jQuery('.newsTitle').css('color',''); jQuery('#'+title).css('color','#FFFFFF').css('background','#C66E3C'); } } */ function eventOpen(id,title) { if (document.getElementById(id).style.display == 'block') { jQuery('#'+id).css('display','none'); } else { jQuery('.eventBody').css('display','none'); jQuery('#'+id).css('display','block'); } } function changeCategory(cate) { location.href = 'http://www.thefaceshop.co.jp/goods/'+cate; } function goTo(page) { location.href = 'http://www.thefaceshop.co.jp/'+page; } function goToProgram(page) { location.href='http://www.thefaceshop.co.jp/'+page; } function goNews(formName) { document.formName.submit(); } function mOver(obj) { obj.src = 'http://www.thefaceshop.co.jp/images/' + obj.id + "2.gif"; } function mOut(obj) { obj.src = 'http://www.thefaceshop.co.jp/images/' + obj.id + "1.gif"; } function PngOver(obj) { obj.src = 'http://www.thefaceshop.co.jp/images/' + obj.id + "2.png"; } function PngOut(obj) { obj.src = 'http://www.thefaceshop.co.jp/images/' + obj.id + "1.png"; } function writeBG(category) { image = 'http://www.thefaceshop.co.jp/images/bgPhoto/'+category+'.jpg'; jQuery('body').css('background-image','url('+image+')'); } var PopupCnt=0; function forgetID() { } function Popup(page,title,w,h) { Title = title; Box_w = w; Box_h = h; var page_html = "http://www.thefaceshop.co.jp/"+page; new Ajax.Request(page_html, { method:"post", onComplete:ResultPopup}); jQuery('.pullDownSelect').css('visibility','hidden'); } function PopupDisplay(page,w,h,formName) { Title = '@'; Box_w = w; Box_h = h; var page_html = "http://www.thefaceshop.co.jp/"+page; new Ajax.Request(page_html, { method:"post", parameters:Form.serialize(formName), onComplete:ResultPopup}); jQuery('.pullDownSelect').css('visibility','hidden'); } function PopupSchedule(code,title) { Title = title; Box_w = 330; Box_h = 280; var page_html = "http://www.thefaceshop.co.jp/calendar?code="+code; new Ajax.Request(page_html, { method:"post", onComplete:ResultPopup}); } function ResultPopup(httpobj) { var y = py; sy = document.documentElement.scrollTop; jQuery('.ricoShadow').css('top',y+sy); if (PopupCnt > 0) popup.closePopup(); var txt=httpobj.responseText; var options={ hideOnClick: false, zIndex : ++PopupCnt // ensures shadows layer correctly }; var w = Math.floor(Box_w); var h = Math.floor(Box_h); popup=new Rico.Popup(options); popup.options.canDragFunc=true; //popup.createWindow(Title, txt,h+'px',w+'px'); popup.createWindow(Title, txt,h+'px',w); popup.contentDiv.style.backgroundColor="#FFFFFF"; px = Math.floor((RicoUtil.windowWidth()-w)/2); py = Math.floor((RicoUtil.windowHeight()-h)/2); popup.openPopup(px,py); if(navigator.userAgent.indexOf("MSIE 6") == -1){ jQuery('.ricoWindow').css('position','fixed'); } else { sy = document.documentElement.scrollTop; jQuery('.ricoWindow').css('top',py+sy); } inW = w-18; jQuery('#ricoInner').css('width',w+'px'); jQuery('#ricoInnerBody').css('width',inW+'px'); if(navigator.userAgent.indexOf("MSIE") == -1) jQuery('#ricoInnerBottom').css('width',inW+'px').css('height','5px'); if(navigator.userAgent.indexOf("MSIE") != -1) jQuery('#ricoInnerBottom').css('width',inW+'px').css('height','0px'); var y = py; sy = document.documentElement.scrollTop; jQuery('.ricoShadow').css('top',y+sy); }