var $j = jQuery.noConflict();
var Application =  {
    popup_window: null,
    
    popup: function(url, width, height) {
        popup_window = window.open(url, 'EmbryoDynamics', 'height=' + height + ',width=' + width + ',status=no,toolbar=no,menubar=no,location=no,resizable=yes');
        popup_window.blur(); // for chrome bug
        popup_window.focus();
    },
    
	toggle_thumbnails: function() {
        $j('#chapters').toggleClass('show');
        $j('#toggle_text_wo').toggleClass('hide');
	},
    
    toggle_colcontent: function( id) {
        $j( '#cc_'+id ).toggleClass('hide');
        $j( '#tr_'+id ).toggleClass('tropen');
    },
    
    show_more: function( elem) {
        $j( '#'+elem+'_short').addClass('hide');
        $j( '#'+elem+'_switch').addClass('hide');
        $j( '#'+elem+'_full').removeClass('hide');
    }
}
