CbOS.btn.Img=["btn/ds","btn/over","btn/down","btn/up"];
CbOS.mn={
	Create:function(aDoc,aMenuContainer,aMenuItems,aSelectedIndex){
		with(CbOS){
			if (news.timer)
			{
				get.Win(aDoc).clearInterval(news.timer);
				news.timer = null;
			}
			if (!is.Def(aSelectedIndex))
				news.Init(get.Win(aDoc));
			aMenuItems = (new Function("o", "return top.CbOS.get.Win(o)."+aMenuItems))(aDoc);
			var p = ['<div class=aycMenu><div class=aycMenuRepeat><div class=aycMenuL><div class=aycMenuR><div class=aycMenuSeparator style="background-position: 94px 0px"><div class=aycMenuSeparator style="background-position: 207px 0px"><div class=aycMenuSeparator style="background-position: 309px 0px"><div class=aycMenuSeparator style="background-position: 421px 0px"><div class=aycMenuSeparator style="background-position: 512px 0px"><div class=aycMenuSeparator style="background-position: 609px 0px">'];
			for(var i = 0, params; i < aMenuItems.length; i++)
			{
				params = {hidefocus: true, _class: 'aycMenu' + i + 'a'};
				if (aSelectedIndex == i)
					params._class += " aycMenu" + i + 'a1'
				else
				{
					params.href = "javascript:void(0)";
					params.onclick =  aMenuItems[i][2] ? "top.ShowExt(this, document)" : "top.CbOS.ajax.Redirect(w,'Menu','" + aMenuItems[i][1] + "')";
				};
				p.push("A".wrap(aMenuItems[i][0], params));
			};
			p.push('</div></div></div></div></div></div></div></div></div></div>');
			return p.join("")
		}
	}
}
CbOS.news={
	Init:function(aWin)
	{
		with(CbOS){
			aWin.HomeImg=new Image();
			news.timer=aWin.setInterval('top.CbOS.news.Home(w)', 9000);
		}
	},
	IMGOnLoad:function(o)
	{
		with(top.CbOS)
		{
			if (o = get.Obj("aycBoxHome", this.o))
			{
				if (typeof(o.filters) == "object" && (o.style.filter = "progid:DXImageTransform.Microsoft.Fade(Overlap=1.00)") && o.filters.length)
				{
					o.filters[0].Apply();
					_.S(o, _.b, "url(" + this.src + ")");
					o.filters[0].Play();
				}else
					_.S(o, _.b, "url(" + this.src + ")");
			}
		}
	},
	Home:function(aWin,m,i){
		with(CbOS){
			var im = get.Obj("aycBoxHome",aWin);
			if (im)
			{
				m=aWin.HomeImg;
				m.onload=news.IMGOnLoad;
				m.p=m.p||1;
				do i=String(Math.random()).charAt(2)*1; while(!i||m.p==i||i>5);
				m.p=i;
				m.o=aWin;
				m.src=get.bgImage(im,1)+i+".jpg";
			}
		}
	}
};
CbOS.MsgBox.Btn=function(o,s,i){with(CbOS){s="";for(i=0;i<o.length;i++)s+=btn.Create("CbOS.MsgBox.Click(this)",o[i],1,75);return s}};
top.ShowExt = function(aDoc)
{
	
}
top.ShowExt = function(aBtn, aDoc)
{

	var cont = document.getElementById("widget_large")
	if (!cont)
	{ 
		cont = document.createElement("div");
		cont0 = document.createElement("div");
		cont0.id = "widget_large_space"
		top.CbOS.get.Win(aDoc)._.M(cont0,"onclick", "this.parentNode.style.display = 'none'")
		cont1 = document.createElement("div");
		cont.id = "widget_large"
		cont1.id = "widget_large_cont"
		document.body.appendChild(cont)
		cont.appendChild(cont0)
		cont.appendChild(cont1)
		script = document.createElement("script");
		script.type = "text/javascript";
		script.src = "http://www.ridecharge.com/dynjs/widget_large.js?id=94&width=700"
		cont1.appendChild(script);
	}
	cont.style.display="block";
/*	var frm = top.CbOS.create.IFrame(aDoc.body, "ext", "extIfr", "ext");
	frm.style.cssText="position:absolute; width: 700px; height: 300px; top: 400px;z-Index: 5; left 21"*/
}