function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function clear_others(product_id) {
	switch (product_id) {
		case 1:
		default:
			document.product2.src='images/btn_product2.gif';
			document.product3.src='images/btn_product3.gif';
			document.main_product_text.src='images/txt_hdc_1000.gif';
			document.main_product_text.width=134;
			document.main_product_text.height=15;
			document.main_product_text.alt='HDC-1000';
			document.getElementById("main_img_target").href='hdc_1000.php';
			document.getElementById("short_content").innerHTML = '<strong>No CDs. No Laptops.</strong> <span class="subheader">Just pure sound.</span><br /><br />The Cortex USB-compatible digital music controllers, the first of their kind, gives DJs the power to cue, play, manipulate, and even scratch digital files. Our "intelligent music database management" system allows users to find any track lightning fast by artist, title, genre, words or phrases; play them <br /> with ultra-precise pitch resolution.';
			break;
		case 2:
			document.product1.src='images/btn_product1.gif';
			document.product3.src='images/btn_product3.gif';
			document.main_product_text.src='images/txt_hdc_3000.gif';
			document.main_product_text.width=147;
			document.main_product_text.height=15;
			document.main_product_text.alt='HDC-3000';
			document.getElementById("main_img_target").href='hdc_3000.php';
			document.getElementById("short_content").innerHTML = '<strong>No CDs. No Laptops.</strong> <span class="subheader">Just pure sound.</span><br /><br />The Cortex USB-compatible digital music controllers, the first of their kind, gives DJs the power to cue, play, manipulate, and even scratch digital files. Our "intelligent music database management" system allows users to find any track lightning fast by artist, title, genre, words or phrases; play them <br /> with ultra-precise pitch resolution.';
			break;
		case 3:
			document.product1.src='images/btn_product1.gif';
			document.product2.src='images/btn_product2.gif';
			document.main_product_text.src='images/txt_hdtt_5000.gif';
			document.main_product_text.width=165;
			document.main_product_text.height=15;
			document.main_product_text.alt='HDTT-5000';
			document.getElementById("main_img_target").href='hdtt_5000.php';
			document.getElementById("short_content").innerHTML = 'Coming Winter 2006/2007';
			break;
	}
}	

function preload_images() {
	MM_preloadImages('images/btn_company_over.gif','images/btn_dealers_over.gif','images/btn_support_over.gif','images/btn_theword_over.gif','images/btn_news_over.gif','images/btn_media_over.gif','images/btn_careers_over.gif','images/btn_wheretobuy_over.gif','images/btn_product1_over.gif','images/btn_product2_over.gif','images/btn_product3_over.gif','images/img_hdc1000.jpg','images/txt_hdc_1000.gif','images/img_hdc3000.jpg','images/txt_hdc_3000.gif');
}

addEvent(window, 'load', preload_images, false);
