/***********************************************/
/* Rechtsanwälte Utz .js                     	*/
/* copyright 2007 Thomas Piske - Werbeagentur   */
/*											 	*/
/***********************************************/

//Navigation Script
if (document.getElementById){ 
	document.write('<style type="text/css">\n')
	document.write('.submenu{display: none;}\n')
	document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("navigation").getElementsByTagName("span");
		if(el.style.display != "block"){ 
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

//Pop-up function
function _popup(url,w,h) {
    if((""+w).indexOf("undefined")>=0)w=720
    if((""+h).indexOf("undefined")>=0)h=650
	fenster=window.open(url,"_POPUP","width="+w+",height="+h+",toolbar=no,locationbar=no,scrollbars=1,resizable=1,status=0,location=0,toolbar=0,directories=0,menubar=0")
    fenster.focus();
}

//function for switching form-buttons
function switchFormBt (obj,type,abg,ibg){
	if (type == 1){
		//obj.style.backgroundImage = "url(" + abg + ".gif)"; 
		obj.style.background = "#FFF";
		obj.style.color = "#f35d2f"; 
		obj.style.fontWeight = "bold"; 
		obj.style.backgroundRepeat = "no-repeat"; 
		obj.style.cursor= "pointer";
	} 
	else { 
		//obj.style.backgroundImage = "url(" + ibg + ".gif)"; 
		obj.style.background = "#f35d2f";
		obj.style.color = "#fff"; 
		obj.style.fontWeight = "bold";
		obj.style.backgroundRepeat = "no-repeat";
		obj.style.cursor= "default";
	} 
}


function getFlash(src, movie, width, height, version, quality, menu, bgcolor, mode, flashvars)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+",0,0,0' width='"+width+"' height='"+height+"' id='" +movie+ "'>");
	document.write("<param name='movie' value='" +src+ "' />");
	document.write("<param name=\"FlashVars\" value=\"" +flashvars+ "\">");
	document.write("<param name='quality' value='" +quality+ "' />");
	document.write("<param name='menu' value='" +menu+ "' />");
	//document.write("<param name='scale' value='noscale' />");
	//document.write("<param name='salign' value='lb' />");
	document.write("<param name='bgcolor' value='" +bgcolor+ "' />");
	document.write("<param name='wmode' value='" +mode+ "' />");
	document.write("<embed src='" +src+ "' swLiveConnect='true' menu='" +menu+ "' wmode='" +mode+ "' FlashVars='" +flashvars+ "' quality='" +quality+ "' bgcolor='" +bgcolor+ "' width='"+width+"' height='"+height+"' name='" +movie+ "' allowScriptAccess='sameDomain'  type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}
