
function GotoFrame(vNumFrame)
{
	window.document.Movie2.FrameNum = vNumFrame;
}

function Test(command)
{
    alert('Test');
}

function ExecuteCommand(command)
{
    // alert(command);
	// alert(command);
	// alert(args);

	switch(command)
	{
		case "Home":
		    document.location = "../PageMainAspx/PageMain.aspx";
			break;
			
		case "Samples":
		    document.location = "../PageSamples/PageSamples.aspx";
			break;
			
		case "FAQ":
		    document.location = "../PageFaq/PageFaq.aspx";
			break;
				
		case "Forums":
		    document.location = "http://opusnetwork.eweb701.discountasp.net/Forum/default.aspx";
			break;
        case "Download":            document.location = "../PageDownload/PageDownload.aspx";            break;

        case "Partners":
            document.location = "../PagePartners/PagePartners.aspx";
            break;
			
		case "Contact":
		    document.location = "../PageContact/PageContact.aspx";
			break;
	}
}

function HelperOnResize()
{
    // alert('HelperOnResize');
    // Movie2.attachEvent('FSCommand', Movie2_doFSCommand);
    
    var x;
    x = window.document.getElementById('Tableau_01').offsetLeft;
    
    // alert();

    window.document.getElementById('DivLogin').style.left = x + 490;
    
    // window.document.getElementById('DivLiveChat').style.left = x + 20;

    var o = window.document.getElementById('DivLiveChat');
    if(o != null)
        o.style.left = x + 20;
}

function OpenChat()
{
    // 510
    var win = window.open('../Chat/Chat.aspx', 'chat', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=603,height=480');
    win.focus();
    win.opener = window;
    return false;
}
