$(document).ready(function() { 
 
// get height of the panels make height of the panel the heightest
// $.result = ('#scenarios').height();

 	$.mypanelheights = { 
     	panel1Height : $("#scenarios").height(),
     	panel2Height : $("#shareFile").height(),
     	panel3Height : $("#arrange").height() 
 	} 
//	var result = eval('#scenarios').height(); 
// $("body").html($('div')).height());
//  $("body").html($("#fpPanel").height() ); 
  
 
	 // hide the scenario panel
	 // div.frontpagePanel
	 $('#fpPanel').show();
	 $('#fpPanelTabs').show();
	 $('#frontpageContent').show();
	 $('#register').hide();
	 $('#vcard').fadeTo("fast", 0.2);
	 $('.technorati_tags').fadeTo("fast", 0.2);
	 $('.metabox').hide(); 
	    
	
	 
	// $('#pageContent').hide();
	// $('body').css( 'background-image', 'url(white.gif)' );
	 
	$('a#panels-show').click(function() {
 
  	  $('#fpPanel').toggle(400);
 	   $('#fpPanelTabs').toggle(400);
 	   $('#frontpageContent').toggle(400); 
 
   	 return false;
  
	});

	$('a#content-show').click(function() {
   	  $('#pageContent').toggle(400);
    	  return false;
  	});

	$('a#AdminInfo-show').click(function() {
   	  $('.metabox').toggle(400);
    	  return false;
  	});
  	 
  	 
  	 

	$('a#vcard-show').hover(function() {
		$("#vcard").fadeTo("fast", 1.0); // This sets the opacity to 100% on hover
		},function(){
   		$("#vcard").fadeTo("slow", 0.5); // This sets the opacity back to 60% on mouseout
   		 
	});
	$('a#vcard-show').click(function() { return false;
	});
	$('#vcard').hover(function() {
		$("#vcard").fadeTo("fast", 1.0); // This sets the opacity to 100% on hover
		},function(){
   		$("#vcard").fadeTo("slow", 0.5); // This sets the opacity back to 60% on mouseout
   	   	
	});

	$('a#tags-show').hover(function() {
		$("div.technorati_tags").fadeTo("fast", 1.0); // This sets the opacity to 100% on hover
		},function(){
   		$("div.technorati_tags").fadeTo("slow", 0.5); // This sets the opacity back to 60% on mouseout
   		 
	});
	$('a#tags-show').click(function() { return false;
	});
	$('.technorati_tags').hover(function() {
		$("div.technorati_tags").fadeTo("fast", 1.0); // This sets the opacity to 100% on hover
		},function(){
   		$("div.technorati_tags").fadeTo("slow", 0.5); // This sets the opacity back to 60% on mouseout
   	   	
	});
		
	
	
	

	$('a#bg-show').click(function() {

  	//  $('body').toggle(400);
	 $('body').css( 'background-image', 'url(white.gif)' );
 
  	  return false;
 
	});
	 
 
 var tabContainers = $('div.tabs > div');
    
      $('ul.tabNavigation a').click(function () {
          tabContainers.hide().filter(this.hash).show();
         
         $('ul.tabNavigation a').removeClass('selected');
         $(this).addClass('selected');
         
         return false;
     }).filter(':first').click();	 
  
 }); 
		
 
