

/* little useless helper function */

function getElementByName( name )
{
 var e = document.getElementsByName( name );
 return e[0];
}

/* 
 * pseudopluginhandling 
 *
 */

var initFunctions = new Array();

function registerInit( fref )
{
  initFunctions[ initFunctions.length ] = fref;

  

}


function dc_initialize()
{
  initFunctions[0]();
  initFunctions[1]();
}


// ====================== HELPER FUNCTIONS =======================

/* hide elements on right side */
function toggleView( id )
{
	var element = document.getElementById( id );
	

	if( element.style.display == "none" )
	{
		if( Effect.Appear )
		{
			Effect.Appear(id, { duration: 0.5 });
			Effect.BlindDown();
		}
		else
		{
		 	element.style.display = "block";
		}

	} else {
	        if( Effect.Appear )
		{
			Effect.BlindUp(id);	       
			Effect.Fade(id, { duration: 0.5 } );	        
		}
		else	
		{
                        element.style.display = "none";
		}
	}
}




