function pop(obj, width, height) {
    if (!width) width = 500;
    if (!height) height = 600;
    pop_win = window.open('', obj.target, 'width='+width+',height='+height+',resizable,scrollbars');
    pop_win.focus();
}

function pop2(obj, width, height) {
    if (!width) width = 670;
    if (!height) height = 700;
    pop_win = window.open('', obj.target, 'width='+width+',height='+height+',resizable,scrollbars');
    pop_win.focus();
}


function cloud_show(num, content_id) {
    document.getElementById('cloud-content').innerHTML = document.getElementById('cloud-content'+content_id).innerHTML;
    document.getElementById('cloud').style.top = num*20-4+'px';
    document.getElementById('cloud').style.display = 'block';
}

function cloud_hide() {
    document.getElementById('cloud').style.display = 'none';
}


function sw_top_news(a, id) {
    for(i=1; i<=3; i++) {
        document.getElementById('tn'+i).className = i == id ? 'a' : '';
        document.getElementById('tn'+i).innerHTML = i == id ? '<div id="tn'+i+'c">'+a.innerHTML+'</div>' : '<a href="" onclick="return sw_top_news(this, '+i+')" id="tn'+i+'c">'+document.getElementById('tn'+i+'c').innerHTML+'</a>';
        document.getElementById('tn'+i+'titles').className = i == id ? 'a' : '';
    }
    return false;
}

function select_go(obj) {
  location.href = obj.options[obj.selectedIndex].value;
}
