function over(i) {
	i.className='table3';
  /*
	if (document.all) {
    i.style.cursor='hand';
  } else {
    i.style.cursor='pointer';
  }
	*/
}
function out(i) {
	i.className='table2';
}
function over_sub(i) {
	i.className='c8';
  /*	
  if (document.all) {
    i.style.cursor='hand';
  } else {
    i.style.cursor='pointer';
  }
	*/
}
function out_sub(i) {
	i.className='c7';
}
function goUrl(u) {
	window.open(u, "newWin", "width=800,height=600,left=50,top=0");
}

function adticker() {
	if (i < adslist[cnt][0].length - 1) {
		i++;
		temp1 = adslist[cnt][0];
		temp1 = temp1.split('');
		curr = curr+temp1[i];
		temp2 = adslist[cnt][1];
		
		//mtxt.innerHTML = "<a class='ticker' href='"+temp2+"'>"+curr+"_</a>";		
		mtxt.innerHTML = "<a class='ticker' href='"+temp2+"' target='_new'>"+curr+"</a>";		

		//mtxt.innerHTML = "<small><a href='"+temp2+"'><font color='#ff0000'>"+curr+"_</small></font></a>";
		setTimeout('adticker()',10)
		return;
	}

	// new item
	i = -1; curr = "";
	if (cnt<adslist.length-1)
		cnt++;
	else
		cnt=0;
	setTimeout('adticker()',3000)
}

function ticker_over(i) {
	i.className='table5';
}
function ticker_out(i) {
	i.className='table4';
}

function GetElementsWithClassName(_1,_2) {
    var _3=document.getElementsByTagName(_1);
    var _4=new Array();
    
    for(i=0;i<_3.length;i++) {
       if(_3[i].className==_2) {
          _4[_4.length]=_3[i];
       }
    }
    return _4;
 }
 
 function check_common() {
    var _5=GetElementsWithClassName("input","common");
    for(i=0;i<_5.length;i++) {
       _5[i].checked="checked";
    }
 }
