function getCurrent(count){if(rollOverInfo[count]){return("Selected");}else{return("Default");}}
function RollOver(count){var left,right;document.getElementById('M'+count).style.backgroundImage='URL(/staticImages/tabs/Roll-Over-Middle.png)';if(count===0){left="First-LHS--Roll-Over-R";}else{left=getCurrent(count-1)+"-L--Roll-Over-R";}
if(count==rollOverInfo.length-1){right="Roll-Over-L--Last-RHS";}else{right="Roll-Over-L--"+getCurrent(count+1)+"-R";}
document.getElementById('LHS'+count).src='/staticImages/tabs/'+left+'.png';document.getElementById('LHS'+(count+1)).src='/staticImages/tabs/'+right+'.png';}
function RollOut(count){var left,right;document.getElementById('M'+count).style.backgroundImage='URL(/staticImages/tabs/'+getCurrent(count)+'-Middle.png)';if(count===0){left="First-LHS--"+getCurrent(count)+"-R";}else{left=getCurrent(count-1)+"-L--"+getCurrent(count)+"-R";}
if(count==rollOverInfo.length-1){right=getCurrent(count)+"-L--Last-RHS";}else{right=getCurrent(count)+"-L--"+getCurrent(count+1)+"-R";}
document.getElementById('LHS'+count).src='/staticImages/tabs/'+left+'.png';document.getElementById('LHS'+(count+1)).src='/staticImages/tabs/'+right+'.png';}
function lgetCurrent(count){if(leftrollOverInfo[count]){return("Selected");}else{return("Default");}}
function lRollOver(count){var left,right;document.getElementById('LM'+count).src='/staticImages/tabs/'+document.getElementById('LM'+count).getAttribute("LMtab")+'-Roll-Over-B.jpg';if(count===0){left="First-T--Roll-Over-B";}else{left=lgetCurrent(count-1)+"-T--Roll-Over-B";}
if(count==leftrollOverInfo.length-1){right="Roll-Over-T--Last-B";}else{right="Roll-Over-T--"+lgetCurrent(count+1)+"-B";}
document.getElementById('LT'+count).src='/staticImages/tabs/'+left+'.jpg';document.getElementById('LT'+(count+1)).src='/staticImages/tabs/'+right+'.jpg';}
function lRollOut(count){var left,right;document.getElementById('LM'+count).src='/staticImages/tabs/'+document.getElementById('LM'+count).getAttribute("LMtab")+'-'+lgetCurrent(count)+'-B.jpg';if(count===0){left="First-T--"+lgetCurrent(count)+"-B";}else{left=lgetCurrent(count-1)+"-T--"+lgetCurrent(count)+"-B";}
if(count==leftrollOverInfo.length-1){right=lgetCurrent(count)+"-T--Last-B";}else{right=lgetCurrent(count)+"-T--"+lgetCurrent(count+1)+"-B";}
document.getElementById('LT'+count).src='/staticImages/tabs/'+left+'.jpg';document.getElementById('LT'+(count+1)).src='/staticImages/tabs/'+right+'.jpg';}
function swapImage(image,newSrc){image.src=newSrc;}
function IBRollOver(count){document.getElementById('IB'+count).src='/staticImages/buttons/'+IBrollOverInfo[count][1];}
function IBRollOut(count){document.getElementById('IB'+count).src='/staticImages/buttons/'+IBrollOverInfo[count][0];}
function IBRollOverB(count){document.getElementById('IBB'+count).src='/staticImages/buttons/'+IBrollOverInfoB[count][1];}
function IBRollOutB(count){document.getElementById('IBB'+count).src='/staticImages/buttons/'+IBrollOverInfoB[count][0];}
function IBRollOverSearch(count){if(typeof(IBrollOverInfoSearch)!='undefined'&&IBrollOverInfoSearch!==null){document.getElementById('IBS'+count).src='/staticImages/buttons/'+IBrollOverInfoSearch[count][1];}}
function IBRollOutSearch(count){if(typeof(IBrollOverInfoSearch)!='undefined'&&IBrollOverInfoSearch!==null){document.getElementById('IBS'+count).src='/staticImages/buttons/'+IBrollOverInfoSearch[count][0];}}
var AjaxFavs=new AJAXConnection();function favouriteComplete(downloadString){var objectid=downloadString.split("|")[1];var addFav=document.getElementById("aF"+objectid);var remFav=document.getElementById("rF"+objectid);var addFavB=document.getElementById("aF"+objectid+"B");var remFavB=document.getElementById("rF"+objectid+"B");if(downloadString.indexOf("addFavourite")===0){addFav.style.display='none';addFav.style.visibility='hidden';remFav.style.display='inline';remFav.style.visibility='visible';if(addFavB!==null&&typeof(addFavB)!='undefined'){addFavB.style.display='none';addFavB.style.visibility='hidden';remFavB.style.display='inline';remFavB.style.visibility='visible';}}else if(downloadString.indexOf("removeFavourite")===0){remFav.style.display='none';remFav.style.visibility='hidden';addFav.style.display='inline';addFav.style.visibility='visible';if(addFavB!==null&&typeof(addFavB)!='undefined'){remFavB.style.display='none';remFavB.style.visibility='hidden';addFavB.style.display='inline';addFavB.style.visibility='visible';}}}
function addFavourite(objectid){AjaxFavs.startDownload("/ajax.cfm?addFavourite="+objectid,favouriteComplete);}
function removeFavourite(objectid){AjaxFavs.startDownload("/ajax.cfm?removeFavourite="+objectid,favouriteComplete);}
function checkEnter(event,url){if(event.keyCode==13){window.location=url;}}
