// JavaScript Document<script language="javascript">

function printIt(target) { 
  var mytitle = document.title;
  var thebase = document.getElementsByTagName("base");
  var theBase = thebase[0].href;

  winId=window.open('','printwin','width=800,height=600,scrollbars=yes'); 
  winId.document.write("<html><head>");
  winId.document.write("<base href=\"" + theBase + "\">");
  winId.document.write("<title>Print-friendly - " + mytitle + "</title><link rel=\"stylesheet\" href=\"resources/css/qg_print.css\" type=\"text/css\">");
  winId.document.write("</head><body><div id=\"closeprintfriendly\" align=\"right\"><a href=\"#\" onclick=\"window.close()\">Close print-friendly page</a></div><img src=\"resources/images/qg_solid_sstacked_sml.jpg\" hspace=5 vspace=15>");
  winId.document.write(target); 
  winId.document.write("<br><br><div class=\"disclaimer\">&copy; The State of Queensland (Department of Justice and Attorney-General) 2009.<br>The State of Queensland makes no statements, representations, or warranties about the accuracy or completeness of, and you should not rely on, any information contained in this document.</div></body></html>");
  winId.document.write("<script language='javascript'>");
  winId.document.write("var i=0; while(i<document.anchors.length){document.anchors[i].href='#';i++;}");
  winId.document.write("</script>");

  winId.document.close();
  winId.focus(); 
  if (window.print) winId.print();
//  setTimeout("winId.window.close();",3500);
  } 

var con;
if (document.getElementById('content')) {
  mecon = document.getElementById('content').innerHTML;
  con = "<div id=\"content\">" + mecon + "";
  
 } else {
  fecon = document.getElementById('content_feature').innerHTML;
	if (document.getElementById('feature')) {
		featurebox = document.getElementById('feature').innerHTML;
	} else {
		featurebox = document.getElementById('rightcol-landing').innerHTML;
	}
  con = "<div id=\"content_feature\">" + fecon + "</div><div id=\"feature\">" + featurebox + "</div><div id=\"clearspace\"><img src=\"resources/images/spacer.gif\" width=\"780\" height=\"1\"></div></div>";
 }

