function navOver(li) {
	if (li.className == "floatLeft navActive") return;
	var a = li.firstChild.nextSibling;
	for (var i = 0; i < a.childNodes.length; i++) {
		if (a.childNodes[i].nodeName.toLowerCase() == "img") {
			var img = a.childNodes[i];
			img.src = img.src.replace(/_low\./, "_hover.");
		}
	}
	//li.className = "floatLeft";
}

function navOut(li) {
	if (li.className == "floatLeft navActive") return;
	var a = li.firstChild.nextSibling;
	for (var i = 0; i < a.childNodes.length; i++) {
		if (a.childNodes[i].nodeName.toLowerCase() == "img") {
			var img = a.childNodes[i];
			img.src = img.src.replace(/_hover\./, "_low.");
		}
	}
	//li.className = "floatLeft";
}

/*
go to anchor, but delete existing anchor in url
*/
function cms_goToAnchor(anchorname) {
	var hash = "#";
	var getURL = location.href; //get url from main window

	// parse url for hash
	if (getURL.indexOf(hash) != -1) {
		// hash exists: url contains hash and everything behind it has to be removed
		var getStartURL = getURL.substring(0,getURL.indexOf(hash)); //get url string untill hash
	} else {
		// no hash available
		var getStartURL = location.href;
	}
	location.href = getStartURL + '#' + anchorname; // set location with anchor
}

function cms_openPopup(
            url ,
            width ,
            height ,
            resizeable ,
            scrollbars ,
            statusline,
            menubar,
            toolbar,
            location,
            windowName,
            submitSID,
            nofocus )
 {

   if (submitSID == "true")
   {
     sid = getSID();

     if(url.indexOf("?") != -1)
     {
         url = url + "&amp;sid="+escape(sid);
     }
     else
     {
         url = url + "?sid="+escape(sid);
     }
   }


   var size=     "width="       + width;
   size = size + ",height="     + height;
   size = size + ",screenX=20,screenY=20,resizable="+resizeable;
   size = size + ",scrollbars=" + scrollbars;
   size = size + ",menubar="    + menubar;
   size = size + ",toolbar="    + toolbar;
   size = size + ",location="   + location;
   size = size + ",status="     + statusline;

   if (!windowName)
   {
     windowName = "newPopup";
   }

   win = window.open(url,windowName, size);
   winFocus = win; // win nicht global definiert

   if (nofocus==1) return;

   if (window.aktiv_popup) clearTimeout(aktiv_popup);
   aktiv_popup = setTimeout("winFocus.focus()", 1000);
 }

function cms_addPrintURI(URL, ADDURL)
{
  var returl;

  if(URL.indexOf("?") != -1)
  {
    returl = URL + '&' + ADDURL;
  }
  else
  {
    returl = URL + "?" + ADDURL;
  }

  return returl;
}


/* Neu von 16.03.2009 */
/* public functions */
function includeScript(scriptNameBase) {
	internalLoadScript(scriptNameBase);
}

function includeScriptBrowserspecific(scriptNameBase, safariVersionAvailable, ieVersionAvailable, firefoxVersionAvailable, defaultVersion) {
	if (internalExistsBrowserSpecificVersion(safariVersionAvailable, ieVersionAvailable, firefoxVersionAvailable)) {
		internalLoadScript(scriptNameBase + '_' + internalGetBrowserType());
	} else {
		internalLoadScript(scriptNameBase + '_' + defaultVersion);
	}
}

/* internal functions */
function internalLoadScript(scriptNameBase) {
	var script = document.createElement('script');
	script.type = 'text/javascript';
	script.src = '/is-bin/intershop.static/WFS/EKI-Site/EKI-PK/de_DE/' + scriptNameBase + '.js';
	document.getElementsByTagName('head')[0].appendChild(script);
}

function internalGetBrowserType() {
	return window.navigator.userAgent;
}

function internalExistsBrowserSpecificVersion(safariVersionAvailable, ieVersionAvailable, firefoxVersionAvailable) {
	var userAgent = internalGetBrowserType();
	if (userAgent.indexOf('MSIE') > 0) {
		return ieVersionAvailable;
	}
	else if (userAgent.indexOf('Firefox') > 0) {
		return firefoxVersionAvailable;
	}
	else if (userAgent.indexOf('Safari') > 0) {
		return safariVersionAvailable;
	}
}

function submitSearch() {
	var search_form = document.getElementById("searchform");
	window.location = "http://www.ox007.com/click.php?ox_id=11011&ox_ch=1&ox_s_ch=0&url="+escape("http://ad.zanox.com/ppc/?12381926C1808668172&ULP="+escape(search_form.action.value+"?referrer="+search_form.referrer.value+"&db_name="+search_form.db_name.value+"&vssearch="+search_form.vssearch.value));
}

var textbaustein_doppelklick = 'Ihre Anfrage wird bereits bearbeitet - bitte haben Sie einen Moment Geduld.\n\nIm Problemfall (z.B. extrem lange Wartezeit) aktualisieren Sie bitte die Seite im Browser\nund treffen Sie erneut Ihre Auswahl.';