//this sets some of the vars for the tabber. It is usually only called from prop_header.

//variable to hole the position of the contact owner tab
var enq_pos=0;

var tabberOptions = {

'onLoad': function() {
  
	//some javascript to find the position of the contact owner tab
  var i;

  for(i=0;i<this.tabs.length;i++) {
		 if(this.tabs[i].headingText=='Contact Owner') {
		    enq_pos=i;				
		   }
		}				
  
  
  if(window.location.search.indexOf('sent') != -1) {		
		//show the div for the enquiry sent and turn to tab
		this.tabShow(enq_pos); 				 
    document.getElementById('sent_enquiry').style.visibility='visible';      
  };

 

 },
   
 'onClick': function(argsObj) {

    //var t = argsObj.tabber; /* Tabber object */
    //var id = t.id; /* ID of the main tabber DIV */
    var i = argsObj.index; /* Which tab was clicked (0 is the first tab) */
    //var e = argsObj.event; /* Event object */

    if (i == '4') {
 		  initialize();  	  
    }
  }  
   
   
};

