<?php

// This information has been pulled out to make the template more readible.
// This data goes between the <head></head> tags of the template
$theme_path = path_to_theme();
$ver = preg_replace ('/\.(.*)/','',$browser_version);
$bname = $browser_name . $ver;
?>

<script src="<?php echo base_path() . path_to_theme(); ?>/js/jquery-1.4.3.min.js" type="text/javascript"></script>
<script type="text/javascript"> 
var $jq = jQuery.noConflict(); 
</script> 


<link href="<?php echo base_path() . path_to_theme(); ?>/css/gantry.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_path() . path_to_theme(); ?>/css/grid-12.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_path() . path_to_theme(); ?>/css/jm.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_path() . path_to_theme(); ?>/css/<?php echo $quasar_css_style; ?>.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_path() . path_to_theme(); ?>/css/template.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_path() . path_to_theme(); ?>/css/typography.css" rel="stylesheet" type="text/css" />

<?php if($bname == "ie6" OR $bname == "ie7" OR $bname == "ie8") :?><link href="<?php echo base_path() . path_to_theme(); ?>/css/template-<?php echo $bname; ?>.css" rel="stylesheet" type="text/css" /><?php endif; ?>

<?php if($quasar_presetstyle == "preset1" OR $quasar_presetstyle == "preset3" OR $quasar_presetstyle == "preset5"): ?>
	<link href="<?php echo base_path() . path_to_theme(); ?>/css/dark.css" rel="stylesheet" type="text/css" />
<?php else: ?>
	<link href="<?php echo base_path() . path_to_theme(); ?>/css/light.css" rel="stylesheet" type="text/css" />
<?php endif; ?>

<?php if($browser_name == "iphone"): ?>
    <link href="<?php echo base_path() . path_to_theme(); ?>/css/iphone-gantry.css" rel="stylesheet" type="text/css" />
<?php endif; ?>

<?php if($browser_name == "ie") : ?>
    <?php if($ver == 6): ?>
        
        <script src="<?php echo base_path() . path_to_theme(); ?>/js/DD_belatedPNG.js"></script>
        <script>
            DD_belatedPNG.fix('.png');
        </script>

    <?php endif; ?>
    
<?php endif; ?>



<style type="text/css"> 

    <!--
    body a {color:<?php echo $quasar_link_color; ?>;}
    body a, 
    #rt-main-surround .rt-article-title, 
    #rt-main-surround .title,
    #rt-showcase .title, 
    #rt-showcase .showcase-title span, 
    #rt-top .title, 
    #rt-header .title, 
    #rt-feature .title 
    	{color:<?php echo $quasar_link_color; ?>;}
    -->
  </style> 

<?php if (theme_get_setting('enable_ie6warn') AND $bname == "ie6") : ?>

    <div id="ie-warn">
        <h3>Your are currently browsing this site with Internet Explorer 6 (IE6).</h3>
        <p>The last version of Internet Explorer 6 was called Service Pack 1 for Internet Explorer 6 and was released in December of 2004.  By continuing to run Internet Explorer 6 you are open to any and all security vulnerabilities discovered since that date.  In October of 2006, Microsoft released version 7 of Internet Explorer that, in addition to providing greater safety in navigation, which allows the Internet Explorer browser to identify as' modern browsers'. Microsoft has launched Internet Explorer 7 as a high-priority update, and is now available to download for free without any certification requirements. As of Feb 12th, 2008 Microsoft is forcing updates to Internet Explorer 6 in order to move people towards the much improved and secure version 7. Please ensure you don't hamper this process.  It's for your own good!</p>
        <br />
        <a class="external"  href="http://www.microsoft.com/downloads/details.aspx?FamilyId=9AE91EBE-3385-447C-8A30-081805B2F90B">Download Internet Explorer 7 NOW!</a>
        <br />
        <a href="#" class="closeiewarn">Close Window</a>
    </div>
    <script>

        $jq(document).ready(function(){
             $jq("#ie-warn").slideDown("slow");
        });
        $jq("#ie-warn a").click(function() {
           $jq("#ie-warn").slideUp("slow");
        });


    </script>
<?php endif; ?>




<?php if(theme_get_setting('fontspan')): ?>
<script type="text/javascript">
	//<![CDATA[
	$jq(document).ready(function() {
	  $jq('h1').each(function(){
	      var fs = $jq(this);
	      fs.html( fs.text().replace(/(^\w+)/,'<span>$1</span>') );
	  });
	  $jq('h2').each(function(){
	      var fs = $jq(this);
	      fs.html( fs.text().replace(/(^\w+)/,'<span>$1</span>') );
	  });
	  $jq('h3').each(function(){
	      var fs = $jq(this);
	      fs.html( fs.text().replace(/(^\w+)/,'<span>$1</span>') );
	  });
	});
//]]>	
</script>
<?php endif; ?>
	
