neededkeys = [38,38,40,40,37,39,37,39,66,65], started = false, count = 0;$(document).keydown(function(e){key=e.keyCode;if(!started){if(key==38){started=true}}if(started){if(neededkeys[count]==key){count++}else{reset_kon()}if(count==10){if(typeof kon==='function'){kon()}reset_kon()}}else{reset_kon()}});function reset_kon(){started=false;count=0;return} function kon() { $('.clip-home').attr('src', '/assets/img/mascotte-old.png').height(274).width(208); $('.comparison-form').attr('style', 'overflow:hidden'); } $.fn.randomize=function(a){(a?this.find(a):this).parent().each(function(){$(this).children(a).sort(function(){return Math.random()-0.5}).detach().appendTo(this)});return this}; if (!Array.prototype.indexOf) { Array.prototype.indexOf = function(elt /*, from*/) { var len = this.length >>> 0; var from = Number(arguments[1]) || 0; from = (from < 0) ? Math.ceil(from) : Math.floor(from); if (from < 0) from += len; for (; from < len; from++) { if (from in this && this[from] === elt) return from; } return -1; }; } function setActivePage(id_name) { $('[id='+id_name+'-link]').parent().attr('class', 'active'); } $('body').ready(function() { $('.iframe').live('click', function(e) { e.preventDefault(); window.open($(this).attr('data-src'), 'popup', "width=600,menubar=yes,resizable=yes,scrollbars=yes,height=800"); }); var preview = location.hash.match("preview"); if (preview) { var layer = $("