if(document.addEventListener){document.addEventListener("DOMContentLoaded",initialise,false)}/*@cc_on @*//*@if(@_win32)
document.write("<script defer src=?js=ie_onload.js><"+"/script>");/*@end @*/window.onload=initialise;var ajaxFlag=false,maxHeight=0,newspx=new Array(),newsid=new Array(),ie7=(navigator.appVersion.indexOf("MSIE 7.")==-1)?false:true;ie8=(navigator.appVersion.indexOf("MSIE 8.")==-1)?false:true;function initialise(){if(arguments.callee.done)return;arguments.callee.done=true;try{document.execCommand("BackgroundImageCache",false,true)}catch(err){}frameBreak();contextLoad();preloadImages();rollup();ajaxLoad();menuload();matchHeight();blurUsername();Tooltip.init();loadCssFixes();new xAnimation(window);new xAnimation('contMain');new xAnimation('barSide')}
function preloadImages(){if(document.images){img1=new Image;img2=new Image;img3=new Image;img4=new Image;img1.src="?img=bg-header_image.jpg";img2.src="?img=bg-light_body_end.gif";img3.src="?img=news-loading.gif";img4.src="?img=bg-footer_logo.gif"}}
function contextLoad(){document.oncontextmenu=function(){return false};document.ondragstart=function(){return false};document.onselectstart=function(){return false}}
function loadCssFixes(){if(/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){var v=new Number(RegExp.$1);if(v<=2){h='ff12'}}if(/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){h='opera'}if(navigator.userAgent.toLowerCase().indexOf('chrome')>-1){h='chrome'}if(navigator.userAgent.toLowerCase().indexOf('safari/')!=-1){h='safari'}try{var i=document.getElementsByTagName("head")[0];var c=document.createElement('link');c.type='text/css';c.rel='stylesheet';c.href='style?'+h+'_layout';c.media='all';i.appendChild(c)}catch(e){}}
function matchHeight(){var I=xHeight("contMain"),l=xHeight("barSide"),i=Math.max(I,l);if(ie7){i=i+65}if(ie8){i=i+17}xHeight("contMain",i);xHeight("barSide",i);maxHeight=i}
function blurUsername(){if(document.login&&document.login.username)document.login.username.blur()}
function frameBreak(){if(top.location!=location)top.location.href=document.location.href}
function msgBox(I,i){var l=confirm(I);if(l==true){window.location=i}}
function rememberBox(i){if(i.checked){alert("By selecting this function login details will be remembered for 2 weeks.\nWarning: Do not select the 'remember' function if you use a shared computer.")}}
function altCheck(I,i){if(I.checked){I.click()}
if(!i.checked){i.click()}}
function altInput(l,I,i){if(l.checked){l.click()}
if(!i.checked){i.click()}
if(I.disabled==true){I.disabled=false;I.value=""}}
function doTooltip(I,i){if(typeof Tooltip=="undefined"||!Tooltip.ready)return;Tooltip.show(I,i)}
function hideTip(){if(typeof Tooltip=="undefined"||!Tooltip.ready)return;Tooltip.hide()}