var isIE;
var formercolor;
var formerbg;
var pic;

if (navigator.appName=='Netscape')
	isIE=false;
else
	isIE=true;

function mark(ref)
{
	if (isIE)
	{
		formercolor=ref.style.color;
		formerbg=ref.style.backgroundColor;
		ref.style.color='black';
		ref.style.backgroundColor='#f5f5f5';
	}
}

function mark2(ref)
{
	if (isIE)
	{
		formercolor=ref.style.color;
		//formerbg=ref.style.backgroundColor;
		ref.style.color='#ff9900';
		//ref.style.backgroundColor='#9F9F9F';
	}
}

function unmark(ref)
{
	if (isIE)
	{
		ref.style.color=formercolor;
		//ref.style.backgroundColor=formerbg;
	}
}

function flip(ref)
{
	if (isIE)
	{
		pic=ref.src;
		// Source ohne Suffix, letzte 4 Zeichen
		src0=pic.substring(0,pic.length-4);
		// Ergaenzung für Flip-Image
		src1="-flip"
		// Suffix
		src2=pic.substring(pic.length-4,pic.length)
		ref.src=src0+src1+src2;
	}
}

function flop(ref)
{
	if (isIE)
	{
		ref.src=pic;
	}
}

// Extra-Fenster für Bildanzeige öffnen
//	<a href="../detail.asp?img=images2/schatz_c2.jpg"
//	class="verweis"
//	onClick="show('images2/schatz_c2.jpg'); return false;"
//	onMouseOver="mark(this);"
//	onMouseOut="unmark(this);">Verweistext</a>
// detail.asp ist die Anzeigevariante ohne JavaScript (zeigt Bild an, automatische Rücksprungadresse)
// popup.asp ist die Anzeigevariante mit JavaScript (öffnet ein Extrafenster)

function show(img)
{
	if (isIE)
		dochandle=open("popup.asp?img="+img,'Detail','width=100,height=100,resizable=yes');
	else // Nvaigator
		dochandle=open("popup.asp?img="+img,'Detail','ScreenX=10,ScreenY=10,innerHeight=100,innerWidth=100,menubar=no,resizable=yes');
	dochandle.focus();
}

function onLoadRoutine()
{
	if (isIE)
		window.resizeTo(document.picpic.width+23,document.picpic.height+60);
	else
	{
		top.outerHeight=document.picpic.height+60;
		top.outerWidth=document.picpic.width+22;
	}
	window.moveTo(10,10);
}