/* picture expander */
function showLarge(x,flag)
{  
    $(x).hide();
    $('.'+flag).parent().removeClass('content');
    $('.'+flag).show();
    $('.'+flag).parent().toggleClass('enlarged');
  
}
  
function hideLarge(x,flag)
  {
    $(x).hide();
    $('.'+flag).show();
    $('.'+flag).parent().toggleClass('enlarged');
  }
  

/* hide theme tab */
/*$('.gbTabBar .o span a').each(function(i){
  if($(this).text() == 'Theme')
  {
    $(this).parent().parent().remove();
  }
});*/

/* gallery hack */
/* expanding */
jQuery(function($) {
  $('ul.hmenu li.active, ul.navigation li.active ').parents('ul').show();
  $('ul#home').show();
  $('head').append('<link href="http://www.jpa.org.jo/gallery2/themes/matrix/theme.css" media="screen" type="text/css" rel="stylesheet"/>');
  $('head').append('<link href="http://www.jpa.org.jo/gallery2/modules/core/data/gallery.css" media="screen" type="text/css" rel="stylesheet"/>');
});


/* hack for calander */

jQuery(function($) {
  
  $('#JT_copy .content').each(function(i){
    $(this).remove();
  });
  
  $('#JT_copy .event-body').each(function(i){
    $(this).remove();
  });
  
});




jQuery(function($) {

//for expansion
	if($('body').width() > 1000)
	{
		$('body').css('display','block');
		$('body').css('margin','auto');
	}	

});