$(document).ready(function(){


  		jQuery.fn.slideFadeToggle = function(speed, easing, callback) {
			return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
		};

   

       $('a#header-toggle').click(function() {
		$('#header').toggle(300);
        $('#smallheader').toggle(300);


        return false;
        });




     $("#goo").click(function(){
      $("#main").animate({
        width: "100%"
       }, 1500 );

      $("#content-holder").animate({
        width: "100%"
       }, 1500 );


       $("#content").animate({
        width: "100%"
       }, 1500 );

       $(".info-column-02").animate({
        width: "87%"
       }, 1500 );

      });

     $("#goo2").click(function(){
      $("#main").animate({
        width: "980px"
       }, 1500 );

      $("#content-holder").animate({
        width: "980px"
       }, 1500 );


       $("#content").animate({
        width: "980px"
       }, 1500 );

       $(".info-column-02").animate({
        width: "830px"
       }, 1500 );

      });

	$('.article_content').each( function (index,value) {
		var curId = $(this).attr('id').replace( /article_/, '' );
		
		$("#article_"+curId).jqm( { trigger: "#showArticle_" +curId } );
	});
});
