//var w = window;
	// ---
	var txtTitle;
	var dllCheck=0;
	var defCheck=0;

	var fullTitle = new Array(100);
	var setArrowPos = 40;
	var mbcont_len = 0;
    // --
    if (navigator.appName=="Netscape") {
       if(navigator.userAgent.match("Netscape/7.2"))
          var ns2 = 1;
    }

function ge(id){return document.getElementById(id)}
function gt(t,o){o=o?o:d;return o.getElementsByTagName(t)}
function gc(c,t,s,o){var r=new Array();var os=gt(t,o);for(var i=0,j=0,l=os.length;i<l;i++){var sc = s + os[i].className + s;if(sc.indexOf(s+c+s)!=-1){r[j] = os[i];j++;}}return r;} // New method for getElementsByTagName + ClassName; string "s" allows pinpointing exact class or if it exists in the string
function gte(e){if (w.event && w.event.srcElement) r = w.event.srcElement;else if (e && e.target) r = e.target;if (!r) return null;if(r.nodeType == 3)r=r.parentNode; /* Safari 1.3 */ return r;}
function ce(t){return document.createElement(t)}
//function cf(){return document.createDocumentFragment()}
function ct(s){return document.createTextNode(s)}
function ac(p,c){p.appendChild(c)}
function rc(o){(o.parentNode).removeChild(o)}
function ib(p,c,e){p.insertBefore(c,e)}
function ae(o,et,fn){if(o.addEventListener)o.addEventListener(et,fn,false);else if(o.attachEvent)o.attachEvent("on"+et,fn);}
function re(o,et,fn){if(o.removeEventListener)o.removeEventListener(et,fn,false);else if(o.detachEvent)o.detachEvent("on"+et,fn);}
//function ad(e,t){while (e.nodeName.toLowerCase() != t && e.nodeName.toLowerCase() != 'html') e=e.parentNode; return (e.nodeName.toLowerCase()=='html') ? null : e;}
/*function scookie(name, value, days, path, domain) {
	var expires = -1;
	if(typeof days == "number" && days >= 0) {
		var dt = new Date();
		dt.setTime(dt.getTime()+(days*24*60*60*1000));
		expires = dt.toGMTString();
	}
	value = escape(value);
	document.cookie = name + "=" + value + ";"
		+ (expires != -1 ? " expires=" + expires + ";" : "")
		+ (path ? "path=" + path : "")
		+ (domain ? "; domain=" + domain : "")
}
function gcookie(name) {
	var idx = document.cookie.indexOf(name+'=');
	if(idx == -1) { return null; }
	var value = document.cookie.substring(idx+name.length+1);
	var end = value.indexOf(';');
	if(end == -1) { end = value.length; }
	value = value.substring(0, end);
	value = unescape(value);
	return value;
}*/
vInt=arrowInt=growvInt=dlInt=dlInt1=false;
function setArtz(mid) {
	ge(mid).className="artz-mb";
}
vy=0;
var acc=-1;//gcookie('artz');
//alert(acc);
npn=false;
oNOH = 0;
doNOH = 0;
var nextbutton=btnNextVdo;//"Next Video";
var prevbutton=btnPrevVdo;//"Previous Video";
if (artz == null || typeof(artz) != "object") var artz = new Object();

artz = {
/*	on: function() {
		if (gcookie('artz')=='1')
			return true;
		else
			return false;
	},

	sr: function() {
		return false;
	},
*/
	init: function() {
		//if (artz.sr() && !artz.on()) artz.enable();
		artz.update();
	},

	update: function() {
		var m,s,a;
		artz.on()?m='exit':m='init';
		a = gc('artz-','div',''),l=a.length;
		for (var i=0;i<l;i++) {
			s=' ' + a[i].className + ' ';
			if (s.indexOf(' artz ')!=-1 && m == 'init') {
				// module is already initialized; do nothing
			} else if (s.indexOf(' artz ')==-1 && m=='exit') {
				// module is already exited; do nothing
			} else {
				s = a[i].className;
				s = s.replace(' artz','');
				s = s.replace('artz-','');
				eval('artz.'+s+'.'+m+'(a[i].id)');
			}
		}
	}/*,

	enable: function() {
		scookie('artz','1',365,'/','aol.com');
		artz.update();
	},

	disable: function() {
		scookie('artz','0',365,'/','aol.com');
		artz.update();
	}*/
}



if (artz.dl == null || typeof(artz.dl) != "object") artz.dl = new Object();
var jars=0;
var dflt="fwd";
var dlrew=ce('a');
var dlfwd=ce('a');
artz.dl={
	init:function(id) {
		var dl=ge(id);
		dl.className="dl";
		dls=dl.getElementsByTagName('li');
		dll=dls.length;
		for (var i=0; i<dll;i++) {
			dls[i].style.width='0px';
			dls[i].style.zIndex=dll-i;
			var dimg=ce('img');
			dimg.setAttribute('src',dls[i].childNodes[1].href);
			dimg.setAttribute('alt',dls[i].firstChild.firstChild.data);
			dimg.setAttribute('title',dls[i].firstChild.firstChild.data);
			dls[i].removeChild(dls[i].childNodes[1]);
			dls[i].firstChild.replaceChild(dimg,dls[i].firstChild.firstChild);
		}
		if (dll>1) {
		    ge("vid").appendChild(artz.dl.controls())
		    dlTimeOut=setTimeout('artz.dl.moveDL()',10);
			dllCheck = 1;
		} else {
			dls[0].style.zIndex=1;
            dls[0].style.width='320px';
		}
	},
	controls:function() {
		var dlc=ce('span');
		dlc.setAttribute('id','dlc')
//		var dlrew=ce('a');
		dlrew.onclick=artz.dl.moveDL1;
		dlrew.setAttribute('id','dlrew');
		var dlpau=ce('a');
		dlpau.onclick=artz.dl.pause;;//dlpause;
		dlpau.setAttribute('id','dlpau');
//		var dlfwd=ce('a');
		dlfwd.onclick=artz.dl.moveDL;
		dlfwd.setAttribute('id','dlfwd');
		dlc.appendChild(dlrew);
		dlc.appendChild(dlpau);
		dlc.appendChild(dlfwd);
		return dlc;	
	},
	moveDL:function () {
		if(dflt=="bwd") {
			dflt="fwd";
			artz.dl.reOrder_zIndex();
			artz.dl.upDate_zIndex(0);
			clearTimeout(dlTimeOut);
			dlTimeOut=setTimeout('artz.dl.moveDL()',10);
		} else {
			dlfwd.onclick=null;
			dlrew.onclick=null;
			clearTimeout(dlTimeOut);
			if(dlInt) {clearInterval(dlInt)}
			topDL=artz.dl.getTopDL();
			topDL.style.width=0;
			currWidth=0;
			dlInt=setInterval('artz.dl.goDL()',60);
		}
	},
	 goDL:function () {
		if (currWidth<320) {
			var spd=parseInt((325-currWidth)*.2);
			currWidth=currWidth+spd;
		} else {
			clearInterval(dlInt);
			artz.dl.upDate_zIndex(0);
			currWidth=320;
			dlTimeOut=setTimeout('artz.dl.moveDL()',8000);
			dlfwd.onclick=artz.dl.moveDL;
			dlrew.onclick=artz.dl.moveDL1;
		}
		topDL.style.width=currWidth +"px";
		topDL.style.opacity=currWidth/320;
		topDL.style.filter="alpha(opacity:"+320/currWidth*100+")";
	},
	getTopDL:function() {
		for (i=0;i<dll;i++) {
			if (dls[i].style.zIndex==dll) {return dls[i]}
		}
	},
	upDateZ:function() {
		for (i=0;i<dll;i++) {
			//alert("i"+i+"-"+dls[i].style.zIndex);
			if (dls[i].style.zIndex==dll) {
				dls[i].style.zIndex=1;
			} else {
				dls[i].style.zIndex++;
				dls[i].style.width='0px';
				dls[i].style.alpha=0;
			}
		}
	},
	moveDL1:function () {
		if(dflt=="fwd") {
			dflt="bwd";
			artz.dl.reOrder_zIndex();
			artz.dl.upDate_zIndex(320);
			clearTimeout(dlTimeOut);
			dlTimeOut=setTimeout('artz.dl.moveDL1()',10);
		} else {
			dlfwd.onclick=null;
			dlrew.onclick=null;
			clearTimeout(dlTimeOut);
			if(dlInt) {clearInterval(dlInt)}
			topDL=artz.dl.getTopDL();
			topDL.style.width=320;
			currWidth=parseInt(topDL.style.width);		
			dlInt=setInterval('artz.dl.goDL1()',60);
		}
	},
	 goDL1:function () {
	 	if (currWidth>4) {
			var spd=parseInt((currWidth)*.2);
			currWidth=currWidth-spd;
		} else {
			clearInterval(dlInt);
			artz.dl.upDate_zIndex(320);
			currWidth=0;
			dlTimeOut=setTimeout('artz.dl.moveDL1()',8000);
			dlfwd.onclick=artz.dl.moveDL;
			dlrew.onclick=artz.dl.moveDL1;
		}
		topDL.style.width=currWidth +"px";
		topDL.style.opacity=320/currWidth;
		topDL.style.filter="alpha(opacity:"+320/currWidth*100+")";
	},
	getTopDL1:function() {
		for (i=0;i<dll;i++) {
			if (dls[i].style.zIndex==dll) {
				return dls[i];
			}
		}
	},

	upDateZ1:function() {
		for (i=0;i<dll;i++) {
			//alert("iz"+i+"-"+dls[i].style.zIndex);
			if (dls[i].style.zIndex==dll) {
				dls[i].style.zIndex=1;
			} else {
				dls[i].style.zIndex++;
				dls[i].style.width='320px';
				dls[i].style.alpha=320;
			}
		}
	},
	reOrder_zIndex:function () {
		for(i=0;i<dll;i++) {
			dls[i].style.zIndex=dll-dls[i].style.zIndex+1;
			if (dls[i].style.zIndex==1) {
				dls[i].style.zIndex=dll;
			} else {
				dls[i].style.zIndex--;
			}
		}
	},
	upDate_zIndex:function( points ) {
		for (i=0;i<dll;i++) {
			if (dls[i].style.zIndex==dll) {
				dls[i].style.zIndex=1;
			} else {
				dls[i].style.zIndex++;
				dls[i].style.width=points+'px';
				dls[i].style.alpha=0;
			}
		}
	},

	pause:function() {
		clearTimeout(dlTimeOut);
//		if(jars>0) {
//			clearTimeout(dlTimeOut1);
//		}
	}


}



if (artz.mb == null || typeof(artz.mb) != "object") artz.mb = new Object();

artz.mb={
	
	init:function() {
		if (acc!=1) {
			mbArr=new Array();
			ge('mb-module').className='artz-mb';
			vl=ge('vlist');
			vlc=ge('vlcon');
			vlinks=gt('h3',vl);
			mbItems=gc('mb-item','li','',vl);
			ml=mbItems.length;
			mbcont_len = ml;
			defcon=ge('conLinks').cloneNode(ge('conLinks'));
			vlength=vlinks.length;
			for (var i=0;i<ml;i++) {
				mbArr[i]=new artz.mb.vob(mbItems[i]);
				var tab=gt('a',mbItems[i])[0];
				tab.href='javascript:void(0)';

				// changes ---
				
                // --
				tab.id=i;
				tab.target='_self';
                   
                // --- Tool Tip ----
				 fullTitle[i]= "";
				if (tab.className == "") {
    				var tmpTab = tab.innerHTML
	    			if (tmpTab.length > 21)
		    		{
					  //tab.alt = tab.innerHTML;
  				      //tab.title = tab.innerHTML;
					  fullTitle[i]= tab.innerHTML;
						var tabTxt = tmpTab.substr(0,19);
						tabTxt += " ...";
				      tab.innerHTML = tabTxt;
				    }
                }
                // ---
				artz.mb.setV(tab);
			}
//			artz.mb.vscroll();
			artz.mb.contextArea();
		//	artz.mb.createIframe();
			
		 	artz.dl.init('mbk_dl');
		 	artz.mb.createArrow();
			
			
			//artz.mb.vscroll(vH);
			var sv=mbItems[0].offsetHeight;
		 	uli=ge('ulist');
			if (ns2) {
     			uli.style.top='5px';
			} else {
				uli.style.top='0px';
			}
			//uli.style.margin=0;
			if (defItm == -1 && defCheck==0) {
			    artz.mb.doCng(vlinks[0].firstChild);
				defCheck = 1;
            } else {
                artz.mb.doCng(vlinks[defItm].firstChild);
				defCheck = 1;
			}
			vsp=mbItems[0].offsetHeight-sv;
			artz.mb.vset();
			
		}

		//setAccess(gcookie('artz'));
	},
	vscroll:function() {
		upArrow=ce('div');
		dnArrow=ce('div');
		upArrow.className=dnArrow.className='varrw';
		ac(vl,dnArrow);
		ib(vl,upArrow,vlc);
	},
	vset:function() {
		uli=ge('ulist');
		uH=uli.offsetHeight;
		vH=vlc.offsetHeight;
		if (uH>vH) {
			artz.mb.vscroll();
			setArrowPos = 70;

			upArrow.setAttribute('id','upArrow');
			upArrow.onclick=artz.mb.vUp;
			upArrow.onmouseover=artz.mb.upOver;
			upArrow.onmouseout =artz.mb.upOut;
			upArrow.className='uparrw';
			upArrow.alt='scroll list up';
			upArrow.title='scroll list up';

			dnArrow.setAttribute('id','dnArrow');
			dnArrow.onclick=artz.mb.vDn;
			dnArrow.onmouseover=artz.mb.dnOver;
			dnArrow.onmouseout =artz.mb.dnOut;
			dnArrow.className='dnarrw';
			dnArrow.alt='scroll list down';
			dnArrow.title='scroll list down';
		} 
	},
	upOver:function() { 
		this.className='uparrw uparrw_over ';
	},
	upOut:function() { 
		this.className='uparrw';
	},
	dnOver:function() { 
		this.className='dnarrw dnarrw_over ';
	},
	dnOut:function() { 
		this.className='dnarrw';
	},
	vUp:function() {
	 	uli=ge('ulist');
		uH=uli.offsetHeight;
		vH=vlc.offsetHeight;
		uliT=parseInt(uli.style.top);
		vtarg=uliT+vH;
		//(uH + ' = uh ::'+uliT +' = uliT ::'+vH + ' = vh ::' +vtarg +' = vtarg');
		if (vtarg>0){
			vtarg=0;
		} 	
		if (vInt) {clearInterval(vInt)}
		vInt=setInterval('artz.mb.vGo()',60);
	},
	vDn:function() {
	 	uli=ge('ulist');
		uH=uli.offsetHeight;
		vH=vlc.offsetHeight;
		var agt=navigator.userAgent.toLowerCase();
		if (((agt.indexOf("msie") != -1) || (agt.indexOf("netscape/7.2") !=-1)) && (agt.indexOf("opera") == -1))
		{
			uH = uH-5;
		}
//		alert(uH +" " + vH);
		uliT=parseInt(uli.style.top);
		vtarg=uliT-vH;
//		alert(uH + ' = uh ::'+uliT +' = uliT ::'+vH + ' = vh ::' +vtarg +' = vtarg');
		if (vtarg<(vH-uH) ){
			vtarg=vH-uH;
		} 
		if (vInt) {clearInterval(vInt)}
		vInt=setInterval('artz.mb.vGo()',60);
		if (ns2) {
            uli.style.margin = "7px 0 0 0";
		}
	},
	vGo:function() {
			 	uli=ge('ulist');
		uH=uli.offsetHeight;
		vH=vlc.offsetHeight;
		uliT=parseInt(uli.style.top);
		var spd=(vtarg-uliT)*.5;
		if (Math.abs(spd)>2) {
				uliT+=spd;
		} else {
			uliT=vtarg;
			clearInterval(vInt);
			artz.mb.setArrow(actNode);
		}
		uli.style.top=uliT+'px';
		//alert(uli.style.top);
	},
	vob:function(o) {
			var hdr=gt('h3',o)[0].firstChild;
			this.hdr=hdr.innerHTML;
			
			this.pmms=(hdr.href).split('pmmsid=')[1];
			this.iframeURL=hdr.href;
			var cct=gc('ctxt','div','',o)[0];
			this.ctxt=cct.innerHTML;
			rc(cct);
			if (gc('clinks','div','',o)!='') {
				var cll=gc('clinks','div','',o)[0];
				this.clinks=cll;
				rc(cll)
			} else {this.clinks=defcon;}	
	},
	contextArea:function() {
		var conArea=ce('div');
		conArea.setAttribute('id','context');
		var conHead=ce('div');
		conHead.setAttribute('id','conTxtHead');
		var conBody=ce('div');
		conBody.setAttribute('id','conTxtBody');
		var h5con=ce('h5');
		var h5txt=ct(ccHdr);
		ac(h5con,h5txt);
		var h2con=ce('h2');
		h2con.setAttribute('id','mtitle');
		var pcon=ce('div');
		pcon.setAttribute('id','tct');
		ac(conHead,h2con);
		ac(conHead,h5con );
		ac(conBody,pcon);
		ac(conArea,conHead);
		ac(conArea,conBody);
		ib(ge('conTxt'),conArea,ge('adblock'));
	},
	createIframe: function () {
		var ifr=ce('div');
		ifr.setAttribute('id','dalai');
		ifr.setAttribute('width',320);
		ifr.setAttribute('height',252);
	//	ifr.setAttribute('frameborder',0);
	//	ifr.setAttribute('scrolling','no');
		ib(ge('vid'),ifr,ge('mbk_dl'));
	},
	setContext:function (o) {
		var nc=defcon;
		var cl=ge('conLinks');
		if (mbArr[actId].clinks!=defcon) {
			nc=mbArr[actId].clinks;
		}
		uc(nc,cl)
	},
	
	doClk:function(o) {
    	uli=ge('ulist');
		artz.mb.reSet();
		npn=true;

       // var normal_ht = document.getElementById(o.id).offsetHeight;

		// Text Ellipsis

		//tmpTitle = document.getElementById(o.id).title;
		if (fullTitle[o.id].length > 0) {
		document.getElementById(o.id).innerHTML = fullTitle[o.id];
		//document.getElementById(o.id).title = "";
		//document.getElementById(o.id).alt = "";
        }
		// ---

		actId=parseInt(o.id);
		actNode=o;
		parNode=o.parentNode.parentNode;
		
		parNode.style.height = null;
		cH=parNode.offsetHeight;
		o.className="vAct";
		
		parNode.style.opacity=.25;
/*		var agt=navigator.userAgent.toLowerCase();
		if (agt.indexOf("msie") != -1) {
			parNode.style.height=parNode.style.height+35;
		}*/
		parNode.style.filter="alpha(opacity:25)";
		if (dllCheck==1) {
		    clearTimeout(dlTimeOut);
		}
		np=ce('h5');
		np.className="now-playing";
		nptxt=document.createTextNode(plSelItmHdr);//('NOW PLAYING');
		np.appendChild(nptxt);
		npnode=parNode.insertBefore(np,o.parentNode);
		tth=parNode.offsetHeight;
		dH=tth-cH;
		if (growvInt) {clearInterval(growvInt)}
		growvInt=setInterval('artz.mb.growV()',60);
		artz.mb.vLoc(parNode);
		ge('mtitle').innerHTML=mbArr[actId].hdr;
		var tNode=o.parentNode.parentNode;
		ge('tct').innerHTML=mbArr[actId].ctxt;
//		artz.mb.setArrow(o);
		o.onmouseover=o.onmouseout=o.onclick=null;
		artz.mb.nexPrev();
		artz.mb.setContext(parNode);
		var mvt=setTimeout('artz.mb.pm()',500);
        
		uli=ge('ulist');
//		var cur_top = uli.style.top;
//      var active_ht = document.getElementById(o.id).offsetHeight;

		if ((oNOH > npnode.parentNode.offsetHeight))
		{
//			alert(parseInt(uli.style.top));
			if (parseInt(uli.style.top)>-8 && parseInt(uli.style.top)<=0)
			{
				uli.style.margin = parseInt(uli.style.top)+"px 0 0 0";
			} else {
				uli.style.top = parseInt(uli.style.top)+11+'px';
			}
		}
/*		if (ns2)
		{
			if (eval(mbcont_len-1) == actId) {
				uli.style.top = "-130px";
                uli.style.margin = "10px 0 0 0";
			}
		}*/

		artz.mb.setArrow(o);
		return false;
	},	
	doCng:function(o) {
		artz.mb.reSet();
		npn=true;

		// Text Ellipsis

		//tmpTitle = document.getElementById(o.id).title;
		if (fullTitle[o.id].length > 0) {
		document.getElementById(o.id).innerHTML = fullTitle[o.id];//document.getElementById(o.id).title;
		//document.getElementById(o.id).title = "";
		//document.getElementById(o.id).alt = "";
        }
		// ---

		actId=parseInt(o.id);
		actNode=o;
		parNode=o.parentNode.parentNode;
		
		cH=parNode.offsetHeight;
		o.className="vAct";
		
		parNode.style.opacity=.25;
		parNode.style.filter="alpha(opacity:25)";
		if (dllCheck==1) {
		    clearTimeout(dlTimeOut);
		}
		
		np=ce('h5');
		np.className="now-playing";
		nptxt=document.createTextNode(plSelItmHdr);//('NOW PLAYING');
		np.appendChild(nptxt);
		npnode=parNode.insertBefore(np,o.parentNode);
		tth=parNode.offsetHeight;
		dH=tth-cH;
		if (growvInt) {clearInterval(growvInt)}
		growvInt=setInterval('artz.mb.growV()',60);
		artz.mb.vLoc(parNode);
		ge('mtitle').innerHTML=mbArr[actId].hdr;
		var tNode=o.parentNode.parentNode;
		ge('tct').innerHTML=mbArr[actId].ctxt;
		artz.mb.setArrow(o);
		o.onmouseover=o.onmouseout=o.onclick=null;
		artz.mb.nexPrev();
		artz.mb.setContext(parNode);
		//var mvt=setTimeout('artz.mb.pm()',500);
        
		return false;
	},
	is2Lines:function(obj) {
		var parent_node = obj.parentNode;
		var store_old_node = obj;
		var text_node = document.createTextNode(obj.innerText);
		var temp_span_element = document.createElement('span');
		var inner_html = parent_node.innerHTML;

		parent_node.removeChild(parent_node.firstChild);
		parent_node.appendChild(text_node);

		var tmp = parent_node.offsetHeight;

		parent_node.removeChild(parent_node.firstChild);
		parent_node.appendChild(store_old_node);
		return tmp;

	},
	setV:function(obj) {
		obj.onclick=artz.mb.onClk;
		obj.onmouseover=artz.mb.onOver;
		obj.onmouseout=artz.mb.onOut;
		obj.className='vOut';

		if (artz.mb.is2Lines(obj) > 15) {
			obj.onmouseover=artz.mb.onOver2Lines;
			obj.onmouseout=artz.mb.onOut2Lines;
			obj.className='vOut2Line';
		}

		// --- Tool Tip ----
	    var tmpObj = obj.innerHTML;
	   	if (tmpObj.length > 21) {
		    var objTxt = tmpObj.substr(0,19);
			objTxt += " ...";
			obj.innerHTML = objTxt;
			//obj.title =tmpTitle;
			//obj.alt = tmpTitle;
		}
        // ---
	},
	reSet:function() {
		if (npn==true) {
			var oldNode=npnode.parentNode
			oNOH = oldNode.offsetHeight;			
			oldNode.style.height=null;
			var agt=navigator.userAgent.toLowerCase();
			if (agt.indexOf("msie") != -1) {
				oldNode.style.height="35px";;
			}
			oldNode.className=null;
			artz.mb.setV(npnode.nextSibling.childNodes[0]);
			oldNode.removeChild(npnode);	
            hideToolTip();
		}
	},
	onOver2Lines:function() {
		this.className='vOver2Line';
		if (fullTitle[this.id].length > 0) {
    		showToolTip(fullTitle[this.id]);
		}
	},
	onOut2Lines:function() {
		this.className='vOut2Line';
		hideToolTip();
	},
	onOver:function() {
		this.className='vOver';
		if (fullTitle[this.id].length > 0) {
    		showToolTip(fullTitle[this.id]);
		}
	},
	onOut:function() {
		this.className='vOut';
		hideToolTip();
	},
	onClk:function() {
		artz.mb.doClk(this);
	},
	growV:function() {
		if (cH<tth-1) {
			var spd=(tth-cH)*.5;
			cH+=parseInt(spd);
		} else {
			clearInterval(growvInt);
			heightV=cH;
		}
			var op=1-(tth-cH)/dH;
			//alert(op);
			parNode.style.height=cH+"px";
			parNode.style.opacity=op;
			parNode.style.filter="alpha(opacity:"+op*100+")";
	},
	
	nexPrev:function() {
		if (ge('NextPrevious')) {
			ge('context').removeChild(bnode);
		}
		bnode=ce('DIV');
		bnode.setAttribute('id','NextPrevious');
		
		switch (actId) {
			case 0: 
				bnode.appendChild(artz.mb.createButton(prevbutton));
				bnode.appendChild(artz.mb.createButton(nextbutton));
				break;
			case (vlength-1):
				bnode.appendChild(artz.mb.createButton(prevbutton));
				bnode.appendChild(artz.mb.createButton(nextbutton));		
				break;
			default: 
				bnode.appendChild(artz.mb.createButton(prevbutton));
				bnode.appendChild(artz.mb.createButton(nextbutton));
				

		}
		ge('context').appendChild(bnode);
		if (actId == 0){
			document.getElementById('prev').style.visibility='hidden';	
		} else {
            document.getElementById('prev').style.visibility='visible';	   
		}
	},
	createButton:function(txt) {
		var dir=(txt==nextbutton)?"next":"prev";
		var button=ce('a');
		var boldbutton=ce('b');
		button.onclick=artz.mb.buttClk;
		button.href="javascript:void(0)"
		button.className='artzBtn';
		button.setAttribute('id',dir);
		var buttxt=document.createTextNode(txt);
		boldbutton.appendChild(buttxt);
		button.appendChild(boldbutton);
		return button;
	},
	buttClk:function() {
		if (this.id=="next") {
			var lastAsset = vlength-1;
			if (actId == lastAsset) {
			    artz.mb.doClk(vlinks[0].firstChild)
			} else {
			    artz.mb.doClk(vlinks[actId+1].firstChild)
			}
	    } else {
			artz.mb.doClk(vlinks[actId-1].firstChild)
		}
	},
	buttClk1:function(v) {
		if (v=="next") {
			var lastAsset = vlength-1;
			if (actId == lastAsset) {
			    artz.mb.doCng(vlinks[0].firstChild)
			} else {
			    artz.mb.doCng(vlinks[actId+1].firstChild)
			}
		} else {
			artz.mb.doCng(vlinks[actId-1].firstChild)
		}
	},
	defItem:function(actId) {
			artz.mb.doClk(vlinks[actId].firstChild)
	},
	setArrow:function(o) {
			if (arrowInt) {clearInterval(arrowInt)}
			arrowTarg=posY(o)-vpos-setArrowPos;
			arrow.style.left=o.offsetLeft+o.offsetWidth-16+'px';
			currArrowY=parseInt(arrow.style.top);
			arrowInt=setInterval('artz.mb.moveArrow()',60);
		},
		
	moveArrow:function() {
			ay=(arrowTarg-currArrowY)*.6;
			vy+=ay;
			vy*=.50;
			currArrowY+=parseInt(vy);
			if (Math.abs(ay)<1) {
				clearInterval(arrowInt);
				//artz.mb.pm();
     			if (dllCheck==1) {
	    			dlTimeOut=setTimeout('artz.dl.moveDL()',2500);
		        }
			}
			arrow.style.top=currArrowY +'px';
	},
	createArrow:function() {
		arrow=ce('div');
		arrow.className='arrow';
		arrow.style.position='absolute';
		arrow.style.top=40+'px';
		vpos=posY(vl);
		ac(vlc,arrow)
		//ge('vlist').appendChild(arrow);
		mpos=posY(ge('mb-module'));
		//mpos=300;
	},
	pm:function() {
		//alert("ji");
		//var mpre='http://mp.aol.com/_dl_main.adp?pmmsid='+mbArr[actId].pmms+'&mediatype=video&livestream=0&size=large&skin=grey&referer='+escape(self.location);
		//var mpre=mbArr[actId].iframeURL;
		//var mpre ='fugu1.html';
		//var mpre='http://nsvapp-prod-rr.stream.aol.com/fugu?t=uni&tsize=large&wmspls=http%3A//us.video.aol.com/playlist.adp%3Ffmt%3Djs%26pls%3Dmusic.troubadours%26pc%3D%26type%3Dwmv%26sfp%3Dus%252eaol%26chpmmsID%3D%26startid%3D0&live=0&angle=0&startpos=0&startpos=0&lpos=0&ppos=0&poffset=0&event=&maxbps=0&skin=grey&width=320&height=317&aspect=4&video=true&showui=1&prefs=1&pid=DL&brand=AOL&player=wm&playlist=1&country=US&company=AOL&version=1.0&FUGU_SPEED=500000&showads=1&locale=US&autoplay=true&gender=&age=&daypart=&dma=&genre=&cpid=&surfacePoint=us.aol&sync=1&restartUrl=http%3A//us.video.aol.com/video.index.adp%3Fmode%3D1%26pls%3Dmusic.troubadours';
		//var mpre='http://us.video.aol.com/playlist.js?pls=living.food.salad&type=wmv&start=0&mediatype=video&livestream=0&size=large&skin=grey&referer='+escape(self.location);
		//ge('dalai').src=mpre;
		//ge('dalai').innerHtml="<script> document.write(\"<scrip\" + \"t>\");  document.write(\"FUGU.curtainx = '\"350\"'; \"); document.write(\"FUGU.curtainy = '\"150\"'; \"); document.write(\"FUGU.curtainz = '\"10\"'; \"); document.write(\"FUGU.curtain = true; \"); document.write(\"FUGU.PlayVideoLarge('http://us.video.aol.com/playlist.js?pls=music.alternative.b&type=wmv', [], 'grey'); \");document.write(\"</scrip\" + \"t>\"); </script>"
		//document.getElementById('dalai').innerHTML= '<script> FUGU.curtainx = "350"; alert(FUGU.curtainx); FUGU.curtainy = "150"; FUGU.curtainz = "10"; FUGU.curtain = true; FUGU.PlayVideoLarge("http://us.video.aol.com/playlist.js?pls=music.alternative.b&type=wmv", [], "grey"); </script> ';
		playAsset(actId);
	},
	im:function(title,url) {
		var quesChk = url.indexOf('?');
		var imActId = actId + 1;
		if (quesChk < 0) {
			sendIM(title,url+'?defaultItem='+imActId);
		} else {
            sendIM(title,url+'&defaultItem='+imActId); 
		}
		
	},
	vLoc:function(o) {
		var p=posY(o);
		vlcpos=posY(vlc);
        	 	uli=ge('ulist');
		var vH=vlc.offsetHeight;
		var uH=uli.offsetHeight;
		//alert("p:"+p+" vH:"+vH+" vlcpos:"+vlcpos+" tth:"+tth+"uli: "+parseInt(uli.style.top));
		if (p<vlcpos) {
			vtarg=vlcpos-p+parseInt(uli.style.top);
			if (vtarg>0) {vtarg=0;}
			vInt=setInterval('artz.mb.vGo()',60);
		} else if ((p+tth)>(vH+vlcpos)){
			
			vtarg=vH+vlcpos-p-tth+parseInt(uli.style.top);
			if (vtarg<(vH-uH) ){
				vtarg=vH-uH;
			}
		//	alert(vtarg);
			vInt=setInterval('artz.mb.vGo()',60);
		}
		
	}
	
}






arY=!(document.all)?9:0;
function ge(id) {return document.getElementById(id);}
//function gt(el,par) {return par.getElementsByTagName(el);}
function uc(s,t) {t.innerHTML=s.innerHTML;}

//function to determine y-coordinate of target element
function posY(obj) {
    var top=0;
    if (obj.offsetParent) {
        while (obj.offsetParent) {
            top+=obj.offsetTop;
            obj=obj.offsetParent;
        }
    } else if (obj.y){top+=obj.y}
    return top;
}


/*
function setAccess() {
	acc=gcookie('artz');
	var al=ge('accLink');
	al.onclick=accClick;
	var mbm=ge('mb-module');
	if (acc!=1) {
		//alert('boo');
		al.innerHTML='Turn On Accessibility';
		//scookie('artz','1',365,'/','aol.com');
		//mbm.className="artz-mb";
	} else {
		al.innerHTML='Turn Off Accessibility';
		//scookie('artz','0',365,'/','aol.com');
		//mbm.className="artz-mb-acc";
	}
}
function accClick() {
	if (acc!=1) {
		scookie('artz','1',365,'/','aol.com');
	} else {
		scookie('artz','0',365,'/','aol.com');
	}
	document.location.reload();
}
*/

var ie=document.all
var ns6=document.getElementById && !document.all

var offsetfromcursorX=-30 //12Customize x offset of tooltip
var offsetfromcursorY=-20 //10Customize y offset of tooltip

var offsetdivfrompointerX=10 //10Customize x offset of tooltip DIV relative to pointer image
if(ie)
var offsetdivfrompointerY=-24//14Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).
if (ns6)
var offsetdivfrompointerY=-21//14Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).


document.write('<div id="mbk_Ttip"></div>') //write out tooltip DIV
document.write('<div id="mbk_TtPtr"></div>') //write out pointer image

var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["mbk_Ttip"] : document.getElementById? document.getElementById("mbk_Ttip") : ""

var pointerobj=document.all? document.all["mbk_TtPtr"] : document.getElementById? document.getElementById("mbk_TtPtr") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function showToolTip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20

var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY

var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth){
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=curX-tipobj.offsetWidth+"px"
nondefaultpos=true
}
else if (curX<leftedge)
tipobj.style.left="5px"
else{
//position the horizontal position of the menu where the mouse is positioned
//tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX-200+"px"
//pointerobj.style.left=curX+offsetfromcursorX-200+"px"
tipobj.style.left="5px"
pointerobj.style.left="25px"
}

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight){
tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
nondefaultpos=true
}
else{
//tipobj.style.top=curY-20+offsetfromcursorY+offsetdivfrompointerY+"px"
//pointerobj.style.top=curY+tipobj.offsetHeight+offsetfromcursorY+"px";

tipobj.style.top=curY-tipobj.offsetHeight+offsetfromcursorY+"px";
pointerobj.style.top=curY-tipobj.style.bottom+offsetdivfrompointerY+"px";

}
tipobj.style.visibility="visible"
if (!nondefaultpos)
pointerobj.style.visibility="visible"
else
pointerobj.style.visibility="hidden"
}
}

function hideToolTip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
pointerobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip