
function CLASS_DEEPLINK(p_parent,p_root,p_dojs)
{
  //Öffentliche Variablen
  this.className = "deeplink";
  this.parent = p_parent;
  this.name = "";
  this.action = new Array();
  this.root = p_root;
  this.dojs = p_dojs;
  
  //Private Variablen

  

  //Öffentliche Methoden
  this.init_from_xml = function(xml){
  var xml = xml.childNodes;
  var i=0;
  for(var counter=0;counter<xml.length;counter++) {
    if (xml[counter].firstChild){
    switch(xml[counter].nodeName.toLowerCase()){
      case "name":
        this.name = xml[counter].firstChild.nodeValue;
        this.root.deeplinks[this.name] = this;
        break;
      case "action":
        this.action.push(xml[counter].firstChild.nodeValue);
        break;
    }  
	}
  }
  }

  this.do_actions = function(){
      if((this.dojs != "") && (this.dojs != null)){
        eval(this.dojs);
      }else{
        ignorehash = true;
        //window.location.hash = this.name;
        hashListener.setHash(this.name);
        for( var i = 0; i < this.action.length; i++ ) {
          show(this.action[i]);
        }      
      }
  }
  
  //Private Methoden
}
