$(document).ready(function() {	
	$("#smileygroup").click(function () {	//emot panel
		$("#emot-panel").hide();
	});
	$("img.insertimage").parent("a").css("background","none");	//textcontent image hack
	var timeOutVar=null;	//more feed panel
	$("#feedLink").hover(
        function(){
            if(timeOutVar!=null) clearTimeout(timeOutVar);
			$("#moreFeed").fadeIn("slow");},
		function(){
			timeOutVar=setTimeout('$("#moreFeed").fadeOut("slow")',800);
       }
	 );
	$("#moreFeed").hover(
        function(){
			if(timeOutVar!=null) clearTimeout(timeOutVar);
			timeOutVar=null;},
		function(){
			$("#moreFeed").fadeOut("slow");
       }
	 );	
	$(".commentbox-odd").hover(function(){	//commentbox admin tool
		$(this).find("span").css("display","inline");},function(){
		$(this).find("span").css("display","none");}
	);
	$(".commentbox-couple").hover(function(){
		$(this).find("span").css("display","inline");},function(){
		$(this).find("span").css("display","none");}
	);
});
function use_openid() {	//openid
	if ($("#v_replier").css("display")=='none') {
		$("#v_replier").css("display","inline");
		$("#openid_url").css("display","none");
		$("#openid_url").attr("value","");
		$("#v_repurl").css("background","#fff url({$template['images']}/input-bg.png) no-repeat left top");			
		$("#v_repurl").attr("disabled",false);
		$("#v_repemail").css("background","#fff url({$template['images']}/input-bg.png) no-repeat left top");
		$("#v_repemail").attr("disabled",false);
	  } else {
		$("#v_replier").css("display","none");
		$("#openid_url").css("display","inline");
		$("#openid_url").attr("value","Input your OpenID here.");
		$("#v_repurl").css("background","#E6E6E6");
		$("#v_repurl").attr("disabled",true);
		$("#v_repemail").css("background","#E6E6E6");
		$("#v_repemail").attr("disabled",true);
		}
};
