﻿// Copyright Vcast 2006 
// By Felix Li

function SwapImage(id,img)
{
    document.getElementById(id).src = img;

}
function openUrl(url,targetDiv)
{
    try{ 
    
    if (url.indexOf('?') > 0) {
        document.getElementById(targetDiv).src = url + '&t=' + new Date();
    }
    else {
        document.getElementById(targetDiv).src = url + '?t=' + new Date();
    }
}
    catch(e)
    {}
        

}
function menuOn(div)
{	
	document.getElementById(div).style.backgroundColor = "#C60446";
	document.getElementById(div).style.color= "#ffffff";
	document.getElementById(div).style.cursor = "pointer";
	

}
function menuOff(div)
{	
	document.getElementById(div).style.backgroundColor = "";
	document.getElementById(div).style.color= "#333333";
}
