var colors = ['red','blue','yellow','green','magenta','lime']
var currentColor = 0;

// Emulation target_blank
jQuery(document).ready(function(){
	    jQuery("._blank a").click(function(){
	        window.open(this.href);
	        return false;
	    });
	});	
	
// First h1, h2, h3, h4, h5, h6 without top-margin
jQuery(document).ready(function(){
	    jQuery(".content-page :header:first-child").addClass("h-first-child");
	});

// last list on top-menu 
jQuery(document).ready(function(){
	    jQuery(".top-menu-box ul li:last").addClass("li-top-last");
		jQuery(".submenu-text ul li:last").addClass("li-top-last");
		jQuery(".bottom-menu ul li:last").addClass("li-top-last");
		jQuery(".content-page .mod-list-element:last").addClass("mod-element-last");
		jQuery(".content-page .mod-list-element:first").removeClass("mod-element-last");
		jQuery(".table-user tr:first td").addClass("table-user-first");
	});
	
$(function() {
	$('a.butt').click(function(){
		var link = this;
		$.get('_a_hide_promo.php', function(data) {
			$(link).parent().parent().slideUp();
		})
	})
})

$(function() {
	setInterval(function() {
		currentColor++;
		if (currentColor > (colors.length-1)) {
			currentColor = 0;
		}
		$('#new_border').css('borderColor',colors[currentColor]);
	}, 1000)
})

