/**
 * @author karlofthedead
 */

// Firebug: avoid errors in other browsers
if ( !window.console || !console.firebug ) {
    var names = ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml',
    'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'];

    window.console = {};
    var i = 0, n = names.length;
    for ( ; i < n; i++ ) { window.console[names[i]] = function() {}; }
}

// global variables declaration
var base = document.getElementsByTagName( 'base' )[0].getAttribute( 'href' );
var lang = document.getElementsByTagName( 'html' )[0].getAttribute( 'lang' );

//var i18n;

// initialization phase
jQuery( function() {
	// loading translations
  //i18n = new Translate( translations, lang );

	// Shadowbox initialization, only if loaded
	/*if ( !!Shadowbox ) {
		Shadowbox.init( { skipSetup: true } );
	}*/

	// Tooltips initialization, only if loaded
	/*if ( !!jQuery.tooltip ) {
		jQuery( '*[title]' ).tooltip( {
			track    : true,
			delay    : 0,
			showURL  : false,
			showBody : ' - ',
			fade     : 250
		} );
	}
*/
	// @todo : is it the right place for that?
	/*$('div.preview div.map a.toggle').click(function(e){
		e.preventDefault();
		$('#map_canvas',$(this).parent()).toggle(300);
		return false;
	});*/
} );
