function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 7;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
// -----------------------------------------------------------------------------
// -->


<!-- Start iframe popup // -->

function createPopup(obj,iframe_height,lang){
	
		// Create the container element
		var div = document.createElement('div');
		div.id = obj;
		div.style.display = 'none';
		div.style.backgroundColor = '#ffffff';
		div.style.border = 'solid 1px black';
		div.style.width = '500px';
		div.style.position = 'absolute';
		div.style.left = '50%';
		div.style.marginLeft='-250px';
		div.style.top = '50px';
		div.style.zIndex = 9999;
		div.style.paddingLeft = '10px';
		div.style.paddingTop = '20px';
		div.style.paddingBottom = '10px';
		
		// create close_button
		var popup_close_button = document.createElement('popup_close_button');
		popup_close_button.id = 'popup_close_button';
		popup_close_button.style.width = '27px';
		popup_close_button.style.height = '27px';
		popup_close_button.style.position = 'absolute';
		popup_close_button.style.right = '-10px';
		popup_close_button.style.top = '-10px';
		popup_close_button.style.cursor="pointer";
		popup_close_button.onclick = function() {
			document.getElementById(obj).style.display = 'none';
			document.getElementById('info_iframe').src = 'iframe_contents/blank.html';
			return false;
		};
		div.appendChild(popup_close_button);
		
		// create the iframe
		var iframe = document.createElement('iframe');
		iframe.id = 'info_iframe';
		iframe.frameBorder = 0;
		iframe.style.border = 0;
		iframe.style.width = '500px';
		iframe.style.height = iframe_height+'px';		
		div.appendChild(iframe);
		
		// Create the a element that closes the popup
		var a = document.createElement('a');
		a.href = '#';
		a.style.color = '#000000';
		a.style.display = 'block';
		a.style.marginLeft = '20px';
		a.style.marginRight = '30px';
		a.style.fontWeight='bold';
		a.style.paddingTop = '15px';
		a.style.borderTop = 'solid 1px #999';
		a.onfocus = function() {this.blur()};
		a.onclick = function() {
			this.blur();
			document.getElementById(obj).style.display = 'none';
			document.getElementById('info_iframe').src = 'iframe_contents/blank.html';
			return false;
		};
		// Create the link text
		if (lang=="de"){a.innerHTML = "Schließen";}
		if (lang=="en"){a.innerHTML = "Close";}
		if (lang=="fr"){a.innerHTML = "Fermer";}
		if (lang=="es"){a.innerHTML = "Cerrar";}
		// Append the link to the div
		div.appendChild(a);
		
		// Append the div
		document.body.insertBefore(div,null);
}


function ShowInfo_popup(obj,url)
{		
			var scroll = self.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;
			var top = scroll + 50;		
									
			document.getElementById(obj).style.top = top + 'px';
			document.getElementById('info_iframe').src = url;
			
		
			
		document.getElementById(obj).style.display = 'block';
}

// This method adds an event
function addPopup(fn) {
  if ( window.attachEvent ) {
        this.attachEvent('onload', fn);
  } else
  {
    this.addEventListener('load', fn, false );
	}
}


function info_switcher(id){
	object=document.getElementById(id);
	if (object.style.height!="auto"){
		object.style.height="auto";
		object.style.border="solid 1px #d0d0d0";
		object.style.borderRight="none";
		object.childNodes[0].style.backgroundImage="url(templates/leuchtmittel-verkauf/images/minus.gif)";
		
	}
	else{
		object.style.height="25px";
		object.style.borderBottom="none";
		object.childNodes[0].style.backgroundImage="url(templates/leuchtmittel-verkauf/images/plus.gif)";
	}
}

function info_switcher2(id){
	object=document.getElementById(id.id);
	if (object.style.height!="auto"){
		object.style.height="auto";
		object.style.paddingBottom="25px";
		object.childNodes[0].childNodes[0].style.backgroundImage="url(templates/leuchtmittel-verkauf/images/minus.gif)";
		object.childNodes[0].childNodes[0].style.cursor="pointer";
		object.style.cursor="default";
		object.onclick= "";
		object.childNodes[0].childNodes[0].onclick= function(){info_switcher2(id);return false};
	}
	else{
		object.style.height="50px";
		object.style.paddingBottom="0px";
		object.childNodes[0].childNodes[0].style.backgroundImage="url(templates/leuchtmittel-verkauf/images/plus.gif)";
	}
}

function info_switcher3(id,language_id){
	object=document.getElementById(id);
	object.style.marginBottom="10px";
	if (language_id==1){object.childNodes[0].childNodes[3].childNodes[0].innerHTML="[weniger...]";}
	if (language_id==2){object.childNodes[0].childNodes[3].childNodes[0].innerHTML="[less...]";}
	if (language_id==3){object.childNodes[0].childNodes[3].childNodes[0].innerHTML="[moins...]";}
	if (language_id==4){object.childNodes[0].childNodes[3].childNodes[0].innerHTML="[menos...]";}
	object.childNodes[0].childNodes[3].childNodes[0].blur();
	if (object.style.height!="auto"){
		object.style.height="auto";
		
	}
	else{
		object.style.height="14px";
		object.style.borderBottom="none";
		if (language_id==1){object.childNodes[0].childNodes[3].childNodes[0].innerHTML="[mehr...]";}
	if (language_id==2){object.childNodes[0].childNodes[3].childNodes[0].innerHTML="[more...]";}
	if (language_id==3){object.childNodes[0].childNodes[3].childNodes[0].innerHTML="[plus...]";}
	if (language_id==4){object.childNodes[0].childNodes[3].childNodes[0].innerHTML="[más...]";}
		object.style.marginBottom="0px";
	}
}



  function CreateBookmark(url) {

	title = document.title;
	url = location.href;

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");}
	else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }

 } 
 

