function DwddMenu(){
	if(navigator.appVersion.indexOf("MSIE")==-1){
		return;
	}
	var i,k,g,lg,r=/\s*dwhover/,nn='',c,cs='dwhover',bv='dwddBar';
	for(i=0;i<10;i++){
		g=document.getElementById(bv+nn);
		if(g){
			lg=g.getElementsByTagName("LI");
			if(lg){
				for(k=0;k<lg.length;k++){
					lg[k].onmouseover=function(){
								c=this.className;
								cl=(c)?c+' '+cs:cs;
								this.className=cl;
							};
					lg[k].onmouseout=function(){
								c=this.className;
								this.className=(c)?c.replace(r,''):'';
							};
				}
			}
		}
	nn=i+1;
	}
}

/**** start Sponsor rotation *******/

function InitSponsorRotation() {
    if (jQuery('#PageTopSponsorContainer .PageTopSponsorItem').size() > 0) {
        return jQuery('#PageTopSponsorContainer .PageTopSponsorItem');
    }
    else {
        return null;
    }
}

function RunSponsorRotation() {
    try{
        if (SponsorListArray != null && SponsorListArray.length > 0) {
            var randomnumber, index, l;
            l = SponsorListArray.length
            if (CurrentSponsor == null) {
                randomnumber = Math.random();
                index = Math.round((l - 1) * randomnumber);
                jQuery(SponsorListArray[index]).css('display', 'block');
                CurrentSponsor = index;
            }
            else {
                randomnumber = Math.random();
                index = Math.round((l - 1) * randomnumber);
                while (CurrentSponsor == index) {
                    randomnumber = Math.random();
                    index = Math.round((l - 1) * randomnumber);
                }
                jQuery(SponsorListArray[CurrentSponsor]).fadeOut('normal', function() {
                    jQuery(SponsorListArray[index]).fadeIn('normal');
                }
                        );

                CurrentSponsor = index;
            }
            sponsorListTimer = setTimeout('RunSponsorRotation()', 5000);
        }
    }
    catch(e){}
}


/**** end Sponsor rotation *******/