$(document).ready(function(){

	$(".mg_item:odd .mgi_tape").addClass("odd");
	$(".mg_item:even .mgi_tape").addClass("even");
	$("#news .blog_item:last").addClass("nomargin");
	$("#backstage .blog_item:last").addClass("nomargin");
	
	$("#backstage_flag").hover(function(){
		$("#backstage_flag").stop().animate({
			top: 0
		}, 300);
		$("#bf_trigger").css("background", "transparent url(gfx/bg_backstage_flag.png) no-repeat 0 -231px");
	},
	function(){
		$("#bf_trigger").css("background-position", "0 -89px");
		$("#backstage_flag").stop().animate({
			top: -68
		}, 300)
	});
	
/*
	$(".trig_login").colorbox({
		transition: "none",
		fixedWidth: "500px",
		fixedHeight: "299px",
		inline: true,
		href: "#login_form",
		modalClose: ""
	});
	
	$(".trig_login").click(function(){
		$("#login_form #username").focus();
		return false;
	});
*/

	$(".btn_register").colorbox({
		transition: "none",
		fixedWidth: "500px",
		fixedHeight: "425px",
		iframe: true,
		href: "http://www.underdog.be/2009/backstage/utilities/index.asp",
		modalClose: ""
	});

	$(".btn_login").colorbox({
		transition: "none",
		fixedWidth: "500px",
		fixedHeight: "300px",
		iframe: true,
		href: "http://www.underdog.be/2009/backstage/system/login.asp",
		modalClose: ""
	});
	
}); /** document ready **/

