 
// http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
// http://support.microsoft.com/kb/278469 
// scrollwidth is still without solution : iframeids dyniframesize only scrollHeight

  
//ID of Daily Iframe tag:
var iframeids=["notizen_shoutbox", "I1", "iframe1", "bauch_vom_bauch", "iframe_slide", "iframe_sliderr"]

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=getFFVersion>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers







function dyniframesize() {



 var dyniframe=new Array()
 for (i=0; i<iframeids.length; i++){
  if (document.getElementById){ //begin resizing iframe procedure
   dyniframe[dyniframe.length] = document.getElementById(iframeids[i]);
                  if (dyniframe[i] && !window.opera){
    dyniframe[i].style.display="block"
    if (dyniframe[i].contentDocument && dyniframe[i].contentDocument.body.offsetHeight) //ns6 syntax
     dyniframe[i].height = dyniframe[i].contentDocument.body.offsetHeight+FFextraHeight + 5;
                          else if (dyniframe[i].Document && dyniframe[i].Document.body.scrollHeight) //ie5+ syntax
     dyniframe[i].height = dyniframe[i].Document.body.scrollHeight + 5;
   }
  }
 }
}




 



function load_iframe_from_window(frame_id) 
	{
var first_id;
var pos = window.name.indexOf('*');
 if (pos == -1) 
		{
first_id = window.name;
		}
 else 
		{
first_id = window.name.substring(0, pos); 
		}
frame_id.location.href = document.getElementById(first_id).href;
	}






function load_iframe(href_id, frame_id) 
	{
var real_id;
var pos = href_id.indexOf('*');
 if (pos == -1) 
		{
real_id = href_id;
		}
 else 
		{
real_id = href_id.substring(0, pos); 
		}
frame_id.location.href = document.getElementById(real_id).href;
	}


 
// this PRELOADER: will load href-Link into Iframe = I1 as specified by A-Tag with (specific-id-name)
function preloader(id) {var real_id; var pos = id.indexOf('*'); if (pos == -1)  
     real_id = id; else real_id = id.substring(0, pos);  iframe_slide.location.href = document.getElementsByTagName("a")[real_id].href;}










// this ANCOR: will load anchor-Link = as specified by A-Tag with (specific-id-name)
function anchor(id) {var real_id; var pos = id.indexOf('*'); if (pos == -1)       real_id = id; else real_id = id.substring(0, pos); 
self.location.hash = real_id;}


function clear_window_name() {top.window.name=""}
// war zuvor self.name="", war dann lange self.window.name="" und ganz kurz self.name="iframe_bauch", und ist nun seit 20100210 einfach leer! 







