jQuery.noConflict();

 // DOM ready
jQuery(document).ready(function(){
   
   
	//If the website has only a few links it would be safe to keep them as text but because we don't know how many the user will add, we will convert the navigation into a select menu.
	
	// Create the dropdown base
	
	/*
	jQuery("<select />").appendTo("nav");
	*/
	
	// Create default option "Go to..."
	
	/*
	jQuery("<option />", {
		"selected": "selected",
		"value"   : "",
		"text"    : "Choose a Page"
	}).appendTo("nav select");
	*/
	
	// Populate dropdown with menu items
	
	/*
	jQuery("nav#main a").each(function() {
		var el = jQuery(this);
		jQuery("<option />", {
		"value"   : el.attr("href"),
		"text"    : el.text()
		}).appendTo("nav select");
	});
	*/
	
	jQuery('#main .sf-menu').mobileMenu();
	
	jQuery(this).placeholder();
	
	// To make dropdown actually work
	// To make more unobtrusive: http://css-tricks.com/4064-unobtrusive-page-changer/
	
	/*
	jQuery("nav#main select").change(function() {
		window.location = jQuery(this).find("option:selected").val();
	});
	*/
	

	
	
	// animate to top
		jQuery(".top").hide();
		jQuery(function () {
			jQuery(window).scroll(function () {
				if (jQuery(this).scrollTop() > 100) {
					jQuery('.top').fadeIn();
				} else {
					jQuery('.top').fadeOut();
				}
			});
	
			jQuery('.top').click(function () {
				jQuery('body,html').animate({
					scrollTop: 0
				}, 800);
				return false;
			});
		});
	
 });
