
function load_browser_check()
{if(document.getElementById)
{if(document.cookie.length>0&&document.cookie.indexOf('xmo_ignorebrowserwarn')!=-1){}
else
{if(check_browser())
{var d=document;var page=d.getElementsByTagName('body');var msg=d.createElement('div');msg.setAttribute('id','xmo_browsermsg');msg.appendChild(d.createElement('p')).appendChild(d.createTextNode('We have detected that you are using an out of date web browser!'));var p2=d.createElement('p');p2.appendChild(d.createTextNode('We '));p2.appendChild(d.createElement('strong')).appendChild(d.createTextNode('strongly'));p2.appendChild(d.createTextNode(' advise that you upgrade to a newer browser - '));var a=d.createElement('a');a.setAttribute('href','http://getfirefox.com');a.appendChild(d.createTextNode('Firefox'));p2.appendChild(a);p2.appendChild(d.createTextNode(', '));a=d.createElement('a');a.setAttribute('href','http://opera.com');a.appendChild(d.createTextNode('Opera'));p2.appendChild(a);p2.appendChild(d.createTextNode(' or '));a=d.createElement('a');a.setAttribute('href','http://www.microsoft.com/windows/products/winfamily/ie/default.mspx');a.appendChild(d.createTextNode('Internet Explorer 7'));p2.appendChild(a);p2.appendChild(d.createTextNode(' are highly recommended to get the best experience from this and other websites.'));msg.appendChild(p2);var img=d.createElement('img');img.setAttribute('src','../img/close_icon.gif');img.setAttribute('alt','Ignore Browser Warning');img.setAttribute('title','Ignore This Message');img.setAttribute('id','ignoreMsg');msg.appendChild(img);page[0].insertBefore(msg,d.getElementById('xmo_page'));}}}}
function check_browser()
{if(navigator.userAgent.indexOf("MSIE 5")!=-1)
return true;else if(navigator.userAgent.indexOf("MSIE 6")!=-1)
return true;else return false;}
function hide_browser_warn()
{if(document.getElementById('ignoreMsg'))
{var hide=document.getElementById('ignoreMsg');hide.onclick=function()
{var date=new Date();date.setDate(date.getDate()+30);document.cookie="xmo_ignorebrowserwarn=true; expires="+date.toGMTString()+"; path=/";var msg=document.getElementById('xmo_browsermsg');msg.style.visibility='hidden';msg.style.display='none';}}}
$x(document).ready(function(){load_browser_check()});$x(document).ready(function(){hide_browser_warn()});