$(document).ready(function(){ 
        $("ul.sf-menu").superfish({ 
        autoArrows:  false,               // if true, arrow mark-up generated automatically = cleaner source code at expense of initialisation performance 
        dropShadows: false,               // completely disable drop shadows by setting this to false 
        delay:       500,                            // one second delay on mouseout 
        animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
        speed:       'fast'  
        }); 
                

/* Poetry section - functionalized */


    $("a.poemlink").click(function() {
	var pome = this.id;
	//pome = pome.replace("poem","");
	//alert(pome);
        $.get(pome + '.inc', {}, function(data) {
            $('#contentcolumn').html(data);
        });
	scroll(0,0);
        return false;
    });

});



/*
function toggle(id) {
	var el = document.getElementById(id);
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}
*/



function calcHeight(id)
{
  var the_height=
    document.getElementById(id).contentWindow.
      document.body.scrollHeight + 90;

  document.getElementById(id).height=
      the_height;
}

