// jQuery Functions

$(document).ready(function(){
	// ROUNDED CORNERS
	$('.content').corner("tl tr bl");	
	$('.sidebar').corner("tr br");	
	$('#footer').corner();
	// SAME HEIGHT
	var sameHeight = 0;
	
		if($('.sidebar').height()>$('.content').height()){
			sameHeight = $('.sidebar').height();
			$('.content').height(sameHeight-7);
		}
		else if($('.sidebar').height()<$('.content').height()) {
			sameHeight = $('.content').height();
			$('.sidebar').height(sameHeight+7);
		};

	
	// TWITTER
	$(".twitter-news").getTwitter({
		userName: "CodeMyImage",
		numTweets: 7,
		loaderText: "Loading tweets...",
		slideIn: true,
		showHeading: true,
		headingText: "Twitter",
		showProfileLink: true
	});
	// LAZY LOAD POST IMAGES
	/*$(".content img").lazyload({
		effect:"fadeIn",
		placeholder: "http://blog.codemyimage.com/wp-content/themes/codemyimage/images/grey.gif"
	});
*/
});
