jQuery(document).ready(function(){
    jQuery('.frameimage1').easyRotate({
       degrees: -5
    });
	jQuery('.frameimage2').easyRotate({
       degrees: 5
    });
	jQuery('#twitterfeed').easyRotate({
       degrees: 8
    });
	
	jQuery('a.fullpostbutton').click(function() {
		jQuery(this).closest('.post').find('.fullpost').slideToggle("slow", function(){
			jQuery(this).closest('.post').find('.commentbox').css("visibility", "visible");
			jQuery(this).closest('.post').find('.commentbox').css("height", 146);
			});
		jQuery(this).closest('.post').find('.readmoreboxes').slideToggle("slow");
		jQuery(this).closest('.post').find('.fullpostspacer').slideToggle("slow");
		jQuery(this).slideToggle("slow");
		return false;
	}); 
	jQuery('a.fullpostbutton2').click(function() {
		jQuery(this).closest('.post').find('.fullpost').slideToggle("slow", function(){
			jQuery(this).closest('.post').find('.commentbox').css("visibility", "visible");
			jQuery(this).closest('.post').find('.commentbox').css("height", 146);
			});
		jQuery(this).closest('.post').find('.fullpostspacer').slideToggle("slow");
		jQuery(this).slideToggle("slow");
		return false;
	}); 
	
	jQuery('#twitterfeed, .frameoverlay1, .frameoverlay2, .frameimage1, .frameimage2').show();
	
		jQuery('.commentimagebox').cycle({
			timeout:  3000,
			fx:    'fade',
			speed:  1000
		});
		
	jQuery('#quicklinks').css("visibility", "visible");
	
	//jQuery(window).load(function() {
		//jQuery('#headerlogo').delay(500).fadeIn(2000, function () {
		//});
	//});
	//jQuery("video").load(function() {
	//jQuery("video").VideoJS(function() {
		//jQuery("video")[0].player.play();
		 //jQuery("video")[0].player.width(940);
	//});
	//});
	return;
});
