<title><?php print $_SESSION['websiteName']; ?></title>
<meta name="description" content="<?php print $_SESSION['websiteName']; ?>" />
<meta name="keywords" content="<?php print $_SESSION['websiteName']; ?>" />
<meta name="robots" content="index, follow" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0">
<script src="/library/jquery/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/library/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
    tinymce.init({
    selector: "textarea.editor",
    setup : function(ed)
    {
    ed.on('init', function()
    {
    this.getDoc().body.style.fontSize = '14px';
    });
    },
    plugins: ["anchor textcolor searchreplace code link insertdatetime table paste"],
    toolbar: "bold italic fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link"
    });
</script>
<script type="text/javascript">
    function tooltip(el, content)
    {
    document.getElementById("tooltip").style.minHeight = "220px";
    document.getElementById("tooltip").style.display = "none";
    document.getElementById("tooltip").style.left = ($(el).position().left + 100) + 'px';
    document.getElementById("tooltip").style.top = $(el).position().top + 'px';
    document.getElementById("tooltip_content").innerHTML = content;
    document.getElementById("tooltip").style.display = "block";
    }
    function confirmUpdate()
    {
    return confirm('Are you sure you wish to update this record?');
    }
</script>
<?php
if($motoquoteSubdomain == 'csms')
{
    //print '<script type="text/javascript" src="/library/custom/tawkto.js"></script>' . PHP_EOL;
    print '<link href="/css/csms-style.css" rel="stylesheet" media="screen" />
    <link href="/css/style_mob.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/css/csms_style_mob.css" rel="stylesheet" type="text/css" media="all" />' . PHP_EOL;
}
else if($motoquoteSubdomain == 'cgll')
{
    print '<link href="/css/style.css" rel="stylesheet" media="screen" />
    <link href="/css/style_cgll.css" rel="stylesheet" media="screen" />
    <link href="/css/style_mob.css" rel="stylesheet" type="text/css" media="all" />' . PHP_EOL;
}
else
{
    print '<link href="/css/style.css" rel="stylesheet" media="screen" />
    <link href="/css/style_mob.css" rel="stylesheet" type="text/css" media="all" />' . PHP_EOL;
}
?>
<link href="/css/style_print.css" rel="stylesheet" media="print" />
<?php
if(isset($_SERVER['HTTP_USER_AGENT']))
{
    $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
    $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android");
    $palmpre = strpos($_SERVER['HTTP_USER_AGENT'],"webOS");
    $berry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry");
    $ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod");
    $ipad = strpos($_SERVER['HTTP_USER_AGENT'],"iPad");

    if ($iphone || $android || $palmpre || $ipod || $ipad || $berry == true)
    {
        print "<script>";
        print "if(top != self) top.location.replace(location);";
        print "</script>";
    }
    $str = $_SERVER['HTTP_USER_AGENT'];
    $pos1 = strpos($str, "Safari");
    $pos2 = strpos($str, "Chrome");
    $pos3 = strpos($str, "MSIE");
    $pos4 = strpos($str, "Trident");
    if($pos1 != '' && $pos2 == '')           // Safari
    {
        echo "<script>";
        echo "if(top != self) top.location.replace(location);";
        echo "</script>";
    }
    else if($pos3 != '')                     // IE
    {
        echo "<script>";
        echo "if(top != self) top.location.replace(location);";
        echo "</script>";
    }
    else if($pos4 != '')                     // IE
    {
        echo "<script>";
        echo "if(top != self) top.location.replace(location);";
        echo "</script>";
    }
}
?>