//Event.observe( window, 'load', resizeContent, false);

function resizeContent() {
return
    var copyheight = $('copy').offsetHeight;
    if (copyheight<320) copyheight=320;
    $('content').style.height = copyheight+90;
}

function printPage() {
	if ( navigator.userAgent.indexOf("Mac") != -1 ){
		// uh oh, we have a Mac
		if ( navigator.userAgent.indexOf("MSIE") != -1 ){
			// Mac + IE = no window.print()
			alert('Please press \'Command\' + \'P\' to print this window.');
		} else {
			// Mac, but we're not using IE, so let's try a window.print()
			window.print();
		}
	} else {
		// it's a PC! Just print
		window.print();
	}
}

function ToggleElement( Element )
{
	
	var NewElementHeight = $(Element).offsetHeight;
	var copyheight = $('copy').offsetHeight;
	if (copyheight<320) copyheight=320;
	
	if ( $(Element).getStyle('display') == 'none' )
	{
		new Effect.Appear($(Element)) ;
		$('content').style.height = copyheight+230+90;
	} else {

		new Effect.SlideUp($(Element)) ;
		resizeContent() ;
	}
	//new Effect.toggle($(Element),'blind') ;
    
    //resizeContent() ;

}

function toggle(id){

    var obj=document.getElementById('child-'+id)
    if(obj.style.display=='none'){
      obj.style.display='block'
    }else{
      obj.style.display='none'
    }
}