﻿// for hover state of default page television sets
function showhideTV(idTVstate, idTV)
{
    var tv = document.getElementById(idTV);
    var tvState = idTVstate;

    if (tvState == 'on')
    {
        tv.style.display = "block";
        //tv_off.style.visibility = "hidden";
    }
    if(tvState == 'off')
    {
        
        tv.style.display = "none";
        //tv.style.visibility = "visible";
    }
}


// for hover state of toy menu
function mouseoverItem(id)
{   
    var item = document.getElementById(id);
    switch(id)
    {
        case "item1":
        item.style.backgroundColor = "#666";
        item.style.color = "#fff";
        break;
        
        case "item2":
        item.style.backgroundColor = "#666";
        item.style.color = "#fff";
        break;
        
        case "item3":
        item.style.backgroundColor = "#666";
        item.style.color = "#fff";
        break;
        
        case "item4":
        item.style.backgroundColor = "#666";
        item.style.color = "#fff";
        break;
        
        case "item5":
        item.style.backgroundColor = "#666";
        item.style.color = "#fff";
        break;
        
        case "item6":
        item.style.backgroundColor = "#666";
        item.style.color = "#fff";
        break;
        
        case "item7":
        item.style.backgroundColor = "#666";
        item.style.color = "#fff";
        break;
        
        case "item8":
        item.style.backgroundColor = "#666";
        item.style.color = "#fff";
        break;
        
        case "item9":
        item.style.backgroundColor = "#666";
        item.style.color = "#fff";
        break;
        
        case "item10":
        item.style.backgroundColor = "#666";
        item.style.color = "#fff";
        break;
    }
}

function mouseoutItem(id)
{
    var item = document.getElementById(id);
    
    item.style.backgroundColor = "#e9e9e9";
    item.style.color = "#333333";
}

function onclickItem(id, onclickItem)
{
    var item = document.getElementById(id);
    
    item.style.backgroundColor = "#339900";
    item.style.color = "#fff";
}



