/**
 * @author kfrank
 */
var yud = YAHOO.util.Dom;
var yue = YAHOO.util.Event;
if (typeof console == "undefined")
{
    var console = {};
    console.log = function(){}; //fail silently in IE         
}
if(typeof EXPOTV == "undefined") var EXPOTV = {};
if(typeof EXPOTV.utils == "undefined") EXPOTV.utils = {};

/* IE6 background-image cache fix: force background-image cache*/
try {
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}

/* function to insert style sheet directly after title tag
 * the style sheet can then hide those elements that need to have events attached with js
 * Those elements can then be exposed using js after events are attached. 
*/
EXPOTV.utils.addHasJSStyleSheet = function(strUrl)
{
    var strCssUrl = strUrl;
    var tempLink = document.createElement("link");
    tempLink.setAttribute("rel", "stylesheet");
    tempLink.setAttribute("type", "text/css");
    tempLink.setAttribute("href", strCssUrl);
    var titleEl = document.getElementsByTagName("title")[0];
    YAHOO.util.Dom.insertAfter(tempLink, titleEl);
}