﻿
function initButton(theme)
{
    try
    {
	    var so = new SWFObject("/app_themes/" + theme + "/flash/anibutton.swf", "button", "100%", "100%", "9", "#710100");
	    so.write("buttondiv");
	    delete so;
	}
	catch(e)
	{
	    alert(e);
	}
}

var w = null;
function openWin(url)
{
    w=window.open(url, "loudcity", "height=50,width=50");

   setTimeout("closeWin();", 10000);
}

function closeWin()
{
   if (w)
   {
        w.close();
   }
}

function rollOver(id)
{
//    var fadeIn = new YAHOO.util.Anim(id, { opacity: { to: 1 } }, 0.3);
//    fadeIn.animate();

    var links = document.getElementById(id);
    if (links)
    {
        links.style.visibility = "";
    }
}

function rollOut(id)
{
//    var fadeOut = new YAHOO.util.Anim(id, { opacity: { to: 0 } }, 0.2);
//    fadeOut.animate();

    var links = document.getElementById(id);
    if (links)
    {
        links.style.visibility = "hidden";
    }
}