// Copyright Cliffmoe(R) IT Consulting 2009-2010
// CliffmoeHD Script 3.0

setTimeout("writeObj()",07000);      

function init(){
    setIEStyle();
}


function setIEStyle(){
var Obj = document.getElementById('cliffmoehd');
  if (navigator.appName =="Microsoft Internet Explorer" && navigator.userAgent.indexOf("Opera") < 0){ 
	if(document.body.currentStyle['backgroundImage']=='none')
		{
			document.body.style.backgroundImage="url(http://www.ankauf-software.de/de/js/fixed.gif)";
			document.body.style.backgroundRepeat='no-repeat';
			document.body.style.backgroundAttachment='fixed';
		}
        Obj.style.setExpression('top','IE_Fixed()');
        } 
}

function IE_Fixed() {
    var Obj = document.getElementById('cliffmoehd');
	var TopValue;
	var scrollTop;
	var WinHeight;
  if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { 
    WinHeight  = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {  
    WinHeight  = document.body.clientHeight;
  }
  if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {  
    scrollTop = document.body.scrollTop;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    scrollTop = document.documentElement.scrollTop;
  } else {scrollTop=0;}
	
        TopValue = scrollTop + WinHeight - Obj.clientHeight ;	
	
	return TopValue;
}

function closeIframe(){
    var Obj = document.getElementById('cliffmoehd');
        var p1 = Obj.parentNode;
	    p1.removeChild(Obj);
}

function writeObj(){
    var position;
    if (navigator.appName =="Microsoft Internet Explorer" && navigator.userAgent.indexOf("Opera") < 0){ 
        position = "absolute";
        } else {
        position = "fixed";
    }

var URL = 'http://www.ankauf-system.de/de/flv_hd/hd_promo.swf';
var Width = '430'; 
var Height = '230'; 

var CliffmoeDiv = document.createElement('div');
    CliffmoeDiv.id = "cliffmoehd";
    CliffmoeDiv.style.position = position;
    CliffmoeDiv.style.zIndex = 999;
    CliffmoeDiv.style.height = Height;
    CliffmoeDiv.style.width = Width;
    CliffmoeDiv.style.bottom = 0;
    CliffmoeDiv.style.right = 0;


	
CliffmoeHDStr = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'";
CliffmoeHDStr += "codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,19,0'";
CliffmoeHDStr += "width='"+Width+"' height='"+Height+"'>";
CliffmoeHDStr += "<param name='movie' value='"+URL+"' />";
CliffmoeHDStr += "<param name='quality' value='high' />";
CliffmoeHDStr += "<param name='menu' value='false' />";
CliffmoeHDStr += "<param name='wmode' value='transparent' />";
CliffmoeHDStr += "<param name='AllowScriptAccess' value='always' />";
CliffmoeHDStr += "<embed src='"+URL+"' quality='high' wmode='transparent'"; 
CliffmoeHDStr += "pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'";
CliffmoeHDStr += "width='"+Width+"' height='"+Height+"' menu='false' AllowScriptAccess='always'></embed></object>";

CliffmoeDiv.innerHTML = CliffmoeHDStr;

document.body.appendChild(CliffmoeDiv);

        init();
}


