// JavaScript Document
function showViewer(id,design)
{
	if(design == "autohaus")
	{
		url = '/media/flash/viewer/?id_viewer='+id;
	}
	else
	{
		url = '/media/flash/viewer/?id_viewer='+id+'&design='+design;
	}
	window.open(url,'Kundenmagazin','width=945,height=600,scrolling=no');
}

function showVideo(ziel)
{
		flashMovie =  '<object width="400" height="330">';
		flashMovie += '<param name="movie" value="'+ziel+'"></param>';
		flashMovie += '<param name="wmode" value="transparent"></param>';
		flashMovie += '<embed src="'+ziel+'" type="application/x-shockwave-flash" wmode="transparent" width="400" height="330">';
		flashMovie += '</embed>';
		flashMovie += '</object>';
		//alert(flashMovie);
		document.write(flashMovie);
}

/* PDf-Vorschau */
wmtt = null;
 
document.onmousemove = updateWMTT;
 
function updateWMTT(e) {
  if (wmtt != null) {
    x = (document.all) ? window.event.x + wmtt.offsetParent.scrollLeft : e.pageX;
    y = (document.all) ? window.event.y + wmtt.offsetParent.scrollTop  : e.pageY;
    wmtt.style.left = (x + 20) + "px";
    wmtt.style.top   = (y + 20) + "px";
  }
}
 
function showWMTT(id) {
  wmtt = document.getElementById(id);
  wmtt.style.display = "block"
}
 
function hideWMTT() {
  wmtt.style.display = "none";
}