/******************** PRINT FUNCTION **************************/

var gAutoPrint = true; // Tells whether to automatically call the print function
function printSpecial()
{
if (document.getElementById != null)
{
var html = '<HTML>\n<HEAD>\n';
if (document.getElementsByTagName != null)
{
var headTags = document.getElementsByTagName("head");
if (headTags.length > 0)
html += headTags[0].innerHTML;
}
html += '\n</HEAD>\n<BODY>\n';

var printReadyElem = document.getElementById("printReady");
if (printReadyElem != null)
{
html += '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
html += '                            <tr valign="top">'; 
html += '                              <td><img src="images/logo_print.gif" width="183" height="86"></td>';
html += '                             <td align="right"><table width="200" border="0" cellspacing="0" cellpadding="3">';
html += '                                        <tr align="right" valign="top">'; 
html += '                                          <td width="70"> <p><strong>Phone: </strong></p></td>';
html += '                                          <td width="150"> <p>02 4997 9775 </p></td>';
html += '                                        </tr>';
html += '                                        <tr align="right" valign="top">'; 
html += '                                          <td> <p><strong>Address:</strong></p></td>';
html += '                                 <td> <p>10 Yandalla Street<br>Tea Gardens, NSW,2324</p></td>';
html += '                      </tr>';
html += '                                      </table></td>';
html += '                            </tr>';
html += '                          </table>';
html += '                          <br><br>';
html += printReadyElem.innerHTML;

html = html.replace('<H3>', '<font face=\"verdana\" size=\"2\"><b>');
html = html.replace('</H3>', '</b></font>');
html = html.replace('<SPAN class=productName>', '<font face=\"verdana\" size=\"2\"><b>');
html = html.replace('class=headingarea', '');
html = html.replace('<IMG src=\"../../images/printer.gif\" align=middle border=0>PRINT THIS PAGE', '');
html = html.replace('<IMG src=\"../images/printer.gif\" align=middle border=0>PRINT THIS PAGE', '');
html = html.replace('class=PRINT', '')
html = html.replace('FAQ', '')
html = html.replace('WHERE TO BUY', '')
html = html.replace('COMPARE PRODUCT', '')

}
else
{
alert("Could not find the printReady function");
return;
}
html += '\n</BODY>\n</HTML>';
var printWin = window.open("","printSpecial");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (gAutoPrint)
printWin.print();
}
else
{
alert("The print ready feature is only available if you are using an browser. Please update your browser.");
}
}

/*****************************************************************************************************/
