var mood_img_url=IMG_URL+"apps/mood/",votehtml='<p><span class="f_r"><a href="/mood/" target="_blank">\u67e5\u770b\u5fc3\u60c5\u6392\u884c</a></span><span class="f_l b">\u60a8\u770b\u5230\u6b64\u7bc7\u6587\u7ae0\u65f6\u7684\u611f\u53d7\u662f\uff1a</span></p><ul class="clear layout"><li><img onclick="javascript:vote(1);return false;" alt=\u652f\u6301" src="'+mood_img_url+'images/zhichi.gif"/><br/>\u652f\u6301<br/><input type="radio" onclick="javascript:vote(1);return false;" name="moodradio" value="1"/></li><li><img onclick="javascript:vote(2);return false;" alt=\u9ad8\u5174" src="'+
mood_img_url+'images/gaoxing.gif"/><br/>\u9ad8\u5174<br/><input type="radio" onclick="javascript:vote(2);return false;" name="moodradio" value="1"/></li><li><img onclick="javascript:vote(3);return false;" alt=\u9707\u60ca" src="'+mood_img_url+'images/zhenjing.gif"/><br/>\u9707\u60ca<br/><input type="radio" onclick="javascript:vote(3);return false;" name="moodradio" value="1"/></li><li><img onclick="javascript:vote(4);return false;" alt=\u6124\u6012" src="'+mood_img_url+'images/fennu.gif"/><br/>\u6124\u6012<br/><input type="radio" onclick="javascript:vote(4);return false;" name="moodradio" value="1"/></li><li><img onclick="javascript:vote(5);return false;" alt=\u65e0\u804a" src="'+
mood_img_url+'images/wuliao.gif"/><br/>\u65e0\u804a<br/><input type="radio" onclick="javascript:vote(5);return false;" name="moodradio" value="1"/></li><li><img onclick="javascript:vote(6);return false;" alt=\u65e0\u5948" src="'+mood_img_url+'images/wunai.gif"/><br/>\u65e0\u5948<br/><input type="radio" onclick="javascript:vote(6);return false;" name="moodradio" value="1"/></li><li><img onclick="javascript:vote(7);return false;" alt=\u8c0e\u8a00" src="'+mood_img_url+'images/huangyan.gif"/><br/>\u8c0e\u8a00<br/><input type="radio" onclick="javascript:vote(7);return false;" name="moodradio" value="1"/></li><li><img onclick="javascript:vote(8);return false;" alt=\u67aa\u7a3f" src="'+
mood_img_url+'images/qianggao.gif"/><br/>\u67aa\u7a3f<br/><input type="radio" onclick="javascript:vote(8);return false;" name="moodradio" value="1"/></li><li><img onclick="javascript:vote(9);return false;" alt=\u4e0d\u89e3" src="'+mood_img_url+'images/bujie.gif"/><br/>\u4e0d\u89e3<br/><input type="radio" onclick="javascript:vote(9);return false;" name="moodradio" value="1"/></li><li><img onclick="javascript:vote(10);return false;" alt=\u6807\u9898\u515a" src="'+mood_img_url+'images/biaotidang.gif"/><br/>\u6807\u9898\u515a<br/><input type="radio" onclick="javascript:vote(10);return false;" name="moodradio" value="1"/></li><li><img onclick="javascript:vote(11);return false;" alt=\u641e\u7b11" src="'+
mood_img_url+'images/gaoxiao.gif"/><br/>\u641e\u7b11<br/><input type="radio" onclick="javascript:vote(11);return false;" name="moodradio" value="1"/></li></ul>';$("#mood").html(votehtml);
function vote(b){if((new Date).getTime()-$.cookie("mood_time"+contentid)>1E3)$.getJSON(APP_URL+"?app=mood&controller=index&action=index&contentid="+contentid+"&voteid="+b+"&jsoncallback=?",function(a){voteShow(a)});else{alert("\u8bf7\u52ff\u91cd\u590d\u5237\u65b0");$.getJSON(APP_URL+"?app=mood&controller=index&action=index&contentid="+contentid+"&jsoncallback=?",function(a){voteShow(a)})}$.cookie("mood_time"+contentid,(new Date).getTime())}
function voteShow(b){$("#mood").html(votedhtml).hide().fadeIn(450|"slow");$("#vote_total").html(b.total);for(var a in b.data){$("#"+a+"_li > font").html(b.data[a].number);$("#"+a+"_bar").css({height:b.data[a].height+"%"})}}var votedhtml='<style>.mood_bar {position:relative; width:34px; height:100px;background:#EEF7F7;}.mood_bar_in {background:url(http://localhost/img/apps/mood/images/moodrank.gif) repeat-y;bottom:0;left:0;position:absolute;width:34px;}</style><div class="titles layout"><h3 style="text-align:left;"><span class="f_r" style="width: 80px;"><a target="_blank" href="/mood/">\u67e5\u770b\u5fc3\u60c5\u6392\u884c</a></span>\u5df2\u7ecf\u6709 <font color="red" id="vote_total"></font> \u4eba\u8868\u6001\uff1a</h3><ul id="clear layout"><li id="m1_li"><div class="mood_bar"><div class="mood_bar_in" id="m1_bar"></div></div>\u652f\u6301<br/><font></font>\u4eba</li><li id="m2_li"><div class="mood_bar"><div class="mood_bar_in" id="m2_bar"></div></div>\u9ad8\u5174<br/><font></font>\u4eba</li><li id="m3_li"><div class="mood_bar"><div class="mood_bar_in" id="m3_bar"></div></div>\u9707\u60ca<br/><font></font>\u4eba</li><li id="m4_li"><div class="mood_bar"><div class="mood_bar_in" id="m4_bar"></div></div>\u6124\u6012<br/><font></font>\u4eba</li><li id="m5_li"><div class="mood_bar"><div class="mood_bar_in" id="m5_bar"></div></div>\u65e0\u804a<br/><font></font>\u4eba</li><li id="m6_li"><div class="mood_bar"><div class="mood_bar_in" id="m6_bar"></div></div>\u65e0\u5948<br/><font></font>\u4eba</li><li id="m7_li"><div class="mood_bar"><div class="mood_bar_in" id="m7_bar"></div></div>\u8c0e\u8a00<br/><font></font>\u4eba</li><li id="m8_li"><div class="mood_bar"><div class="mood_bar_in" id="m8_bar"></div></div>\u67aa\u7a3f<br/><font></font>\u4eba</li><li id="m9_li"><div class="mood_bar"><div class="mood_bar_in" id="m9_bar"></div></div>\u4e0d\u89e3<br/><font></font>\u4eba</li><li id="m10_li"><div class="mood_bar"><div class="mood_bar_in" id="m10_bar"></div></div>\u6807\u9898\u515a<br/><font></font>\u4eba</li><li id="m11_li"><div class="mood_bar"><div class="mood_bar_in" id="m11_bar"></div></div>\u641e\u7b11<br/><font></font>\u4eba</li></ul></div>';
