    var myAnim1 = null
    var myAnim2 = null
    var myAnim1 = null
    var myAnim2 = null
    var GlobalAnim = null
    var GlobalAnimTimer = 1
    var myArrayCategory = new Array
    var locCount = 0
	var myDomain = document.domain 
	var myURL = document.URL 
	if (myURL.toLowerCase().indexOf('.htm') != -1)
	{
	   var pu1 = myURL.lastIndexOf('/')  
	   var pu2 = myURL.lastIndexOf('\\')  
	   if (pu1 != -1 && pu1 > pu2)
	   {
		  myURL = myURL.substring(0,pu1) 
	   }
	   else
	   {
		  myURL = myURL.substring(0,pu2) 	   
	   }
	}
	var locAddress = myURL+'/Library/'
	var locMainAddress = myURL
	if(myDomain.toLowerCase().indexOf('localhost_ecat') != -1 || myURL.toLowerCase().indexOf('localhost_ecat') != -1)
	{
    	locMainAddress = 'http://localhost/onlinecatalogue/electronic%20catalogue' 
	    locAddress = 'http://localhost/onlinecatalogue/electronic%20catalogue/Library/' 
	}
	else if(myDomain.toLowerCase().indexOf('websites_ecatalogue') != -1 || myURL.toLowerCase().indexOf('websites_ecatalogue') != -1 || myURL.indexOf('file://') != -1)
	{
        locMainAddress = 'http://196.30.166.51/qaCatalogue'
        locAddress = 'http://196.30.166.51/qaCatalogue/Library/' 
	}
	document.write('<sc'+'ript')
	document.write(' type="text/javascript"')
	document.write(' language="JavaScript"')
	document.write(' src="'+locAddress+'JavaScriptWindowEvent.js">')
	document.write('</sc'+'ript>')
   //------------ JavaScriptLibrary.js ---------------
   document.write('<sc'+'ript')
   document.write(' type="text/javascript"')
   document.write(' language="JavaScript"')
   document.write(' src="'+locAddress+'JavaScriptLibrary.js">')
   document.write('</sc'+'ript>')
   //------------ JavaScriptDataFnc.js ---------------
   document.write('<sc'+'ript')
   document.write(' type="text/javascript"')
   document.write(' language="JavaScript"')
   document.write(' src="'+locAddress+'JavaScriptDataFnc.js">')
   document.write('</sc'+'ript>')
   //------------ JavaScriptTree.js ---------------
   document.write('<sc'+'ript')
   document.write(' type="text/javascript"')
   document.write(' language="JavaScript"')
   document.write(' src="'+locAddress+'JavaScriptTree.js">')
   document.write('</sc'+'ript>')
   //------------ JavaScriptUtility.js ---------------
   document.write('<sc'+'ript')
   document.write(' type="text/javascript"')
   document.write(' language="JavaScript"')
   document.write(' src="'+locAddress+'JavaScriptUtility.js">')
   document.write('</sc'+'ript>')
   //------------ JavaScriptBasket.js ---------------
   document.write('<sc'+'ript')
   document.write(' type="text/javascript"')
   document.write(' language="JavaScript"')
   document.write(' src="'+locAddress+'JavaScriptBasket.js">')
   document.write('</sc'+'ript>')
   //------------ JavaScriptBasket.js ---------------
   document.write('<sc'+'ript')
   document.write(' type="text/javascript"')
   document.write(' language="JavaScript"')
   document.write(' src="'+locAddress+'JavaScriptInfo4Builder.js">')
   document.write('</sc'+'ript>')

   setTimeout("TimerLoad()",1000)
	
function TimerLoad()
{
  var locData = document.getElementById('MainVariable_(ID)')
  if (locData == null)
  {
     locData = document.getElementById('CatalogueID)')
  }
  if (locData != null)
  {
      WindowEventLoad(locMainAddress)
      LocalInit()
      LocalInit_Anim()
  }
  else
  {
     setTimeout("TimerLoad()",1000);
  }
}  
var localMenuOver = 1
function LocalInit()
{
   myArrayCategory.push('Lamp')
   myArrayCategory.push('Generator')
   myArrayCategory.push('Wiring Accessories')
   myArrayCategory.push('Enclosure')
   myArrayCategory.push('Lighting')   
   myArrayCategory.push('Downlight')   
   myArrayCategory.push('Circuit Breaker')   
   myArrayCategory.push('Industrial Plugs')
   myArrayCategory.push('Switches')      
   myArrayCategory.push('Switches')         
   LocalUserDetails()
   //-------- News Title ----------
   var locNewsTitle = Utility_URLParam('newstitle')
   var locTitle = document.getElementById('news_title')
   var locFrame = document.getElementById('frame_newsright')
   if (locTitle != null && locFrame != null && locNewsTitle.length > 0)
   {
      locFrame.src = 'NewsType_All.html?newstitle='+locNewsTitle
      locTitle.innerHTML = 'Welcome to the '+locNewsTitle+' section'
   }
   GlobalDisplayDivider.push('Divider_Advert')
   GlobalDisplayDivider.push('Divider_HomePopup')   
   LocalLoadSupplier()
   GloInfo4_Quick_Address = "http://www.voltex.co.za/index_VoltexAuction.html"
   GloInfo4_Quick_Database = 'EC-ZA-0-50-Voltex Electronic Catalogue'
}
function LocalInit_Anim()
{
	YUI().use('anim', function(Y) {
		myAnim1 = new Y.Anim({
			node: '#Div_Special',
			from: { opacity: 1},																				
			to: { opacity: 0 },
			easing: Y.Easing.backIn
		});
		myAnim2 = new Y.Anim({
			node: '#Divider_HomePopup',
			from: { opacity: 0},																				
			to: { opacity: 1 },
			easing: Y.Easing.bounceBoth
		});
        GlobalAnim = Y
		myAnim1.set('duration',3)
		myAnim2.set('duration',2)	
		var locObjDiv = document.getElementById('Divider_HomePopup')
		locObjDiv.style.visibility = 'visible'
	    GlobalAnim.one('#Divider_HomePopup').setStyle('opacity',0)				
		myAnim2.set('from', { xy: [730, 100], opacity:0 });	
		myAnim2.set('to', { xy: [730, 390], opacity:1 });
		//------------ only on first page ----------------
		var locObjHome = document.getElementById('Divider_HomePage')
		if (locObjHome != null) {myAnim2.run()}
	})
}
function QuickSearch(pObject)
{
	var locObjSea = document.getElementById('txtsearch')
	locObjSea.value = pObject.outerText
    ProgressImageDisplay(true)
    setTimeout("TimerSearch1()",100)	
}
function LocalSpecialSection(pDivider,pCategory)
{
	xmlString = LocalInfo4_QuickMenu(3,'5','VOLTEX',2,pCategory)  
	var locObjDiv = document.getElementById(pDivider)
	if (locObjDiv != null) 
	{
	  locObjDiv.innerHTML = xmlString+'<br/>'
	  Utility_Divider(1,pDivider,1)
	  Utility_ArraySet(GlobalDisplayDivider,pDivider)
	}  
}
function LocalSearch(pKeyEvent)
{
	Utility_Divider(2,'Divider_UserInfo');
	Utility_Divider(2,'Divider_CatalogueSection');
	if (pKeyEvent != null)
	{
       if (pKeyEvent != null && pKeyEvent != 0)
       {
         var locKey = Utility_EnterKey(pKeyEvent,'',1)
         if (locKey != 13) {return}
       } 
    } 
    ProgressImageDisplay(true)
    setTimeout("TimerSearch1()",100)	
}
function DisplayPage(pMode)
{
	Utility_Divider(2,'Divider_SectionSpecial')
	if (pMode == 1)
	{
       WebDisplay_UserLogin()
       LocalLogin()
	}
	if (pMode == 2)
	{
	   WebDisplay_UserRegister()
	   LocalLogin()
	}
	if (pMode == 3)
	{
		LocalCatalogueDisplay(1);
		BasketDisplayCurrent(1,'QuoteDebtor')
	}
	if (pMode == 4)
	{
		Utility_Divider(2,'Divider_UserInfo');
		LocalCatalogueDisplay(1);
		BasketDisplayHistory(1,'QuoteDebtor');
		DataFnc_ColumnLinkColor('Divider_QuoteDebtor_History',3,'HistoryListStatus')
	}
}
function TimerSearch1()
{
	Utility_Divider(2,'Divider_SectionSpecial')
    var locFilter = 'DATABASEID = \'EC-ZA-0-50\'' 	
    var locList = document.getElementById('supplist')
    if (locList != null)
    {
     var locIndex = locList.selectedIndex
     if (locIndex != null && locIndex > 0)
     {
        locFilter = locList.options[locIndex].text
        locFilter = 'CompanyName = \''+locFilter+'\''
     }   
    }
	WebDisplay_DataSearch('Search_Item.xsl','Divider_SearchDetails',2,'txtsearch',locFilter,GlobalMemory_Search,Tree_RowPerPage('Tree_ecat'),1,'navsearch',null,'',0)
	ProgressImageDisplay(true)
	setTimeout("TimerSearch2()",100)	
}
function TimerSearch2()
{
    var locObj = document.getElementById('txtsearch')
    locHTML = LocalInfo4_QuickMenu(1,'5','VOLTEX',2,'txtsearch')  
    var locObjDiv = document.getElementById('Divider_SearchAuction')
    if (locObjDiv != null && locHTML.length>0)
    {
       locObjDiv.innerHTML = locHTML
       locObjDiv.style.visibility = 'visible'
       locObjDiv.style.position = 'static'
    }
    ProgressImageDisplay(false)

}
function LocalLoadSupplier()
{
   var xmlString = DataFnc_LoadSQL('COMPANY',100,'',16,'SELECT ID,NAME,ParentID FROM dbo.Company WHERE (ParentID is NULL AND DATABASEID = \'EC-ZA-0-50\')',1)
   xmlString = DataFnc_FieldSort(xmlString,'name')
   Utility_ListFillXML('supplist',xmlString)
   locList = document.getElementById('supplist')
   if (locList != null)
   {
       var elOptNew = document.createElement('option')
       elOptNew.text = 'All Suppliers'
       elOptNew.value = ''
       locList.options.add(elOptNew,0)
       locList.selectedIndex = 0
   }   
}
function LocalUserDetails()
{
   locDiv = document.getElementById('div_userdetails')
   if (locDiv != null)
   {
       if (GlobalUserID.length > 0 && GlobalUserID != '00000000-0000-0000-0000-000000000000')
       {
	      locUsername = UtilityXML_ExtractValue(GlobalUserXML,'contactperson')
		  locText1 = UtilityXML_ExtractValue(GlobalUserXML,'infotext1')
		  locText2 = UtilityXML_ExtractValue(GlobalUserXML,'infotext2')		  
		  locText = "Welcome to Voltex online: <span id=\"sp10\" onmouseover=\"Utility_ChangePointer('hand',this)\" onclick=\"LocalUserWindow()\"><u>"+locUsername+"</u></span>, &nbsp&nbsp;&nbsp;&nbsp; <span onmouseover=\"Utility_ChangePointer('hand',this)\" onclick=\"Utility_URLRedirect('NewsType_Main.html','newstitle="+locText1+"')\" id=\"sp4\"><u>"+locText1+"</u></span>,&nbsp&nbsp;&nbsp;&nbsp;"+locText2
	   }
	   else
	   {
		  locText = "Select our news section: <span id=\"sp1\" onmouseover=\"Utility_ChangePointer('hand',this)\" onclick=\"Utility_URLRedirect('NewsType_Main.html','newstitle=Engineer')\"><u>Engineer,</u></span>&nbsp&nbsp;&nbsp;&nbsp;<u><span onmouseover=\"Utility_ChangePointer('hand', this)\" onclick=\"Utility_URLRedirect('NewsType_Main.html','newstitle=Mining')\">Mining,</span></u>&nbsp;&nbsp;&nbsp;&nbsp;<u><span onmouseover=\"Utility_ChangePointer('hand', this)\" onclick=\"Utility_URLRedirect('NewsType_Main.html','newstitle=Contractor')\">Contractor,</span></u>"
		  locText = locText + "&nbsp&nbsp;&nbsp;&nbsp; <span id=\"sp4\" onmouseover=\"Utility_ChangePointer('hand',this)\" onclick=\"Utility_URLRedirect('NewsType_Main.html','newstitle=General')\"><u>others</u></span>"
	   }
	   locDiv.innerHTML = locText
       Utility_DividerAll(1)	   
	   Utility_Divider(1,'Divider_RegisterWindow')			       
   }
}
function LocalLoginStart()
{
    LocalUserDetails();
    Utility_Divider(2,'Divider_LoginWindow')
    ProgressImageDisplay(true)   
    setTimeout("TimerUserWindow()",100)	
}
function TimerUserWindow()
{
	LocalUserWindow()
	ProgressImageDisplay(false)
}
function LocalUserWindow()
{
    var ArrItemID = new Array()
    var ArrItemCnt = new Array()
   //-------------- Open ------------------
	WebDisplay_PopupWindow(1,null,'Divider_UserInfo','Span_UserContent','',240,225)
	//----------- Adjust Values ---------
	var locObj = document.getElementById('WelcomeUser_Entry')
	if (locObj != null)
	{
	   var locName = UtilityXML_ExtractValue(GlobalUserXML,'contactperson')
	   var locUserID = UtilityXML_ExtractValue(GlobalUserXML,'id')
       var locUserTPS = UtilityXML_ExtractValue(GlobalUserXML,'tpsid')
       var locUserData = UtilityXML_ExtractValue(GlobalUserXML,'databaseid')
	   var locPeriod = UtilityDate_PeriodofDay()
	   var locTxt = 'Good '+locPeriod+' '+locName
	   Utility_ObjectWrite(locObj,locTxt)
	   //------------ Read from database ---------
       var xmlString_com = ''
       var locFilter = 'LINKDATABASE=\''+locUserData+'\' AND LINKTPS = \''+locUserTPS+'\''
       var locStatement = 'SELECT ID,DATABASEID,INFOTEXT1,CREATIONDATE,LINKDATABASE,LINKTPS,INFOTEXT6 FROM dbo.Company WHERE (DATABASEID = \'Quote\' AND '+locFilter+') ORDER BY CREATIONDATE DESC'
       xmlString_com = DataFnc_LoadSQL('COMPANY',100,'',16,locStatement) 
       var xmlString_item = ''
       var locStatement = 'SELECT ID,DATABASEID,NAME,CODE,INFOAMOUNT10 FROM dbo.Product WHERE (DATABASEID = \'Quote\' AND PARENTID=\''+locUserID+'\')'
       xmlString_item = DataFnc_LoadSQL('PRODUCT',100,'',16,locStatement) 
       //------------ Write to Screen -----------
       var locObj1 = document.getElementById('WelcomeUser_QuoteCreated')
       var locObj2 = document.getElementById('WelcomeUser_QuoteSent')
       var locObj3 = document.getElementById('WelcomeUser_QuoteTotProducts')
       var locObj4 = document.getElementById('WelcomeUser_QuoteTotQty')       
       var locObj5 = document.getElementById('WelcomeUser_QuoteLastNo')              
       var locValue1 = DataFnc_Locate(4,0,null,null,xmlString_com)
       if (locValue1 == '') {locValue1 = '0'}
	   Utility_ObjectWrite(locObj1,locValue1)       
	   var locValue2 = DataFnc_Locate(4,0,'infotext6','Sent',xmlString_com)
	   if (locValue2 == '') {locValue2 = '0'}
	   Utility_ObjectWrite(locObj2,locValue2)       	   
	   var locResponse = DataFnc_Locate(3,0,0,null,xmlString_com)
	   var locValue5 = UtilityXML_ExtractValue(locResponse,'infotext1') 
	   Utility_ObjectWrite(locObj5,locValue5)
	   //------------- Browse items ------------
	   var xmlTop5 = ''
	   var pos1 = 0
	   var locTotQty = 0
	   var locTotItm = 0
	   while (pos1 != -1)
	   {
		  var pos2 = xmlString_item.indexOf('<response>',pos1)
		  var pos3 = xmlString_item.indexOf('</response>',pos1)
		  if (pos2 == -1 || pos3 == -1) {break}
		  pos1 = pos3+10
		  var locResponse = xmlString_item.substring(pos2,pos3+11)
		  var locQty1 = UtilityXML_ExtractValue(locResponse,'infoamount10') 
		  var locItemID = UtilityXML_ExtractValue(locResponse,'id') 
		  locTotQty  = Utility_RoundFloat(locQty1,0)+locTotQty
		  locTotItm  = Utility_RoundFloat(locTotItm,0)+1
          var locTmp = DataFnc_Locate(1,0,locItemID,'id',xmlTop5)
          if (locTmp.length == 0)
          {
          	 xmlTop5 = xmlTop5+locResponse
          }
          else
    	  {
    	  	 var locQty2 = UtilityXML_ExtractValue(locTmp,'infoamount10')
    	  	 var locQty = Utility_RoundFloat(locQty1,0)+Utility_RoundFloat(locQty2,0)
    	  	 UtilityXML_ReplaceValue(locTmp,'<infoamount10>','</infoamount10>',locQty)
    	     xmlTop5 = DataFncUpdateXML(xmlTop5,locTmp,true)	    	  
    	  }
       }
       Utility_ObjectWrite(locObj3,locTotItm)	   
       Utility_ObjectWrite(locObj4,locTotQty)	   
       xmlTop5 = DataFnc_FieldSort(xmlTop5,'infoamount10','DESC')
       if (xmlTop5.length>0 && xmlTop5 != '<ajaxresponse></ajaxresponse>')
       {
	       var locHTML = ''
	       for (var i=0; i<5; i++)
	       {
	       	  var locXML = DataFnc_Locate(3,0,i,null,xmlTop5)
	       	  if (locXML.length > 0)
	       	  {
	       	     locHTML = locHTML+UtilityXML_ExtractValue(locXML,'code')+','+UtilityXML_ExtractValue(locXML,'name')+'&nbsp;&nbsp;('+UtilityXML_ExtractValue(locXML,'infoamount10')+')<br/>'
	       	  }
	       }
	       var locObjDiv = document.getElementById('Divider_UserTop5')
	       if (locObjDiv != null)
	       {
	       	  locObjDiv.innerHTML = locHTML
       	      locObjDiv.style.visibility = 'visible'   
              locObjDiv.style.position = 'static'
	       }
       }
       //------------ Product Specials ------------     
       var noset = Math.floor(Math.random()*11)
       if (noset > 9) {noset = 9}   
       var locTxt = myArrayCategory[noset]
       
       locHTML = LocalInfo4_QuickMenu(2,'5','VOLTEX',1,locTxt)  
       var locObjDiv = document.getElementById('Divider_UserAuction')
       if (locObjDiv != null && locHTML.length>0)
       {
       	  locObjDiv.innerHTML = locHTML
       	  locObjDiv.style.visibility = 'visible'   
          locObjDiv.style.position = 'static'
       }
   }
}
function LocalURLRedirect(pPage)
{
   var locURL = Utility_URL()
   var locParam = ''
   if (GlobalUserID.length > 0 && GlobalUserID != '00000000-0000-0000-0000-000000000000')
   {
      locParam = '?UserID='+GlobalUserID
   }
   if (locParam != null && locParam.length > 0)
   {
      window.location.href = locURL+'/'+pPage+locParam
   }
   else
   {
      window.location.href = locURL+'/'+pPage
   }
}
function LocalBasketUpdate()
{
   var locCntItem = BasketTotal(1,'QuoteDebtor')
   var locCntQty  = BasketTotal(2,'QuoteDebtor')
   var locDiv1 = document.getElementById('quote_totalitem')
   var locDiv2 = document.getElementById('quote_totalqty')   
   if (locDiv1 != null && locDiv2 != null)
   {
      if (locCntItem == 0)
	  {
	     locDiv1.innerHTML = ' - Nb. of Items:<font style="font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000080">'+locCntItem+'</font>'
	  }
	  else
	  {
	     locDiv1.innerHTML = ' - Nb. of Items:<font style="font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#C00000">'+locCntItem+'</font>'	  
	  }
      if (locCntQty == 0)
	  {
	     locDiv2.innerHTML = '- Total Quantity:<font style="font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000080">'+locCntQty+'</font>'
	  }
	  else
	  {
	     locDiv2.innerHTML = '- Total Quantity:<font style="font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#C00000">'+locCntQty+'</font>'	  
	  }
   } 
}
function LocalLogin()
{
   var locUserID = document.getElementById('LocalVariable_(UserID)')
   if (GlobalUserID.length > 0 && locUserID != null)
   {
      locUserID.value = GlobalUserID
   }
}
function LocalAuction()
{
  if (GlobalUserID.length == 0)  
  {
     WebDisplay_UserLogin('User_LoginAuction.xsl') 
     return
  }
  var locData = document.getElementById('MainVariable_(DatabaseName)')
  var locDatabase = ''
  if (locData != null) { locDatabase = locData.value } 
  w=800 
  h=600 
  if (window.screen) { 
     w = window.screen.availWidth-10; 
     h = window.screen.availHeight-10; 
   } 
  window.open('index_Voltexauction.html?UserDatabase='+locDatabase+'&UserID='+GlobalUserID,'Auction','width='+w+',height='+h+',top=0,left=0,resizable=yes,scrollbars=yes')
}
function LocalCatalogue(pMode,pText)
{
	Utility_Divider(2,'Divider_UserInfo')
	Utility_Divider(2,'Divider_SectionSpecial')
	LocalCatalogueDisplay(2)
	var locText = pText
	if (pMode == 2)
	{
	   var locObjSpan = document.getElementById(pText)
	   if (locObjSpan != null) {locText = locObjSpan.innerHTML}
	}
	var locObjTree = document.getElementById('Tree_ecat')
	if (locObjTree != null)
	{
	   var locTreeParam = Utility_TreeParam(0,locObjTree)
	   var locTreeParent = UtilityText_ExtractText(locTreeParam,'TreeParentName(',')') 
	   if (locTreeParent.length == 0)
	   {
	   	  locTreeParam = locTreeParam+'TreeParentName('+locText+')'
	   }
       else
       {
       	  locTreeParam = UtilityText_Replace(locTreeParam,'TreeParentName('+locTreeParent+')','TreeParentName('+locText+')')
       }
       locTreeParam = UtilityText_Replace(locTreeParam,'INIT[0]','INIT[1]')
	   locTreeParam = Utility_TextReplace(locTreeParam,'TreeParentName()','')       
 	   Utility_TreeParam(1,locObjTree,locTreeParam)
 	   Utility_Divider(2,'Divider_CatalogueSection')
 	   WebDisplay_TreeInit('Tree_ecat',1)
 	   javascript:scroll(0,0)
 	   Utility_Divider(2,'otherPages',1)
 	   Utility_Divider(2,'Divider_HomePopup',1)
 	   //----------- Advert ----------
 	   Utility_Divider(2,'Divider_Advert',1)
 	   Utility_Divider(1,'Divider_Advert_'+locText,1)
 	   Utility_DividerAll(2)
	}
}
function LocalTreeView(pMode)
{
	LocalCatalogueDisplay(2)
    Utility_Divider(2,'otherPages',1)
    //----------- Advert ----------
    Utility_Divider(2,'Divider_Advert',1)
    Utility_DividerAll(2)
	Tree_ParamSet('Tree_ecat','INIT[0]','INIT[1]')		
	if (pMode == 1)
	{
       WebTree_Table(100,'Tree_ecat','3');
       WebDisplay_TreeInit('Tree_ecat',1)		
	}
    else
	{
	   WebTree_Table(100,'Tree_ecat','1[2]');
	   WebDisplay_TreeInit('Tree_ecat',1)
	}
}
function LocalCatalogueDisplay(pMode)
{
	var locObj1 = document.getElementById('TD_Cat1')
	var locObj2 = document.getElementById('TD_Cat2')	
	if (locObj1 != null && locObj2 != null)
	{
		if (pMode == 1)
		{
		   locObj1.width = '1%'
		   locObj2.width = '98%'
		   Utility_Divider(2,'Tree_ecat')
		   localMenuOver = 1
		}
	    else
		{
		   locObj1.width = '30%'
		   locObj2.width = '69%'
		   Utility_Divider(1,'Tree_ecat')
		   Utility_Divider(2,'Divider_QuoteDebtor_Header')
		   Utility_Divider(2,'Divider_QuoteDebtor_Details')
		   Utility_Divider(2,'Divider_CompanyHeader')
		   Utility_Divider(2,'Divider_CompanyDetails')
		   Utility_Divider(2,'Divider_SearchDetails')
		   Utility_Divider(2,'Divider_ProductWindow')
		   Utility_Divider(2,'Divider_ProductDetails')
		   localMenuOver = 0
		}
    }
}
function LocalDivider_CatalogueSection(pMode,pImageID,pObjectID,pTitle)
{
	//--------- Test if we must display summary ----------
	if (localMenuOver==0) {return}
	var locObj = document.getElementById('Divider_SearchDetails')
	if (locObj.style.visibility != 'hidden' && locObj.innerHTML.length>0) {return}
	var locObj = document.getElementById('Divider_QuoteDebtor_Header')
	if (locObj.style.visibility != 'hidden' && locObj.innerHTML.length>0) {return}
	var locObj = document.getElementById('Divider_QuoteDebtor_Details')
	if (locObj.style.visibility != 'hidden'  && locObj.innerHTML.length>0) {return}
	if (pMode == 1)
	{
	   var locObjImg = document.getElementById(pImageID)
	   var locObjImgDiv = document.getElementById(pObjectID)
	   var _x = Utility_getXpos(locObjImg)+locObjImg.clientWidth
	   var _y = Utility_getYpos(locObjImg)+locObjImg.clientHeight-20
	   WebDisplay_PopupWindow(1,locObjImg,'Divider_CatalogueSection','Span_PopupContent',locObjImgDiv.innerHTML,_x,_y)
	   var locObjSpan = document.getElementById('Span_SectionTitle')
	   Utility_ObjectWrite(locObjSpan,pTitle)
    }  
    else
	{
	   //Utility_Divider(2,'Divider_CatalogueSection')
	}
}
function LocalBranch()
{
   LocalCatalogueDisplay(1)
   WebDisplay_CompanyList('EC-ZA-0-100-Voltex Branches','Gauteng East')
}  
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function buttonbardata0()
{
    /*---------------------------------------------
    Orientation and Item Widths
    ---------------------------------------------*/
	this.is_horizontal = true
	this.item_width = 120
    /*---------------------------------------------
    Container Settings
    ---------------------------------------------*/
	this.container_border_width = "0px"
	this.container_border_style = "none"
	this.container_styles = "border-color:#000000;"
    /*---------------------------------------------
    Item Settings
    ---------------------------------------------*/
	this.item_padding = "1px,0px,0px,0px"
	this.item_styles =            "text-align:center;				\
                                       text-decoration:none;				\
                                       height:17;					\
                                       font-weight:normal;				\
                                       font-family:Arial;				\
                                       font-size:12px;					\
                                       background-image:url(qmimages/sample1_default.gif);\
                                       color:#FFFFFF;					\
                                       border-style:none;				\
                                       border-width:0px;				"
	this.item_hover_styles =      "text-align:center;				\
                                       text-decoration:none;				\
                                       font-weight:normal;				\
                                       font-family:Arial;				\
                                       font-size:12px;					\
                                       background-image:url(qmimages/sample1_roll.gif); 	\
                                       color:#FFFFFF;					\
                                       border-style:none;				\
                                       border-width:0px;				"
	//To use the active state remove the comment tags (/* && */)

	/*

	this.item_active_styles =     "text-align:center;				\
                                       text-decoration:none;				\
                                       font-weight:normal;				\
                                       font-family:Arial;				\
                                       font-size:12px;					\
                                       background-color:#eeeeee;			\
                                       color:#FFFFFF;					\
                                       border-style:none;				\
                                       border-width:0px;				"

	*/

}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
list7 = true
function vscroll_data0()
{

	/*Note:  This implementation uses a gradient div to achieve the fade effect.  This div will cover
                 the up down button while in design view.  To manipulate the effect in design view use the
                 click and drag the message itself.*/

	this.enable_visual_design_mode = false;


 	this.container_width = 240
	this.container_height = 300
	this.top_pause_offset = 10

   

    /*---------------------------------------------
    Timing and Animation Speed
    ---------------------------------------------*/


	this.initial_scroll_delay = 0			//measured in seconds

	this.animation_delay = 40			//measured in milliseconds (1/1000)
	this.animation_jump = 2				//measured in pixels, must be > 1

	this.animation_delay_mac = 50			//measured in milliseconds (1/1000)
	this.animation_jump_mac = 8			//measured in pixels, must be > 1

  

    /*---------------------------------------------
    Item Styles and Padding
    ---------------------------------------------*/

	/* Note: this.Item_styles apply to all standard content in the scroll, while this.item_link_styles apply to content
                 within hyperlink tags only.  */


	this.container_styles = "";
	this.item_styles = "padding-left:10px;color:#333333; font-weight:bold; text-decoration:none; font-family:Arial; font-size:13px; border-style:none;border-width:0px;";
	this.item_link_styles = "color:#333333; font-weight:normal; text-decoration:none; font-family:Arial; font-size:13px; border-style:none;border-width:0px;";
	this.item_link_hover_styles = "color:#000000; font-weight:normal; text-decoration:none;";

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_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 MM_swapImgRestore() { //v3.0
  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 MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
