var urlArgs = cbeGeturlArguments();
function Header() {
var scr_w = screen.availWidth;
var scr_h = screen.availHeight;
var width = scr_w - 250;
var height = scr_h - 400;
var height_addr = height - 220;
if (urlArgs["print"] != 1) {
document.write("      <div align='center'>");
document.write("      <div align='center'>");
document.write("         <div id='header'>");
document.write("            <table cellspacing='0' cellpadding='0' width='100%' border=0>");
document.write("            <tr>");
document.write("            <td><img src='../images/trans_west.gif'></td>");
document.write("            <td>");
document.write("              <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='290' height='84'>");
document.write("                       <param name='movie' value='../logo.swf'>");
document.write("                      <param name='quality' value='high'>");
document.write("                    <embed src='../logo.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='290' height='84'></embed>");
document.write("                    </object>");
document.write("            </td>");
document.write("            </tr>");
document.write("            </table>");
document.write("         </div>");
document.write("            <div id='panel'>");
document.write("            <table cellspacing='0' cellpadding='0' width='100%' border='0'>");
document.write("               <tr>");
document.write("                  <td class='menu' nowrap valign='top'>");
document.write("                     <br><a href='../index.html' class='menu_item'>ABOUT TRANS-WEST</a>");
document.write("                     <a href='../services_products.html' class='menu_item'>SERVICES & PRODUCTS</a>");
document.write("                     <a href='../terms_conditions.html' class='menu_item'>TERMS & CONDITIONS</a>");
document.write("                     <a href='../personnel.html' class='menu_item'>PERSONNEL</a>");
document.write("                     <br>");
document.write("                     <a href='../news.html' class='menu_item'>NEWS</a>");
document.write("                     <a href='../library.html' class='menu_item'>LIBRARY</a>");
document.write("                     <br>");
document.write("                     <a href='../links.html' class='menu_item'>LINKS</a>");
document.write("                     <a href='../claims.html' class='menu_item'>CLAIMS</a>");
document.write("                     <a href='../application_form.html' class='menu_item'>APPLICATION FORMS</a>");
document.write("                     <a href='../client_access.aspx' class='menu_item'>CLIENT ACCESS</a>");
document.write("                     <br>");
document.write("                     <a href='../search.aspx' class='menu_item'>SEARCH OUR WEBSITE</a>");
document.write("                     <br>");
document.write("                     <a href='../quoterequest' class='menu_item'>CONTACT US</a>");
document.write("<table style='height: " + height_addr + "px; text-align: center;' width='100%'>");
document.write("                     <tr><td>");
document.write("                        <table cellspacing='0' cellpadding='0'> ");
document.write("                         <tr>");
document.write("                         </tr>");
document.write("                         <tr>");
document.write("                           <td class='contact_details' align='centre'>");
document.write("                              Trans-West Insurance Brokers Pty Ltd<br>");
document.write("                              79 Bathurst St<br>");
document.write("                              Liverpool NSW 2170 Australia<br>");
document.write("                              PO Box 285<br>");
document.write("                              Liverpool NSW 1871<br>");
document.write("                              <br class='contact_details_break'>");
document.write("                              Phone: +61 2 9601 7166<br>");
document.write("                              Fax: +61 2 9821 2010<br>");
document.write("                              Email: <a href='mailto:reception@transwest.com.au' style='color: #000000; text-decoration: none;'>reception@transwest.com.au</a><br>");
document.write("                              <br class='contact_details_break'>");
document.write("                              ABN: 90 001 996 489<br>");
document.write("                              ACN: 001 996 489<br>");
document.write("                              AFS Licence: 230126<br>");
document.write("                           </td>");
document.write("                          </tr>");
document.write("                       </table>");
document.write("                        </td></tr></table>");
document.write("                  </td>");
document.write("                  <td width='10' bgcolor='#50295b'></td>");
document.write("                  <td valign='top'>");
document.write("<div class='content' style='height: " + height + "px;'>"); }
else {
// instead of the whole header it opens just div with the class printer_friendly
document.write("<div class='printer_friendly'>"); }
}


function Footer() {
document.write("</div></td>");
document.write("               </tr>");
document.write("            </table>");
document.write("          </div>");
document.write("	  <div class='copy'><a target='_blank' href=../documents/conditions_of_use.pdf>Conditions of Use</a> | Copyright &copy; 2009-IIS7 Trans-West Insurance Brokers | <a target='_blank' href=../documents/Terms_and_Conditions.pdf>Terms and Conditions</a><p><a target='_blank' href='?print=1'><img border='0' src='../images/printer_icon.gif'> Printer-friendly version</a>");
document.write("      </div>");
document.write("   </body>");
document.write("</html>");
}


function cbeGeturlArguments() {
   var idx = location.href.indexOf('?');
   var params = new Array();
   if (idx != -1) {
      var pairs = location.href.substring(idx+1, location.href.length).split('&');
      for (var i=0; i<pairs.length; i++) {
         nameVal = pairs[i].split('=');
         params[i] = nameVal[1];
         params[nameVal[0]] = nameVal[1];
      }
      var pairs = location.href.substring(idx+1, location.href.length).split('%26');
      for (var i=0; i<pairs.length; i++) {
         nameVal = pairs[i].split('='); 
         params[i] = nameVal[1]; 
         if (params[nameVal[0]] == null) {
            params[nameVal[0]] = nameVal[1]; 
         }
      }
   }
   return params; 
}