if(typeof sIFR == "object"){
    //------------------------------------------------------------------------------------
    //  initialize sIFR plugin
    //------------------------------------------------------------------------------------
    var bananasplit = {
        src: 'wp-content/themes/hotshot/_plugins/sifr/bananasplit.swf'
        ,ratios: [7,1.32,8,1.31,12,1.27,19,1.23,22,1.2,29,1.19,36,1.18,49,1.17,50,1.16,51,1.17,56,1.16,57,1.17,82,1.16,85,1.15,86,1.16,92,1.15,93,1.16,1.15]
      };
      sIFR.domains = ['www.hotshotevents.nl','hotshotevents.nl']
    //sIFR.useStyleCheck = true;
      sIFR.activate(bananasplit);
    //sIFR.debug.ratios({ src: 'bananasplit.swf', selector: '.textBlockTitle1' });
     sIFR.replace(bananasplit, {
       selector: '.navigationItem'
       ,
        css: [
          '.sIFR-root {color:#A55000;font-size:21}'
          ,'a {text-decoration: none; }'
          ,'a:link {color:#A55000;}'
          ,'a:hover { color: #FF0000; }'
        ]
        ,fitExactly: true
        ,forceSingleLine:true
        ,tuneHeight: -5
     });
     sIFR.replace(bananasplit, {
       selector: '.textBlockTitle1'
        ,css: [
          '.sIFR-root {color:#A55000;background-color:#FFBC24;font-size:21}'
          ,'a {text-decoration: none; }'
          ,'a:link {color:#A55000;}'
          ,'a:hover { color: #FF0000; }'
        ]
        ,fitExactly: true
        ,forceSingleLine:true
        ,tuneHeight: -5
      });
}

if( typeof onload == "function")var hotshotOnloadTemp = onload;
 onload = function (){
	//------------------------------------------------------------------------------------
	// - make images unselectable to prevent them from becoming blue tinted
	//------------------------------------------------------------------------------------
	var imgElements = document.getElementsByTagName('img');
	for(var i=0;i<imgElements.length;i++){
		new Dom.disableSelect(imgElements[i]);
	}
    if(hotshotOnloadTemp)hotshotOnloadTemp();
}

function Dom(){}
Dom.disableSelect = function (el){
	if(typeof el.style.MozUserSelect == "string")el.style.MozUserSelect = "none"
	else if(typeof el.onselectstart != "undefined") {
		el.onselectstart = function() {return false }
	}
}


function CookieHandler(){}
CookieHandler.read = function (strCookieName){
  if (document.cookie.length>0){
        var result = document.cookie.match(eval("/"+strCookieName+"=([^;]+)/"));
     	if (result && result.length > 0) return unescape(result[1]);
  }
}
CookieHandler.write = function (strName,strValue,dateExpires,strDomain,strPath,boolSecure){
    if(typeof strName != "string"){
        throw("CookieHandler.write: argument strName invalid")
        return;
    }
    if(typeof strValue != "string"){
        throw("CookieHandler.write: argument strValue invalid")
        return;
    }
    if(dateExpires !== undefined && typeof dateExpires !== "object"){
        throw("CookieHandler.write: argument dateExpires not of type 'Object'")
        return;
    }
    arrCookie = new Array();
    arrCookie.push(strName+"="+escape(strValue));
    if(dateExpires)arrCookie.push("expires="+dateExpires.toGMTString());
    if(strDomain)arrCookie.push("domain="+strDomain);
    if(strPath)arrCookie.push("path="+strPath);
    if(boolSecure ===true)arrCookie.push("secure");
    document.cookie = arrCookie.join('; ')
}


function flashAudioPlayerCheckCookie(){
    if(CookieHandler.read("FlashAudioPlayer"))return true;
    else{
        CookieHandler.write("FlashAudioPlayer","1");
        return false;
    }
}
//------------------------------------------------------------------------------
//  workaround for flash patent issue
//------------------------------------------------------------------------------
function writeFlashTag(id,data,strProperties){
    var strTag = "<object \n"
    strTag += " type=\"application/x-shockwave-flash\" \n"
    strTag += " id=\""+id+"\""
    strTag += " data=\""+data+"\"";
    strTag += " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" \n"
    strTag += "> \n"
    strTag += "<param name=\"movie\" value=\""+data+"\" /> \n";
    if(strProperties){
        var arrProperties = strProperties.split(";");
        for (var i=0;i<arrProperties.length;i++){
            var prop = arrProperties[i].split("=");
            strTag += "<param name=\""+prop[0]+"\" value=\""+prop[1]+"\" /> \n";
        }
    }
    strTag += "</object> \n";
    document.write(strTag);
};

