<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
			version="2.0"
			>
			<!-- was....
                xmlns:saxon="http://icl.com/saxon"
		version="1.1"
                extension-element-prefixes="saxon">
			........
			-->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        bcsoxon2006.xsl
        Author: Adrian Walmsley based on work by Robert Ward - BCS Oxfordshire
        Edited By: Adrian Walmsley - BCS Oxfordshire
		
		RRevision 2.5 18 June 2003 - Adrian Walmsley
		Updates to reflect new committee, changed links to relative to current page rather than relative to root
		to make testing easier. 
		However this has required special-casing the pages which are not reached by normal navigation:
		error-404, error-401 and thanks.
		Stylesheet changed to use hover on links and default to font face Verdana if available.
		
		
		Revision 2.6 August 2003
		Major revision to break monolithic XML file into subsections using <XInclude> and preprocess with
		xmllint prior to using Saxon 7 to apply the stylesheet 
		Update to use XSLT 2.0 to create separate output documents using xsl:result-document instead of saxon 
		extensions.
		New academic year's programme included.
		Change to use free hit counter from www.digits.com following ending of free service from TheCounter.com
		
		Revision 2.7 2 September 2003
		Amend feedback form to require explicit choice of subject, advertise BCS EGM on front page,
		correct links on Links page.
		
		Revision 2.8 1 October 2003
		Use external CSS stylesheet for font definitions. Remove deprecated BASEFONT tag
		
		Revision 2.9 22 March 2004
		allow extension to be specified for generated pages 
		(paving the way to generate PHP code)
		For PHP pages, this BASE tag was temporarily generated 
		<BASE HREF="http://www.bcsoxon.org"/>	
		which allows the PHP pages to be copied to and executed from the BCS host while
		not breaking internal links on the page
		
		Revision 2.10 6 April 2004
		Seecial case error-403 and error-500
		
		17 January 2005
		Set doctype-system="http://www.w3.org/TR/html4/loose.dtd" to give consistent text size between IE6 and Mozilla
        
		May 2005 - default font changed to Trebuchet MS
		November 2005 - show/hide functionality added (overload of <div> tag)
		June 2006 - added conditional generation of hooks for Google Analytics 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<xsl:variable  name="GBL_xsl_version">
<xsl:text>$Header: bcsoxon2004.xsl 2.8 02/10/2003 Adrian Walmsley $</xsl:text>
</xsl:variable>
<xsl:variable  name="relroot"><xsl:text>./</xsl:text></xsl:variable>
<xsl:variable  name="stylesheet"><xsl:text>bcsoxon.css</xsl:text></xsl:variable>
<xsl:include   href="bcs_globals.xsl"/>
<xsl:include   href="iso_date.xsl"/>

<xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>


<xsl:strip-space elements="*"/>


<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    match <web>                                           -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<xsl:template match="web">
    <xsl:apply-templates/>
</xsl:template>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    match <stylesheet>                                           -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    the body tag is repeated on purpose because of        -->
<!--    a browser bug which ignores the first occurrence      -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->


<xsl:template match="stylesheet">
 <xsl:variable name="stylesheet"        select="concat(@Name, '.css')"/>
 <xsl:result-document href="{$stylesheet}">
 <style type="text/css">
   body{}
   body {
   	background-color: White;
   	scrollbar-base-color: #0099cc;
   	font-size: small;
   	font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif;
   	color: Black;
   }
   table.topmenu { background-color: #0099cc; width: 100%; margin: 0px; padding: 0px; border: 0px; border-collapse: collapse; }
   table.topline { width: 100%; margin: 0px; padding: 0px; border: 0px; border-collapse: collapse; }
   td.news { }
   table.simpletable {width: 100%;}
   td { font-size: small; font-family: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; color: Black; }
   td.alert_title {border-style: solid; border-width: 1px; border-color: #0099cc; background-color: #0099cc;}
   td.alert {border-style: solid; border-width: 1px; border-color: #0099cc;}
   td.st_1st_col{ vertical-align: text-top; text-align: right; background-color: #0099cc; color: White; }
   td.st_2nd_col{ vertical-align: text-top; text-align: left; background-color: #f0eedd; }
   td.st_3rd_col{ vertical-align: bottom; text-align: center; background-color: White; }
   td.navbar {color: Black;  background-color: #f0eedd; }
   td.navspacer {border-left: 1px solid #0099cc;}
   A.navbar:link {color: black; text-decoration: none;}
   A.navbar:visited {color: black; text-decoration: none;}
   A.navbar:active {color: #0099cc; text-decoration: none;}
   A.navbar:hover {background: White; text-decoration: none;color: red;}
   A.titlebar:link {color: White; text-decoration: none;}
   A.titlebar:visited {color: White; text-decoration: none;}
   A.titlebar:active {color: White; text-decoration: none;}
   A.titlebar:hover {color: black; text-decoration: none; background-color: #f0eedd;}
   A.title:link {color: White; text-decoration: none;}
   A.title:visited {color: White; text-decoration: none;}
   A.title:active {color: White; text-decoration: none;}
   A.title:hover {color: #FFB6C1; text-decoration: none;}
   A.moreoverheader:link {color: Black; text-decoration: none;}
   A.moreoverheader:visited {color: Black; text-decoration: none;}
   A.moreoverheader:active {color: Black; text-decoration: none;}
   A.moreoverheader:hover {color: Red; text-decoration: none;}
   A:link {color: #0099cc;}
   A:visited {color: #0099cc;}
   A:active {color: #0099cc;}
   A:hover {color: red;}
   a {text-decoration: none;}
   p {margin-left: 1em;margin-right: 1em;text-align: left;}
   p.smallright {text-align: right; font-size: 90%;}
   .white {color: White;font-size: small;}
   .black {color: Black;}
   .list {color: Black;}
   .red {color: Red;}
   .smallwhite {color: White;font-size: 90%;}
   .small {	font-size: 90%;}
   .rss {font-size: 90%;}
   .rsshead {font-size: 90%;}
   .title {font-size: large;}
   .notetitle {font-size: large; color: #0099cc;  font-weight: bold; }
   .footer {font-size: 90%;color: #0099cc;}
   .bgblue {background: #0099CC;}
   .bcsblue {color: #0099CC;}
   .bcsbeige {color: #f0eedd;}
   .bgbeige {background: #f0eedd;}
   .formBtn	{background:#0099cc; color:#ffffff; }
   .formBtnhov {background:#ffffff; color:#0099cc; }
   .sup {font-size : 80%;	vertical-align : super; }
   h1,h2,h3,h4 {color: #0099CC;}
   h1 {font: bold large;border-top-color: #0099cc;border-top-style: solid;border-top-width: thin;}
   h2 {font: bold 125%;}
   h3 {font: 100%; 	margin: 0px 0px; }
   h4 {font: small;}
   hr {color: #0099cc;  background-color: #0099cc; }
   ol {list-style: lower-roman; color: #0099CC;}
   li {list-style: square; color: #0099CC;}
   img {padding-left: 2px;	padding-right: 2px; }
   .toggled {display:none}
</style>
</xsl:result-document>
</xsl:template>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    match <barepage>                                          -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<!-- ***
     This section defines a bare page without navigation or headers (for inclusion in an iframe)
     *** -->
<xsl:template match="barepage">
 <xsl:variable name="print-file"       select="concat(@Name, '-print.htm')"/>
 <xsl:variable name="name"       select="@Name"/>
 <xsl:variable name="file"        select="concat(@Name, '.htm')"/>

 <xsl:variable name="barepage-title"  select="barepage-title"/>
 <xsl:variable name="keywords"    select="/web/@meta-keywords"/>
 <xsl:variable name="header"      select="/web/@header"/>

 <xsl:result-document href="{$file}">

<xsl:variable name="thispage" select="@Name"/>
<!-- ******** 
     set variable slash to be "./" for all normal pages and "/" for pages which aren't 
	 reached by the normal link mechanism
	 this trick is used to allow the use of relative links for normal pages 
	 whereas links and images on the exception pages have to be relative 
	 to the root of the site.
	 Using relative links wherever possible allows testing the site on a 
	 local filesystem prior to uploading to the ISP
     ******** -->
 <xsl:variable name="special" select="number(contains('error-404 error-401 error-403 error-500 thanks cancel booking',$thispage))"/>
 <xsl:variable name="thisslash" select="substring('./',($special+1))"/>  
 <xsl:variable name="slash" select="substring('./',($special+1))"/>  

  <HTML lang="en">
   <HEAD>
    <TITLE>BCS Oxfordshire Branch : <xsl:value-of select="$barepage-title"/></TITLE>
    <META CONTENT="text/html; charset=windows-1252" HTTP-EQUIV="Content-Type"/>
    <META NAME="KEYWORDS"     CONTENT="{$keywords}"/>
    <META NAME="XML-HEADER"   CONTENT="{$header}"/>
    <META NAME="XSL-HEADER"   CONTENT="{$GBL_xsl_version}"/>
    <META NAME="DESCRIPTION"  CONTENT="{$GBL_description}"/>
    <META NAME="AUTHOR"       CONTENT="{$GBL_author}"/>
    <META NAME="GENERATED"    CONTENT="{$iso_date}"/>

<base target="_blank"/>
</HEAD>
<link rel="STYLESHEET" type="text/css" href="{$thisslash}{$stylesheet}"/>

  
   <script> defaultStatus = "BCS Oxfordshire Branch - Copyright 2006"; </script>
   <script src="{$slash}scripts/bcsoxon.js" language="javascript">
   </script>
   <script src="{$slash}scripts/toggleDiv.js" language="javascript">
   </script>

<!-- body definitions below should be redundant because of the CSS but -->
<!-- body bgcolor repeated here for the benefit of Netscape 4.x users    -->
<!-- scrollbar color repeated here for the benefit of IE6    -->
 <BODY scroll="auto" style="scrollbar-base-color: #0099cc;" bgcolor="#ffffff">

<xsl:apply-templates select="barepage-body"/>
 
   </BODY>
  </HTML>
<!-- ******** 
     End of bare page
     ******** -->

 </xsl:result-document>
 </xsl:template>



<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    match <note>                                          -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<!-- ***
     This section defines a page of the site and all navigation.
     *** -->
	 
	    
<xsl:template match="note">
  <xsl:variable name="name"       select="@Name"/>
 <xsl:variable name="type" select="@type"/>
 <xsl:variable name="file"        select="if (string($type)=string('')) then concat(@Name, '.htm') else concat(@Name, '.', $type)"/>
<xsl:variable name="print-file"        select="if (string($type)=string('')) then concat(@Name, '-print.htm') else concat(@Name, '-print.', $type)"/>
  <xsl:variable name="note-title"  select="note-title"/>
 <xsl:variable name="keywords"    select="/web/@meta-keywords"/>
 <xsl:variable name="header"      select="/web/@header"/>

 <xsl:result-document href="{$file}">

<xsl:variable name="thispage" select="@Name"/>
<!-- ******** 
     set variable slash to be "./" for all normal pages and "/" for pages which aren't 
	 reached by the normal link mechanism
	 this trick is used to allow the use of relative links for normal pages 
	 whereas links and images on the exception pages have to be relative 
	 to the root of the site.
	 Using relative links wherever possible allows testing the site on a 
	 local filesystem prior to uploading to the ISP
     ******** -->

 <xsl:variable name="special" select="number(contains('error-404 error-401 error-403 error-500 thanks cancel booking',$thispage))"/>
 <xsl:variable name="thisslash" select="substring('./',($special+1))"/>  
 <xsl:variable name="slash" select="substring('./',($special+1))"/>  

  <HTML lang="en">
   <HEAD>
    <TITLE>BCS Oxfordshire Branch : <xsl:value-of select="$note-title"/></TITLE>
    <META CONTENT="text/html; charset=windows-1252" HTTP-EQUIV="Content-Type"/>
    <META NAME="KEYWORDS"     CONTENT="{$keywords}"/>
    <META NAME="XML-HEADER"   CONTENT="{$header}"/>
    <META NAME="XSL-HEADER"   CONTENT="{$GBL_xsl_version}"/>
    <META NAME="DESCRIPTION"  CONTENT="{$GBL_description}"/>
    <META NAME="AUTHOR"       CONTENT="{$GBL_author}"/>
    <META NAME="GENERATED"    CONTENT="{$iso_date}"/>
<xsl:choose>
  <xsl:when test="string($type)=string('php')">
<!--
<BASE HREF="http://www.bcsoxon.org"/>	
-->
  </xsl:when>
 <xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
<script language="JavaScript">
if (self.location.hostname == "www.bcsoxon.org" )
document.write('<BASE HREF="http://www.oxon.bcs.org"/>');
</script>
<!--  Google Analytics for Robert Ward  
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
if (self.location.hostname == "www.oxon.bcs.org" )
{ 
_uacct = "UA-376837-1";
urchinTracker();
}
</script>
-->
<!-- end Google Analytics for Robert Ward  -->
    
</HEAD>

<link rel="STYLESHEET" type="text/css" href="{$thisslash}{$stylesheet}"/>
<xsl:choose>
            <xsl:when test="$thispage='index'">
            <link rel="alternate" type="application/rss+xml" title="Future Events" href="{$thisslash}xml/bcsoxonevents.xml" />
			<link rel="alternate" type="application/rss+xml" title="Recent BCS Oxfordshire wiki changes" href="http://bcswiki.walmsleys.com/xml/recentchanges_bcsoxonwiki.xml" />
            </xsl:when>
			<xsl:otherwise>  
			</xsl:otherwise>
	</xsl:choose>
<xsl:choose>
            <xsl:when test="$thispage='program2006-7'">
            <link rel="alternate" type="application/rss+xml" title="Future events" href="{$thisslash}xml/bcsoxonevents.xml" />
			</xsl:when>
			<xsl:otherwise>  
			</xsl:otherwise>
	</xsl:choose>	

   <script> defaultStatus = "BCS Oxfordshire Branch - Copyright 2006"; </script>
   <script src="{$slash}scripts/bcsoxon.js" language="javascript">
   </script>
   <script src="{$slash}scripts/toggleDiv.js" language="javascript">
   </script>

<!-- body definitions below should be redundant because of the CSS but -->
<!-- body bgcolor repeated here for the benefit of Netscape 4.x users    -->
<!-- scrollbar color repeated here for the benefit of IE6    -->
 <BODY scroll="auto" style="scrollbar-base-color: #0099cc;" bgcolor="#ffffff">

<!-- ******** table containing BCS logo and top blue navigation bar ******** -->

<!-- top level table -->

<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
 <tr height="1">
  <td>
   <!-- top logo bar -->
      <table class="topline">
    <tr>
	 <xsl:comment> BETSIEBLOCK 3 </xsl:comment>
     <td align="left" valign="center">
       <!--&nbsp;&nbsp;--><A href="http://www.bcs.org/" target="_new" name="top"><img src="{$slash}images/bcslogo.gif" border="0" alt="BCS home page" title="BCS home page"/></A>
     </td>
	 <xsl:comment> ENDBETSIEBLOCK 3 </xsl:comment>
     <td class="white" width="640" align="right" background="{$slash}images/keyb-head.jpg">
       <span class="title"><b><a class="title" href="{$slash}{$homepage}">Oxfordshire Branch</a></b></span>
       </td>

     <td align="right" class="bgblue">
       &#160;
     </td>
    </tr>
   </table>
  </td>
 </tr>
 <tr height="10">
  <td >

<!-- top menu bar -->
 <xsl:comment> BETSIEBLOCK 2 </xsl:comment>

   <table class="topmenu">
    <tr>
     <td align="left" class="white">
       <b>
          <script>displayDate()</script>
        </b>
       
     </td>
     <td align="right" class="smallwhite">
        <!-- START TOP BLUE BAR NAVIGATION LINKS  -->
           <a href="{$thisslash}contacts.htm" class="titlebar">Contact Us</a>
	       |
		    <a href="{$thisslash}search.htm" class="titlebar">search</a>
	       |
		 <script language="JavaScript">document.write('<a href="http://www.oxon.bcs.org/betsie/betsie.pl/'+location.hostname+location.pathname+'" class="titlebar">text version</a> |')</script>
		 <xsl:choose>
         <xsl:when test="@Printable='true'">
           <a href="{$slash}{$print-file}" class="titlebar" target="_NEW">printable</a>
           |
         </xsl:when>
         </xsl:choose>

<!--  
		   <a href="{$thisslash}privacy.htm" class="titlebar">Privacy</a>
	       |
			<a href="hc/{$thispage}.htm" class="titlebar">High Contrast</a>
           |
-->
            	
		   	<a href="{$slash}{$homepage}" class="titlebar">Branch home page</a>
           |
         	<a href="http://www.bcs.org/" target="_new" class="titlebar">BCS website</a>
	         <!-- END TOP BLUE BAR NAVIGATION LINKS -->
      
      
     </td>
    </tr>
   </table>
    <xsl:comment> ENDBETSIEBLOCK 2 </xsl:comment>
<!-- ******** 
     End of top row menu. 
     ******** -->

  </td>
 </tr>
 <tr>
  <td valign="top">

<!-- ******** 
     Main Cell of Page
     ******** -->
   <table width="100%" height="100%" valign="top">
    <tr  valign="top">
	 <xsl:comment> BETSIEBLOCK 1 </xsl:comment>
     <td width="150" class="navbar">
<!-- menu -->
<!-- ******** 
     Left Navigation Menu - dynamically generated
     ******** -->
          <xsl:for-each select='../../note-group/note'>
           <xsl:if test="count(preceding-sibling::*)=0">
            <BR/>
            <B><xsl:value-of select='../@title'/></B>
            <BR/>
           </xsl:if>
           <xsl:choose>
            <xsl:when test="@Type='invisible'"> <!-- note/Type = 'invisible' used to indicate no menu entry -->
            </xsl:when>
            <xsl:otherwise>                     <!-- note/Type = "anything else" used for navigable menu items -->
           
		   <!-- 
              <xsl:variable name="link" select="concat(@Name, '.htm')"/>&#160;
		  -->
              <xsl:variable name="link" select="if (string(@type)=string('')) then concat(@Name, '.htm') else concat(@Name, '.', @type)"/>&#160;
			  
                <xsl:choose>
                  <xsl:when test="$thispage = @Name">
					 <b><span class="bcsblue"><xsl:value-of select='note-title'/></span></b>
                  </xsl:when>
                  <xsl:otherwise>
                     <A HREF="{$thisslash}{$link}" class="navbar"><xsl:value-of select='note-title'/></A>
                  </xsl:otherwise>
                </xsl:choose>
                
                <BR/>
            </xsl:otherwise>
           </xsl:choose>
          </xsl:for-each>
<!--
        </FONT>
-->
<!-- ******** 
     End of Left Navigation Menu
     ******** -->

<!-- end menu -->

     </td>
	  <xsl:comment> ENDBETSIEBLOCK 1 </xsl:comment>
      <td width="2" class="navspacer">
       &#160;
     </td>


     <td>

<!-- ******** 
     Definition of main body of page
     ******** -->
	 <xsl:choose>
            <xsl:when test="$thispage='branch'">
            </xsl:when>
			<xsl:otherwise>  
			<script language="JavaScript">
if (self.location.hostname == "www.bcsoxon.org" )
document.write('<div align="center" class="bgbeige"><b>Our website has moved to <a href="http://www.oxon.bcs.org">http://www.oxon.bcs.org</a> - please update  your bookmarks</b></div>');
</script>
			</xsl:otherwise>
	</xsl:choose> 
		     
      <!-- BEGIN MAIN BODY TEXT -->
		 <span class="notetitle">
		  <xsl:value-of select="$note-title"/>
		  <hr width="100%" size="1"/>
		 </span>
               <BR/>

<!-- *** The next line inserts the content of the main part of the page -->	  
                <xsl:apply-templates select="note-body"/>

               <BR/>
               <BR/>

<!-- *** Insert common page footer -->
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
      <td align="left">
       <span class="footer">
           Registered Chartered Engineering Institute 1990.<br/>
	   BCS is a member of the Council of the European Professional Informatics Societies. <br/>
	   BCS Is a Registered Charity; No. 292,786 
       </span>
      </td>
      <td align="right">
       <img src="{$slash}images/bcslogo2.gif" alt="BCS Logo" title="BCS Logo"/>
      </td>
     </tr>
    </table>
    
<!-- ******** 
     End of main page area
     ******** -->

<!-- ******** 
     Right Hand Alert Area
     ******** -->

     </td>
     <td width="200">

<!--       <center>
-->         
<!-- ******** 
     Display Alert Frame Contents
     ******** -->

          <xsl:apply-templates select="alert-frame"/>

<!--       </center>
-->
      </td>
     </tr>
    </table>
   </td>
  </tr>
  
  <tr>
   <td>  

<!-- ******** 
     Bottom of page Blue Bar 
     ******** -->


     <TABLE class="topmenu" cellPadding="1" >
      <!-- BEGIN BOTTOM NAVIGATION BAR -->
      <TBODY>
       <TR>
        <TD align="left" width="20%">
         <span class="smallwhite">
          Generated: <xsl:value-of select="$iso_date"/>
         </span>
        </TD>
        <TD align="middle">
          <span class="smallwhite">
            &#169; BCS Oxfordshire Branch &amp; Adrian Walmsley 2006
          </span>
        </TD>
        <TD align="right" width="20%">
         <span class="smallwhite">

           <A href="contacts.htm" class="titlebar">contact us</A>
         </span>
        </TD>
       </TR>
      </TBODY>
      <!-- END BOTTOM NAVIGATION BAR -->
     </TABLE>
     
   </td>
  </tr>
</table>
   </BODY>
  </HTML>
<!-- ******** 
     End of common page
     ******** -->

 </xsl:result-document>
 </xsl:template>
 

<!-- *************************************************** -->
<!-- *** Tag Definition & Overloading                 *** -->
<!-- *************************************************** -->

<!-- *************************************************** -->
<!-- *** Include common definitions                  *** -->
<!-- *************************************************** -->

 <xsl:include  href="bcscommon.xsl"/>

<!-- *************************************************** -->
<!-- *** Overloading specific to normal pages        *** -->
<!-- *************************************************** --> 
 
<xsl:template match="st_row_more">
 <xsl:variable name="link" select="@link"/>
 <TR>
  <td class="st_1st_col" width="150">
    <xsl:value-of select='@type'/>
  </td>
  <td class="st_2nd_col">
     <a href="{$link}" style="text-decoration:'none';">
	 <xsl:apply-templates/>
	 </a>
  </td>
  <td class="st_3rd_col" WIDTH="100">
   <a href="{$link}"><img border="0" src="images/more.gif" alt="More Information" title="More Information"/></a>
  </td>
  
 </TR>
</xsl:template>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    match <note-alert>                                       -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<xsl:template match="note-alert">
<xsl:variable name="href" select="@href"/>
	       <table width="100%" border="0" cellspacing="0">
		<tr >
		  <td class="alert_title">
		    <center><b><span class="white">
<xsl:choose>
  <xsl:when test="string($href)=string('')">
<xsl:value-of select='@title'/>
  </xsl:when>
 <xsl:otherwise>
 <a href="{$href}" class="titlebar"><xsl:value-of select='@title'/></a>
</xsl:otherwise>
</xsl:choose>
			
</span></b></center>
		  </td>
		</tr>
		<tr>
		  <td class="alert">
		             <xsl:apply-templates/>
             		  </td>
		</tr>
			       </table>  
	      
</xsl:template>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    match <div>                                             -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<xsl:template match="div">
<xsl:variable name="id" select="@id"/>
        <xsl:choose>
		 <xsl:when test="@show='true'">
		 <a href="javascript:toggleDiv('{$id}');" title="Toggle display">&#177;show/hide more</a>
<!--      <script language="JavaScript">toggleDiv("{$id}");</script> -->
 	<div class="toggled" id="{$id}" style="display: block;">
		  <xsl:apply-templates/>
    </div>
         </xsl:when>
		 <xsl:otherwise>
		 <a href="javascript:toggleDiv('{$id}');" title="Toggle display">&#177;show/hide more</a>
 	<div id="{$id}" class="toggled">
		  <xsl:apply-templates/>
    </div>

 		 </xsl:otherwise>
	 </xsl:choose>


</xsl:template>

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--    match <iframe>                                       -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<xsl:template match="iframe">
  <xsl:param name="src" select="@src"/>
  <xsl:param name="align" select="@align"/>
  <xsl:param name="width" select="@width"/>
  <xsl:param name="height" select="@height"/>
     <iframe ALIGN="{$align}" SRC="{$relroot}{$src}" width="{$width}" height="{$height}" border="0" marginwidth="1" marginheight="1"   frameborder="0" style="border-color: #0099cc #0099cc #0099cc #0099cc; border: 1px solid;"> 
	 <xsl:apply-templates/>
	 </iframe>
 
</xsl:template>

<xsl:template match="iframe_ext">
  <xsl:param name="src" select="@src"/>
  <xsl:param name="align" select="@align"/>
  <xsl:param name="width" select="@width"/>
  <xsl:param name="height" select="@height"/>
     <iframe ALIGN="{$align}" SRC="{$src}" width="{$width}" height="{$height}" border="0" marginwidth="1" marginheight="1"   frameborder="0" style="border-color: #0099cc #0099cc #0099cc #0099cc; border: 1px solid;"> 
	 <xsl:apply-templates/>
	 </iframe>
 
</xsl:template>
</xsl:stylesheet>


<!-- *************************************************** -->
<!-- *** End of Page                                 *** -->
<!-- *************************************************** -->

