﻿function getURL(url){
    window.location = url;
}
var DLExtended = {
	start: function(){
		var tab = $('tn_downloads_a');
		var box = $('downloadsExtended');
		var fix = new Element('iframe', {'id': 'hoverFix'}).inject(box,'after');
		
		tab.addEvents({
			'mouseenter': function(){ DLExtended.popAdd(tab,box,fix); },
			'mouseleave': function(){ DLExtended.popRmv(tab,box,fix); },
			'click': function(e){ e = new Event(e).stop(); }
		});
		box.addEvents({
			'mouseenter': function(){ DLExtended.popAdd(tab,box,fix); },
			'mouseleave': function(){ DLExtended.popRmv(tab,box,fix); }
		});
	},
	
	popRmv: function(tab,box,fix){
		box.removeClass('gameOn');
		fix.removeClass('gameOn');
		tab.removeClass('show');
	},
	
	popAdd: function(tab,box,fix){
		box.addClass('gameOn');
		fix.addClass('gameOn');
		tab.addClass('show');
	}
}
