window.onload=function(){
/*Nifty("div.titled");*/
}
function showevents(){
document.getElementById("hidenews").style.display='none';
document.getElementById("hideevents").style.display='block';
}
function shownews(){
document.getElementById("hidenews").style.display='block';
document.getElementById("hideevents").style.display='none';
}

intImage = 2;
function swapImage(IMG1,IMG2) {
switch (intImage) {
 case 1:
   IMG1.src = "./images/minus.png"
   IMG1.id = "IMG1"
   IMG2.src = "./images/plus.png"
   IMG2.id = "IMG2"
   shownews();
   intImage = 2
   return(false);
case 2:
   IMG1.src = "./images/plus.png"
   IMG1.id = "IMG1"
   IMG2.src = "./images/minus.png"
   IMG2.id = "IMG2"
   showevents();
   intImage = 1
   return(false);
 }
}

intImageEvent = 2;
function swapImageEvent(IMG2) {
switch (intImage) {
 case 1:
   IMG2.src = "./images/minus.png"
   IMG2.id = "IMG2"
   showevents();
   intImageEvent = 1
   return(false);
case 2:
   IMG2.src = "./images/plus.png"
   IMG2.id = "IMG2"
   shownews();
   intImageEvent = 2
   return(false);
 }
}

var corisande = {
  src: './images/corisande-new.swf'
};
sIFR.activate(corisande); // From revision 209 and onwards

  sIFR.replace(corisande, {
    selector: '#splash h1'
    ,css: {
      '.sIFR-root': { 'background-color': '#004459','color': '#FFFFFF', 'margin-bottom': '10' }
    }
  });
    sIFR.replace(corisande, {
    selector: '#content h1'
    ,css: {
      '.sIFR-root': { 'color': '#004459', 'leading': '-10' }
    }
  });
	sIFR.replace(corisande, {
    selector: '#titleBar h1'
    ,css: {
      '.sIFR-root': { 'color': '#ffffff', 'leading': '50' }
    }
  });
sIFR.activate(corisande); // From revision 209 and onwards
  sIFR.replace(corisande, {
    selector: '#homesplash h2'
    ,css: {
      '.sIFR-root': { 'color': '#ffffff','leading': '5' }//change colour for image text here
    }
  });
  sIFR.replace(corisande, {
    selector: '#homeBar h1'
    ,css: {
      '.sIFR-root': { 'color': '#ffffff', 'leading': '0' }
    }
  });
  
 
function trim_str(inputString)
{
    if (typeof inputString != "string")
    {
        return inputString;
    }
    var retValue = inputString;
    var ch = retValue.substring(0, 1);
    while (ch == " ")
    { // Check for spaces at the beginning of the string
        retValue = retValue.substring(1, retValue.length);
        ch = retValue.substring(0, 1);
    }
    ch = retValue.substring(retValue.length-1, retValue.length);
    while (ch == " ")
    { // Check for spaces at the end of the string
        retValue = retValue.substring(0, retValue.length-1);
        ch = retValue.substring(retValue.length-1, retValue.length);
    }
    //while (retValue.indexOf(" ") != -1) { // Note that there are two 
	//spaces in the string - look for multiple spaces within the string
    //retValue = retVal
    //}
    return retValue;
}

