function Login() { new Ajax.Request('http://www.rain-jungjihoon.jp', { method:"post", parameters:Form.serialize('loginForm'), onComplete:location.reload}); } function RegistForm() { location.href = 'http://www.rain-jungjihoon.jp/regist/'; } function rightClick(e) { menuX = e.pageX - 10; menuY = e.pageY - 10; jQuery("div#rightMenu").css('display','block'); 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','block'); 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('text-decoration','underline'); if (document.getElementById(id).style.display == 'block') { jQuery('.newsTitle').css('display','block').css('height','21px'); jQuery('#'+id).css('display','none'); } else { jQuery('.newsBody').css('display','none'); jQuery('#'+id).css('display','block'); jQuery('#'+title).css('display','block').css('height','21px'); } } function newsTitle(id,title) { if (document.getElementById(title).style.textdecoration == 'underline') { jQuery('#'+title).css('text-decoration','none'); } else { jQuery('.newsTitle').css('text-decoration','none'); jQuery('#'+title).css('text-decoration','underline'); } } 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.rain-jungjihoon.jp/goods/'+cate; } function goTo(page) { location.href = page; } function goNews(formName) { document.formName.submit(); } function mOver(obj) { obj.src = 'http://www.rain-jungjihoon.jp/images/' + obj.id + "2.gif"; } function mOut(obj) { obj.src = 'http://www.rain-jungjihoon.jp/images/' + obj.id + "1.gif"; } function writeBG(category) { image = 'http://www.rain-jungjihoon.jp/images/bgPhoto/'+category+'.jpg'; jQuery('#ContentsBody').css('background-image','url('+image+')'); } var PopupCnt=0; function forgetID() { } function PopupDisplay(page,w,h,formName) { Title = '@'; Box_w = w; Box_h = h; var page_html = "http://www.rain-jungjihoon.jp/"+page; new Ajax.Request(page_html, { method:"post", parameters:Form.serialize(formName), onComplete:ResultPopup}); jQuery('.pullDownSelect').css('visibility','hidden'); } function PopupDisplay2(page,w,h,formName) { Title = '@'; Box_w = w; Box_h = h; var page_html = "http://www.rain-jungjihoon.jp/"+page; new Ajax.Request(page_html, { method:"post", parameters:Form.serialize(formName), onComplete:ResultPopup2}); jQuery('.pullDownSelect').css('visibility','hidden'); } function PopupSchedule(code,title,date) { Title = title; Box_w = 330; Box_h = 280; var page_html = "http://www.rain-jungjihoon.jp/calendar?code="+code+"&date="+date; new Ajax.Request(page_html, { method:"post", onComplete:ResultPopup}); } function popupGallery(type,code) { Title = '@'; if (type=='image') { Box_w = 649; Box_h = 504; } if (type=='movie') { Box_w = 640; Box_h = 543; } var page_html = "http://www.rain-jungjihoon.jp/gList?type="+type+"&code="+code; new Ajax.Request(page_html, { method:"post", onComplete:ResultPopup}); } function popupGallery2(type,folder,code) { Title = '@'; if (type=='image') { Box_w = 649; Box_h = 504; } if (type=='movie') { Box_w = 640; Box_h = 543; } var page_html = "http://www.rain-jungjihoon.jp/gList?type="+type+"&folder="+folder+"&code="+code; new Ajax.Request(page_html, { method:"post", onComplete:ResultPopup}); } function ResultPopup(httpobj) { // 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.contentDiv.style.backgroundColor="#FFFFFF"; var x = Math.floor((RicoUtil.windowWidth()-w)/2); var y = Math.floor((RicoUtil.windowHeight()-h)/2)-20; popup.openPopup(x,y); jQuery('.ricoWindow').css('position','fixed').css('z-index','50'); } function ResultPopup2(httpobj) { // 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.Popup2(options); popup.options.canDragFunc=true; popup.createWindow(Title, txt,h+'px',w+'px'); popup.contentDiv.style.backgroundColor="#FFFFFF"; var x = Math.floor((RicoUtil.windowWidth()-w)/2); var y = Math.floor((RicoUtil.windowHeight()-h)/2)-20; popup.openPopup(x,y); jQuery('.ricoWindow2').css('position','fixed').css('z-index','50'); }