$(document).ready(function(){
						   
<!-- Menu -->
$("#news-btn").click(function(){
if ($("#news-section").is(":visible")){
	$.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-156}}); 
	}
else if ($("#news-section", "#demoreal-section", "#projects-section", "#services-section", "#team-section", "#contact-section").is(":hidden")){
	$.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-156}}); 
	}
	else {
    $.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-150}}); 
    }
$("#news-btn").toggleClass("highlight");
$("#demoreel-btn").toggleClass("highlight", false);
$("#projects-btn").toggleClass("highlight", false);
$("#services-btn").toggleClass("highlight", false);
$("#team-btn").toggleClass("highlight", false);
$("#contact-btn").toggleClass("highlight", false);
$("#news-section").slideToggle("normal"); $("#demoreel-section").slideUp("normal"); $("#projects-section").slideUp("normal"); $("#services-section").slideUp("normal"); $("#team-section").slideUp("normal");$("#contact-section").slideUp("normal");  
});

$("#demoreel-btn").click(function(){
if ($("#demoreel-section").is(":visible")){
	$.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-156}}); 
	}else if ($("#news-section", "#demoreal-section", "#projects-section", "#services-section", "#team-section", "#contact-section").is(":hidden")){
	$.scrollTo("#anchor-demoreel", 500, {axis:"y", offset: {top:-156}}); 
	}
	else {
      $.scrollTo("#anchor-demoreel", 500, {axis:"y", offset: {top:-150}}); 
    }
$("#demoreel-btn").toggleClass("highlight");
$("#news-btn").toggleClass("highlight", false);
$("#projects-btn").toggleClass("highlight", false);
$("#services-btn").toggleClass("highlight", false);
$("#team-btn").toggleClass("highlight", false);
$("#contact-btn").toggleClass("highlight", false);
$("#news-section").slideUp("normal"); $("#demoreel-section").slideToggle("normal"); $("#projects-section").slideUp("normal"); $("#services-section").slideUp("normal"); $("#team-section").slideUp("normal");$("#contact-section").slideUp("normal"); 
});

$("#projects-btn").click(function(){
if ($("#projects-section").is(":visible")){
	$.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-156}}); 
	}else if ($("#news-section", "#demoreal-section", "#projects-section", "#services-section", "#team-section", "#contact-section").is(":hidden")){
	$.scrollTo("#anchor-projects", 500, {axis:"y", offset: {top:-156}}); 
	}
	else {
      $.scrollTo("#anchor-projects", 500, {axis:"y", offset: {top:-150}}); 
    }
$("#projects-btn").toggleClass("highlight");
$("#news-btn").toggleClass("highlight", false);
$("#demoreel-btn").toggleClass("highlight", false);
$("#services-btn").toggleClass("highlight", false);
$("#team-btn").toggleClass("highlight", false);
$("#contact-btn").toggleClass("highlight", false);
$("#news-section").slideUp("normal"); $("#demoreel-section").slideUp("normal"); $("#projects-section").slideToggle("normal"); $("#services-section").slideUp("normal"); $("#team-section").slideUp("normal");$("#contact-section").slideUp("normal");  
});

$("#services-btn").click(function(){
if ($("#services-section").is(":visible")){
	$.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-156}}); 
	}else if ($("#news-section", "#demoreal-section", "#projects-section", "#services-section", "#team-section", "#contact-section").is(":hidden")){
	$.scrollTo("#anchor-services", 500, {axis:"y", offset: {top:-156}}); 
	}
	else {
      $.scrollTo("#anchor-services", 500, {axis:"y", offset: {top:-150}}); 
    }
$("#services-btn").toggleClass("highlight");								  
$("#news-btn").toggleClass("highlight", false);
$("#demoreel-btn").toggleClass("highlight", false);
$("#projects-btn").toggleClass("highlight", false);
$("#team-btn").toggleClass("highlight", false);
$("#contact-btn").toggleClass("highlight", false);
$("#news-section").slideUp("normal"); $("#demoreel-section").slideUp("normal"); $("#projects-section").slideUp("normal"); $("#services-section").slideToggle("normal"); $("#team-section").slideUp("normal");$("#contact-section").slideUp("normal");  
});

$("#team-btn").click(function(){
if ($("#team-section").is(":visible")){
	$.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-156}}); 
	} else if ($("#news-section", "#demoreal-section", "#projects-section", "#services-section", "#team-section", "#contact-section").is(":hidden")){
	$.scrollTo("#anchor-team", 500, {axis:"y", offset: {top:-156}}); 
	}
	else {
      $.scrollTo("#anchor-team", 500, {axis:"y", offset: {top:-150}}); 
    }
$("#team-btn").toggleClass("highlight");
$("#news-btn").toggleClass("highlight", false);
$("#demoreel-btn").toggleClass("highlight", false);
$("#projects-btn").toggleClass("highlight", false);
$("#services-btn").toggleClass("highlight", false);
$("#contact-btn").toggleClass("highlight", false);
$("#news-section").slideUp("normal"); $("#demoreel-section").slideUp("normal"); $("#projects-section").slideUp("normal"); $("#services-section").slideUp("normal"); $("#team-section").slideToggle("normal");$("#contact-section").slideUp("normal");  
});

$("#contact-btn").click(function(){
if ($("#contact-section").is(":visible")){
	$.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-156}}); 
	}else if ($("#news-section", "#demoreal-section", "#projects-section", "#services-section", "#team-section", "#contact-section").is(":hidden")){
	$.scrollTo("#anchor-contact", 500, {axis:"y", offset: {top:-156}}); 
	}
	else {
      $.scrollTo("#anchor-contact", 500, {axis:"y", offset: {top:-150}}); 
    }
$("#contact-btn").toggleClass("highlight");
$("#news-btn").toggleClass("highlight", false);
$("#demoreel-btn").toggleClass("highlight", false);
$("#projects-btn").toggleClass("highlight", false);
$("#services-btn").toggleClass("highlight", false);
$("#team-btn").toggleClass("highlight", false);
$("#news-section").slideUp("normal"); $("#demoreel-section").slideUp("normal"); $("#projects-section").slideUp("normal"); $("#services-section").slideUp("normal"); $("#team-section").slideUp("normal");$("#contact-section").slideToggle("normal"); 
});

});

function gotoprojectssection(){

if ($("#projects-section").is(":visible")){
	$.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-156}}); 
	}else if ($("#news-section", "#demoreal-section", "#projects-section", "#services-section", "#team-section", "#contact-section").is(":hidden")){
	$.scrollTo("#anchor-projects", 500, {axis:"y", offset: {top:-156}}); 
	}
	else {
      $.scrollTo("#anchor-projects", 500, {axis:"y", offset: {top:-150}}); 
    }
$("#projects-btn").toggleClass("highlight");
$("#news-btn").toggleClass("highlight", false);
$("#demoreel-btn").toggleClass("highlight", false);
$("#services-btn").toggleClass("highlight", false);
$("#team-btn").toggleClass("highlight", false);
$("#contact-btn").toggleClass("highlight", false);
$("#news-section").slideUp("normal"); $("#demoreel-section").slideUp("normal"); $("#projects-section").slideToggle("normal"); $("#services-section").slideUp("normal"); $("#team-section").slideUp("normal");$("#contact-section").slideUp("normal");  
}

function gotonewssection(){

if ($("#news-section").is(":visible")){
	$.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-156}}); 
	}
else if ($("#news-section", "#demoreal-section", "#projects-section", "#services-section", "#team-section", "#contact-section").is(":hidden")){
	$.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-156}}); 
	}
	else {
    $.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-150}}); 
    }
$("#news-btn").toggleClass("highlight");
$("#demoreel-btn").toggleClass("highlight", false);
$("#projects-btn").toggleClass("highlight", false);
$("#services-btn").toggleClass("highlight", false);
$("#team-btn").toggleClass("highlight", false);
$("#contact-btn").toggleClass("highlight", false);
$("#news-section").slideToggle("normal"); $("#demoreel-section").slideUp("normal"); $("#projects-section").slideUp("normal"); $("#services-section").slideUp("normal"); $("#team-section").slideUp("normal");$("#contact-section").slideUp("normal");  
}


function gototeamsection(){
if ($("#team-section").is(":visible")){
	$.scrollTo("#anchor-news", 500, {axis:"y", offset: {top:-156}}); 
	} else if ($("#news-section", "#demoreal-section", "#projects-section", "#services-section", "#team-section", "#contact-section").is(":hidden")){
	$.scrollTo("#anchor-team", 500, {axis:"y", offset: {top:-156}}); 
	}
	else {
      $.scrollTo("#anchor-team", 500, {axis:"y", offset: {top:-150}}); 
    }
$("#team-btn").toggleClass("highlight");
$("#news-btn").toggleClass("highlight", false);
$("#demoreel-btn").toggleClass("highlight", false);
$("#projects-btn").toggleClass("highlight", false);
$("#services-btn").toggleClass("highlight", false);
$("#contact-btn").toggleClass("highlight", false);
$("#news-section").slideUp("normal"); $("#demoreel-section").slideUp("normal"); $("#projects-section").slideUp("normal"); $("#services-section").slideUp("normal"); $("#team-section").slideToggle("normal");$("#contact-section").slideUp("normal");  
}
