//Script zum automatischen Aufruf der DownloadSeiten
var productname;

//var server="http://hal3000/test/intermedic/download/public/"
var server="http://www.inter-medic.net/download/public/"
//Varius
var download1=new Array("Choose Information","Films","Press&Studies","PatientInformation","ProductInformation","Applications");
//VR 1000
var download2=new Array("Choose Information","Films","Press&Studies","PatientInformation","ProductInformation","Applications");
//Multidiode SLP
var download3=new Array("Choose Information","Films","Press&Studies","PatientInformation","ProductInformation","Applications");
//Multidiode ENDO
var download4=new Array("Choose Information","Films","Press&Studies","PatientInformation","ProductInformation","Applications");
//Surigal Series
var download5=new Array("Choose Information","Films","Press&Studies","PatientInformation","Applications");
//Multidiode ODONT
var download6=new Array("Choose Information","ProductInformation");
//WhiteLas / Lamp
var download7=new Array("Choose Information","ProductInformation");
// Ophtaldiode
var download8=new Array("Choose Information","ProductInformation","Applications");
// Company
var download9=new Array("Choose Information","Information");
// MULTIIDIODEPL3D
var download10=new Array("Choose Information","ProductInformation","Press&Studies");

function change_download(item){
var prodnum=document.test.products.options[item.selectedIndex].value;
var mydownloads=eval("download"+prodnum);
document.test.offers.options.length=0;
for (i=0;i<mydownloads.length;i++){
document.test.offers.options[i]=new Option(mydownloads[i],mydownloads[i]);
}
switch (prodnum)
	{
case "1":
productname="varius_vr1000";
break;
case "2":
productname="varius_vr1000";
break;
case "3":
productname="slp";
break;
case "4":
productname="endo";
break;
case "5":
productname="surgical";
break;
case "6":
productname="odont";
break;
case "7":
productname="whitelas";
break;
case "8":
productname="ophtal";
break;
case "9":
productname="company";
break;
case "10":
productname="pl3d";
break;
default:
productname="nix";
	}
//alert(productname)
document.test.offers.options.selectedIndex=0;
}
function show_download(category)
{
if (category!="Choose Information")
	{
path=server+productname+"/"+category+"/";
document.location.href=path;
//alert(path)
	}
else
	{
alert("Please choose Your type of Information")
	}
}
