function debug( message )
{
	if( window.console && window.console.firebug ) {
		console.log( message );
	} else {
		alert( message );
	};
};



/*
 * jQuery - load
 */

$( window ).load( function ()
{
	// Get the longer column and asign height to shorter one.
	var iHeight = 0;
	$( '#content-main, #content-aside' ).each( function()
	{
		if( $( this ).height() > iHeight )
		{
			iHeight = $( this ).height();
		}
	}).css(
	{
		'height': iHeight
	});
	
	// is Mozilla Firefox fly with us?
	if( ( $.browser.mozilla == true ) || ( $.browser.opera == true ) )
	{
		$( '#presentation-more-aside dl dt + span, #presentation-more-aside dl dd + span' ).remove();
	};
});



/*
 * jQuery 
 */

$( function()
{
	$( '#presentation-details li' ).each( function()
	{
		$( this ).bind( 'click', function()
		{
			window.location = $( this ).find( 'a' ).attr( 'href' );
		}).bind( 'mouseover', function()
		{
			window.status = 'a';
		});
	});
	
	// is IE fly with us?
	if( $.browser.msie == true )
	{
		if( $.browser.version.indexOf( '6.0' ) == 0 )
		{
			$( '#header-menu li:first-child' ).addClass( 'first-child' );
			$( '#content-main-article-more a:first-child' ).addClass( 'first-child' );
		};
	};
});



/*
 * Cufon
 */
Cufon.replace( '#presentation h2, presentation-more .more-header, #presentation-more-aside .more-content, #header-slogan span',
{
	'font-weight': 'bold'
});
