// This small script fix IE6/Win "float" bug
// Original Author: Aaron Boodman, [http://youngpup.net]

if (document.all && window.attachEvent) window.attachEvent("onload", fixWinIE);
function fixWinIE() {
	if (document.body.scrollHeight < document.all.sidebar.offsetHeight) {
		document.all.sidebar.style.display='block';
	}
}
// ############### ### ### ##########################################

function video_trashscape_open() {
	DownloadFenster = window.open("video/popup_video_trashscape.htm","Trash","width=720,height=200,left=100,top=160, scrollbars=no");
}
// ############### ### ### ##########################################

function winopenPoducts(pPath, pWidth, pHeight) {
  var winName = "popupWin";
  var winProps = "width="+pWidth+",height="+pHeight+",toolbar=no,menubar=no,scrollbars=yes,location=no,resizable=no";
  popup = window.open(pPath, winName,winProps);
  popup.focus();
}

function winopen(pPath, pWidth, pHeight) {
  var winName = "popupWin";
  var winProps = "width="+pWidth+",height="+pHeight+",toolbar=no,menubar=no,scrollbars=no,location=no,resizable=no";
  popup = window.open(pPath, winName,winProps);
  popup.focus();
}

// ############### ### ### ##########################################

function hide(link_id, target_id) {
    document.getElementById(link_id).style.backgroundImage ='url()';
    document.getElementById(target_id).style.display='none';
}

function show(link_id, target_id) {
    document.getElementById(link_id).style.backgroundImage ='url()';
    document.getElementById(target_id).style.display='block';
}

  
function toggle(element_name) {
    link_id = element_name + '_link';
    target_id = element_name + '_target';
    if(document.getElementById(target_id).style.display == 'block') {
        hide(link_id, target_id);
    }  else {
    show(link_id, target_id);
    }
}

