

function show_smart(bild_id, art, datei){
	// Bilder Beginn ------------------------------------------------------------------------------------------------------------------->
/*	if (art == "b")
	{
		$("#inwrap").remove();
		$("#clo").remove();
		
		var anzahl_img_next;
		var inwrap = document.createElement('div');
		var wrap = document.createElement('div');
		var clo = document.createElement('div');
		var next = document.createElement('div');
		var anzahl_img = document.images.length;
		
		wrap.id = 'wrap';
		inwrap.id = 'inwrap';
		clo.id = 'clo';
		next.id = 'next';
		
		//inwrap.style.display = "block";
		wrap.style.display = "block";
		next.style.display = "block";
		//clo.style.display = "block";
		wrap.align = "center";
		
		document.body.appendChild(wrap);
		document.body.appendChild(inwrap);
		document.body.appendChild(clo);
		document.body.appendChild(next);
		
		// ---------------------------------------------------------------------------------------------------->
		var w = self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
		var h = self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;
		
		var bild = document.images[bild_id].src;
		var breite_b = document.images[bild_id].width; 
		var hoehe_b = document.images[bild_id].height;
		
		var w_a = parseInt(breite_b * (h - 150) / hoehe_b);
		
		var top_u = (h - (h - 150)) / 2;
		var left_u = (w - w_a) / 2;
		
		//w = w - w_a;
		h = h - 150;
		
		inwrap.style.top = top_u + 'px';
		inwrap.style.left = left_u + 'px';
		
		inwrap.style.width = w_a + 'px';
		inwrap.style.height = h + 'px';
		
		var top_clo = top_u - 10;
		var left_clo = (left_u + 5) + w_a;
		clo.style.top = top_clo + 'px';
		clo.style.left = left_clo + 'px';
		// ---------------------------------------------------------------------------------------------------->
		
		inwrap.innerHTML = '<img src="' + bild + '" alt="Test" height="' + h + '" border="0" />';
		clo.innerHTML = '<img src="img/close.png" alt="Schließen" title="Schließen" border="0" />';
		next.innerHTML = 'next';
		
		$("#inwrap").slideDown("slow");
		$("#clo").slideDown("slow");
		
		//wrap.onclick = (function hide(){ $("#inwrap").hide("slow"); wrap.style.display = 'none'; clo.style.display = 'none'; });
		clo.onclick = (function hide(){ $("#inwrap").hide("slow"); wrap.style.display = 'none'; clo.style.display = 'none'; next.style.display = 'none'; });
		
		
	
		//--------------------------------------------------------------------------------------------------->
		window.onresize = function(){
			
			w = self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
			h = self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;
			
			bild = document.images[bild_id].src;
			breite_b = document.images[bild_id].width; 
			hoehe_b = document.images[bild_id].height;
			
			w_a = parseInt(breite_b * (h - 150) / hoehe_b);
			
			top_u = (h - (h - 150)) / 2;
			left_u = (w - w_a) / 2;
			
			//w = w - w_a;
			h = h - 150;
			
			inwrap.style.top = top_u + 'px';
			inwrap.style.left = left_u + 'px';
			
			inwrap.style.width = w_a + 'px';
			inwrap.style.height = h + 'px';
			
			top_clo = top_u - 10;
			left_clo = (left_u + 5) + w_a;
			
			clo.style.top = top_clo + 'px';
			clo.style.left = left_clo + 'px';
			
			inwrap.innerHTML = '<img src="' + bild + '" alt="Test" height="' + h + '" border="0" />';
			clo.innerHTML = '<img src="img/close.png" alt="Schließen" title="Schließen" border="0" />';
		}
		//--------------------------------------------------------------------------------------------------->
		
		//--------------------------------------------------------------------------------------------------->
		next.onclick = function(){
			
			clo.style.display = 'none';
			inwrap.style.display = 'none';
			
			bild_id = (bild_id + 1);
			
			anzahl_img_next = anzahl_img - 1;
			
			if (bild_id <= anzahl_img_next)
			{
				bild_id = bild_id;
			}
			else
			{
				bild_id = 0;
			}
			
			w = self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
			h = self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;
			
			bild = document.images[bild_id].src;
			breite_b = document.images[bild_id].width; 
			hoehe_b = document.images[bild_id].height;
			
			w_a = parseInt(breite_b * (h - 150) / hoehe_b);
			
			top_u = (h - (h - 150)) / 2;
			left_u = (w - w_a) / 2;
			
			//w = w - w_a;
			h = h - 150;
			
			inwrap.style.top = top_u + 'px';
			inwrap.style.left = left_u + 'px';
			
			inwrap.style.width = w_a + 'px';
			inwrap.style.height = h + 'px';
			
			top_clo = top_u - 10;
			left_clo = (left_u + 5) + w_a;
			
			clo.style.top = top_clo + 'px';
			clo.style.left = left_clo + 'px';
			
			inwrap.innerHTML = '<img src="' + bild + '" alt="Test" height="' + h + '" border="0" />';
			clo.innerHTML = '<img src="img/close.png" alt="Schließen" title="Schließen" border="0" />';
			
			$("#inwrap").slideDown("slow");
			$("#clo").slideDown("slow");
		}
		//--------------------------------------------------------------------------------------------------->
	}*/
	// Bilder Ende ------------------------------------------------------------------------------------------------------------------->
	
	
	// IFrame Beginn ------------------------------------------------------------------------------------------------------------------->
	if (art == "i")
	{	
		$("#inwrap").remove();
		$("#clo").remove();
		
		var inwrap = document.createElement('div');
		var wrap = document.createElement('div');
		var clo = document.createElement('div');
		
		wrap.id = 'wrap';
		inwrap.id = 'inwrap';
		clo.id = 'clo';
		
		//inwrap.style.display = "block";
		wrap.style.display = "block";
		//clo.style.display = "block";
		wrap.align = "center";
		
		document.body.appendChild(wrap);
		document.body.appendChild(inwrap);
		document.body.appendChild(clo);
		
		// ---------------------------------------------------------------------------------------------------->
		var w = self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
		var h = self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;
		
		var w_a = 500 + 25;
		var h_a = 250 + 25;
		
		var top_u = (h - h_a) / 2;   
		//(h - (h - 300)) / 2;
		var left_u = (w - w_a) / 2;
		
		//w = w - w_a;
		//h = h - 300;
		
		inwrap.style.top = top_u + 'px';
		inwrap.style.left = left_u + 'px';
		
		inwrap.style.width = w_a + 'px';
		inwrap.style.height = h_a + 'px';
		
		var top_clo = top_u - 10;
		var left_clo = (left_u + 5) + w_a;
		clo.style.top = top_clo + 'px';
		clo.style.left = left_clo + 'px';
		// ---------------------------------------------------------------------------------------------------->
		
		inwrap.innerHTML = '<iframe src="' + datei + '" frameborder="0" height="' + h_a + '" width="' + w_a + '" scrolling="auto" />';
		clo.innerHTML = '<img src="img/close.png" alt="Schließen" title="Schließen" border="0" />';
		
		$("#inwrap").slideDown("slow");
		$("#clo").slideDown("slow");
		
		wrap.onclick = (function hide(){ $("#inwrap").hide("slow"); wrap.style.display = 'none'; clo.style.display = 'none'; inwrap.innerHTML = ''; });
		clo.onclick = (function hide(){ $("#inwrap").hide("slow"); wrap.style.display = 'none'; clo.style.display = 'none'; inwrap.innerHTML = ''; });
		
		
	
		//--------------------------------------------------------------------------------------------------->
		window.onresize = function(){
			
			w = self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
			h = self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;
			
			w_a = 500 + 25;
			h_a = 250 + 25;
			
			top_u = (h - h_a) / 2;
			left_u = (w - w_a) / 2;
			
			//w = w - w_a;
			//h = h - 300;
			
			inwrap.style.top = top_u + 'px';
			inwrap.style.left = left_u + 'px';
			
			inwrap.style.width = w_a + 'px';
			inwrap.style.height = h_a + 'px';
			
			top_clo = top_u - 10;

			left_clo = (left_u + 5) + w_a;
			
			clo.style.top = top_clo + 'px';
			clo.style.left = left_clo + 'px';
			
			inwrap.innerHTML = '<iframe src="' + datei + '" frameborder="0" height="' + h_a + '" width="' + w_a + '" scrolling="auto" />';
			clo.innerHTML = '<img src="img/close.png" alt="Schließen" title="Schließen" border="0" />';
		}
		//--------------------------------------------------------------------------------------------------->
	}
	// IFrame Ende ------------------------------------------------------------------------------------------------------------------->
}
