// JavaScript Document
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 adjustHeight(id1,id2) {
var lheight, rheight, dif;
lheight=document.getElementById(id1).offsetHeight;
rheight=document.getElementById(id2).offsetHeight;

if (rheight > lheight) {
    dif = rheight - lheight + 10;
    document.getElementById(id1).style.paddingBottom=dif+"px";
    }

if (rheight < lheight) {
    dif = lheight - rheight + 10;
    document.getElementById(id2).style.paddingBottom=dif+"px";
    }
}

function productsShow(id) {
//	overview 	specs 	compare 	inthebox 	qstart 
	document.getElementById('overview').style.display="none";
	document.getElementById('specs').style.display="none";
	document.getElementById('compare').style.display="none";
	document.getElementById('inthebox').style.display="none";
	document.getElementById('qstart').style.display="none";
	document.getElementById('overviewpr').style.backgroundColor="#000";
	document.getElementById('overviewpr').style.color="#E4E4E3";
	document.getElementById('specspr').style.backgroundColor="#000";
	document.getElementById('specspr').style.color="#E4E4E3";
	document.getElementById('comparepr').style.backgroundColor="#000";
	document.getElementById('comparepr').style.color="#E4E4E3";
	document.getElementById('intheboxpr').style.backgroundColor="#000";
	document.getElementById('intheboxpr').style.color="#E4E4E3";
	document.getElementById('qstartpr').style.backgroundColor="#000";
	document.getElementById('qstartpr').style.color="#E4E4E3";
	document.getElementById(id).style.display="block";
	document.getElementById(id+'pr').style.backgroundColor="#BABABA";
	document.getElementById(id+'pr').style.color="#111";
}

function msShow(id,count) {
	var i=1;
	for (i=1;i<=count;i++)
	{
		document.getElementById('tab'+i).style.display="none";
		document.getElementById('tab'+i+'pr').style.backgroundColor="#000";
		document.getElementById('tab'+i+'pr').style.color="#E4E4E3";
	}
	document.getElementById(id).style.display="block";
	document.getElementById(id+'pr').style.backgroundColor="#BABABA";
	document.getElementById(id+'pr').style.color="#111";
}
		
function newWin(url, name, w, h) {
	winParams='height='+h+',width='+w+',statusbar=no,menubar=no,scrollbars=yes,resizable=yes'
	win = window.open(url, name, winParams)
}

function announceEQ() {
var lheight, rheight, dif;
lheight=document.getElementById('announcepc').offsetHeight;
rheight=document.getElementById('announcemac').offsetHeight;

if (lheight > rheight) {
        dif = lheight - rheight;
        document.getElementById('announcemac').style.paddingBottom=dif+"px";
        }

if (lheight < rheight) {
        dif = rheight - lheight;
        document.getElementById('announcepc').style.paddingBottom=dif+"px";
        }
}

