In the header I need to add something similar to what is below, however I do not what the code to load on pages that are SSL, can that be done?

<!-- Start Custom -->
<script type="text/javascript">var pr_style_sheet="http://custom_link";</script>
<script type="text/javascript" src="http://custom_link"></script>
<!-- End Custom -->


I thought something like this may work however I can not get it to work, any help would be great!

Code:
<!-- Start Custom -->
<?php if ($request_type == 'NONSSL') {
<script type="text/javascript">var pr_style_sheet="http://custom_link";</script>
<script type="text/javascript" src="http://custom_link"></script>?>
<!-- End Custom -->