/*This toggle script for the toggling.. duh!*/
function toggle_func(){
    imageLocation = window.document.images["news"].src
    end = imageLocation.length
    start=imageLocation.lastIndexOf("/", end)
    imageLocation = imageLocation.slice(start+1, end)
    if (imageLocation == "news.gif"){
        window.document.images["news"].src="pressbutton.gif"
        document.getElementById("press-news").style.display="none"
        document.getElementById("press-news2").style.display="block"
       /*hide portlet for press*/
    }
    else{
        window.document.images["news"].src="news.gif"
        document.getElementById("press-news").style.display="block"
        document.getElementById("press-news2").style.display="none"
    }
   return true;
}

function hover(){
    imageLocation = window.document.images["news"].src
    end = imageLocation.length
    start=imageLocation.lastIndexOf("/", end)
    imageLocation = imageLocation.slice(start+1, end)
    if (imageLocation == "news.gif"){
        window.document.images["news"].title = "Click to view the news items"
       /* document.getElementById("press-news2").title = "Click here to view press"*/
       /*hide portlet for press*/
    }
    else{
        window.document.images["news"].title = "Click to view the press items"
        /*document.getElementById("press-news").title = "Click here to view news"*/
    }
   return true;
}
