﻿// JScript File

//Begin - Flash functions:

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function news_DoFSCommand(command, args) {
	var newsObj = isInternetExplorer ? document.all.news : document.news;
	if(command == "getUrl" && args != "") MM_openBrWindow(args,'','');
	//alert("clicked");
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub news_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call news_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}

//flash handles popup
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//End - of flash functions

function OnRetailers()
{
    var oButton= document.getElementById("btnRetailers");
    if (oButton)
        oButton.src="images/buttons/retailers-over.jpg";
}
function OutRetailers()
{
    var oButton= document.getElementById("btnRetailers");
    
    if (oButton)
        oButton.src="images/buttons/retailers.jpg";
}
function OnVendors()
{

    var oButton= document.getElementById("btnVendors");
    
    if (oButton)
        oButton.src="images/buttons/vendors-over.jpg";
}
function OutVendors()
{
    var oButton= document.getElementById("btnVendors");
    
    if (oButton)
        oButton.src="images/buttons/vendors.jpg";
}
function OnForum()
{

    var oButton= document.getElementById("btnForum");
    
    if (oButton)
        oButton.src="images/buttons/forum-over.jpg";
}
function OutForum()
{
    var oButton= document.getElementById("btnForum");
    
    if (oButton)
        oButton.src="images/buttons/forum.jpg";
}
function OnBlog()
{

    var oButton= document.getElementById("btnBlog");
    
    if (oButton)
        oButton.src="images/buttons/blog-over.jpg";
}
function OutBlog()
{
    var oButton= document.getElementById("btnBlog");
    
    if (oButton)
        oButton.src="images/buttons/blog.jpg";
}
function OnAboutUs()
{

    var oButton= document.getElementById("btnAboutUs");
    
    if (oButton)
        oButton.src="images/buttons/about_us-over.jpg";
}
function OutAboutUs()
{
    var oButton= document.getElementById("btnAboutUs");
    
    if (oButton)
        oButton.src="images/buttons/about_us.jpg";
}
function OnContactUs()
{

    var oButton= document.getElementById("btnContactUs");
    
    if (oButton)
        oButton.src="images/buttons/contact_us-over.jpg";
}
function OutContactUs()
{
    var oButton= document.getElementById("btnContactUs");
    
    if (oButton)
        oButton.src="images/buttons/contact_us.jpg";
}
function OnHome(buttName)
{
    var oButton= document.getElementById("btnHome");
    
    if (oButton)
        oButton.src="images/buttons/"+buttName+"-over.jpg";
}
function OutHome(buttName)
{
    var oButton= document.getElementById("btnHome");
    
    if (oButton)
        oButton.src="images/buttons/"+buttName+".jpg";
}
function OnNews(iD)
{

    var oButton= document.getElementById(iD);
    
    if (oButton)
        oButton.src="images/buttons/arrow_news-over.jpg";
}
function OutNews(iD)
{
    var oButton= document.getElementById(iD);
    
    if (oButton)
        oButton.src="images/buttons/arrow_news.jpg";
}
function OutFreeTrial(iD)
{
    var oButton= document.getElementById(iD);
    
    if (oButton)
        oButton.style.visibility="hidden";
}
function OnOutFreeTrial(iD)
{
    var oButton= document.getElementById(iD);
    
    if (oButton)
        oButton.style.visibility="";
}
//function OutFreeTrial2(iD)
//{
//    var oButton= document.getElementById("btnFreeTrial2");
//    
//    if (oButton)
//        oButton.style.display="none";
//}
//function OnOutFreeTrial2()
//{
//    var oButton= document.getElementById("btnFreeTrial2");
//    
//    if (oButton)
//        oButton.style.display="block";
//}
function OnBtnCube(iD)
{

    var oButton= document.getElementById(iD);
    if (oButton)
        oButton.style.visibility="";
}
function OutBtnCube(iD)
{
    var oButton= document.getElementById(iD);
    if (oButton)
        oButton.style.visibility="hidden";
}
function OnToolbar(id)
{
 var oButton= document.getElementById(id);
    if (oButton)
        oButton.style.visibility="";
}
function OutToolbar(id)
{
    var oButton= document.getElementById(id);
    if (oButton)
        oButton.style.visibility="hidden";
}