function setFontStyle(mode)
{
	element = document.getElementById("serviceBox");

	if (!element.style.fontSize)
	{
		element.style.fontSize="1em";

	}

	intFontSize = parseFloat(element.style.fontSize);
	//alert(intFontSize);

	switch(mode)
	{
		case "big":
			element.style.fontSize=(intFontSize*1.1)+"em";
			break;
		case "small":
			element.style.fontSize=(intFontSize*0.9)+"em";
			break;
	}
}

window.onload = onLoadWindow;

function onLoadWindow()
{
	initImageGallery();
	initSlideShow();
	//alert("test");
}

function prepareSearch(objName)
{
	var obj = document.getElementById(objName);
	len = obj.value.length;
	if (len < 3)
	{
		alert("Bitte geben Sie einen Suchbegriff mit mehr als 2 Zeichen ein!");
	}
	else
	{
		document.location.href = '/cms/310/search&value='+escape(obj.value);
	}
}

function getFirms(id)
{
	magwin='magwindow'+id;
	posx=150;
	posy=posx;
	page = "/show_anbieter.php?set="+id;
	param='menubar=no,location=no,resizable=yes,status=no,toolbar=no,scrollbars=yes,width=500,height=540,screenX='+posx+',screenY='+posy+',top='+posx+',left='+posy;
	window.open(page, magwin, param)
}

function filterMe(what)	{

	obj = what;
	theVal = encodeURI(obj.options[obj.selectedIndex].value);
//	alert (document.URL+"true&"+obj.id+"="+theVal);
	document.location = "true&"+obj.id+"="+theVal;

}

