jQuery(document).ready(function($){ //MENU************************************************ $('nav').prepend(''); $("#menu-icon").on("click", function(){ $("nav ul").slideToggle(); $(this).toggleClass("active"); }); //PLAN********************************************** /* $(".m").mouseover(function(e){ var index = $(".m").index(this)+1; $(".t"+index).hide().fadeIn(); $(".t"+index).css({ position:'absolute', top: (e.pageY + 15) + "px", left: (e.pageX + 15) + "px" }); }); $(".m").mouseout(function(e){ var index = $(".m").index(this)+1; $(".t"+index).hide().fadeIn(); $(".t"+index).css({position:'static'}); }); */ //POPUP******************************************** $(".popup").prettyPhoto({ social_tools:false }); //IMAGES MAPS************************************** //jonathanbowen.co.uk/scaling-image-maps/ (function($) {     if (!$('').attr('coords')) return; var imgs = $('img[usemap]'); $('area').each(function(i, v) { var area = $(v); area.data('coords', area.attr('coords')); }); $(window).bind('resize.scaleMaps', function() { imgs.each(function(i, v) { scaleMap($(v)); }); }).trigger('resize.scaleMaps'); function scaleMap(img) { var mapName = img.attr('usemap').replace('#', ''), map = $('map[name="' + mapName + '"]'), imgScale = img.width() / img.attr('width'); if (imgScale !== img.data('scale')) { map.find('area').each(function(i, v) { var area = $(v), coords = area.data('coords').split(','), newCoords = []; $.each(coords, function(j, w) { newCoords.push(w * imgScale); }); area.attr('coords', newCoords.join(',')); }); img.data('scale', imgScale); } } }(jQuery)); });