$(document).ready(function() 
{
	if(screen.width <= 540){
 		init();
	}
});

function init()
{
	//dev state
	/*function getUrlVar(requestedKey) {
	var vars = [], hash;
	var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');

	for (var i = 0; i < hashes.length; i++) {
		hash = hashes[i].split('=');
		vars.push(hash[0]);
		vars[hash[0]] = hash[1];
	}
	if (typeof requestedKey == 'undefined') {
		return vars;
	} else {
		return vars[requestedKey];
	}
	}
	var getvars = getUrlVar();
	
	if(getvars['d'] == 'd') {*/
	
	// viewport toevoegen
	var meta = document.createElement('meta');
	meta.name = 'Viewport';
	meta.content = 'width=device-width';
	document.getElementsByTagName('head')[0].appendChild(meta);
	
	//$(".menu li").show();
	$(".sub-menu").hide();
	$(".icon-wrapper").appendTo($(".home-footer-wrapper"));
	$(".taal-nav-wrapper").appendTo($(".home-footer-wrapper"));
	$(".home-header").prepend('<div id="bloemen"></div>');
	$(".home-header").prepend('<div id="headergreen"></div>');
	$("#bgimg").removeAttr("src");
	$("#access").addClass("access-home").removeAttr("id");
	$(".menu-item").addClass("menu-item-home").removeClass("menu-item");
	$("#menu-item-173").css("border-bottom", "0px");
		
	
	//}
}


