
// write me if you have questions: web.master@male.ru

  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else {
    if( document.documentElement &&
        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
      myHeight = document.documentElement.clientHeight;
    } else {
      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
    }
  }

// constants
var left_corner_x  = (myWidth - 700) / 2; 
var left_corner_y  = 100; // y-coordinate of top left corner of dropdown menu 
var back_color     = '#465463'; // the background color of dropdown menu 
var border_color   = 'black'; // the color of dropdown menu border
var border_size    = '0'; // the width of dropdown menu border
//


// Don't change these parameters
var delay           = 3000; /////
var active_layer_id = -1;  /////
var on_layer_id     = -1;  /////
var buff_id         = -1;  /////
/// ----------------------------



// Attention! You have to change the first number in Array line to change the width of the particular column! 
// menu content; the dropdown menus themselves between '' and items of every dropdown menu are diveded by |; 
// 
menu_content     = new Array (
  '40 | <a href=company.html class=topMenu>Company</a> ',
  '75 | <a href=muscle_cars.html class=topMenu>Muscle&nbsp;Cars/Classics</a><br><a href=modern.html class=topMenu>Modern</a> ',
  '60 | <a href=superchargers.html class=topMenu><span  style="font-size: larger; font-weight: bold">Superchargers</span></a><br><a href=sc_paxton.html class=topMenu>Paxton</a><br><a href=sc_vortec.html class=topMenu>Vortec</a><br><a href=sc_magnuson.html class=topMenu>Magnuson</a><br><a href=sc_vfengineering.html class=topMenu>VF&nbsp;Engineering</a><br><a href=sc_procharger.html class=topMenu>ProCharger</a><br><a href=turbo_chargers.html class=topMenu><span  style="font-size: larger; font-weight: bold">Turbochargers</span></a><br><a href=tc_aps.html class=topMenu>APS</a><br><a href=tc_hahn.html class=topMenu>Hahn</a><br><a href=tc_greddy.html class=topMenu>Greddy</a><br> ',
  '60 | <a href=motec.html class=topMenu>Motec</a><br><a href=superchips.html class=topMenu>SCT</a><br><a href=ecu_efilive.html class=topMenu>EFI Live</a><br><a href=ecu_hondata.html class=topMenu>Hondata</a><br><a href=ecu_hydranemisis.html class=topMenu>Hydra&nbsp;Nemisis</a><br><a href=ecu_aem.html class=topMenu>AEM</a><br><a href=ecu_unichip.html class=topMenu>Unichip</a>',
  '102 | <a href=emissions.html class=topMenu>Emissions</a> ',
  '80 | <a href=emissions.html class=topMenu>Emissions</a> ',
  '72 | <a href=make_bmw.html class=topMenu>BMW</a><br><a href=make_corvette.html class=topMenu>Corvette</a><br><a href=make_dodge.html class=topMenu>Dodge/Chrysler</a><br><a href=make_ford.html class=topMenu>Ford</a><br><a href=make_hondaAcura.html class=topMenu>Honda/Acura</a><br><a href=make_toyota.html class=topMenu>Toyota</a><br><a href=make_porsche.html class=topMenu>Porsche</a>',
  '72 | <a href=f1.html class=topMenu>F-1</a> ',
  "0 | "
);
							  
function checkDimensions() { 
		  var myWidth = 0, myHeight = 0;
		  if( typeof( window.innerWidth ) == 'number' ) {
		    //Non-IE
		    myWidth = window.innerWidth;
		    myHeight = window.innerHeight;
		  } else {
		    if( document.documentElement &&
		        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		      //IE 6+ in 'standards compliant mode'
		      myWidth = document.documentElement.clientWidth;
		      myHeight = document.documentElement.clientHeight;
			  alert( myWidth );
		    } else {
		      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		        //IE 4 compatible
		        myWidth = document.body.clientWidth;
		        myHeight = document.body.clientHeight;
		      }
		    }
		  }
		  
	
 		left_corner_x  = (myWidth - 700) / 2; 
	}

function refresh() { window.location.reload( false ); }