﻿// JavaScript Document
var IE = false;
var NS = false;
var browser_version = parseInt(navigator.appVersion);
var browser_type = navigator.appName;
if (browser_type == "Microsoft Internet Explorer" && (browser_version >= 4)) { IE = true; } 
else if (browser_type == "Netscape" && (browser_version >= 4) && (browser_version < 5)) { NS = true; }
else if (browser_type == "Netscape" && (browser_version >= 5)) { NS = true; }

var cimg = "";
var ctxt = "";

function viewBigPreview(el, preview)
{
  el.onmousemove = function(){viewBigPreview(el, preview);};
	
	/* Big Preview Image */
	img = document.getElementById('previewimg'+preview);
	if(!IE)
		infobox = document.getElementById('infobox');
	infotxt = document.getElementById('zitat'+preview);
	
	if(cimg != '')
	{
		if(cimg != preview)
		{
			if(img.style.display == 'none')
			{
				cimg = document.getElementById('previewimg'+cimg);
				Effect.Fade(cimg, { duration:0.4, from:1, to:0 });
				Effect.Appear(img, { duration:0.4, from:0, to:1 });
				cimg = preview;
			}
		}
	}
	else
	{
		Effect.Appear(img, { duration:0.4, from:0, to:1 });
		cimg = preview;
		Effect.Fade(document.getElementById('previewimgw'), { duration:0.4, from:1, to:0 });
	}
	
	if(infobox.style.display == 'none')
		Effect.Appear(infobox, { duration:0.45, from:0, to:0.65 });	
	
	if(ctxt != '')
	{
		if(ctxt != preview)
		{
			if(infotxt.style.display == 'none')
			{
				ctxt = document.getElementById('zitat'+ctxt);
				Effect.Fade(ctxt, { duration:0.4, from:1, to:0 });
				Effect.Appear(infotxt, { duration:0.4, from:0, to:1 });
				ctxt = preview;
			}
		}
	}
	else
	{
		Effect.Appear(infotxt, { duration:0.4, from:0, to:1 });
		ctxt = preview;
	}
}

