/* [
file:: ilt.js
project:: InfoLock Technologies
site:: infolocktech.com 

info:: This file has functions related to ilt's use of NECTAR JS framework
media:: screen

author:: Cobey Potter, Wellfire Interactive
version:: 1.1
date:: q1, 2011
copyright:: (c) 2011, Wellfire Interactive
license:: CC BY-NC-SA http://creativecommons.org/licenses/by-nc-sa/3.0/

lastmodified:: 2011-01-10, Cobey Potter - added in functionality to load symantec showcase into site

] */
$(document).ready(function() {
  NECTAR.init({server:["www.infolocktech.com", "infolocktech.com"], template:"body", content:"#content", noHijack:true});
  NECTAR.environment.analytics({profile:"UA-1882561-7", force:0});
  NECTAR.util.controls({ctrlID:"#ctrl-accessibility", sizeCtrl:".text-size a", printCtrl:".print", printHTML:'<li class="print"><a href="" title="Print Page">Print</a></li>'});
  NECTAR.form.init({formID:"form", warning:"This field is required", warningClass:".error", warningHelper:'<div class="alert"><h6>{label}</h6><p>{message}</p></div>', error:"This field is required", errorClass:".error", errorHelper:'<div class="alert"><h6>{label}</h6><p>{message}</p></div>'});
  NECTAR.form.validate();
  NECTAR.form.setFile("Add R\u00e9sum\u00e9");
  NECTAR.run("tmpl-index", "/site/scripts/ilt.index.js");
  NECTAR.environment.modules.textSize == "text-medium" && $("html").addClass("text-medium");
  NECTAR.environment.modules.textSize == "text-large" && $("html").addClass("text-large");
  $("html").hasClass("no-fontface") && $("html").hasClass("no-boxshadow") && $("#content p:first").addClass("content-first-child");
  if(NECTAR.environment.featureSet("ie") || NECTAR.environment.featureSet("ie7") || NECTAR.environment.featureSet("ie6")) {
    $(".list-preview li:even").addClass("list-preview-odd");
    $(".aggregator .article:last").addClass("last-article");
    $("#tmpl-index #sidebar .module:last").addClass("last-module");
    $(".menu-glossary:last").addClass("menu-glossary-last");
    $(".menu-glossary a:last-child, .menu-glossary span:last-child, #tmpl-404 .list-preview li:last-child, .list-partners li:last-child, .media-contact dd:last-child").addClass("last-child")
  }
  if(NECTAR.environment.featureSet("ie7") || NECTAR.environment.featureSet("ie6")) {
    $("#tmpl-index #sidebar .module:first-child").addClass("first-child");
    $("#tmpl-index #sidebar .module:last-child").addClass("last-child");
    $(".list-partners li:first-child").addClass("first-child")
  }
  if(NECTAR.environment.featureSet("ie6")) {
    DD_belatedPNG.fix("#logo a");
    DD_belatedPNG.fix("h2");
    DD_belatedPNG.fix(".print a");
    DD_belatedPNG.fix("#tmpl-index #content h1");
    DD_belatedPNG.fix("#tmpl-index #sidebar");
    DD_belatedPNG.fix("#tmpl-index .aggregator .link-more");
    DD_belatedPNG.fix("#tmpl-case #content .link-more");
    DD_belatedPNG.fix(".module");
    DD_belatedPNG.fix(".module h3");
    DD_belatedPNG.fix(".alert h6");
    DD_belatedPNG.fix(".quiz .ctrl-action button span");
    DD_belatedPNG.fix("#content ul li");
    DD_belatedPNG.fix("#content dt");
    DD_belatedPNG.fix(".aggregator .link-more")
  }
});

