﻿///
var mid = '';
function pagemenu(id)
{
mid = id;
var i = document.getElementById(id);
document.getElementById(id).style.backgroundImage =  'url(Images/Onover-stripe.jpg)';
document.getElementById(id).style.height='31px';
i.style.color = '#ffd8ca';
i.style.cursor = 'pointer';
}
function pagemenu1(id)
{
mid = id;
var i = document.getElementById(id);
document.getElementById(id).style.backgroundImage = 'url(../images/MenuOver.jpg)';
i.style.fontWeight='bold';
i.style.cursor = 'pointer';
}
function MenuClick(page)
{
document.getElementById('Menuframe').src=page;
}

function Location(id)
{
window.location=id;
}
function MO(id)
{
var i = document.getElementById(id);
document.getElementById(id).style.backgroundImage =  'url(Images/Onover-stripe.jpg)';
document.getElementById(id).style.height='31px';
i.style.color = '#ffd8ca';
i.style.cursor = 'pointer';
}

function MOut(id)
{
if(mid!=id)
{
    var i = document.getElementById(id);
    document.getElementById(id).style.backgroundImage = 'url(Images/MenuStrip.jpg)';
    document.getElementById(id).style.height='31px';
    i.style.color = '#ffc89b';
    i.style.cursor = 'default';
 }
}

function C(id) // On mouse over
{
document.getElementById(id).style.color = '#ff3600';
}
function D(id) // Mouse over back - Item
{
document.getElementById(id).style.color='#a5856f';
}
function C1(id) // On mouse over
{
document.getElementById(id).style.color = 'Red';
}
function D1(id) // Mouse over back - Item
{
document.getElementById(id).style.color='#989898';
}

function MenuClick2(page,obj)
{
try{
document.getElementById(mid).style.backgroundImage = 'url(Images/MenuStrip.jpg)';
mid=obj;
document.getElementById(obj).style.backgroundImage = 'url(Images/Onover-stripe.jpg)';
var i = document.getElementById(obj);
document.getElementById(obj).style.height='31px';
i.style.color = '#ffd8ca';
i.style.cursor = 'pointer';
document.getElementById('Menuframe').src=page;
}
catch(e)
{alert(e);}
}