var vorteil = "closed";

/* Aufruf Video und Katalog aus FUe und FI */
function openLoadVidKat(urlkatalog,theWidth,theHeight) {
  var top = (screen.availHeight - theHeight)/3;
  var left = (screen.availWidth - theWidth)/2;
  myparams = "width="+theWidth+",height="+theHeight+",top="+top+",left="+left+",screenX="+left+",screenY="+top+",resizable=yes,scrollbars=auto,status=yes";
  myfenster = window.open(urlkatalog, 'WLWVidKat', myparams);
  myfenster.focus();
}

/* Aufruf Video */
function openLoadVideo(url) {
  openLoadVidKat(url,384,312);
}

/* Aufruf Katalog */
function openLoadKatalog(url) {
  openLoadVidKat(url,900,750);
}

/* Aufruf Impressum aus FUe */
 function popup(dokument, wname) {
	myparams = "width=" + 550 + ",height=" + 560 + ",resizable=yes,scrollbars=yes,status=yes";
	myfenster = window.open(dokument, wname, myparams);
	myfenster.focus();
 }
 
 /* Aufruf Bookmarks aus FUe */
 function popup(dokument, wname, width, height) {
	myparams = "width=" + width + ",height=" + height + ",left=" + 50 + ",resizable=yes,scrollbars=yes,status=yes,toolbar=no";
	myfenster = window.open(dokument, wname, myparams);
	myfenster.focus();
 }
 
 /* mouseover/out Bookmarks */
 function changeit(status,bgurl) {
	 var bgext = "png";
	 if (navigator.appVersion.indexOf("MSIE 6")!=-1) {
		 bgext = "gif";
	 }
	 if(status == "over") {
		 document.getElementById("bookmark").style.backgroundImage = "url(" + bgurl + bgext + ")";
	 }
	 if(status == "out") {
		 document.getElementById("bookmark").style.backgroundImage = "url(" + bgurl + bgext + ")";
	 }
 }
 
 /* Vorteils-Partner */
 function vorteilspartner(firmaid,zustand) {
	 if(zustand == "closed" && vorteil == "closed") {
		 $("#premiumlieferant"+firmaid+"").show();
		 vorteil = "open";
	 } else {
		 $("#premiumlieferant"+firmaid+"").hide();
		 vorteil = "closed";
	 }
 }
