I would like to use Quantcast to get more info about my visitors. Its sorta like google anylitics, but provides some different data. To make it work I have to put a javascript and an image in my tpl_footer.php. The catch is that I need different code it they are on a secure section of my site. So I need something like what I have below. How can I write this if then statement correctly? Thanks!

PHP Code:
<? php
If nonssl {
    ?>
    <!-- Start Quantcast tag -->
    <script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
    <script type="text/javascript">_qacct="p-b4WnRrbuw4fQo";quantserve();</script>
    <noscript>
    <a href="http://www.quantcast.com/p-b4WnRrbuw4fQo" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-b4WnRrbuw4fQo.gif" style="display: none;"     border="0" height="1" width="1" alt="Quantcast"/></a>
    </noscript>
    <!-- End Quantcast tag -->
<?php
}
else if 
ssl {
    
?>
    <!-- Start Quantcast tag -->
    <script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
    <script type="text/javascript">_qacct="p-b4WnRrbuw4fQo";quantserve();</script>
    <noscript>
    <a href="http://www.quantcast.com/p-b4WnRrbuw4fQo" target="_blank"><img src="//secure.quantserve.com/pixel/p-b4WnRrbuw4fQo.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/></a>
    </noscript>
    <!-- End Quantcast tag -->
<?php
}
?>