
		function showPasswordReset(){
			$('.forgotbox').slideToggle("slow");
		}
		function showComments(){
			$('.commentslist').slideToggle("slow");
		}
		function showShare(){
			$('.shareTools').slideToggle("slow");
		}
		function showEmail(){
			$('.emailFriend').slideToggle("slow");
		}
		function showmore(type){
			$('.more_'+type).slideDown("slow");
			$('.showmore'+type).hide();
			$('.showless'+type).show();
		}
		function showless(type){
			$('.more_'+type).slideUp("slow");
			$('.showless'+type).hide();
			$('.showmore'+type).show();
		}

		function showRegular(){
			$('.singlepage').slideUp("fast");
			$('.regularpage').slideDown("slow");
		}

		function showSingle(){
			$('.regularpage').slideUp("fast");
			$('.singlepage').slideDown("slow");
		}

		function removeComment(commentid){
			$.ajax({
				url: 'lib/addcomment.php',
				type: 'POST',
				dataType: 'xml',
				data: {'adminmode':'removecomment','commentid':commentid},
				timeout: 9000,
				error: function(){					
				},
				success: function(xml){
					// do something with xml
					if($('status', xml).text() == 'success'){					
						$('#comment'+commentid).fadeOut("slow");
					}
				}
			});
		}

		function likeComment(commentid){
			$.ajax({
				url: 'lib/addcomment.php',
				type: 'POST',
				dataType: 'xml',
				data: {'adminmode':'like','commentid':commentid},
				timeout: 9000,
				error: function(){					
				},
				success: function(xml){
					// do something with xml
					if($('status', xml).text() == 'success'){					
						$('.likeComment'+commentid).hide();
						$('.newLike'+commentid).fadeIn();
					}
				}
			});
			
		}

		function reportComment(commentid, url){
			$.ajax({
				url: 'lib/addcomment.php',
				type: 'POST',
				dataType: 'xml',
				data: {'adminmode':'report','commentid':commentid, 'url':url},
				timeout: 9000,
				error: function(){					
				},
				success: function(xml){
					// do something with xml
					if($('status', xml).text() == 'success'){					
						$('.reportComment'+commentid).hide();
						$('.newReport'+commentid).fadeIn();
					}
				}
			});
			
		}
		$(document).ready(function(){
			$(".commentform").submit(function(){	
				var s = $(this).serialize();
				var theform = $(this).attr('name');
				var getdata = true;		

				if (getdata){
					$.ajax({
						url: 'lib/addcomment.php',
						type: 'POST',
						dataType: 'xml',
						data: s,
						timeout: 9000,
						error: function(){					
						},
						success: function(xml){
							// do something with xml
							if($('status', xml).text() == 'success'){					
								// prepend the comment to the comments area
								$('.commenttextarea').val('');
								$('.newcomments').fadeIn("slow").prepend($('message', xml).text());
							}
						}
					});
				}
				return false;
			});
		});


$(document).ready(function(){
$(".sm2").click(function(){
	$.ajax({
		url: 'lib/setfontsize.php',
		type: 'POST',
		dataType: 'xml',
		data: {'adminmode':'fontsize','size':'default'},
		timeout: 9000,
		error: function(){},
		success: function(xml){
			if($('status', xml).text() == 'success'){					
				window.location.reload();
			}
		}
	});
	return false;
});

$(".sm3").click(function(){
	$.ajax({
		url: 'lib/setfontsize.php',
		type: 'POST',
		dataType: 'xml',
		data: {'adminmode':'fontsize','size':'medium'},
		timeout: 9000,
		error: function(){},
		success: function(xml){
			if($('status', xml).text() == 'success'){					
				window.location.reload();
			}
		}
	});
	return false;
});

$(".sm4").click(function(){
	$.ajax({
		url: 'lib/setfontsize.php',
		type: 'POST',
		dataType: 'xml',
		data: {'adminmode':'fontsize','size':'large'},
		timeout: 9000,
		error: function(){},
		success: function(xml){
			if($('status', xml).text() == 'success'){					
				window.location.reload();
			}
		}
	});
	return false;
});
});




