$(document).ready(function() {

 // Create the dropdown base
  $("<select />").appendTo(".menu-main-container");
  
  // Create default option "Go to..."
  $("<option />", {
     "selected": "selected",
     "value"   : "",
     "text"    : "Navigate..."
  }).appendTo("nav select");
  
  // Populate dropdown with menu items
  $(".menu-main-container a").each(function() {
   var el = $(this);
   $("<option />", {
       "value"   : el.attr("href"),
       "text"    : el.text()
   }).appendTo(".menu-main-container select");
  });
  
   // To make dropdown actually work

  $(".menu-main-container select").change(function() {
    window.location = $(this).find("option:selected").val();
  });
	


});

// parallax
$('.lines1').parallax({ "coeff":-0.65 });
$('.lines1 .lines2').parallax({ "coeff":-1.65 });

