// Javascript for QPS Theme
$jQ(document).ready(function($) {
	// Center all images in posts
	$jQ(".post_content p").has("img").css("text-align","center");
	$jQ(".post_content p").has("a img").css("text-align","center");

	// Modify margin of p
	$jQ(".post_content p").has("img").css("margin","15px 5px");
	$jQ(".post_content p").has("a img").css("margin","15px 5px");

	// Center all objects (videos) in posts
	$jQ(".post_content p").has("object").css("text-align","center");

	// Smooth scroll to the top of the page
	$jQ("a.top_page").click(function(){
		$jQ.scrollTo(0,2000);
	});
	
	/*
	// Rotation of image links
	$("a img").rotate({ maxAngle:10,minAngle:-10,
		bind:
		[
		{"mouseover":function(){$(this).rotateAnimation(10);}}, 
		{"mouseout":function(){$(this).rotateAnimation(-35);}}
		] 
	}); 
	*/
});


