var menu_cooling = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_cooling').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_cooling', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_cooling').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_cooling', {duration:.3, fps:40})},300); } } } var menu_hose = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_hose').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_hose', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_hose').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_hose', {duration:.3, fps:40})},300); } } } var menu_exhaust = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_exhaust').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_exhaust', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_exhaust').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_exhaust', {duration:.3, fps:40})},300); } } } var menu_turbo = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_turbo').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_turbo', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_turbo').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_turbo', {duration:.3, fps:40})},300); } } } var menu_engine = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_engine').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_engine', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_engine').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_engine', {duration:.3, fps:40})},300); } } } var menu_sus = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_sus').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_sus', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_sus').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_sus', {duration:.3, fps:40})},300); } } } var menu_brake = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_brake').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_brake', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_brake').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_brake', {duration:.3, fps:40})},300); } } } var menu_drive = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_drive').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_drive', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_drive').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_drive', {duration:.3, fps:40})},300); } } } var menu_other = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_other').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_other', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_other').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_other', {duration:.3, fps:40})},300); } } } var menu_bodyparts = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_bodyparts').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_bodyparts', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_bodyparts').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_bodyparts', {duration:.3, fps:40})},300); } } } var menu_wpc = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_wpc').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_wpc', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_wpc').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_wpc', {duration:.3, fps:40})},300); } } } var menu_import = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_import').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_import', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_import').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_import', {duration:.3, fps:40})},300); } } } var menu_competition = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_competition').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_competition', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_competition').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_competition', {duration:.3, fps:40})},300); } } } var menu_goods = { timeout : null, showPopup : function(){ clearTimeout(this.timeout); if($('menu_goods').style.display == 'none'){ this.timeout = setTimeout(function(){new Effect.BlindDown('menu_goods', {duration:.3, fps:40})},400); } }, hidePopup : function(){ if($('menu_goods').style.display == 'none'){ clearTimeout(this.timeout); }else{ this.timeout = setTimeout(function(){new Effect.BlindUp('menu_goods', {duration:.3, fps:40})},300); } } }