// For discussion and comments, see: http://remysharp.com/2009/01/07/html5-enabling-script/
(function(){if(!/*@cc_on!@*/0)return;var e = "abbr,article,aside,audio,canvas,datalist,details,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(','),i=e.length;while(i--){document.createElement(e[i])}})()
/*
Standards Compliant Rollover Script
Author : Daniel Nolan
http://www.bleedingego.co.uk/webdev.php
*/
var initRolloversJS =
{
init:function(targetTag)
{
if(!document.getElementsByTagName) return false;
var aPreLoad = new Array();
var sTempSrc;
var aImages = document.getElementsByTagName(targetTag);
for (var i = 0; i < aImages.length; i++)
{
if (aImages[i].className == 'rollover')
{
var src = aImages[i].getAttribute('src');
var ftype = src.substring(src.lastIndexOf('.'), src.length);
var hsrc = src.replace(ftype, '_o'+ftype);
aImages[i].setAttribute('hsrc', hsrc);
aPreLoad[i] = new Image();
aPreLoad[i].src = hsrc;
if(src.indexOf('_o.') === -1)
{
aImages[i].onmouseover = function()
{
sTempSrc = this.getAttribute('src');
this.setAttribute('src', this.getAttribute('hsrc'));
}
aImages[i].onmouseout = function()
{
if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_o'+ftype, ftype);
this.setAttribute('src', sTempSrc);
}
}
}
}
},
prepare:function()
{
initRolloversJS.init('img');
initRolloversJS.init('input');
}
}
function initRollovers()
{
initRolloversJS.prepare;
}
try
{
initRolloversJS.prepare();
}
catch(e){}
try
{
window.addEventListener("load",initRolloversJS.prepare,false);
}
catch(e)
{
window.attachEvent("onload",initRolloversJS.prepare);
}
