var kagra_width=''
var kagra_height=''

function init(){
	if (document.all){
		kagra_width = kagra.offsetWidth
		kagra_height = kagra.offsetHeight
		setInterval("kagra_ie()",50)
		kagra.style.visibility = "visible"
	}
	else if (document.layers){
		kagra_width = document.kagra.document.width
		kagra_height = document.kagra.document.height
		setInterval("kagra_ns()",50)
		document.kagra.visibility = "show"
	}
}

function kagra_ie(){
	kagra.style.pixelLeft = document.body.scrollLeft + document.body.clientWidth-kagra_width-2
	kagra.style.pixelTop = document.body.scrollTop + document.body.clientHeight-kagra_height-4
}

function kagra_ns(){
	document.kagra.left = pageXOffset + window.innerWidth-kagra_width-20
	document.kagra.top = pageYOffset + window.innerHeight-kagra_height-4
}

window.onload = init

function PopUp(sprache) {
	var neuesFenster = window.open("","","width=260,height=100,scrollbars=no,resizable=no")
	neuesFenster.moveTo(10,125)
	neuesFenster.focus()
	neuesFenster.document.open()
	
	sprache = sprache.toLowerCase()
	if(sprache=="d") {
		var titel="Hinweis"
		var text="Die Rubrik 'Kamellaufband' ist nur in Englisch verf&uuml;gbar."
	}
	else {
		if(sprache=="f") {
			var titel="Avis"
			var text="La rubrique 'tapis roulant pour chameaux' n'est disponible qu'en anglais."
		}
		else {
			var titel="Indicaciones"
			var text="Esta categor&iacute;a est&aacute; disponible solamente en ingleses."
		}
	}	
	with (neuesFenster.document) {
		writeln("<html><head><title>"+titel+"</title></head>")
		writeln("<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#003399\" alink=\"#003399\" vlink=\"#999999\" leftmargin=\"0\" topmargin=\"0\" onBlur=\"self.setTimeout('self.close()',1000);\">")
		writeln("<table border=0 width='100%'><tr align=center><td><font face='arial,helvetica' size='2'><b>"+titel.toUpperCase()+":</b><br>")
		writeln(text+"<br><br>")
		writeln("<a href=\"javascript:window.close()\" onClick=\"opener.location='../e/clb_e.html'\">[ Ok -> English ]</a>")
		writeln("</font></td></tr></table></body></html>")
	}
	neuesFenster.document.close()
}

function PopUpEqui() {
	var neuesFenster = window.open("","","width=260,height=100,scrollbars=no,resizable=no")
	neuesFenster.moveTo(10,125)
	neuesFenster.focus()
	neuesFenster.document.open()
	
	var titel="Indicaciones"
	var text="Esta categor&iacute;a est&aacute; disponible solamente en ingleses."

	with (neuesFenster.document) {
		writeln("<html><head><title>"+titel+"</title></head>")
		writeln("<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#003399\" alink=\"#003399\" vlink=\"#999999\" leftmargin=\"0\" topmargin=\"0\" onBlur=\"self.setTimeout('self.close()',1000);\">")
		writeln("<table border=0 width='100%'><tr align=center><td><font face='arial,helvetica' size='2'><b>"+titel.toUpperCase()+":</b><br>")
		writeln(text+"<br><br>")
		writeln("<a href=\"javascript:window.close()\" onClick=\"opener.location='../e/equi_e.html'\">[ Ok -> English ]</a>")
		writeln("</font></td></tr></table></body></html>")
	}
	neuesFenster.document.close()
}


// Fenster für Vergrösserungen der Bilder öffnen und schreiben
function window_open(newImage, newWidth, newHeight, newTitle) {
	newWindow = window.open("","","width="+newWidth+",height="+newHeight)
		newWindow.focus()
		newWindow.document.open()
		with (newWindow.document) {
			writeln("<html><head><title>"+newTitle+"</title></head>")
			writeln("<body bgcolor=\"#ffffff\" text=\"#000000\" leftmargin=\"0\" topmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" onBlur=\"window.close()\">")
			writeln("<a href=\"#\" onClick=\"window.close()\"><img src=\""+newImage+"\" vspace=\"0\" hspace=\"0\" border=\"0\" alt=\""+newTitle+"\"></a>")
			writeln("</body></html>")
		}
		newWindow.document.close()
}


if(document.layers) {
	window.captureEvents(Event.RESIZE);
	window.onresize = handleResize;
}

function handleResize() {
	location.reload();
	return false;
}
