<!-- Start




/***********************************************************************************************
* Beschreibung   : Funktion zur ermittlung der position, mit der position ist die position im menu gemeint(also welche Kategorie geöffnet werden soll
* Eingabewert    : x = gibt die Position an welche Kategorie 1 oder 2 .... y = wenn ein Eintrag ausgewählt wurde 
			der aufklappbar ist muss Bild gewechselt werden
* Rückgabewert   : 
* Autor          : Remo Blattmann (RBL)
* Erstelldatum   : (2007)
* Letzte Änderung: -
* Version        : 1.0
* Änderungen     : -
************************************************************************************************/
function position(x,y){
if(isNaN(x)){
	document.getElementById(x).style.display = "block";
	document.getElementById(x).style.background = "#FFFFFF";
	document.getElementById(x).style.fontWeight = "bold";
}else{
	document.getElementsByName('menu')[x].style.display = "block";
	document.getElementsByName('menu')[x].style.background = "#FFFFFF";
	document.getElementsByName('menu')[x].style.fontWeight = "bold";
	if(x==3 && y!=3){
	document.getElementById('foldin1').src = "../../grafiken/foldout.gif";
	}
	if(x==9 && y!=9){
	document.getElementById('foldin2').src = "../../grafiken/foldout.gif";
	}
	if(x==10 && y!=10){
	document.getElementById('foldin3').src = "../../grafiken/foldout.gif";
	}
}
}
/***********************************************************************************************
* Beschreibung   : Funktion zur ermittlung der subposition, mit der subposition ist die position im submenu gemeint
* Eingabewert    : x = markiert den Eintrag in der Navigation auf dem man sich befindet y= wenn ein Eintrag ausgewählt wurde 
			der aufklappbar ist muss Bild gewechselt werden
* Rückgabewert   : 
* Autor          : Remo Blattmann (RBL)
* Erstelldatum   : (2007)
* Letzte Änderung: -
* Version        : 1.0
* Änderungen     : -
************************************************************************************************/
function subposition(x,y){

document.getElementsByName('submenu')[x].style.display = "block";
document.getElementsByName('submenu')[x].style.background = "#FFFFFF";
document.getElementsByName('submenu')[x].style.fontWeight = "bold";
if(y==1||y==2||y==3){
document.getElementById('foldin'+y).src = "../../grafiken/foldout.gif";
}

}
/***********************************************************************************************
* Beschreibung   : Funktion bewirkt dass das menu aufklappbar wird
* Eingabewert    : ima = Ima wird aufgeklappt, hamet2export = hamet2export wird aufgeklappt, hamet2direct = hamet2direct wird aufgeklappt
* Rückgabewert   : 
* Autor          : Remo Blattmann (RBL)
* Erstelldatum   : (2007)
* Letzte Änderung: -
* Version        : 1.0
* Änderungen     : -
************************************************************************************************/
function expand(x){
if(x=="ima"){
	
document.write('<div class="subItem" id="expand"><div style="float:left;width:10%;border-top:1px solid black;"></div><div style="float:right;width:90%;height:100%; border-left: 1px solid black;"><a href="../produkte/masc-ima.htm" name="submenu">-Generelle Infomationen</a></div><div style="clear:both;margin-top:0px;margin-bottom:0px;display:none;">&nbsp;</div></div>')
document.write('<div class="subItem" id="expand" >')
document.write('<div style="float:right;width:90%;height:100%;border-left:1px solid black;"><a href="../produkte/masc-ima-gesamt.htm" name="submenu">-Detailinformationen</a></div><div style="clear:both;margin-top:0px;margin-bottom:0px;display:none;">&nbsp;</div></div>')
document.write('<div class="subItem" id="expand" >')
document.write('<div style="float:right;width:90%;height:100%;border-left:1px solid black;"><a href="../produkte/kleine_vereine.htm" name="submenu">-kleine Vereine</a></div><div style="clear:both;margin-top:0px;margin-bottom:0px;display:none;">&nbsp;</div></div>')
document.write('<div class="subItem" id="expand" >')
document.write('<div style="float:left;width:10%;"></div><div style="float:right;width:90%;border-left:1px solid black;height:100%;position:relative;bottom:3px;"><a href="../produkte/masc-studentenverbindung.htm" name="submenu">-Studentenverbindung</a></div><div style="clear:both;"></div></div>')
document.write('<div class="subItem" id="expand"  >')
document.write('<div style="float:left;width:10%;"></div><div style="float:right;width:90%;border-left:1px solid black;height:100%;position:relative;bottom:3px;"><a href="https://www.mascservice.com/imademo" name="submenu">-Demo Mandant</a></div><div style="clear:both;"></div></div>')
document.write('<div class="subItem" id="expand"  >')
document.write('<div style="float:left;width:10%;"></div><div style="float:right;width:90%;border-left:1px solid black;height:100%;position:relative;bottom:6px;"><a href="../produkte/formular_ima.htm" name="submenu">-Kontaktformular</a></div><div style="clear:both;"></div></div>')


}
if(x=="hametexport"){
document.write('<div class="subItem" id="expand"><div style="float:left;width:10%;border-top:1px solid black;"></div><div style="float:right;width:90%;height:100%;border-left:1px solid black;"><a href="../loesungen/bestellung_hamet2export.htm" name="submenu">-Bestellen</a></div><div style="clear:both;margin-top:0px;margin-bottom:0px;display:none;">&nbsp;</div></div>')
document.write('<div class="subItem" id="expand">')
document.write('<div style="float:left;width:10%;"></div><div style="float:right;width:90%;border-left:1px solid black;position:relative;bottom:3px;"><a href="../loesungen/hints_tipps.htm" name="submenu">-Hints und Tipps</a></div><div style="clear:both;"></div></div>')
}
if(x=="hametdirect"){
document.write('<div class="subItem" id="expand"><div style="float:left;width:10%;border-top:1px solid black;"></div><div style="float:right;width:90%;height:70%;border-left:1px solid black;"><a href="../loesungen/bestellung_hamet2direct.htm" name="submenu">-Bestellen</a></div><div style="clear:both;margin-top:0px;margin-bottom:0px;display:none;">&nbsp;</div></div>')

}
}




/***********************************************************************************************
* Beschreibung   : Diese Funktion startet die Navigation dabei wird die Sprache unterschieden, die Position im  Menu und welches  aufklappbare menu geöffnet ist 
* Eingabewert    : x=submenu das geöffnet sein soll. y = steht für welches Submenu geöffnet sein soll  und für das  aufklappbare menu, dass geöffnet sein soll
		           lang=Sprache EN für English  oder DE für Deutsch
* Rückgabewert   : -
* Autor          : Remo Blattmann (RBL)
* Erstelldatum   : (2007)
* Letzte Änderung: -
* Version        : 1.0
* Änderungen     : -
************************************************************************************************/

function startup(x,y,lang){


if(lang=="DE"){

var Firmenprofil="Firmenprofil";
Firmenpraesentation = new Array("Firmenpr&auml;sentation","../firmenprofil/firmenpraesentation.htm");
lageplan = new Array("So finden Sie uns","../firmenprofil/lageplan.htm");

var Produkte="Produkte";
produkteuebersicht = new Array("&Uuml;bersicht","../produkte/uebersicht.htm");
var mascato="../produkte/masc-ato.htm";
var mascoas="../produkte/masc-oas.htm";

var Loesungen="L&ouml;sungen";
var dtrout="../loesungen/dtrout.htm";
var idealtim="../loesungen/idealtim.htm";

partneruebersicht = new Array("&Uuml;bersicht","../partner/uebersicht.htm");

linksuebersicht = new Array("&Uuml;bersicht","../links/uebersicht.htm");
}
else{

var Firmenprofil="Company";
Firmenpraesentation = new Array("Company Presentation","../company/presentation.htm");
lageplan = new Array("Here we are","../company/group_plan.htm");

var Produkte="Products";
produkteuebersicht = new Array("Overview","../products/overview.htm");
var mascato="../products/masc-ato.htm";
var mascoas="../products/masc-oas.htm";

var Loesungen="Solutions";
var dtrout="../solutions/dtrout.htm";
var idealtim="../solutions/idealtim.htm";

partneruebersicht = new Array("Overview","../partner/overview.htm");

linksuebersicht = new Array("Overview","../links/overview.htm");
}


if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute;margin: 12% 0 0 0;display:none;">')
document.write('<layer id="divStayTopLeft">');


document.write('<div id="navbar" class="navbar">')

document.write('<div class="rund_hf" >')
document.write('<b class="top"><b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b></b>')
document.write('<div class="boxcontent">')
document.write('</div></div>')
document.write('<TABLE class="rahmen2"><td>')
//<!-- *********************************Start Home****************************** -->
//<!--Damit topitem wie ein Link arbeiten kann braucht es ein Anker drinnen und display: none bei dropmenu und submenu -->
document.write('<div class="mainDiv" >')
document.write('<div class="topItem" ><a class="link" href="../home/index.htm">Home</a></div>')    
document.write('<div class="dropMenu" style="display:none" ><!-- -->')
	document.write('<div class="subMenu" style="display:none">')
		document.write('<div class="subItem" style="display:none"><a href="#"></a></div>')
	document.write('</div>')
document.write('</div>')
document.write('</div>')
//<!-- *********************************End Home****************************** -->
//<!-- *********************************Start Firmenprofil****************************** -->
document.write('<div class="mainDiv" >')
document.write('<div class="topItem" >'+Firmenprofil+'</div>    ')    
document.write('<div class="dropMenu">')
	document.write('<div class="subMenu"')
		if (x == 1){
	document.write(' style="display:inline">')
	}
	else{
	document.write('>')
	}
		document.write('<div class="subItem"><a href="'+Firmenpraesentation[1]+'" name="menu">'+Firmenpraesentation[0]+'</a></div>')
	    document.write('<div class="subItem"><a href="'+lageplan[1]+'" name="menu">'+lageplan[0]+'</a></div>')
	document.write('</div>')
document.write('</div>')
document.write('</div>')
//<!-- *********************************End Firmenprofil****************************** -->
//<!-- *********************************Start Produkte****************************** -->
document.write('<div class="mainDiv">')
document.write('<div class="topItem">'+Produkte+'</div>')    
document.write('<div class="dropMenu"><!-- -->')
	document.write('<div class="subMenu"')
		if (x == 2 || y == 1){
	document.write(' style="display:inline">')
	}
	else{
	document.write('>')
	}
		document.write('<div class="subItem"><a href="'+produkteuebersicht[1]+'" name="menu">'+produkteuebersicht[0]+'</a></div>')
		
	if(lang=="DE"){
							document.write('<div class="subItem" id="nomargin"><a href="../produkte/masc-ima.htm" name="menu"><img class="foldin" id="foldin1" src="../../grafiken/foldin.gif"> masc-ima</a></div>')
						if (y == 1){
						expand("ima");
						}
			
							document.write('<div class="subItem"><a href="../produkte/polikles.htm" name="menu">Polikles</a></div>')
					}
					else{
					document.write('<div class="subItem"><a href="../products/masc-ima.htm" name="menu">masc-ima</a></div>')
					}
					
							
		document.write('<div class="subItem"><a href="'+mascato+'" name="menu" >masc-ato</a></div>')
		document.write('<div class="subItem"><a href="'+mascoas+'" name="menu" >masc-oas</a></div>')
		

        document.write('</div>')
document.write('</div>')
document.write('</div>')
//<!-- *********************************End Produkte****************************** -->
//<!-- *********************************Start Lösungen****************************** -->
document.write('<div class="mainDiv" >')
document.write('<div class="topItem" >'+Loesungen+'</div>    ')    
document.write('<div class="dropMenu"><!-- -->')
	document.write('<div class="subMenu"')
		if (x == 3 || y == 2){
	document.write(' style="display:inline">')
	}
	else{
	document.write('>')
	}
	
	if(lang=="DE"){
							document.write('<div class="subItem"><a href="../loesungen/profil-ac.htm" name="menu">Profil-AC</a></div>')
							document.write('<div class="subItem"><a href="../loesungen/hamet2export.htm" name="menu"><img class="foldin" id="foldin2" src="../../grafiken/foldin.gif"> Hamet2Export</a></div>')
			if (y == 2){
			expand("hametexport");
			}
							document.write('<div class="subItem"><a href="../loesungen/hamet2direct.htm" name="menu"><img class="foldin" id="foldin3" src="../../grafiken/foldin.gif"> Hamet2Direct</a></div>')
			if (y == 3){
			expand("hametdirect");
			}
			
		
		}
		
		document.write('<div class="subItem"><a href="'+dtrout+'" name="menu">DTROUT</a></div>')
	if(lang=="DE"){
							document.write('<div class="subItem"><a href="../loesungen/masc-gct.htm" name="menu">masc-gct</a></div>')
		}
		document.write('<div class="subItem"><a href="'+idealtim+'" name="menu">IDEALTIM</a></div>')
	document.write('</div>')
document.write('</div>')
document.write('</div>')
//<!-- *********************************End Lösungen****************************** -->
//<!-- *********************************Start Direkt zu****************************** -->
document.write('<div class="mainDiv" >')
document.write('<div class="topItem"  >Direkt zu</div>    ')    
document.write('<div class="dropMenu" ><!-- -->')
	document.write('<div class="subMenu">')
		document.write('<div class="subItem"><a href="https://www.mascservice.com/imabrowser" target="_blank">masc-ima für VdK</a></div>')
		document.write('<div class="subItem"><a href="https://www.mascservice.com/imademo" target="_blank">masc-ima Demo-Mandant</a></div>')
		document.write('<div class="subItem"><a href="https://www.pac.mascservice.com/profilac" target="_blank">Profil AC</a></div>')
		document.write('<div class="subItem"><a href="http://www.bibliothek-hochdorf.ch/Infothek" target="_blank">Infothek</a></div>')
        document.write('</div>')
document.write('</div>')
document.write('</div>')
//<!-- *********************************End Direkt zu****************************** -->
//<!-- *********************************Start Download****************************** -->
document.write('<div class="mainDiv" >')
document.write('<div class="topItem" >Download</div>    ')    
document.write('<div class="dropMenu"><!-- -->')
	document.write('<div class="subMenu"')
		if (x == 4){
	document.write(' style="display:inline">')
	}
	else{
	document.write('>')
	}
			if(lang=="DE"){
				document.write('<div class="subItem"><a href="../download/uebersicht.htm" name="menu">&Uuml;bersicht</a></div>')
				document.write('<div class="subItem"><a href="../download/ppviewer.htm" name="menu">PowerPoint Viewer</a></div>')
				}
		document.write('<div class="subItem"><a href="../download/adobe.htm" name="menu">Adobe Reader</a></div>')
	document.write('</div>')
document.write('</div>')
document.write('</div>')
//<!-- *********************************End Downlaod****************************** -->
//<!-- *********************************Start Partner****************************** -->
document.write('<div class="mainDiv" >')
document.write('<div class="topItem" >Partner</div>    ')    
document.write('<div class="dropMenu"><!-- -->')
	document.write('<div class="subMenu"')
		if (x == 5){
	document.write(' style="display:inline">')
	}
	else{
	document.write('>')
	}
		document.write('<div class="subItem"><a href="'+partneruebersicht[1]+'" name="menu">'+partneruebersicht[0]+'</a></div>')
	    document.write('<div class="subItem"><a href="http://www.poliskop.ch/" target="_blank">PoliSkop Solutions</a></div>')
		document.write('<div class="subItem"><a href="../partner/berufzug.htm" name="menu" id="berufzug">Beruf Zug</a></div>')
		document.write('<div class="subItem"><a href="http://www.ibm.com/ch" target="_blank">IBM Schweiz</a></div>')
		document.write('<div class="subItem"><a href="http://www.vmi.ch" target="_blank">VMI Schweiz</a></div>')
		document.write('<div class="subItem" style="height:30px;"><a href="http://www.guldimann.ch" target="_blank">Daniel Guldimann<br/>Kommunikation</a></div>')
	document.write('</div>')
document.write('</div>')
document.write('</div>')
//<!-- *********************************End Partner****************************** -->
//<!-- *********************************Start Links****************************** -->
document.write('<div class="mainDiv" >')
document.write('<div class="topItem" >Links</div>    ')    
document.write('<div class="dropMenu"><!-- -->')
	document.write('<div class="subMenu"')
			if (x == 6){
			document.write(' style="display:inline">')
			}
			else{
			document.write('>')
			}
		document.write('<div class="subItem"><a href="'+linksuebersicht[1]+'" name="menu" id="overview">'+linksuebersicht[0]+'</a></div>')
		document.write('<div class="subItem"><a href="../links/arp.htm" name="menu" id="arp">ARP Datacon</a></div>')
		document.write('<div class="subItem"><a href="https://order.cyon.ch/affiliate/587969b8-acdc-4d66-b785-0143d29eb77a" target="_blank" name="menu" id="cyon">Cyon</a></div>')
	    document.write('<div class="subItem"><a href="../links/vmware.htm" name="menu" id="vmware">VMWare</a></div>')
	if(lang=="DE"){
		document.write('<div class="subItem"><a href="../links/fineprint.htm" name="menu" id="fineprint">FinePrint</a></div>')
		document.write('<div class="subItem"><a href="../links/adobe.htm" name="menu" id="adobe">Adobe</a></div>')
		document.write('<div class="subItem"><a href="http://www.xephonusa.com" target="_blank" id="xephon">Xephon</a></div>')
		document.write('<div class="subItem"><a href="http://www.ultraedit.com" target="_blank" id="ultraedit">UltraEdit</a></div>')
		}
	document.write('</div>')
document.write('</div>')
document.write('</div>')
//<!-- *********************************End Links****************************** -->
//<!-- *********************************Start Kontakt****************************** -->
if(lang="DE"){
document.write('<div id="DE" class="DE">')
		document.write('<div class="mainDiv" >')
		document.write('<div class="topItem" >Kontakt</div>    ')    
		document.write('<div class="dropMenu"><!-- -->')
		document.write('<div class="subMenu"')
			if (x == 7){
			document.write(' style="display:inline">')
			}
			else{
			document.write('>')
			}
		document.write('<div class="subItem"><a href="../kontakt/index.htm" name="menu">Kontaktieren Sie uns</a></div>')
		document.write('</div>')
		document.write('</div>')
		document.write('</div>')
//<!-- *********************************End Kontakt****************************** -->
//<!-- *********************************Start Lehrlinge****************************** -->
		document.write('<div class="mainDiv" >')
		document.write('<div class="topItem" ><a class="link" href="../lehrlinge/lehrlingshomepage/index.htm">Lehrlinge</a></div>')    
		document.write('<div class="dropMenu" style="display:none" ><!-- -->')
		document.write('<div class="subMenu" style="display:none">')
		document.write('<div class="subItem" style="display:none"><a href="#"></a></div>')
		document.write('</div>')
		document.write('</div>')
		document.write('</div>')
document.write('</div>')

//<!-- *********************************End Lehrlinge****************************** -->
//<!-- *********************************Start Sitemap****************************** -->
		document.write('<div class="mainDiv" >')
		document.write('<div class="topItem" ><a class="link" href="../home/sitemap.htm">Sitemap</a></div>')    
		document.write('<div class="dropMenu" style="display:none" ><!-- -->')
		document.write('<div class="subMenu" style="display:none">')
		document.write('<div class="subItem" style="display:none"><a href="#"></a></div>')
		document.write('</div>')
		document.write('</div>')
		document.write('</div>')
document.write('</div>')

//<!-- *********************************End Sitemap****************************** -->





}

document.write('<script type="text/javascript" src="../../code/jscript.js"></script>')
document.write('</td></table></div>')
document.write('</layer>');



var checksumme;
var checksumme2;
window.onload = initnow;
window.onresize = initnow;


/***********************************************************************************************
* Beschreibung   : Diese Funktion richtet die Felder aus und die passt den Inhalt und den Farbverlauf an die Auflösung an
* Eingabewert    : -
* Rückgabewert   : -
* Autor          : Remo Blattmann (RBL)
* Erstelldatum   : (2007)
* Letzte Änderung: -
* Version        : 1.0
* Änderungen     : -
************************************************************************************************/

function initnow(){

check2();
function check2() {

document.getElementById('divStayTopLeft').style.display = "none";
var add = 0;
offsetHeight4 = +document.getElementById('farb').offsetHeight;
offsetHeight4 += 9;
if(navigator.appName != "Microsoft Internet Explorer"){

add = 20;
}
document.getElementById('farb').style.width = add + document.getElementById('divStayTopLeft').offsetWidth + document.getElementById('hauptfenster').offsetWidth;

if(navigator.appName == "Microsoft Internet Explorer"){
offsetHeight4 += 6;
document.getElementById('hauptfenster').style.height = "95%";
document.getElementById('hauptfenster').style.width = "100%";
document.getElementById('farb').style.marginBottom = "0px";
}
else{
document.getElementById('hauptfenster').style.height = "100%";
document.getElementById('hauptfenster').style.width = "100%";
document.getElementById('hauptfenster').style.width = document.getElementById('hauptfenster').offsetWidth - 210;
}
if(navigator.appName == "Opera"){
document.getElementById('farb').style.height = "100px";
}
document.getElementById('divStayTopLeft').style.margin = offsetHeight4 +"px"+" 0px 0px 0px";
document.getElementById('hauptfenster').style.marginTop = "12px";

document.getElementById('hauptfenster').style.display = "block";
document.getElementById('divStayTopLeft').style.display = "block";
}

/***********************************************************************************************
* Beschreibung   : Fehler werden korrigiert in Mozilla Firefox, Netscape und Opera bei runden  Rahmen, Fehler wird behoben wenn man
* 		         Fenster zu klein macht, runder Rahmen passt sich dem Fenster an nach jedem onload oder onresize des Fensters
* Eingabewert    : -
* Rückgabewert   : -
* Autor          : Remo Blattmann (RBL)
* Erstelldatum   : (2007)
* Letzte Änderung: -
* Version        : 1.0
* Änderungen     : -
************************************************************************************************/
check();
function check() {
var add = 0;

offsetWidth0 = +document.getElementById('rahmen').offsetWidth;
offsetWidth1 = +document.getElementById('rund').offsetWidth;
offsetWidth2 = +document.getElementById('farb').offsetWidth;
offsetWidth3 = offsetWidth0 + 210;
if(checksumme < offsetWidth0)
{
document.getElementById('rund').style.width = "100%";
offsetWidth1 = offsetWidth0;
}
if(offsetWidth0 != offsetWidth1 )
{
document.getElementById('rund').style.width = offsetWidth0;
checksumme = offsetWidth0;
}
if(checksumme2 < offsetWidth3)
{
document.getElementById('farb').style.width = "100%"; 
offsetWidth2 = offsetWidth3;
}
if(offsetWidth2 != offsetWidth3){
document.getElementById('farb').style.width = offsetWidth3;
checksumme2 = offsetWidth3;
}
}


}





/***********************************************************************************************
* Beschreibung   : Diese Funktion ist dazu da um das floating zu stoppen dh: das es nicht mehr mit scrollt
* Eingabewert    : -
* Rückgabewert   : -
* Autor          : Remo Blattmann (RBL)
* Erstelldatum   : (2007)
* Letzte Änderung: -
* Version        : 1.0
* Änderungen     : -
************************************************************************************************/
function stop(){
var offsetHeight2 = 0;
document.getElementById('divStayTopLeft').style.position = "static";

var x,y;

if (self.pageYOffset) // all except Explorer
{
	x = self.pageXOffset;
	y = self.pageYOffset;
	
}
else if (document.documentElement && document.documentElement.scrollTop)
	// Explorer 6 Strict
{
	x = document.documentElement.scrollLeft;
	y = document.documentElement.scrollTop;
	
}
else if (document.body) // all other Explorers
{
	x = document.body.scrollLeft;
	y = document.body.scrollTop;
	
}



if (navigator.appName == "Microsoft Internet Explorer"){
offsetHeight2+=y;
document.getElementById('divStayTopLeft').style.padding = offsetHeight2  +"px"+" 0px 5px 0px";
}
else 
{
offsetHeight2+=y;
}
document.getElementById('divStayTopLeft').style.margin = offsetHeight2  +"px"+" 0px 5px 0px";
}


function restart(){
var offsetHeight = 0;
offsetHeight+= document.getElementById('farb').offsetHeight;
offsetHeight+= 19;
if(navigator.appName == "Microsoft Internet Explorer"){
offsetHeight+=6;
var x,y,z;
 
if (self.pageYOffset) // all except Explorer
{
	x = self.pageXOffset;
	y = self.pageYOffset;
}
else if (document.documentElement && document.documentElement.scrollTop)
	// Explorer 6 Strict
{
	x = document.documentElement.scrollLeft;
	y = document.documentElement.scrollTop;	
}
else if (document.body) // all other Explorers
{
	x = document.body.scrollLeft;
	y = document.body.scrollTop;
}



if(y==0){
document.getElementById('divStayTopLeft').style.margin = offsetHeight+"px"+" 0px 5px 0px";
}
else{

document.getElementById('divStayTopLeft').style.margin = 0+"px"+" 0px 0px 0px";
offsetHeight+=5;
z = y / offsetHeight;
y = y-(z-1)*offsetHeight;
if(y==(offsetHeight/2) || y==offsetHeight || y/offsetHeight){
document.getElementById('divStayTopLeft').style.padding = y+"px"+" 0px 5px 0px";
}
}
}
else{
document.getElementById('divStayTopLeft').style.margin = offsetHeight  +"px"+" 0px 5px 0px";
}
document.getElementById('divStayTopLeft').style.position = "absolute";
}



var verticalpos="fromtop";


if (!document.layers)
document.write('</div>')


function JSFX_FloatTopDiv()
{
	var startX = 3,
	startY = 10;
	if(navigator.appName == "Microsoft Internet Explorer" ){
	startY = 10;
	}
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x;this.style.top=y;};
		el.x = startX;
		if (verticalpos=="fromtop")
		el.y = startY;
		else{
		el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		el.y -= startY;
		}
		return el;
	}
	window.stayTopLeft=function()
	{
		if (verticalpos=="fromtop"){
		var pY = ns ? pageYOffset : document.body.scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/4;
		}
		else{
		var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		ftlObj.y += (pY - startY - ftlObj.y)/4;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("divStayTopLeft");
	stayTopLeft();
}
JSFX_FloatTopDiv();



}

