if (!document.getElementById && !document.all && !document.layers)
	event = "";

function hideTip() {} // avoid errors until loaded	

var tooltip;
function doTooltip(evt,txt) {
	if (!tooltip) return;
	var cntnt = wrapTip(txt);
	goTooltip(evt,cntnt);
}

// wrap tip content for formatting
function wrapTip(txt) {
	var cntnt = "";
	if (document.layers) {
		cntnt = '<table bgcolor="' + tipBorderColor + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td align="center"><table bgcolor="' + tipBgColor + '" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td align="center"><div align="center" style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + tipFontColor + ';">' + txt  + '</div></td></tr></table></td></tr></table>';
	} else cntnt = '<div align="center">' + txt + '</div>';
	return cntnt;
}

///////////////////////  CUSTOMIZE TOOLTIP HERE   ///////////////////////
// settings for tooltip (don't remove any of these variables!)

// Do you want tooltip to move when mouse moves over link?
var tipFollowMouse = true;	
// be sure to set tooltip width wide enough for widest image!
// take into account border and padding
var tipWidth = 160;	// width of tooltip in pixels

// how far from mouse to show tooltip
var tipOffX	= -70;	// horizontal offset
var tipOffY	= 20; // vertical offset

var tipFontFamily = "Verdana, arial, helvetica, sans-serif";
var tipFontSize	= "11px";	// string with pixels or points (px or pt)
// tooltip content line-height
var tipLineHeight	= 1.2;	// number	(recommend 1 to 1.3)
var tipFontColor = "#000000";
var tipBgColor = "#EEEEEE";	// tooltip background color
// background image for tooltip (leave empty string if no bg image)
var tipBgImg = "";	
// "breathing room" around tooltip content
var tipPadding = 4;	// integer (pixel value)

// leave a color in here even if you don't want a border
var tipBorderColor = "#000080"; 

// if you don't want a border, set tipBorderWidth to 0
var tipBorderWidth = 1; // integer (pixel value)

// if you don't want a border, set tipBorderStyle to "none"
// options for border style: "none", "solid", "ridge", "outset",
// "inset", "groove", "double", "dashed"
// (they won't look the same in all browsers though!)
var tipBorderStyle = "outset"; 

var popupWindow;


function Over() {
	window.event.srcElement.style.filter = "alpha(opacity=100)";
}
function Out() {
	window.event.srcElement.style.filter = "alpha(opacity=80)";
}
function sOver() {
	window.event.srcElement.style.filter = "alpha(opacity=100)";
}
function sOut() {
	window.event.srcElement.style.filter = "alpha(opacity=90)";
}

function zoom(img, w, h) 
{window.open(img,'zoom'+w+h,'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h);}


function PopupMenu(strURL, strName)
{
	var strFeatures='menubar=yes,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=700,height=500'
	var strBrowserType = navigator.appName;
	var strBrowserVersion = navigator.appVersion;
	
	// check browser type
	if (strBrowserType.indexOf('Microsoft')>=0 && strBrowserVersion.indexOf('MSIE 4.0;')>=0) 
	{	
		
		popupWindow = showModalDialog ('ie4dummy.asp?Style=' + strFeatures, strURL, strFeatures);				
	
	} else {
	
		popupWindow = window.open(strURL, strName, strFeatures);
	}
    
}

function easyPopUpWindow(strURL, strName, strFeatures)
{
	var strBrowserType = navigator.appName;
	var strBrowserVersion = navigator.appVersion;
	
	// check browser type
	if (strBrowserType.indexOf('Microsoft')>=0 && strBrowserVersion.indexOf('MSIE 4.0;')>=0) 
	{	
		
		popupWindow = showModalDialog ('ie4dummy.asp?Style=' + strFeatures, strURL, strFeatures);				
	
	} else {
	
		popupWindow = window.open(strURL, strName, strFeatures);
	}
    
}

function gallery(strTitel)
{
	easyPopUpWindow('gallery.asp?Job=show&Gallery=' + strTitel,'gallery','scrollbars=0,toolbar=0,width=850,height=710');
    
}

