//Vars
var timer = 0;
var openedMenu = null;
var req = null;

/*----------------------------------*/
function openMenu(arg1){
killMenuTimer();

if(openedMenu != null){
closeMenu();	
}


var obj = document.getElementById("menu_"+arg1);
obj.style.visibility = 'visible';
var obj1 = document.getElementById("href_"+arg1);
obj1.style.color = '#FFFF66';
obj1.style.textDecoration='underline';
openedMenu = arg1;
}
/*----------------------------------*/
function closeMenu(){
var obj = document.getElementById("menu_"+openedMenu);
obj.style.visibility = 'hidden';
var obj1 = document.getElementById("href_"+openedMenu);
obj1.style.color = '#FFFFFF';
obj1.style.textDecoration='none';
//obj1.style.backgroundColor='transparent';
killMenuTimer();
}
/*----------------------------------*/
function killMenuTimer(){
clearInterval(timer);
}

/*----------------------------------*/
function startMenuTimer(){
timer = setTimeout('closeMenu()',500);
}

/*----------------------------------*/
function addRotator(xml,styleSheet){
var flashPhotoPlayer = new SWFObject("nctvetAdvertPlayer.swf", "Add Rotator1.1 [seanowatson.com]", "720px", "205px", "8", "#000000");
flashPhotoPlayer.addParam("quality", "high");
flashPhotoPlayer.addParam("wmode", "transparent");
flashPhotoPlayer.addParam("scale", "noscale");
flashPhotoPlayer.addParam("menu", "false");
//
flashPhotoPlayer.addVariable("xmlData",xml);
flashPhotoPlayer.addVariable("css",styleSheet);
//
flashPhotoPlayer.write("flash");
}

/*----------------------------------*/
function setPageTitle(arg1){
var str = new String(arg1.toUpperCase());
var obj = document.getElementById('pageTitle');
obj.innerHTML= str;
}

/*----------------------------------*/

