﻿function checkPassword(i) {

    $('#dialog' + i).show();

}

$(document).ready(function() {

	$("#MainEvents").hide();
	
	$(".news").click(function (){
		$("#MainEvents").hide();
		$("#MainNews").show();
		$(".newsSwap").attr("class", "news");
		$(".eventsSwap").attr("class", "events");
		$(".tabHeader").css("background", "url('../images/tab_header2.jpg')");
		
	});
	
	$(".events").click(function (){
		$("#MainNews").hide();
		$("#MainEvents").show();
		$(".news").attr("class", "newsSwap");
		$(".events").attr("class", "eventsSwap");
		$(".tabHeader").css("background", "url('../images/tab_header.gif')");
		
	});
	
	
	

    $('#dialog').jqm();
	
	$('#dialog').hide();

    $(".jqmClose").click(function(event) {
        event.preventDefault();
        $(this).parent().parent("div").hide();
    });
	
});
