jQuery(document).ready(function($){
//$('.more_a').css('display','block');

var panel_content = $('#panel_content').html();
$('section#panel .wrap').html('<h1 id="logo_home"><a href="/">Mike Papageorge</a></h1>'+panel_content);

$('a.more_a').click(function() {
    $('section#panel').slideToggle('400', function() {
    	if($('section#panel').css('display') == 'block') {
			$('a.more_a').text('Less');	
		} else {
			$('a.more_a').text('More');	
		
		}
  });
	return false;

});
jQuery('#secondary').accessibleTabs({
        // Classname to apply to the div that is wrapped around 
        // the original Markup
        wrapperClass: 'tabswrap', 
        // Classname to apply to the LI of the selected Tab
        currentClass: 'current', 
        // Tag or valid Query Selector of the Elements to Transform the 
        // Tabs-Navigation from (originals are removed)
        tabhead: 'h3', 
        // Tag or valid Query Selector of the Elements to be treated as 
        // the Tab Body
        tabbody: '.tabbody', 
        // can be 'fadeIn', 'slideDown', 'show'
        fx:'show', 
        // speed (String|Number): 'slow', 'normal', or 'fast') or the number of 
        // milliseconds to run the animation
        fxspeed: 'normal',
        // text to indicate for screenreaders which tab is the current one 
        currentInfoText: '', 
        // Definition where to insert the Info Text.
        // Can be either 'prepend' or 'append'
        currentInfoPosition: 'prepend', 
        // Class to apply to the span wrapping the CurrentInfoText
        currentInfoClass: 'current-info' 
    });

		$(".gallery").each(function(index, obj){

			var galleryid = Math.floor(Math.random()*10000);

			$(obj).find("a").colorbox({rel:galleryid, maxWidth:"95%", maxHeight:"95%"});

		});

		$("a.lightbox").colorbox({maxWidth:"95%", maxHeight:"95%"});


});
