

function KS(html){
	
	

	
// navigauteur du client	
this.nav=new KNav();

this.desk= new KBg(html);
this.desk.setW(this.nav.getW());
this.desk.setH(this.nav.getH());



this.mymouse= new  Mouse(this);
this.mymouse.runService();
this.myscreen= new  Screen(this);
this.myscreen.runService();
this.mykeyboard= new  Keyboard(this);
this.mykeyboard.runService();


document.sys=this;
window.sys=this;

//evenement
this.ev= new KEvent(this);


	this.toplevel=0;
	
	
	//liste de tous les objets gerer par le system
	this.oL= new KList();	
	
	//liste des objets action
	this.oLActn= new KList();	
	
	//liste des objets actif
	this.oLActf= new KList();
	
	
	
	

/*

function find_Prt_Val(val){
	// remonte les noeuds jusqu'a trouver une id commencant par "doz" 
	//Retourne l'element Html ou null si il n'existe pas
	
	htmlElt_Tmp=G_eltHtmlClick.parentNode ;
	
	while(htmlElt_Tmp.nodeName!="BODY" && htmlElt_Tmp.id.substr(0,val.length)!=val){
		htmlElt_Tmp=htmlElt_Tmp.parentNode;
		}
		
	if (htmlElt_Tmp.nodeName!="BODY" )
		return htmlElt_Tmp;
	else
		return null;
}

*/

}
