// JavaScript Document

function nrwshowNav3Inner(node, background) {
	if (node.childNodes[2] != null) node.childNodes[2].style.display = "block";
	if (!background)	node.style.background = "url(/images/navigation/NRW/nav-nrw-bg-ovr.gif)";
}

function nrwhideNav3Inner(node, background) {
	if (node.childNodes[2] != null) node.childNodes[2].style.display = "none";
	if (!background)	node.style.background = "url(/images/navigation/NRW/nav-nrw-bg.gif)";
}

$(document).ready(function(){
	
	$("#NRWEventContainer #nav a").click(function() {
		$(".eventDay").css('display','none');
		$("#eventDa"+$(this).attr('id')).css('display','block');
		$("#NRWEventContainer #nav a").removeClass('selected');
		$(this).addClass('selected');
	});

	$("#contact-us").dialog({
		bgiframe: true,
		minHeight: 140,
		minWidth: 640,
		resizable: false,
		width: 603,
		modal: true,
		autoOpen: false
	});
			
	$("#contactOpen").click(function(){
        	$("#contact-us").dialog('open');
        });
    $("#contact-us").dialog({
		bgiframe: true,
		minHeight: 140,
		minWidth: 640,
		resizable: false,
		width: 603,
		modal: true,
		autoOpen: false
	});
			
	$("#contact2Open").click(function(){
        	$("#contact-us").dialog('open');
        });
         $("#termsconditions").dialog({
		bgiframe: true,
		minHeight: 140,
		minWidth: 640,
		resizable: false,
		width: 603,
		modal: true,
		autoOpen: false
	});
			
	$("#termsconditionsOpen").click(function(){
        	$("#termsconditions").dialog('open');
                $("#dialoginner").animate({
	           scrollTop: 0
                }, 500);
        });

	$("#privacy").dialog({
		bgiframe: true,
		minHeight: 140,
		minWidth: 640,
		resizable: false,
		width: 603,
		modal: true,
		autoOpen: false
	});
			
	$("#privacyOpen").click(function(){
        	$("#privacy").dialog('open');
        });

	$("#tour").dialog({
		bgiframe: true,
		minHeight: 140,
		minWidth: 640,
		resizable: false,
		width: 603,
		modal: true,
		autoOpen: false
	});
			
	$("#tourOpen").click(function(){
        	$("#tour").dialog('open');
    });
});
