function menushow(element) {
  ulelement = element.lastChild;
  
  if (ulelement.tagName == 'UL') {
    act = ulelement;
    
  }
  else {
    act = false;
   
  }
    if (act) {
    act.style.display='block';
    
 	  }
}

function menuhide(element) {
  ulelement = element.lastChild;

  if (ulelement) {
    if (ulelement.tagName == 'UL') {
      act = ulelement;
  
    }
    else {
      act = false;
   
    }
    if (act) {
      act.style.display='none';
	

    }
  }
}




function get_dimensions(){
	var fensterbreite = jQuery(window).width();
	var fensterhoehe = jQuery(window).height();

	var calcfsh = fensterhoehe-100;
	var calcfsb = fensterbreite;
	

 	jQuery('.scribd a.thickbox').each (function(){
			var alter_link = jQuery(this).attr('href');
			jQuery(this).attr('href', jQuery(this).attr('href')+"&height="+calcfsh+"&width="+calcfsb+"");
	});
	
	
	jQuery('.scribd a.thickbox').hover(
		function() {
			jQuery(this).css({'filter' : 'alpha(opacity=60)', '-moz-opacity' : '.60', 'opacity' : '.60'});
		},
		function() {
			jQuery(this).css({'filter' : 'alpha(opacity=99)', '-moz-opacity' : '.99', 'opacity' : '.99'});
		}
	);
}
