<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="content-type" content="text/html" />
<meta name="description" content="<%= thisArticleNavbar.getInheritedAttribute ("MetaDescription", "") %>" />
<meta name="keywords" content="<%= thisArticleNavbar.getInheritedAttribute ("MetaKeywords", "") %>" />
<meta name="author" content="<%= thisArticleNavbar.getInheritedAttribute ("MetaAuthor", "") %>" />
<%= thisArticleNavbar.getInheritedAttribute ("Additional Meta", "") %>

<% if (CollectionUtils.equals (thisArticleNavbar.getInheritedAttribute("Exclude from SEO Indexing", ""), Boolean.TRUE))
   { %>
   <META NAME="robots" CONTENT="noindex,nofollow">
<% } %>

<% if(!CollectionUtils.equals(request.getAttribute("std_head.jsp:OmitCanonicalHeader"), Boolean.TRUE))
   { %>
<link rel="canonical" href="<%= article.getLink (request) %>" />
<% } %>

<oneit:css>
    <oneit:css href="/css/lightbox.css"/>
    <oneit:css href="/css/main_standard.css"/>
    <oneit:css href="/css/style.css"/>
</oneit:css>
<% Article  cssArticle = thisArticleNavbar.getInheritedArticleAttrib ("CSS");
   Article   _head_site = globalNavbar.getEntry();
   String sitePageTitle =  (String)(globalNavbar.getEntry().getAdditionalAttribute("PageTitle")!=null? globalNavbar.getEntry().getAdditionalAttribute("PageTitle"):"");
   String pageTitle =  (String)(article.getAdditionalAttribute("PageTitle")!=null? article.getAdditionalAttribute("PageTitle"): "");
  
   sitePageTitle = (sitePageTitle != null ? sitePageTitle : _head_site.getTitle ());

   if (cssArticle != null)
   { %>
    <link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/css/main.cms?ident=<%= cssArticle.getIdentifier() %>" />
<% } %>

<%-- todo: does this one exist?? --%>
<!--[if lt IE 7.]>
    <script type="text/javascript" src="scripts/js_Filter.js"></script>
<![endif]-->

<oneit:script>
    <oneit:script src="/scripts/preload.js"></oneit:script>
    <oneit:script src="/scripts/jquery-1.6.xx.min.js"/>
    <oneit:script src="/scripts/AC_RunActiveContent.js"></oneit:script>
</oneit:script>

<title><%= (pageTitle == null || pageTitle.equals ("") ? sitePageTitle + " - " + article.getTitle () : pageTitle) %></title>
<oneit:debug>Template: <%=article.getTemplate().getValue()%></oneit:debug>

<%
    oneit.servlets.forms.ErrorReportConfig   reportConfig   = BaseJSP.getCustomErrorConfig(request);
    String                                  skinProperties  = (String)thisArticleNavbar.getInheritedAttribute ("Skin", null);

    reportConfig.addConfigProperties (skinProperties);
%>

<% if(oneit.appservices.stats.Analytics.getAnalyticsVersion (request) == 4)
   { 
       // script added in footer
   }   
   else if (oneit.appservices.stats.Analytics.getAnalyticsVersion (request) == 3)
   { %>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', '<%= oneit.appservices.stats.Analytics.getAnalyticsAccount (request) %>']);
  _gaq.push(['_trackPageview']);

  $(window).load(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  });

</script>
<% } %>
