function showtab(name,active){
	var tabimagepath = '/content/EMEAI/_new_drivers_download/download_page/images/nav_tab_';

	var arVersion = navigator.appVersion.split("MSIE")
	var version = parseFloat(arVersion[1])
	if ((version >= 5.5) && (version < 7) && (document.body.filters)){
		var msie = true;
	}

	var gapcount = 0;
	var gaplimit = 3;
	var i = 1;
	var tabs = new Array();
	var tabcount = 0;
	while (gapcount < gaplimit){
		if (document.getElementById(name+i)){
			tabs[tabcount] = name+i;
			tabcount++;
			gapcount = 0;
		} else {
			gapcount++;
		}
		i++;
	}
	
	var x=0;
	for (x=0; x<=tabcount; x++){
		if (document.getElementById(tabs[x])){
			if (tabs[x]==name+active){
				document.getElementById(tabs[x]).className = 'tabon';
				document.getElementById(tabs[x]+'_content').style.visibility = 'visible';
				document.getElementById(tabs[x]+'_content').style.display = 'block';
			} else {
				document.getElementById(tabs[x]).className = 'taboff';
				document.getElementById(tabs[x]+'_content').style.visibility = 'hidden';
				document.getElementById(tabs[x]+'_content').style.display = 'none';
			}
		}
	}
	
	
}


/* this function removes a glitchy onload that conflicts with skype plugin 4.2x. Fun times on the starboard bow! */
function removeGlitchLoad(){
showtab('tab',1);
	var imageList = document.getElementsByTagName('img');
	for(i=0;i<imageList.length;i++){
		if (imageList[i].getAttribute("onload") == "showtab('tab',1);"){
			imageList[i].parentNode.removeChild(imageList[i]);		
		}
	}
	
}
window.onload = removeGlitchLoad;
