/* 
 *   (c)2003 N2MEDIA web- & multimediadesign
 *   http://www.n2media.de - info@n2media.de
 */

/* Browser Statusmessage */
window.defaultStatus=' Beratung, Konstruktion und Berechnung von Sondermaschinen für die Kabelindustrie und Drahtindustrie ';
 
/* Browser redirect for non framed pages */  
/*
if ((top.frames.length == 0) && (top.location.href != "index.html")) {
	top.location.href = "http://www.kabelconsulting.de";
}
*/
/* PopUp Funktion zur Detailansicht */  
function openWindow(URL,name,features) {
	window.open(URL,name,features)
}

/////////////
 
/* Sets Contentframe */
function SetMainFrame(URL) { 
	parent.content.location.href=URL;
}

/* Sets Content- and MenuFrame */
function SetTopMainFrame(URL) { 
	parent.menu.location.href=URL1;
	parent.content.location.href=URL2;
}

/* Sets Submenuframe */
function SetSubFrame(URL) { 
	parent.submenu.location.href=URL;
}
 
/* Sets Menuframe */
function SetMenuFrame(URL) { 
	parent.menu.location.href=URL;
}
 
/* Sets Sub- an Contentframe */
function Set2Frames(URL1,URL2) { 
	parent.submenu.location.href=URL1;
	parent.content.location.href=URL2;
}
 
 /* Sets Sub- and Menuframe */
function SetSubTopFrame(URL1,URL2) { 
	parent.submenu.location.href=URL1;
	parent.menu.location.href=URL2;
}
 
function Set3Frame(URL1,URL2,URL3) { 
	parent.submenu.location.href=URL1;
	parent.menu.location.href=URL2;
	parent.content.location.href=URL3;
}
 
 
//////////////////////
 
 
/* Menu Funktionen */
function SwapImgRestore() {
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function PreloadImages() {
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=PreloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function FindObj(n, d) {
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=FindObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function SwapImage() {
	var i,j=0,x,a=SwapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=FindObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}