<!--
function OpenPopup(cSite, cID, cSalt, iHeight, iWidth)
{
	var cURL=cSite+"?ID="+cID+"&Salt="+cSalt;
	ok=false;
	window.lExtWindowShow=false;
	window.oExtWindow=window.open(cURL,"ZusatzPixel", "toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, width="+String(iHeight)+", height="+String(iWidth)+", top=10,left=10");
	//setTimeout("CheckPopUp()", 2000);
	// Diese Zahl: Zeit, die der Browser hat, um die Variable zu bekommen.
	// 2000: 2 Sekunden!
}
function OpenPopUpSpecial(cSpecial, cID, cSalt, iHeight, iWidth)
{
	if(!iHeight){iHeight=950;}
	if(!iWidth){iWidth=650;}
	var cSite="/shared_vw/vw_"+cSpecial+"/default.asp";
	OpenPopup(cSite, cID, cSalt, iHeight, iWidth);
}

function OpenPopUpInfo(cURL, iHeight, iWidth)
{
	if(!iHeight){iHeight=570;}
	if(!iWidth){iWidth=654;}
	ok=false;
	window.lExtWindowShow=false;
	window.oExtWindow=window.open(cURL,"InfoPixel", "status=yes,,location=no, toolbar=no, menubar=no, scrollbars=yes, noresizable=yes, width="+String(iWidth)+", height="+String(iHeight)+", top=10,left=10");
}

function OpenAutomotivSpecial(cArt, cSpecial, cID, cSalt, iHeight, iWidth)
{
	if(cArt.toLowerCase()=="vw")
	{
		if(!iHeight){iHeight=950;}
		if(!iWidth){iWidth=650;}
	}
	if(cArt.toLowerCase()=="audi")
	{
		if(!iHeight){iHeight=1016;}
		if(!iWidth){iWidth=570;}
	}
	var cSite="/shared_"+cArt+"/"+cArt+"_"+cSpecial+"/default.asp";
	OpenPopup(cSite, cID, cSalt, iHeight, iWidth);
}
function CheckPopUp()
{
	if(ok)
	{
	if (ok==false)
		{
		}
	}
}

function browserCheck()
{
	var userAgent = navigator.userAgent.toLowerCase();
	var appName = navigator.appName.toLowerCase();

	var docAll = (document.all) ? true : false;
	var docLayers = (document.layers) ? true : false;
	var docGetElemId = (document.getElementById) ? true : false;

	this.win = (userAgent.indexOf('win') != -1) ? true : false;
	this.mac = (userAgent.indexOf('mac') != -1) ? true : false;
	this.linux = (userAgent.indexOf('linux') != -1 || userAgent.indexOf('x11') != -1) ? true : false;

	this.ie = (appName.indexOf('internet explorer') != -1) ? true : false;
	this.ie4 = (this.ie && docAll);
	this.ie4win = (this.ie4 && this.win);
	this.ie4mac = (this.ie4 && this.mac && !docGetElemId);
	this.ie5 = (this.ie4 && docGetElemId);
	this.ie5mac = (this.ie5 && this.mac);

	this.ns = (appName.indexOf('netscape') != -1) ? true : false;
	this.ns4 = (this.ns && docLayers);
	this.ns6 = (this.ns && docGetElemId);

	if (this.ie4win)
	{
		with (document)
		{
			write('<scr'+'ipt language="VBScript" type="text/vbscript">\n');
			write('Function flashActX(flashVer)\n');
			write('\tOn Error Resume Next\n');
			write('\t\n');
			write('\tDim FlashObj\n');
			write('\tFlashObj = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & flashVer))\n');
			write('\tflashActX = FlashObj\n');
			write('End Function\n');
			write('</script>\n');
		}
		this.flash4Enabled = (typeof(flashActX(4)) != 'undefined') ? true : false;
		this.flash5Enabled = (typeof(flashActX(5)) != 'undefined') ? true : false;
		this.flash6Enabled = (typeof(flashActX(6)) != 'undefined') ? true : false;
	}
	else
	{
		if (navigator.plugins && navigator.plugins['Shockwave Flash'])
		{
			var flashPlugIn = 0;
			var str = navigator.plugins['Shockwave Flash'].description.split(' ');
			for (var i = 0; i < str.length; i++)
			{
				if (!isNaN(parseInt(str[i])))
					{flashPlugIn = parseInt(str[i]);break;}
			}
			this.flash4Enabled = (flashPlugIn >= 4) ? true : false;
			this.flash5Enabled = (flashPlugIn >= 5) ? true : false;
			this.flash6Enabled = (flashPlugIn >= 6) ? true : false;
		}
		else
		{
			this.flash4Enabled = false;
			this.flash5Enabled = false;
			this.flash6Enabled = false;
		}
	}
	this.javaEnabled = navigator.javaEnabled();
}
var lMoveLayerBox=false;
function LayerBoxHide()
{
	var oObj=document.getElementById("dropin");
	lMoveLayerBox=false;
	if(oObj);
	{
		oObj.style.display='none';
	}
}
function LayerBoxShow()
{
	var oObj=document.getElementById("dropin"), iY, iX;
	var ieNOTopera=document.all&&navigator.userAgent.indexOf("Opera")==-1
	if(oObj);
	{
		var window_width=ieNOTopera? document.body.clientWidth : window.innerWidth-20
		var window_height=ieNOTopera? document.body.clientHeight : window.innerHeight
		var iX = (window_width - parseInt(oObj.style.width)) / 2;
		var iY = (window_height - parseInt(oObj.style.height)) / 2;
		oObj.style.left = iX;
		oObj.style.top = iY;
		oObj.style.visibility='';
		document.onmousemove = MoveLayer;
	}
}
function MoveLayer(e)
{
	var oObj=document.getElementById("dropin");
	var isNav = (navigator.appName.indexOf("Netscape") !=-1);
	if(lMoveLayerBox&&oObj)
	{
		iX = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
		iY = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
		oObj.style.left = iX-(parseInt(oObj.style.width)/2)
		oObj.style.top = iY-5;
	}
}

function SpecialLoad(cSpecial, cID, cSalt)
{
		LayerBoxHide();
		eval(cSpecial+"("+cID+", "+cSalt+")");
}
function EnableMove()
{
	lMoveLayerBox=!lMoveLayerBox;
}
//-->

