function CheckLogin(){var A=document.getElementById("_ajax_feedback");myajax=new DedeAjax(A,false,false,"","","");myajax.SendGet2("/member/ajax_feedback.php");DedeXHTTP=null}function checkSubmit(){if(document.feedback.msg.value!=""){document.feedback.submit()}else{alert("评论内容不能为空！")}}function postBadGood(C,F){var B=document.getElementById(C+F);var E=GetCookie("badgoodid");if(E!=null){var A=E.split(",");var D=false;E="";j=1;for(i=A.length-1;i>=0;i--){if(A[i]==F&&D){continue}else{if(A[i]==F&&!D){D=true}E+=(E==""?A[i]:","+A[i]);j++;if(j==10&&D){break}if(j==9&&!D){break}}}if(D){alert("您刚才已表决过了喔！");return false}else{E+=","+F}SetCookie("badgoodid",E,1)}else{SetCookie("badgoodid",F,1)}myajax=new DedeAjax(B,false,false,"","","");myajax.SendGet2("/plus/feedback.php?aid="+F+"&action="+C+"&fid="+F);DedeXHTTP=null}function postDigg(C,G){var B=document.getElementById("newdigg");var F=GetCookie("diggid");if(F!=null){var A=F.split(",");var E=false;F="";j=1;for(i=A.length-1;i>=0;i--){if(A[i]==G&&E){continue}else{if(A[i]==G&&!E){E=true}F+=(F==""?A[i]:","+A[i]);j++;if(j==20&&E){break}if(j==19&&!E){break}}}if(E){alert("您已经顶过该帖，请不要重复顶帖 ！");return }else{F+=","+G}SetCookie("diggid",F,1)}else{SetCookie("diggid",G,1)}myajax=new DedeAjax(B,false,false,"","","");var D="/plus/digg_ajax.php?action="+C+"&id="+G;myajax.SendGet2(D);DedeXHTTP=null}function getDigg(B){var A=document.getElementById("newdigg");myajax=new DedeAjax(A,false,false,"","","");myajax.SendGet2("/plus/digg_ajax.php?id="+B);DedeXHTTP=null}var timer;var isScroll=0;function scroll(A){if(isScroll){clearInterval(timer);isScroll=0}else{timer=setInterval("window.scrollBy(0,1)",A);scrollImg();isScroll=1}}function scrollImg(){var B;if(window.innerHeight){B=window.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){B=document.documentElement.scrollTop}else{if(document.body){B=document.body.scrollTop}}}var A=document.getElementById("rmenu");A.style.top=(B+0)+"px";setTimeout("scrollImg()",0)}$(document).ready(function(){var A={};var C={};C.menu="false";C.quality="best";C.allowfullscreen="true";var B={};swfobject.embedSWF("/tool/GuitarT.swf","turnerbox","350","325","9.0.0",false,A,C,B);$(".tunerBtn").hover(function(){$(this).css("background","url('/image/images.gif') no-repeat -741px -380px")},function(){$(this).css("background","url('/image/images.gif') no-repeat -741px -331px")});$(".tunerBtn").click(function(){$(".turner").css({top:$("#body").offset().top,left:$("#body").offset().left});$(".turner").toggle("normal")});$(".turnerclose").hover(function(){$(this).css("background","#9bd")},function(){$(this).css("background","#fff")});$(".turnerclose").click(function(){$(".turner").hide("normal")});$("#body p a").click(function(){var D=$("#body p img").attr("src");$(".tabpopbg").remove();$("body").append('<div class="tabpopbg"><div id="rmenu"><span class="closepop">返回</span><ul><li class="txtscroll">滚屏</li><li class="x1">X1</li><li class="x2">X2</li><li class="txtsudu">速度</li><li class="x3">X3</li><li class="x4">X4</li></ul></div><img src="'+D+'"/><strong>Powerd by i<span>JiTa</span>.com 为吉他爱好者补充动力</strong><span class="gotop"><a href="#">回顶部</a></span></div>');scrollImg();$(".closepop").click(function(){$(".tabpopbg").hide();$("#header").show();$("#page").show();$("#footer").show();clearInterval(timer)});$(".closepop,.gotop").hover(function(){$(this).css("background","#f60")},function(){$(this).css("background","#69f")});$(".x1,.x2,.x3,.x4").hover(function(){$(this).css("background","#f60")},function(){$(this).css("background","#c30")});$(".x1").click(function(){scroll(150)});$(".x2").click(function(){scroll(110)});$(".x3").click(function(){scroll(70)});$(".x4").click(function(){scroll(30)});$("#header").hide();$("#page").hide();$("#footer").hide();$(".tabpopbg").show()});$("#body p a").hover(function(){$("#body p").css("background","#E3F2FB");$(this).append('<span class="fstit">点击进入全屏谱</span>');$("#body p img").css("opacity","0.3");var D=$("#body p img").offset();$(".fstit").css({top:D.top+30,left:D.left+140})},function(){$("#body p").css("background","#fff");$(".fstit").remove();$("#body p img").css("opacity","1.0")})});
