//---------- send the active document's Id to all active frames ---------------------
var fcode = 'harabibi'
var getID = 0
var waitloop = 0
//arrFrames = new Array('menu','submenu')

function syncFrames(setID){
	var retry=0;
	getID = setID;
	
	// test if all frames have been defined and loaded, then send the 'setID' to them.
	for(var tellerA=0; tellerA<arrFrames.length; tellerA++){
		eval("if("+arrFrames[tellerA]+"){ if("+arrFrames[tellerA]+".inits==1){"+arrFrames[tellerA]+".setproperties(setID);}else{retry=1;} }else{retry=1;}")
	}

	// put a neat little title in the title-bar
	if(setID>0){top.document.title = DBarray[setID][11]}
	
	//the retry-function seriously doesn't need to be start-up more than once at a time
	if(retry == 1 && waitloop == 0){
		retry = 0;
		waitloop = 1;
		setTimeout('waitloop=0;syncFrames(getID)',2048);
	}
}

