function addLoadEvent(func) {
	
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

function loadMe(){
	var getBody = document.getElementsByTagName('body')[0];
	var theOne = getBody.getAttribute('id');

//if (theOne == 'sprint3'){
	
	//if (window.location == "http://sprint.de/") {
		//swfobject.embedSWF("http://sprint.de/fileadmin/user_upload/swf/sprintAzubi_v1.swf", "header_flash", "558", "176", "8.0.0");
		//swfobject.embedSWF("http://sprint.de/fileadmin/user_upload/swf/100jahrebanner_v1.swf", "header_flash", "558", "176", "8.0.0");
		//swfobject.embedSWF("http://sprint.de/fileadmin/swf/startseite/ABC_RZ_Animation_Web.swf", "header_flash", "558", "176", "8.0.0");
	//} else {
		//swfobject.embedSWF("fileadmin/user_upload/swf/sprintAzubi_v1.swf", "header_flash", "558", "176", "8.0.0");
		//swfobject.embedSWF("fileadmin/user_upload/swf/100jahrebanner_v1.swf", "header_flash", "558", "176", "8.0.0");
		//swfobject.embedSWF("fileadmin/swf/startseite/ABC_RZ_Animation_Web.swf", "header_flash", "558", "176", "8.0.0");
	//}
	
	//swfobject.embedSWF("fileadmin/swf/inno.swf", "header_flash", "558", "176", "6.0.0");
	//swfobject.embedSWF("fileadmin/user_upload/swf/content_flash.swf", "content_flash-01", "248", "137", "6.0.0");
	//swfobject.embedSWF("fileadmin/user_upload/swf/content_flash.swf", "content_flash-02", "248", "137", "6.0.0");
		
		
	/*	if(typeof sIFR == "function"){
			sIFR.replaceElement(named({sSelector:"div#content-area h1", sFlashSrc:"fileadmin/swf/fontname.swf", sColor:"#00406F", sLinkColor:"#00406F", sBgColor:"#FF0000", sHoverColor:"#FFFFFF", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));
			sIFR.replaceElement(named({sSelector:"div.content-area h1", sFlashSrc:"fileadmin/swf/fontname.swf", sColor:"#FFFFFF", sLinkColor:"#FFFFFF", sBgColor:"#00406F", sHoverColor:"#00406F", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));
		};*/	
	//}
	
if (theOne == 'sprint58'){
	if (window.location == "http://www.sprint.de/news/news-einzelansicht/datum/2010/05/12/sprintcast-04-online.html"){
	swfobject.embedSWF("/fileadmin/swf/sprintcast_04-small.swf", "test", "498", "280", "10.0.0");
	}
	if (window.location == 'http://www.sprint.de/news/news-einzelansicht/datum/2010/08/24/ed-schaeden-und-oberflaechenbehandlung-neuer-sprintcast-online.html'){
	swfobject.embedSWF("/fileadmin/swf/sprintcast_05-small.swf", "test05", "498", "280", "10.0.0");
	//swfobject.embedSWF("fileadmin/swf/mainPlayer.swf?width=498\46height=280\46startmov=004", "test", "498", "280", "10.0.0");
	}
}

if (theOne == 'sprint105'){	
	/*if (window.location == "http://www.sprint.de/news/sprintcast.html?startmov=001") {
		alert ("001");
	} 
	
	if (window.location == "http://www.sprint.de/news/sprintcast.html?startmov=002") {
		alert ("002");
	} 
	
	if (window.location == "http://www.sprint.de/news/sprintcast.html?startmov=003") {
		alert ("003");
	} */
}
	
	/*else {
		if(typeof sIFR == "function"){
	sIFR.replaceElement(named({sSelector:"div#content-area h1", sFlashSrc:"fileadmin/swf/fontname.swf", sColor:"#00406F", sLinkColor:"#00406F", sBgColor:"#FFFFFF", sHoverColor:"#FFFFFF", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));
			sIFR.replaceElement(named({sSelector:"div.content-area h1", sFlashSrc:"fileadmin/swf/fontname.swf", sColor:"#FFFFFF", sLinkColor:"#FFFFFF", sBgColor:"#00406F", sHoverColor:"#00406F", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));		
		};
	}*/
	if(typeof sIFR == "function"){
	sIFR.replaceElement(named({sSelector:"div#content-area h1", sFlashSrc:"fileadmin/swf/unicond16.swf", sColor:"#00406F", sLinkColor:"#00406F", sBgColor:"#FFFFFF", sHoverColor:"#FFFFFF", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));
	sIFR.replaceElement(named({sSelector:"div.content-area h1", sFlashSrc:"fileadmin/swf/unicond20.swf", sColor:"#FFFFFF", sLinkColor:"#FFFFFF", sBgColor:"#00406F", sHoverColor:"#00406F", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));
	}

if ((theOne !== 'sprint3')&&(theOne !== 'sprint12')){
	document.getElementById('copybut').onclick=function(){
		document.copy_url.copy_url_field.focus();
		document.copy_url.copy_url_field.select();  
		permaddress = document.selection.createRange();
		permaddress.execCommand("Copy");	
		}
	}

	//if (theOne == 'sprint3'){
	//	loadXMLDoc();
	//}
}
	addLoadEvent(loadMe);
