// JavaScript Document
var click="0";
var obj;
var storeobj;
var storecolor;
var storecolorM;
var abc;
function showServer(index,obje)
{
click="1";
if(storeobj!=null&&obje!=storeobj)
{
storeobj.style.color=storecolor;
storeobj.style.background="url(../images/nav_bg6.gif) 0 0 repeat-x #000";
}
storecolor=abc;
storecolorM=abc;
storeobj=obje;
obje.style.background="none";
//obje.style.color="black";

//	if(index==1){
//		if(obj)
//		{
//			obj.style.background="url(../images/tit_pub.gif) 0 0 no-repeat";
//			obj.style.color="#41372D";
//		}
//		obje.style.background="";
//		obje.style.color="";
//		obje.style.background="url(../images/tit_click.gif) 0 0 no-repeat";
//		obje.style.color="#FFFEEF";
//		obj = obje;
//	}else if(index==2)
//	{
//		if(obje!=obj){
//			obje.style.background="";
//			obje.style.color="";
//			obje.style.background="url(../images/tit_hover.gif) 0 0 no-repeat";
//			obje.style.color="#FFFCF3";
//		}
//	}
//	else if(index==3){
//		if(obje!=obj){
//			obje.style.background="";
//			obje.style.color="";
//			obje.style.background="url(../images/tit_pub.gif) 0 0 no-repeat";
//			obje.style.color="#41372D";
//		}
//	}
}


function onmouseon(obje)
{
    if(obje!=storeobj)
    {
        storecolorM=obje.style.color;

        obje.style.background="none";
        obje.style.color="Black";
        if(storecolorM!=obje.style.color)
        {
            abc=storecolorM;
            //alert(abc);
        }
    }
}

function onmouselos(obje)
{
    if(obje!=storeobj)
    {
//        if(click=="1")
//            click="0";
//        else
//        {
            if(abc!=null)
            {
                obje.style.color=abc;
            }
            obje.style.background="url(../images/nav_bg6.gif) 0 0 repeat-x #000";
//        }
    }
}
function showBuy()
{
	
}

function doLogin(){
//    $.ajax({
//        type: "POST",url: "/ajax/doLogin.ashx",
//        data: "email="+ $("#txtEmail").val() +"&pwd=" + escape($("#txtPwd").val()) + "&keepMe=" + ($("#keepMe").attr("checked")?"1":"0") + "&timeStamp=" + new Date().getTime(),
//        success: function(res){
//            if(res=="yes")
//                location.href = location.href;
//            else if(res=="noEmail"){
//                alert("Sorry!Your E-Mail don't exist!");$("#txtEmail").focus();return false;
//            }else{
//                alert("Sorry!Your password is wrong!");$("#txtPwd").focus();return false;
//            }
//        } 
//    });
}
