/**
 * @author Music Dreams
 */
function rowOverEffect(object) {
	if (object.className == 'tablerow1' || object.className == 'tablerow2')
		object.className = 'tablerowOver';
}
function rowOutEffect(object, cls) {
	if (object.className == 'tablerowOver')
		object.className = cls;
}
function rowClickEffect(object) {
	if (object.className == 'tablerow1' || object.className == 'tablerow2')
		object.className = 'tablerowClick';
}
function rowDoubleClickEffect(object, cls) {
	if (object.className == 'tablerowClick')
		object.className = cls;
}
function rowOverEffectBasket(object) {
	if (object.className == 'tablerowBasket1'
			|| object.className == 'tablerowBasket2')
		object.className = 'tablerowOverBasket';
}
function rowOutEffectBasket(object, cls) {
	if (object.className == 'tablerowOverBasket')
		object.className = cls;
}
function showArea() { // DIV NAME ÄNDERN!!!
	document.getElementById("manufacturerMenue").style.height = "300px";
	document.getElementById("manufacturerMenue").style.visibility = "visible";
}
function hideArea() { // DIV NAME ÄNDERN!!!
	document.getElementById("manufacturerMenue").style.height = "1px";
	document.getElementById("manufacturerMenue").style.visibility = "hidden";
}
function PopUp(w, h, ziel) {
	h = h - 20;
	var x = 0, y = 0, parameter = "";
	if (w < screen.availWidth || h < screen.availHeight) {
		x = (screen.availWidth - w - 12) / 2;
		y = (screen.availHeight - h - 104) / 2;
		if (window.opera)
			y = 0; // Opera positioniert unter den Symbolleisten
		if (x < 0 || y < 0) {
			x = 0;
			y = 0;
		} else
			parameter = "width=" + w + ",height=" + h + ",";
	}
	parameter += "left=" + x + ",top=" + y;
	parameter += ",menubar=no,location=no,toolbar=no,status=no";
	parameter += ",resizable=no,scrollbars=no";
	var Fenster = window.open(ziel, "PopUp", parameter);
	if (Fenster)
		Fenster.focus();
	return !Fenster;
}

function shippingEU() { // DIV NAME ÄNDERN!!!
	document.getElementById("shippingEU").style.display = "block";
	document.getElementById("shippingEU").style.width = "596px";
	document.getElementById("shippingEU").style.height = "30px";
	document.getElementById("shippingEU").style.visibility = "visible";
}
function closeDiv(div) {	
	document.getElementById(div).style.display = "none";	
}

function showVideo(id,width,height) {
	
	text = "";	
	text += "<div style='padding-bottom:20px;'><img src='assets/dmp_close.png' border='0' onclick='destroyVideo();'></div>";	

	text += "<script type='text/javascript' src='video/swfobject.js'></script>";
	text += "<script type='text/javascript'>swfobject.registerObject('csSWF', '9.0.115', 'video/expressInstall.swf')</script>";
	text += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+ width +"' height='" + height +"' id='csSWF'>";
	
	text += "<param name='movie' value='video/" + id +"_controller.swf' />";
	text += "<param name='quality' value='best' />";
	text += "<param name='bgcolor' value='#1a1a1a' />";
	text += "<param name='allowfullscreen' value='true' />";
	text += "<param name='scale' value='showall' />";
	text += "<param name='allowscriptaccess' value='always' />";
	text += "<param name='flashvars' value='autostart=true' />";
	
	text += "<!--[if !IE]>-->";	
	
	text += "<object type='application/x-shockwave-flash' data='video/"+ id +"_controller.swf' width='"+ width +"' height='" + height +"'>";
	text += "<param name='bgcolor' value='#1a1a1a' />";
	text += "<param name='allowfullscreen' value='true' />";
	text += "<param name='scale' value='showall' />";
	text += "<param name='allowscriptaccess' value='always' />";
	text += "<param name='flashvars' value='autostart=true' />";
		
	document.getElementById("video").style.display = "block";	
	document.getElementById("video").style.width = "1000px";
	document.getElementById("video").style.height =  height + 100 + "px" ;
	document.getElementById("video").style.visibility = "visible";	
		
	document.getElementById("video").innerHTML = text;	
}

function destroyVideo() {	
	text = " ";
	document.getElementById("video").innerHTML = text;	
	document.getElementById("video").style.display = "none";			
}
