//emotionfunction grin(tag) {	var myField;	tag = ' ' + tag + ' ';	if (document.getElementById('comment') && document.getElementById('comment').type == 'textarea') {		myField = document.getElementById('comment');	} else {		return false;	}	if (document.selection) {		myField.focus();		sel = document.selection.createRange();		sel.text = tag;		myField.focus();	}	else if (myField.selectionStart || myField.selectionStart == '0') {		var startPos = myField.selectionStart;		var endPos = myField.selectionEnd;		var cursorPos = endPos;		myField.value = myField.value.substring(0, startPos)				+ tag				+ myField.value.substring(endPos, myField.value.length);		cursorPos += tag.length;		myField.focus();		myField.selectionStart = cursorPos;		myField.selectionEnd = cursorPos;	}	else {		myField.value += tag;		myField.focus();	}}//replyif (!$.browser.msie) {	$(".thdrpy").fadeOut();	$(".comment").hover(			function() {				$(this).find(".thdrpy").stop().attr("style", "");			}, function() {		$(this).find(".thdrpy").hide("slow");	});	$(".allowTags span").click(function() {		$(".allowTags code").toggle();	})}//konami code$(function() {	var k = []; //建立一个空的数组	$(document).keydown(function(e) {		k.push(e.keyCode); //把每一次按下的键码加入到数组k当中		if (k.toString().indexOf('38,38,40,40,37,39,37,39,66,65') >= 0) { //判断如果数组k中可以查找到指定的字符串 即返回值大于等于0			if (confirm("要看裸照么?")) {				window.location = "http://ooxx.me/readme/";			}			k = [];//清空数组k 以便再次触发事件		}	});});//ctrl+enter=submit$("#comment").keydown(		function (moz_ev) {			var ev = null;			if (window.event) {				ev = window.event;			} else {				ev = moz_ev;			}			if (ev != null && ev.ctrlKey && ev.keyCode == 13) {				$("#submit").click();			}		}		);//current Timefunction now() {	var now = new Date();	var str = now.getFullYear() + "年" + (now.getMonth() + 1) + "月" + now.getDate() + "日<small>" + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds() + "</small>";	$('#now').html(str);}if ($("#now")[0]) {	setInterval(now, 1000);}$().ready(function() {	//feedMe	$("#feedAll").hover(function() {				$("#feedMe").show("fast");			},function() {		$("#feedMe").hide("slow");	});	//loading state	$("#loading").fadeOut(2000);	//radius-avatar	$(".avatar").wrap(function() {		return '<span class="' + $(this).attr('class') + '" style="background:url(' + $(this).attr('src') + ') no-repeat center center; width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px;" />';	}).css("opacity", "0");	//});
