


function get_downloadinfo(objectsize,objecttype){


	display_filesize = Math.round((parseInt(objectsize)/1024));
        	if ( display_filesize < 1024 ) {
			output = display_filesize.toString();
                        if ( output < 100 ) {
                        output = '0,0' + output.substring(0,1);
                        }
                        else {
                        output = '0,' + output.substring(0,2);
                        }
		}
		else {
			output = display_filesize / 1024;
			output = output.toString();
			point  = output.indexOf('.');
			output = output.substring(0, point) + ','  + output.substring(point+1, point + 3);
		}	

	return objecttype.toUpperCase() + '; ' + output + ' MB';
}



function kaufm(x) {
  var k = (Math.round(x * 100) / 100).toString();
  k += (k.indexOf('.') == -1)? ',00' : '00';
  return k.substring(0, k.indexOf('.') + 3);
} 

//browsercheck...
function checkBrowser(){
	this.dom= (document.getElementById);

		// detect version (even if Opera disguises as Mozilla or IE)
	if (op = (navigator.userAgent.indexOf("Opera")>-1))	{
		switch (parseInt(navigator.userAgent.substr(navigator.userAgent.indexOf("Opera")+6)))	{
			case 5:
			case 6:
				this.op5= true;
				break;
			case 7:
			case 8:
				this.op7= true;
				break;
			default:
				this.op4= true;
		}
	}
	this.konq=  (navigator.userAgent.indexOf("Konq")>-1);
	this.ie4= (document.all && !this.dom && !op && !this.konq);
	this.ie5= (document.all && this.dom && !op && !this.konq);
	this.ie6= (this.ie5);
	this.ns4= (document.layers && !this.dom && !this.konq);
	this.ns5= (!document.all && this.dom && !op && !this.konq);
	this.ns6= (this.ns5);
	this.bw=  (this.ie4 || this.ie5 || this.ns4 || this.ns6 || this.konq || op);

	return this;
}
bw= new checkBrowser();

var menuActive		= "";
var menuActiveC         = "";
var menuOffsetLeft 	= 145;
var menuTimeout		= 500;
var menuCloseTimer	= 0;

function menuGetLayer(obj) {
var myObj	=	document.getElementById(obj);
var mySubObj	=	document.getElementById("subNav"+obj);

var layerObj	=  	menuGetObj(obj);

layerObj.x      =       layerObj.x+menuOffsetLeft;

menuCcnLayer();
menuClsLayer();

mySubObj.style.left       = layerObj.x+"px";
mySubObj.style.visibility	= "visible";

menuActive	= "subNav"+obj;

}

function menuCcnLayer() {
	if(menuCloseTimer) {
		window.clearTimeout(menuCloseTimer);
		menuCloseTimer = null;
	}
}

function menuCntLayer(obj) {
	menuCloseTimer 	= window.setTimeout(menuClsLayer, menuTimeout);
}


function menuClsLayer(){

var mySubAct    =       (menuActive != "")?document.getElementById(menuActive):"";

if (mySubAct) {
	mySubAct.style.visibility	=	"hidden";
}


}

function menuGetObj(obj){
	nest="";
	this.el= bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document."+obj):document.getElementById(obj);
	this.css= bw.ns4?this.el:this.el.style;
	this.ref= bw.ns4?this.el.document:document;
	this.x= (bw.ns4||bw.op5)?this.css.left:this.el.offsetLeft;
	this.y= (bw.ns4||bw.op5)?this.css.top:this.el.offsetTop;
	this.height= (bw.ie4||bw.ie5||bw.ns6||bw.op7)?this.el.offsetHeight:bw.ns4?this.ref.height:bw.op4?this.css.pixelHeight:0;
	this.width= (bw.ie4||bw.ie5||bw.ns6||bw.op7)?this.el.offsetWidth:bw.ns4?this.ref.width:bw.op4?this.css.pixelWidth:0;

	return this;
}
