//var movedownvar;
//var movedownvar;
/*
var speed=5;
var divObj = document.getElementById? document.getElementById("divListBrands") : document.all.divListBrands;
var contentheight = divObj.offsetHeight;
		
function movedown()
{
	//alert(divObj.style.top);
	if (parseInt(divObj.style.top)>=(contentheight*(-1)+140))
		divObj.style.top=parseInt(divObj.style.top)-speed+"px"
	
	movedownvar=setTimeout("movedown()",20)
}

function moveup()
{
	if (parseInt(divObj.style.top)<0)
		divObj.style.top=parseInt(divObj.style.top)+speed+"px"
	
	moveupvar=setTimeout("moveup()",20)
}

function getcontent_height()
{	
	contentheight=divObj.offsetHeight;
}

window.onload=getcontent_height;seasonactivity.aspx
*/
var imgUrl=new Array('http://www.shiyoo.com/web/acts/lanvin/images/adcent+r2.jpg','http://www.shiyoo.com/web/acts/gatineau2/images/ad_cent4.jpg','');
var imgLink=new Array('','http://www.shiyoo.com/web/acts/gatineau2/gatineau_index.htm','');
var adNum=0;
var j=0;
for (i=0;i<7;i++) {
	if( (imgUrl[i]!="") ) {
		j++;
	} else {
		break;
	}
}
function playTran(){
	if (document.all){
		document.images['befc'].filters[0].play();
	}
}
function nextFr(){
	adNum++ ;
	if(adNum>=j)adNum=0;
	
	if (document.all){
		document.images['befc'].filters[0].Transition=26;
		document.images['befc'].filters[0].apply();
	}
	document.images['befc'].src = imgUrl[adNum];//"/web/images/newindex/" + imgUrl[adNum];
	playTran();
	theTimer=setTimeout("nextFr()", 6000);
}
function looper(){
	jumpUrl=imgLink[adNum];
	if (jumpUrl != "" )
		window.open(jumpUrl,'_blank');
}

function initUserStatus()
{	
	var userName = getCookie("UserName");
	var userID = getCookie("UserID");
	var spanLoginoutObj = document.getElementById("spanLoginout");
	var spanUserStatusObj = document.getElementById("spanUserStatus");
	var url = document.URL;	
	var splash = url.lastIndexOf("/");
	var dir = url.substr(0, splash);
	if ( dir.indexOf("web") == -1 )
		dir += "/web";
	
	if ( userName.length > 0 && userID.length > 0 )
	{
		spanLoginoutObj.innerHTML = "<a href=\"" + dir + "/logout.aspx\">" +
			"<img src=\"" + dir + "/Images/icon_05.jpg\" width=\"75\" height=\"85\" border=\"0\"></a>";
		spanUserStatusObj.innerHTML = "»¶Ó­¡¸<font color=\"red\"><a href=\"" + dir + "/MyGroup.aspx\" class=\"sy\">" + 
			userName + "</a></font>¡¹µÇÂ¼&nbsp;&nbsp;<a href=\"" + dir + "/loginuser.aspx\" class=\"px\">ÎÒµÄÖ÷Ò³</a>";
	}
	else
	{
		spanLoginoutObj.innerHTML = "<a href=\"" + dir + "/login.aspx\">" +
			"<img src=\"" + dir + "/Images/icon_04.jpg\" width=\"75\" height=\"85\" border=\"0\"></a>";
		spanUserStatusObj.innerHTML = "";
	}
}

function initUserStatus_1027()
{	
	var userName = getCookie("UserName");
	var userID = getCookie("UserID");
	var spanLoginoutObj = document.getElementById("spanLoginout");
	var spanUserStatusObj = document.getElementById("spanUserStatus");
	var url = document.URL;	
	var splash = url.lastIndexOf("/");
	var dir = url.substr(0, splash);
	if ( dir.indexOf("web") == -1 )
		dir += "/web";
	
	if ( userName.length > 0 && userID.length > 0 )
	{
		spanLoginoutObj.innerHTML = "<a href=\"" + dir + "/logout.aspx\">" +
			"<img src=\"" + dir + "/Images/20081027/bt_logout.jpg\" width=\"73\" height=\"37\" border=\"0\"></a>";
		spanUserStatusObj.innerHTML = "<a href=\"" + dir + "/loginuser.aspx\"><img src=\""+dir+"/Images/20081027/bt_mypage.jpg\" width=\"85\" height=\"37\" border=\"0\"></a>";
	}
	else
	{
		spanLoginoutObj.innerHTML = "<a href=\"" + dir + "/login.aspx\">" +
			"<img src=\"" + dir + "/Images/20081027/bt_login.jpg\" width=\"68\" height=\"37\" border=\"0\"></a>";
		spanUserStatusObj.innerHTML = "<a href=\"" + dir + "/userReg.aspx\"><img src=\""+dir+"/Images/20081027/bt_regist.jpg\" width=\"68\" height=\"37\" border=\"0\"></a>";
	}
}
