var quickTimeHtml=QT_GenerateOBJECTText_XHTML(baseUrl+"movies/iHatsuonVideo.mov","240","345","","SCALE","tofit","obj#ID","iphoneMovie","emb#ID","iphoneMovie","autoplay","true","controller","false","enablejavascript","true","loop","true");window.addEvent("load",function(){var b=new RabidRatings({url:baseUrl+"hatsuon/vote",leftMargin:4,starWidth:25,starMargin:0,stars:5});ReMooz.assign("#screenshots a",{origin:"img",shadow:"onOpenEnd",resizeFactor:0.8,cutOut:false,opacityResize:0.4,dragging:false,centered:true,onClose:function(){$$(".iphone_mov").set("html",quickTimeHtml)},onOpen:function(){$("iphoneMovie").Stop();$$(".iphone_mov").set("html","")}});$$(".iphone_mov").set("html",quickTimeHtml);$("comment_button").addEvent("click",function(f){var c=baseUrl+"hatsuon/comment";$$(".comment_sending").addClass("show");$$(".nickname_error").set("html","");$$(".email_error").set("html","");$$(".comment_error").set("html","");var d=new Request({url:c,onComplete:a}).post({nickname:$("nickname").value,email:$("email").value,comment:$("comment").value})});function a(e){$$(".comment_sending").removeClass("show").addClass("hide");var g=0;var f=JSON.decode(e);for(var c in f){var d=$$("."+c+"_error");d.setStyle("opacity","0");d.set("html",f[c]);d.fade(1);(function(){this.fade(0)}).delay(3000,d);g++}if(g==0){var h=$$(".thankyou_msg");h.setStyle("opacity","0");h.set("html","ご意見いただき、ありがとうございます。");h.fade(1);(function(){this.fade(0);h.set("html","")}).delay(3000,h)}}});