//Copyright(C)2002-2009 Pluginlab Limited. All rights reserved.
//http://www.pluginlab.com
//ProductID:PLTVC
//Registered to:mtodd
var HYeMCYC={dummy:0,
VERSION:'2.1.4.1',
MENU_NAME:'PLTVC menu',
LAYER:false,
X:0,
Y:0,
VALIGN:0,
FLOAT:false,
WIDTH:20,
TV_PADDING:2,
NODE_PADDING:0,
BG:'',
SHOW_TIPS:false,
ANIMATION:1,
SPEED:50,
EXPCOL_ALL:false,
EXPCOL_CLASS:'TV',
EXPAND_ALL_ONLOAD:false,
SEO_LINKS:0,
TRANSFORM_PATHS:true,
LINES:0,
EXPAND_IMGr:'*../../menu/plus_br.gif',
EXPAND_IMGL:'*../../menu/plus_tr.gif',
EXPAND_IMGT:'*../../menu/plus_tbr.gif',
COLLAPSE_IMGr:'*../../menu/minus_br.gif',
COLLAPSE_IMGL:'*../../menu/minus_tr.gif',
COLLAPSE_IMGT:'*../../menu/minus_tbr.gif',
LINES_IMGr:'*../../menu/leaf_br.gif',
LINES_IMGI:'*../../menu/leaf_tb.gif',
LINES_IMGL:'*../../menu/leaf_tr.gif',
LINES_IMGT:'*../../menu/leaf_tbr.gif',
SPACE_IMG:'*../../menu/space.gif',
DEFAULT_CLASS:'TV',
PREVIEW_BACKGROUND_COLOR:'#ffffff',
STREAM:[0,17,0,'TV',"home","",'*../../index.php','','','','',1,'TV',"2011","",'','','','','',2,'TV',"2010","",'','','','','',3,'TV',"2009","",'','','','','',4,'TV',"2008","",'','','','','',5,'TV',"2007","",'','','','','',6,'TV',"2006","",'','','','','',7,'TV',"2005","",'','','','','',0,'TV',"","",'','','*../../images/dots.gif','*../../images/spacer3.gif','',0,'TV',"contact&nbsp;us","",'*../../contact.php','','','','',0,'TV',"concept&nbsp;cars","",'*../../concept/indexConcept.php','','','','',0,'TV',"sports&nbsp;cars","",'*../../sports/indexSport.php','','','','',0,'TV',"motorcycles","",'*../../bike/indexBike.php','','','','',0,'TV',"","",'','','*../../images/dots.gif','*../../images/spacer3.gif','',8,'TV',"government&nbsp;links","",'','','','','',0,'TV',"","",'','','*../../images/dots.gif','*../../images/spacer3.gif','',0,'TV',"advertise&nbsp;with&nbsp;us","",'*../../advertise.php','','','','',1,11,0,'TV',"february","",'*../../11/feb/index_feb11.php','','','','',0,'TV',"march","",'*../../11/mar/index_mar11.php','','','','',0,'TV',"april","",'*../../11/april/index_april11.php','','','','',0,'TV',"may","",'*../../11/may/index_may11.php','','','','',0,'TV',"june","",'*../../11/june/index_june11.php','','','','',0,'TV',"july","",'*../../11/july/index_july11.php','','','','',0,'TV',"august","",'*../../11/aug/index_aug11.php','','','','',0,'TV',"september","",'*../../11/sept/index_sept11.php','','','','',0,'TV',"october","",'*../../11/oct/index_oct11.php','','','','',0,'TV',"november","",'*../../11/nov/index_nov11.php','','','','',0,'TV',"december","",'*../../11/dec/index_dec11.php','','','','',2,11,0,'TV',"february","",'*../../10/feb/index_feb10.php','','','','',0,'TV',"march","",'*../../10/mar/index_mar10.php','','','','',0,'TV',"april","",'*../../10/april/index_april10.php','','','','',0,'TV',"may","",'*../../10/may/index_may10.php','','','','',0,'TV',"june","",'*../../10/june/index_june10.php','','','','',0,'TV',"july","",'*../../10/july/index_july10.php','','','','',0,'TV',"august","",'*../../10/aug/index_aug10.php','','','','',0,'TV',"september","",'*../../10/sept/index_sept10.php','','','','',0,'TV',"october","",'*../../10/oct/index_oct10.php','','','','',0,'TV',"november","",'*../../10/nov/index_nov10.php','','','','',0,'TV',"december","",'*../../10/dec/index_dec10.php','','','','',3,11,0,'TV',"february","",'*../../09/feb/index_feb09.php','','','','',0,'TV',"march","",'*../../09/mar/index_mar09.php','','','','',0,'TV',"april","",'*../../09/april/index_april09.php','','','','',0,'TV',"may","",'*../../09/may/index_may09.php','','','','',0,'TV',"june","",'*../../09/june/index_june09.php','','','','',0,'TV',"july","",'*../../09/july/index_july09.php','','','','',0,'TV',"august","",'*../../09/aug/index_aug09.php','','','','',0,'TV',"september","",'*../../09/sept/index_sept09.php','','','','',0,'TV',"october","",'*../../09/oct/index_oct09.php','','','','',0,'TV',"november","",'*../../09/nov/index_nov09.php','','','','',0,'TV',"december","",'*../../09/dec/index_dec09.php','','','','',4,11,0,'TV',"january","",'*../../07/index.php#dec','','','','',0,'TV',"february","",'*../../08/feb/index.php','','','','',0,'TV',"march/april","",'*../../08/april/index.php','','','','',0,'TV',"may","",'*../../08/may/index.php','','','','',0,'TV',"june","",'*../../08/june/index.php','','','','',0,'TV',"july","",'*../../08/july/index.php','','','','',0,'TV',"august","",'*../../08/aug/index.php','','','','',0,'TV',"september","",'*../../08/sept/index.php','','','','',0,'TV',"october","",'*../../08/oct/index_oct08.php','','','','',0,'TV',"november","",'*../../08/nov/index_nov08.php','','','','',0,'TV',"dec&nbsp;08&nbsp;-&nbsp;jan&nbsp;09","",'*../../08/dec/index_dec08.php','','','','',5,12,0,'TV',"january","",'*../../06/index.php#dec','','','','',0,'TV',"february","",'*../../07/index.php#feb','','','','',0,'TV',"march","",'*../../07/index.php#march','','','','',0,'TV',"april","",'*../../07/index.php#april','','','','',0,'TV',"may","",'*../../07/index.php#may','','','','',0,'TV',"june","",'*../../07/index.php#june','','','','',0,'TV',"july","",'*../../07/index.php#july','','','','',0,'TV',"august","",'*../../07/index.php#aug','','','','',0,'TV',"september","",'*../../07/index.php#sept','','','','',0,'TV',"october","",'*../../07/index.php#oct','','','','',0,'TV',"november","",'*../../07/index.php#nov','','','','',0,'TV',"december","",'*../../07/index.php#dec','','','','',6,12,0,'TV',"january","",'*../../05/index.php#dec','','','','',0,'TV',"february","",'*../../06/index.php#feb','','','','',0,'TV',"march","",'*../../06/index.php#march','','','','',0,'TV',"april","",'*../../06/index.php#april','','','','',0,'TV',"may","",'*../../06/index.php#may','','','','',0,'TV',"june","",'*../../06/index.php#june','','','','',0,'TV',"july","",'*../../06/index.php#july','','','','',0,'TV',"august","",'*../../06/index.php#aug','','','','',0,'TV',"september","",'*../../06/index.php#sept','','','','',0,'TV',"october","",'*../../06/index.php#oct','','','','',0,'TV',"november","",'*../../06/index.php#nov','','','','',0,'TV',"december","",'*../../06/index.php#dec','','','','',7,12,0,'TV',"january","",'*../../05/index.php#jan','','','','',0,'TV',"february","",'*../../05/index.php#feb','','','','',0,'TV',"march","",'*../../05/index.php#march','','','','',0,'TV',"april","",'*../../05/index.php#april','','','','',0,'TV',"may","",'*../../06/index.php#may','','','','',0,'TV',"june","",'*../../05/index.php#june','','','','',0,'TV',"july","",'*../../05/index.php#july','','','','',0,'TV',"august","",'*../../05/index.php#aug','','','','',0,'TV',"september","",'*../../05/index.php#sept','','','','',0,'TV',"october","",'*../../05/index.php#oct','','','','',0,'TV',"november","",'*../../05/index.php#nov','','','','',0,'TV',"december","",'*../../05/index.php#dec','','','','',8,6,0,'TV',"accc","",'http://www.accc.gov.au/','_blank','','','',0,'TV',"aip&nbsp;(aus&nbsp;inst&nbsp;of&nbsp;petroleum)","",'http://www.aip.com.au','_blank','','','',0,'TV',"nrma","",'http://www.mynrma.com.au/','_blank','','','',9,'TV',"oft&nbsp;nsw","",'http://www.fairtrading.nsw.gov.au/','_blank','','','',10,'TV',"rta","",'http://www.rta.nsw.gov.au/','','','','',0,'TV',"scamwatch","",'http://www.scamwatch.gov.au/','_blank','','','',9,2,0,'TV',"media&nbsp;releases","",'http://www.fairtrading.nsw.gov.au/About_us/News_and_events/Media_releases.html','_blank','','','',0,'TV',"whats&nbsp;new","",'http://www.fairtrading.nsw.gov.au/About_us/News_and_events/Whats_new.html','_blank','','','',10,2,0,'TV',"vehicle&nbsp;standards&nbsp;info&nbsp;sheets","",'http://www.rta.nsw.gov.au/registration/downloads/vsi/vsi_dl1.html','_blank','','','',0,'TV',"vehicle&nbsp;standards&nbsp;bulletins","",'http://www.infrastructure.gov.au/roads/vehicle_regulation/bulletin/index.aspx','_blank','','',''],
setPathAdjustment:function(ID){var sl=''
var sc=document.getElementsByTagName('script')
for(var i=0;i<sc.length;i++){if(sc[i].innerHTML.search(ID)>-1)sl=sc[i].src}this.SCRIPT_LOCATION=sl.substr(0, sl.lastIndexOf('/')+1)},
adjustPath:function(path){if(path.charAt(0)!='*')return path
return this.SCRIPT_LOCATION+path.substr(1)},
linkScripts:function(aNewScripts){var scripts=document.getElementsByTagName('script')
for(var i=0;i<aNewScripts.length;i++){var bScriptLinked=false
for(var j=0;j<scripts.length;j++){if(aNewScripts[i]==scripts[j].src){bScriptLinked=true;break}}if(!bScriptLinked)document.write("<script src='"+this.adjustPath(aNewScripts[i])+"' type='text/javascript'><\/script>")}},
isCurrent:function(r){if(!r)return false
var l=location.href
if(r.search('//')==-1){if(r.charAt(0)=='/')
r=l.replace(/(.*\/\/[^\/]*).*/,'$1')+r
else
r=l.replace(/[^\/]*$/,'')+r}do{var r1=r
r=r1.replace(/[^\/]*\/\.\.\//,'')}while(r!=r1)
return r==l},
browser:function(){var ua=navigator.userAgent
this.mac=ua.indexOf('Mac')>=0
this.saf=this.mac&&ua.toLowerCase().indexOf('safari')>=0
this.op=ua.toLowerCase().indexOf('opera')>=0
this.ie=document.all&&!this.op
this.ie5=this.ie&&ua.indexOf('msie 5')>0
this.ieMode=this.ie&&document.compatMode=="CSS1Compat"
this.ieCanvas=this.ieMode?document.documentElement:document.body
return this},
addLoadEvent:function(f){var oldf=window.onload
if(typeof oldf!='function'){window.onload=f}else{window.onload=function(){try{oldf()}catch(e){}f()}}},
init:function(){var m=this
m.br=new m.browser
m.ID=PLTVC_ID
this.setPathAdjustment('PLTVCMenu script ID:'+m.ID+' ')
m.addLoadEvent(m.onload)},
onload:function(){setTimeout('HYeMCYC.start()',0)},
start:function(){var m=this
m.pref='PLTVC'
m.items=new Array
m.wrapper=document.getElementById(m.ID+'Div')
m.menu=document.getElementById(m.ID+'Menu')
m.SPACE_IMG=m.adjustPath(m.SPACE_IMG)
m.preload(m.SPACE_IMG)
m.EXPAND_IMGr=m.adjustPath(m.EXPAND_IMGr)
m.EXPAND_IMGL=m.adjustPath(m.EXPAND_IMGL)
m.EXPAND_IMGT=m.adjustPath(m.EXPAND_IMGT)
m.COLLAPSE_IMGr=m.adjustPath(m.COLLAPSE_IMGr)
m.COLLAPSE_IMGL=m.adjustPath(m.COLLAPSE_IMGL)
m.COLLAPSE_IMGT=m.adjustPath(m.COLLAPSE_IMGT)
m.LINES_IMGr=m.adjustPath(m.LINES_IMGr)
m.LINES_IMGI=m.adjustPath(m.LINES_IMGI)
m.LINES_IMGL=m.adjustPath(m.LINES_IMGL)
m.LINES_IMGT=m.adjustPath(m.LINES_IMGT)
m.preload(m.EXPAND_IMGr)
m.preload(m.EXPAND_IMGL)
m.preload(m.EXPAND_IMGT)
m.preload(m.COLLAPSE_IMGr)
m.preload(m.COLLAPSE_IMGL)
m.preload(m.COLLAPSE_IMGT)
m.preload(m.LINES_IMGr)
m.preload(m.LINES_IMGI)
m.preload(m.LINES_IMGL)
m.preload(m.LINES_IMGT)
var bIsFirst=true
String.prototype.repeat=function(n){var str=''
for(var i=0;i<n;i++)str+=this.toString()
return str};function getImageTag(src, alt, id, extSt){return '<img'+(id?' id="'+id+'"':'')+' src="'+src+'" class="HYeMCYCImg"'+(extSt?' style="'+extSt+'"':'')+' alt="'+alt+'"/>'};function Menu(){var nArgs=arguments.length
this.innerID  =(nArgs>0)? arguments[0]:''
this.parentInd=(nArgs>1)? arguments[1]:-1
this.level    =(nArgs>2)? arguments[2]:0
this.isLast   =(nArgs>3)? arguments[3]:false
this.outerHTML=''};var eCur={ind:-1, isBranch:false};eCur.set=function(ind, menuID){this.isBranch=menuID>0
this.ind=this.isBranch ? menuID:ind};var menus=new Array(new Menu())
var i=0, st=m.STREAM
var stLen=st.length
while(i<stLen){var index=st[i++]
var n=st[i++]
var curLevel=menus[index].level
var strSubmenu='<table'+(curLevel>0?' id="'+menus[index].innerID+'_T'+'"':'')+' border="0" cellpadding="0" cellspacing="0">'
for(var j=0;j<n;j++){var mnID=st[i++]
var nID=m.ID+'_'+index+'_'+j
var item=m.items[nID]=new Object
item.id=nID
item.className='HYeMCYC'+st[i++]
var nodeName=st[i++]
var title=st[i++]
item.href=m.adjustPath(st[i++])
item.target=st[i++]
if(item.target.substr(0,3)=='_PL'){item.func=st[i++]
item.params=st[i++]}item.iconNormalSrc=st[i++]
strSubmenu+='<tr><td class="'+item.className+'Font">'
if(m.isCurrent(item.href)){item.isCur=true
item.className+='_Cur'
item.iconNormalSrc=st[i]
if(eCur.ind<0)eCur.set(index, mnID)
else if(eCur.isBranch&&index>=eCur.ind){var iID=index
while(iID>0){if(iID==eCur.ind){eCur.set(index, mnID);break}iID=menus[iID].parentInd}}}item.iconNormalSrc=m.adjustPath(item.iconNormalSrc)
m.preload(item.iconNormalSrc)
item.iconExpandSrc=m.adjustPath(st[++i])
m.preload(item.iconExpandSrc)
var bIsLast=j==n-1
var strTreeImage=''
if(mnID>0){menus[mnID]=new Menu(nID, index, curLevel+1, bIsLast)
item.expandSrc=bIsFirst ? m.EXPAND_IMGr:(bIsLast ? m.EXPAND_IMGL:m.EXPAND_IMGT)
item.collapseSrc=bIsFirst ? m.COLLAPSE_IMGr:(bIsLast ? m.COLLAPSE_IMGL:m.COLLAPSE_IMGT)
strTreeImage=item.expandSrc}else{strTreeImage=bIsFirst ? m.LINES_IMGr:(bIsLast ? m.LINES_IMGL:m.LINES_IMGT)}bIsFirst=false
var ind=index
var strOffsetImages=''
while(menus[ind].level>0){strOffsetImages=(menus[ind].isLast ? getImageTag(m.SPACE_IMG, 'Space image'):getImageTag(m.LINES_IMGI, 'Line image'))+strOffsetImages
ind=menus[ind].parentInd}strSubmenu+=strOffsetImages
strSubmenu+=getImageTag(strTreeImage, '', nID+'_IMG', 'margin-right:0px')
if(item.iconNormalSrc)strSubmenu+=getImageTag(item.iconNormalSrc, nodeName+' icon', nID+'_ICO')
strSubmenu+='<a id="'+nID+'" href="'+(item.href?item.href:'#')+'" target="'+item.target+'" class="'+item.className+'" title="'+(title?title:'')+'"><span class="HYeMCYCTxt">'+nodeName+'</span></a></td></tr>'
if(mnID>0)strSubmenu+='<tr style="display:none"><td id="'+nID+'_TD'+'"></td></tr>'
i++}menus[index].outerHTML=strSubmenu+'</table>'}m.menu.innerHTML=''
+'<table border="0" cellpadding="2" cellspacing="0"><tr><td>'
+menus[0].outerHTML
+'</td></tr></table>'
var menusLen=menus.length
for(var i=1;i<menusLen;i++){var img=document.getElementById(menus[i].innerID+'_IMG')
if(img)img.onclick=m.imgClick
var td=document.getElementById(menus[i].innerID+'_TD')
if(td)td.innerHTML=menus[i].outerHTML
var item=m.items[menus[i].innerID]
if(item){item.tr=td ? td.parentNode:null
item.img=img
item.ico=document.getElementById(item.id+'_ICO')
item.expand=function(bExp, bAnm){var o=this
if(o.img)o.img.src=bExp ? o.collapseSrc:o.expandSrc
if(o.ico&&o.iconExpandSrc&&!o.isCur)o.ico.src=bExp ? o.iconExpandSrc:o.iconNormalSrc
if(!bAnm&&o.tr)o.tr.style.display=bExp ? '':'none'};}}var anchors=m.menu.getElementsByTagName('A')
var n=anchors.length
for(i=0;i<n;i++){var a=anchors[i]
var item=m.getItem(a.id)
a.onclick=m.click
a.onfocus=function(){this.blur()};var ico=document.getElementById(item.id+'_ICO')
if(ico){ico.onclick=m.click
if(item.href)ico.style.cursor=m.br.ie5 ? 'hand':'pointer'}}var ind=eCur.ind
while(ind>0){var item=m.items[menus[ind].innerID]
if(item)item.isCur=true
ind=menus[ind].parentInd}var tbs=m.menu.getElementsByTagName('TABLE')
for(i=0;i<tbs.length;i++){var item=m.getItem(tbs[i].parentNode.id)
if(item&&item.isCur&&item.expand)item.expand(true)}},
click:function(){var m=HYeMCYC
var o=m.getItem(this.id)
if(!o)return
if(!o.href||o.isCur)m.expandBranch(o)
else if(o.func)eval(o.func+'("PLTVCMenu script ID:"+HYeMCYC.ID,"'+o.href+'",'+o.params+')')
else if(o.target)window.open(o.href,o.target)
else location=o.href
return false},
imgClick:function(){var m=HYeMCYC
m.expandBranch(m.getItem(this.id))},
expandBranch:function(o){var m=this
if(!o||!o.expand||m.bAnim)return
var c=o.tr.style.display=='none'
o.expand(c,!m.br.saf)
if(!m.br.saf){if(c)m.open(o.id);else m.close(o.id)}},
open:function(id){var m=this
m.bAnim=true
var t=document.getElementById(id+'_T')
var td=t.parentNode
td.parentNode.style.display=''
t.style.position='absolute'
t.style.top=m.getTop(td)+'px'
t.style.left=m.getLeft(td)+'px'
t.h=t.offsetHeight
m.branch=t
m.rolldown(0)},
close:function(id){var m=this
m.bAnim=true
var t=document.getElementById(id+'_T')
var td=t.parentNode
t.style.position='absolute'
t.style.top=m.getTop(td)+'px'
t.style.left=m.getLeft(td)+'px'
t.h=t.offsetHeight
m.branch=t
m.rollup(t.offsetHeight)},
rolldown:function(b){var t=this.branch
var p=t.parentNode
if(b>t.h)b=t.h
p.style.height=b+'px'
t.style.clip='rect(auto auto '+b+'px auto)'
if(b<t.h){b+=t.h/2+1
window.setTimeout('HYeMCYC.rolldown('+b+')',10)}else{t.style.position=''
p.style.height=''
this.bAnim=false}},
rollup:function(b){var t=this.branch
var p=t.parentNode
if(b<0)b=0
p.style.height=b+'px'
t.style.clip='rect(auto auto '+b+'px auto)'
if(b>0){b-=t.h/2+1
window.setTimeout('HYeMCYC.rollup('+b+')',10)}else{t.style.position=''
p.parentNode.style.display='none'
this.bAnim=false}},
getItem:function(id){if(!id)return null
var m=this
var item=m.items[id]
if(!item)item=m.items[id.substr(0,id.lastIndexOf('_'))]
return item},
getTop:function(e){var top=0
var abs=false
while(e&&!abs){top+=e.offsetTop
e=e.offsetParent
if(e&&e.style.position=='absolute')abs=true}return top},
getLeft:function(e){var left=0
var abs=false
while(e&&!abs){left+=e.offsetLeft
e=e.offsetParent
if(e&&e.style.position=='absolute')abs=true}return left},
preload:function(img){if(!img)return
if(!this.preloads)this.preloads=new Array
var ind=this.preloads.length
this.preloads[ind]=new Image
this.preloads[ind].src=img},
dummy:null};HYeMCYC.init()

