$(document).ready(function() {
    $("#slider1").easySlider1();
    $("#slider2").easySlider2();
    $('.topslide').css('display', 'none');
    $('.topslide').css('visibility', 'visible');
    $('.topslide').css('position', 'relative');

    viewpoints();
    viewldata();
    viewldetails();
    viewtopldetails();
    viewinfodetails();
});


function viewpoints(){
	var link;
	$('#pointslink A').click(function () {
		link = $(this);
		if (!link.hasClass('active')){
			$('#' + $('#pointslink A.active').attr('rel')).fadeOut('slow', function () {
	        	$('#' + link.attr('rel')).fadeIn('slow');
	        	$('#pointslink A').removeClass('active');
	        	link.addClass('active');
	        	if (link.attr('rel') == 'hot'){ $('div.viewpoints').addClass('hot'); }
	        	else { $('div.viewpoints').removeClass('hot'); }
			});
		}
	});
}

function viewldata(){
	$('#leftmenu UL LI A').click(function () {
		$('#eventdescription').css('display', 'none');
		$('#whattodo').css('display', 'none');
		$('#howitworks').css('display', 'none');
		$('#topviewpoints').css('display', 'none');
		$('#' + $(this).attr('rel')).css('display', 'block');
		$('#' + $(this).attr('rel') + ' div.lnavdata-expand').css('display', 'none');
		$('#leftmenu UL LI').removeClass('active');
		$(this).parent().addClass('active');
		$('div.lnavdata A.ldet').removeClass('acoll');
	});
}

function viewldetails(){
	$('div.lnavdata A.ldet').click(function () {
		if ($('#' + $(this).attr('rel')).css('display') == 'none'){
			$(this).addClass('acoll');
			$('#' + $(this).attr('rel')).slideDown('normal');
		}
		else {
			$(this).removeClass('acoll');
			$('#' + $(this).attr('rel')).slideUp('normal');
		}
	});
}

function viewtopldetails(){
	$('div.detail-link A').click(function () {
		if ($('#' + $(this).attr('rel')).css('display') == 'none'){
			$('#' + $(this).attr('rel')).slideDown('normal');
			$(this).addClass('idl');
		}
		else {
			$('#' + $(this).attr('rel')).slideUp('normal');
			$(this).removeClass('idl');
		}
	});
	$('div.collapse A').click(function () {
		if ($(this).parent().parent().css('display') == 'block'){
			$(this).parent().parent().slideUp('normal');
			$('div.detail-link A').removeClass('idl');
		}
	});
}

function viewinfodetails(){
	$('div.expand A').click(function () {
		if ($('#' + $(this).attr('rel')).css('display') == 'none'){
			$('#' + $(this).attr('rel')).slideDown('normal');
			$(this).addClass('barr');
		}
		else {
			$('#' + $(this).attr('rel')).slideUp('normal');
			$(this).removeClass('barr');
		}
	});
	$('div.collapse A').click(function () {
		if ($(this).parent().parent().css('display') == 'block'){
			$(this).parent().parent().slideUp('normal');
		}
});


    $(document).ready(function() {
        
    });

}