// webland - webhosting navigation javascript v1.01 
 
// CONFIG SECTION: 
 
// define file prefix (colour name)

var colourvar = 'blue'; 

// define top level section names & number of subsections for each 
// ('topidnumber | topidname | htmltargetfile | numberofsubsections') 
 
var navtoplevelnames = new Array( 
 
'1 | WebHosting Angebote | http://www.webland.ch/webhosting/index.aspx | 10', 
'2 | WebsiteCreator Angebote | http://www.webland.ch/webhosting/wsc.aspx | 7',
'3 | Application Hosting | http://www.webland.ch/webhosting/apps.aspx | 5',
'4 | Diverse Optionen | http://www.webland.ch/webhosting/optionsuebersicht.aspx | 7', 
'5 | Bestellen | https://www.webland.ch/bestellen/WebHosting1.aspx | 4', 
'6 | Wiederverk&auml;ufer | http://www.webland.ch/reseller/index.aspx | 0'
 
); 
 
// define subsection names 
// ('topidnumber | subidnumber | subidname | htmltargetfile') 
 
var navsublevelnames = new Array( 
 
'1 | 1 | E-Mail Starter | http://www.webland.ch/webhosting/emailstarter.aspx', 
'1 | 2 | E-Mail Domain | http://www.webland.ch/webhosting/emaildomain.aspx',
'1 | 3 | Start-Up Server | http://www.webland.ch/webhosting/startup.aspx', 
'1 | 4 | Light Server | http://www.webland.ch/webhosting/light.aspx', 
'1 | 5 | Standard Server | http://www.webland.ch/webhosting/standard.aspx', 
'1 | 6 | Business Server | http://www.webland.ch/webhosting/business.aspx', 
'1 | 7 | Professional Server | http://www.webland.ch/webhosting/professional.aspx', 
'1 | 8 | Master Server | http://www.webland.ch/webhosting/master.aspx', 
'1 | 9 | Angebots-Vergleich | http://www.webland.ch/webhosting/hostingvergleich.aspx',
'1 | 10 | Special Features | http://www.webland.ch/webhosting/feature_sysconf.aspx',

'2 | 1 | Home Editionen | http://www.webland.ch/webhosting/wsc_home.aspx', 
'2 | 2 | Business Editionen | http://www.webland.ch/webhosting/wsc_business.aspx',
'2 | 3 | Angebots-Vergleich | http://www.webland.ch/webhosting/wsc_vergleich.aspx',
'2 | 4 | Features | http://www.webland.ch/webhosting/wsc_legend.aspx', 
'2 | 5 | Demo Versionen | http://www.webland.ch/webhosting/wsc_demo.aspx',

'3 | 1 | ColdFusion Hosting | http://www.webland.ch/webhosting/apps_coldfusion.aspx',
'3 | 2 | Joomla CMS | http://www.webland.ch/webhosting/apps_joomla.aspx', 
'3 | 3 | Typo3 CMS | http://www.webland.ch/webhosting/apps_typo3.aspx', 
'3 | 4 | DotNetNuke CMS | http://www.webland.ch/webhosting/apps_dotnetnuke.aspx',
'3 | 5 | osCommerce Shop | http://www.webland.ch/webhosting/apps_oscommerce.aspx',
'3 | 6 | WordPress Blog | http://www.webland.ch/webhosting/apps_wordpress.aspx',

'4 | 1 | Datenbanken | http://www.webland.ch/webhosting/datenbanken.aspx',  
'4 | 2 | SSL (Datensicherheit) | http://www.webland.ch/webhosting/ssl.aspx', 
'4 | 3 | E-Mail | http://www.webland.ch/webhosting/email.aspx', 
'4 | 4 | FTP / Frontpage | http://www.webland.ch/webhosting/ftpfp.aspx',  
'4 | 5 | Diverse Optionen | http://www.webland.ch/webhosting/diverseoptionen.aspx', 
 
'5 | 1 | WebHosting | https://www.webland.ch/be?????O??º???stellen/WebHosting1.aspx', 
'5 | 2 | WebHosting Optionen | https://www.webland.ch/bestellen/whoptionen1.aspx',
'5 | 3 | Domainname | https://www.webland.ch/domainreg/newdomain1.aspx',
'5 | 4 | ADSL | https://www.webland.ch/bestellen/speedconnect1.aspx',
'5 | 5 | SDSL | http://www.webland.ch/connect/sdslbestellen.aspx'

); 
 
// MAIN SECTION: 

var topnavid;
var subnavid;
function optimodx(intr,extr,vm) { document [intr].src = eval(extr + vm + ".src"); }
function optimod(tagid,extra,intra) { optimodx((tagid + "i" + intra),(tagid + "e" + intra),extra); }
function opt(optmod,tog) { optimod((colourvar + "_opt"),tog,optmod); }
function bul(optmod,tog) { optimod(("bullet_opt"),tog,optmod); }
function donavi(topnavid,subnavid) { 
uppermenuedge(); 
var total = (navtoplevelnames.length); 
for (counter=0;counter<total;counter++) { 
var navlevelsplit = navtoplevelnames[counter].split(' | '); 
var navidnumber = navlevelsplit[0]; var navname = navlevelsplit[1]; 
var navgiffile = (colourvar + "_opt" + (counter+1)); var navhtmlfile = navlevelsplit[2]; 
var navsubs = navlevelsplit[3]; 
navident(topnavid,subnavid,navgiffile,navhtmlfile,navname,counter,total,navsubs); 
} return 0; } 
function navident(topnavid,subnavid,navgiffile,navhtmlfile,navname,counter,total,navsubs) { 
var evstring = (colourvar + '_opte' + (counter+1) + '0 = new Image(); ');
var evstring = (evstring + colourvar + '_opte' + (counter+1) + '0.src = "/img/menu/');
var evstring = (evstring + colourvar + '_opt' + (counter+1) + '_0.gif";');
eval (evstring);
var evstring = (colourvar + '_opte' + (counter+1) + '1 = new Image(); ');
var evstring = (evstring + colourvar + '_opte' + (counter+1) + '1.src = "/img/menu/');
var evstring = (evstring + colourvar + '_opt' + (counter+1) + '_1.gif";');
eval (evstring);
var openflag = 0; 
if ((counter == (topnavid - 1)) && (navsubs == 0)) { openflag = 1; } 
if ((counter == (topnavid - 1)) && (navsubs != 0)) { openflag = 2; } 
if (counter != 0) { upper3spacer(); } 
document.write('<TR><TD align=left valign=top width=173><IMG src="/img/menu/'+colourvar+'_1l.gif" width=6 '); 
document.write('height=12 border=0 alt="">');
document.write('<A href="'+navhtmlfile+'"');
if (openflag == 0) { document.write(' onmouseover="opt('+(counter+1)+',1);" onmouseout="opt('+(counter+1)+',0);"'); }
document.write('><IMG src="/img/'); 
if (openflag == 1) { document.write('menu/'+colourvar+'_px2.gif" '); } 
if (openflag == 2) { document.write('menu/'+colourvar+'_arrow_1.gif" '); } 
if ((openflag == 0) && (navsubs == 0)) { document.write('menu/'+colourvar+'_px2.gif" '); } 
if ((openflag == 0) && (navsubs != 0)) { document.write('menu/'+colourvar+'_arrow_0.gif" '); }  
document.write('width=13 height=12 border=0 alt=""><IMG src="/img/menu/');
document.write(navgiffile); 
if ((openflag == 1) || (openflag == 2)) { document.write('_1'); } else { document.write('_0'); } 
document.write('.gif" width=148 height=12 border=0 alt="' + navname + '" name="'+colourvar+'_opti');
document.write((counter + 1)+'">');
document.write('</A>');
document.write('<IMG '); 
document.write('src="/img/menu/'+colourvar+'_1r.gif" width=6 height=12 border=0 alt=""></TD></TR>'); 
if (openflag == 2) { 
lower2spacer(); 
harddivision(); 
expandsubnavids(topnavid,subnavid,navsubs); 
if (counter != (total - 1)) { harddivision(); } 
if (counter == (total - 1)) { lowermenuedge2(); } 
} else { 
if (counter != (total - 1)) { lower2spacer(); } 
if (counter != (total - 1)) { maindivision(); } 
if (counter == (total - 1)) { lowermenuedge1(); } 
} } 
function expandsubnavids(topnavid,subnavid,navsubs) { 
var actualcount = 0; 
var total = (navsublevelnames.length); 
for (subcounter=0;subcounter<total;subcounter++) { 
var subnavlevelsplit = navsublevelnames[subcounter].split(' | '); 
var subnavidfrom = subnavlevelsplit[0]; var subnavidnumber = subnavlevelsplit[1]; 
var subnavname = subnavlevelsplit[2];  var subnavhtmlfile = subnavlevelsplit[3]; 
if (subnavidfrom == topnavid) { actualcount++; 
dosubnav(subnavid,subnavidnumber,subnavname,subnavhtmlfile,actualcount,navsubs); } 
} } 
function dosubnav(subnavid,subnavidnumber,subnavname,subnavhtmlfile,actualcount,navsubs) { 
var evstring = ('bullet_opte' + (actualcount) + '0 = new Image(); ');
var evstring = (evstring + 'bullet_opte' + (actualcount) + '0.src = "/img/menu/');
var evstring = (evstring + colourvar + '_sq.gif";')
eval (evstring);
var evstring = ('bullet_opte' + (actualcount) + '1 = new Image(); ');
var evstring = (evstring + 'bullet_opte' + (actualcount) + '1.src = "/img/menu/');
var evstring = (evstring + colourvar + '_sq1.gif";')
eval (evstring);
document.write('<TR><TD align=left valign=top width=173 background="/img/menu/'+colourvar+'_px');
if (subnavid == actualcount) { document.write('1'); }
document.write('.gif"><TABLE cellpadding=0 cellspacing=0 border=0 width=173><TR><TD '); 
document.write('align=left valign=top width=167><TABLE cellpadding=0 cellspacing=0 border=0 '); 
document.write('width=167><TR><TD align=left valign=top width=19><IMG src="/img/menu/'+colourvar+'_2l.gif" '); 
document.write('width=6 height=15 border=0 alt=""><IMG src="/img/uni/spc.gif" width=1 height=15 '); 
document.write('border=0 alt=""><IMG src="/img/menu/'+colourvar+'_sq');
if (subnavid == actualcount) { document.write('1'); }
document.write('.gif" width=5 height=15 border=0 '); 
document.write('alt="" name="bullet_opti'+actualcount+'"><IMG src="/img/uni/spc.gif" width=7 height=15 border=0 '); 
document.write('alt=""></TD><TD align=left valign=middle width=148><A class="weblandnavi'+colourvar);
if (subnavid == actualcount) { document.write('actv'); }
document.write('" href="'+subnavhtmlfile+'"'); 
if (subnavid != actualcount) { document.write(' onmouseover="bul('+actualcount+',1);" onmouseout="bul('+actualcount+',0);"'); }
document.write('>'+subnavname); 
document.write('</A></TD></TR></TABLE></TD><TD align=right valign=top width=6><IMG '); 
document.write('src="/img/menu/'+colourvar+'_2r.gif" width=6 height=15 border=0 '); 
document.write('alt=""></TD></TR></TABLE></TD></TR>'); 
if (navsubs != actualcount) { softdivision(); } 
} 
function uppermenuedge() { 
document.write('<TR><TD align=left valign=top width=173><IMG src="/img/menu/'+colourvar+'_upper.gif" width=173 '); 
document.write('height=5 border=0 alt=""></TD></TR>'); 
} 
function lower2spacer() { 
document.write('<TR><TD align=left valign=top width=173><IMG src="/img/menu/'+colourvar+'_1spc.gif" width=173 '); 
document.write('height=2 border=0 alt=""></TD></TR>'); 
} 
function upper3spacer() { 
document.write('<TR><TD align=left valign=top width=173><IMG src="/img/menu/'+colourvar+'_1spc.gif" width=173 '); 
document.write('height=3 border=0 alt=""></TD></TR>'); 
} 
function harddivision() { 
document.write('<TR><TD align=left valign=top width=173><IMG src="/img/menu/'+colourvar+'_1div.gif" width=173 '); 
document.write('height=1 border=0 alt=""></TD></TR>'); 
} 
function softdivision() { 
document.write('<TR><TD align=left valign=top width=173><IMG src="/img/menu/'+colourvar+'_2div.gif" width=173 '); 
document.write('height=1 border=0 alt=""></TD></TR>'); 
} 
function maindivision() { 
document.write('<TR><TD align=left valign=top width=173><IMG src="/img/menu/'+colourvar+'_3div.gif" width=173 '); 
document.write('height=1 border=0 alt=""></TD></TR>'); 
} 
function lowermenuedge1() { 
document.write('<TR><TD align=left valign=top width=173><IMG src="/img/menu/'+colourvar+'_lower1.gif" width=173 '); 
document.write('height=4 border=0 alt=""></TD></TR>'); 
} 
function lowermenuedge2() { 
document.write('<TR><TD align=left valign=top width=173><IMG src="/img/menu/'+colourvar+'_lower2.gif" width=173 '); 
document.write('height=4 border=0 alt=""></TD></TR>'); 
} 
// -- 

