if(typeof(jQuery)=="undefined")alert("jQuery is needed!");
$(document).ready(function(){
    initScrollTop();//init
});
//init  nav
function initScrollTop()
{
    $(".scr_navbtn1").mouseover(function(){
       $(this).addClass("scr_navbtn2").mouseout(function(){
	       $(this).removeClass("scr_navbtn2");
	   });
   });
   var w = 0;
   window.setInterval(function(){
       if($("#scrolltopdiv").offset().top != document.documentElement.scrollTop)
       $("#scrolltopdiv").animate({top:document.documentElement.scrollTop+"px"},500);
   },500);
}
//-------------------------
var loginFrameWindow = null;
function goToLoginFrame(url)
{
	if(loginFrameWindow != null)
	{
		 loginFrameWindow.close();
	}
	var left = Math.floor( (screen.width - 420) / 2);
	var top = Math.floor( (screen.height - 300) / 2);
    loginFrameWindow = window.open("/user/loginframe.screen?pourl="+encodeURI(url),"","width="+420+",height=300,top="+top+",left="+left);
}
var open_zhuWin;
function winOpen(url)
{
	if(open_zhuWin !=null && open_zhuWin.open && !open_zhuWin.closed)
	{
		open_zhuWin.focus();
		open_zhuWin.window.location = url;
	}
	else
	{
	    open_zhuWin = window.open(url);
	}
}
function goMy12530()
{
	if(loginflag)
	{
		AJLOG.G_mod('1.5');
	    winOpen('/user/my_index.screen');
	}
	else
	{
		winOpen('/user/index.screen?lgw=2');
	}
}