<%
Dim strParentPages
strParentPages="/cps/rde/dpi/hs.xsl/30_8024_ENA_HTML.htm"
'The delimiter between values in the breadcrumb is different in preview and published versions of the pages.
'The sessionkey determines which state you are in.
If ""<>"" Then 'Preview Mode
Token="&"
Else 'Published
Token=" "
End If
'FUNCTION TO CHECK IF NAV ITEMS IS "ACTIVE" (links to the current page or a parent/ancestor of the current page)
Function isActive(strURL)
'Checks if strURL is anywhere in the strParentPages string.
If InStr(strURL, Token & "pageguid=") > 0 Then
If InStr(strParentPages, Mid(strURL, InStrRev(strURL, Token & "pageguid="), 42)) > 0 Then
isActive = True
Else
isActive = False
End If
Else
isActive = False
End If
End Function
'FUNCTION TO CHECK IF NAV ITEMS IS "CURRENT" (links to the current page)
Function isCurrent(strURL)
'Checks if strURL (path/filename of nav item) is the current page
If InStr(strURL, Token & "pageguid=") > 0 Then
If InStr("/cps/rde/dpi/hs.xsl/30_8024_ENA_HTML.htm", Mid(strURL, instrrev(strURL, Token & "pageguid="), 42)) > 0 Then
isCurrent = True
Else
isCurrent = False
End If
Else
isCurrent = False
End If
End Function
Dim iPrimaryPageID, sHeading
iPrimaryPageID = 5460
sHeading = "Services"
'Function to write out the corresponding document icon for a media element.
Function medElementIcon(filename)
Select Case LCase(Mid(filename, InStrRev(filename, ".") + 1))
Case "pdf"
'medElementIcon = "src=""/images/Base/ico_pdf.gif"" alt=""PDF download"""
medElementIcon = "(PDF,"
Case "doc", "dot"
'medElementIcon = "src=""/images/Base/ico_doc.gif"" alt=""DOC download"""
medElementIcon = "(DOC,"
Case "fla"
'medElementIcon = "src=""/images/Base/ico_fla.gif"" alt=""FLA download"""
medElementIcon = "(FLA,"
Case "gif"
'medElementIcon = "src=""/images/Base/ico_gif.gif"" alt=""GIF download"""
medElementIcon = "(GIF,"
Case "jpg"
'medElementIcon = "src=""/images/Base/ico_jpg.gif"" alt=""JPG download"""
medElementIcon = "(JPG,"
Case "mov"
'medElementIcon = "src=""/images/Base/ico_mov.gif"" alt=""MOV download"""
medElementIcon = "(MOV,"
Case "mpg"
'medElementIcon = "src=""/images/Base/ico_mpg.gif"" alt=""MPG download"""
medElementIcon = "(MPG,"
Case "png"
'medElementIcon = "src=""/images/Base/ico_png.gif"" alt=""PNG download"""
medElementIcon = "(PNG,"
Case "ppt"
'medElementIcon = "src=""/images/Base/ico_ppt.gif"" alt=""PPT download"""
medElementIcon = "(PPT,"
Case "sbl"
'medElementIcon = "src=""/images/Base/ico_sbl.gif"" alt=""SBL download"""
medElementIcon = "(SBL,"
Case "swf"
'medElementIcon = "src=""/images/Base/ico_swf.gif"" alt=""SWF download"""
medElementIcon = "(SWF,"
Case "wmv"
'medElementIcon = "src=""/images/Base/ico_wmv.gif"" alt=""wmv download"""
medElementIcon = "(WMV,"
Case "xls"
'medElementIcon = "src=""/images/Base/ico_xls.gif"" alt=""XLS download"""
medElementIcon = "(XLS,"
Case "zip"
'medElementIcon = "src=""/images/Base/ico_zip.gif"" alt=""ZIP download"""
medElementIcon = "(ZIP,"
Case Else
'medElementIcon = "src=""/images/Base/ico_otherfile.gif"" alt=""File download"""
medElementIcon = "(FILE)"
End Select
End Function
'Sub routine to write out the file size of media element and warning if greater than "iMaxFileSize" kilobytes.
Sub getFileSize(iFileSize)
iMaxFileSize = 1024
If iFileSize > 0 Then
iFileSize = CInt(iFileSize)
Select Case True
Case iFileSize <= iMaxFileSize
Response.Write(iFileSize & " kB)")
Case Else
Response.Write(iFileSize & " kB) Large file warning")
End Select
End If
End Sub
'Sub routine to determine whether an image should be right aligned or not at all depending on its size.
Sub getImageWidth(imageWidth)
If imageWidth > 0 Then
imageWidth = CInt(imageWidth)
Select Case True
Case imageWidth <= 325
Response.Write("image right")
Case Else
Response.Write("image nowrap")
End Select
End If
End Sub
'Function to create a summary from a longer piece of text.
Function getCharacters(str,strlen)
str = Trim(str)
spcloc = InStr(strlen,str," ")
If Len(str) > strlen And spcloc <> 0 Then
getCharacters = Left(str, InStr(strlen,str," ")) & "..."
Else
getCharacters = str
End If
End Function
%>
<%= getMetadata("hdl_page_title") %>
" />
" />
" />
" />
" />
" />
<% If 8024 = iPrimaryPageID Then %>
<%= sHeading %> (You are here)
<% Else %>
<%= sHeading %>
<% End If %>
class="open"<% End If %>>
<% If 130 <> 8024 Then %>
Animal industries services
<% Else %>
Animal industries services (You are here)
<% End If %>
class="open"<% End If %>>
<% If 736 <> 8024 Then %>
Business & trade services
<% Else %>
Business & trade services (You are here)
<% End If %>
class="open"<% End If %>>
<% If 147 <> 8024 Then %>
Fisheries services
<% Else %>
Fisheries services (You are here)
<% End If %>
class="open"<% End If %>>
<% If 117 <> 8024 Then %>
Plant industries services
<% Else %>
Plant industries services (You are here)
<% End If %>
<% If isActive("/cps/rde/dpi/hs.xsl/30_117_ENA_HTML.htm") Then %>
<% End If %>
class="open"<% End If %>>
<% If 2625 <> 8024 Then %>
Bookshop
<% Else %>
Bookshop (You are here)
<% End If %>
class="open"<% End If %>>
<% If 175 <> 8024 Then %>
Conference facilities
<% Else %>
Conference facilities (You are here)
<% End If %>
<% If isActive("/cps/rde/dpi/hs.xsl/30_175_ENA_HTML.htm") Then %>
<% End If %>
class="open"<% End If %>>
<% If 171 <> 8024 Then %>
Email lists
<% Else %>
Email lists (You are here)
<% End If %>
class="open"<% End If %>>
<% If 172 <> 8024 Then %>
Events & sponsorship
<% Else %>
Events & sponsorship (You are here)
<% End If %>
<% If isActive("/cps/rde/dpi/hs.xsl/30_172_ENA_HTML.htm") Then %>
<% If 779 = 8024 Then %>
All events (You are here)
<% Else %>
All events
<% End If %>
<% If 1620 = 8024 Then %>
Submit event (You are here)
<% Else %>
Submit event
<% End If %>
<% If 3283 = 8024 Then %>
Event sponsorship (You are here)
<% Else %>
Event sponsorship
<% End If %>
<% If 1657 = 8024 Then %>
Events calendar feedback (You are here)
<% Else %>
Events calendar feedback
<% End If %>
<% If 785 = 8024 Then %>
Animal industries (You are here)
<% Else %>
Animal industries
<% End If %>
<% If 782 = 8024 Then %>
Biosecurity (You are here)
<% Else %>
Biosecurity
<% End If %>
<% If 786 = 8024 Then %>
Business & trade (You are here)
<% Else %>
Business & trade
<% End If %>
<% If 4865 = 8024 Then %>
Environment (You are here)
<% Else %>
Environment
<% End If %>
<% If 783 = 8024 Then %>
Fisheries (You are here)
<% Else %>
Fisheries
<% End If %>
<% If 784 = 8024 Then %>
Plant industries (You are here)
<% Else %>
Plant industries
<% End If %>
<% If 438 = 8024 Then %>
Event search (You are here)
<% Else %>
Event search
<% End If %>
<% End If %>
class="open"<% End If %>>
<% If 173 <> 8024 Then %>
Library
<% Else %>
Library (You are here)
<% End If %>
<% If isActive("/cps/rde/dpi/hs.xsl/30_173_ENA_HTML.htm") Then %>
<% If 4008 = 8024 Then %>
Contacts & access (You are here)
<% Else %>
Contacts & access
<% End If %>
<% If 4010 = 8024 Then %>
DPI&F staff publications (You are here)
<% Else %>
DPI&F staff publications
<% End If %>
<% If 4011 = 8024 Then %>
Ask an information specialist (You are here)
<% Else %>
Ask an information specialist
<% End If %>
<% If 4012 = 8024 Then %>
Useful agricultural sites (You are here)
<% Else %>
Useful agricultural sites
<% End If %>
<% End If %>
class="open"<% End If %>>
<% If 11231 <> 8024 Then %>
Mobile office itinerary
<% Else %>
Mobile office itinerary (You are here)
<% End If %>
class="open"<% End If %>>
<% If 434 <> 8024 Then %>
News
<% Else %>
News (You are here)
<% End If %>
<% If isActive("/cps/rde/dpi/hs.xsl/30_434_ENA_HTML.htm") Then %>
<% If 756 = 8024 Then %>
Animal industries (You are here)
<% Else %>
Animal industries
<% End If %>
<% If 753 = 8024 Then %>
Biosecurity (You are here)
<% Else %>
Biosecurity
<% End If %>
<% If 757 = 8024 Then %>
Business & trade (You are here)
<% Else %>
Business & trade
<% End If %>
<% If 4859 = 8024 Then %>
Environment (You are here)
<% Else %>
Environment
<% End If %>
<% If 754 = 8024 Then %>
Fisheries (You are here)
<% Else %>
Fisheries
<% End If %>
<% If 11593 = 8024 Then %>
Hendra virus (You are here)
<% Else %>
Hendra virus
<% End If %>
<% If 755 = 8024 Then %>
Plant industries (You are here)
<% Else %>
Plant industries
<% End If %>
<% If 4863 = 8024 Then %>
Research (You are here)
<% Else %>
Research
<% End If %>
<% If 439 = 8024 Then %>
News search (You are here)
<% Else %>
News search
<% End If %>
<% End If %>
class="open"<% End If %>>
<% If 170 <> 8024 Then %>
Newsletters
<% Else %>
Newsletters (You are here)
<% End If %>