function clip_pop(file) {
helpwindow = window.open(file,"pophelp","toolbar=no,location=no,status=no,width=360,height=336,resizable=no");
helpwindow.focus();
return false;
}

function reloadWebcam() {
var jetzt = new Date();
	document.getElementById("webcampicture").src = "http://images.rautemusik.fm/neo/cam.jpg?" + jetzt.getTime();
	aktiv=window.setTimeout("reloadWebcam();", 10000);
}

function changeNationality() {
  select_value = document.body.user_nationality.value;
  imgid = 'nationality_img';
  path = '/pictures/countries/';
  if (select_value) document.getElementById( imgid ).src = path + select_value + '.gif';
  else document.getElementByID( imgid ).src = path + '0.gif';
}
function nationalityF() {
  nat = document.forms.admin.elements.nationality.value;
  document.forms.body.elements.entry.value += ':'+nat+':';
  document.forms.body.elements.entry.focus();
}
function sleeper() {
    window.setTimeout("winopen();", 24000);
}
function winopen() {
var x=780;
var y=500;
var popUpLocationX = 25;
var popUpLocationY = 20;
    var popUpUrl = "http://www.global24music.com/preview.php";
    
    splashWin = window.open(popUpUrl, 'x', 'fullscreen=0,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
    splashWin.resizeTo(x,y);
    splashWin.moveTo(popUpLocationX, popUpLocationY);
    splashWin.blur();
    window.focus();
}
function setPointer(theRow, thePointerColor) {
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c]
                theRow.style.backgroundColor = thePointerColor;
    }

    return true;
}
function setPointer2(theRow, thePointerColor) {
    if (typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
   }

    return true;
}
function mgOvr(src,clrOver) {
  if (!src.contains(event.fromElement)) {
    src.style.cursor = 'hand';
    src.bgColor = clrOver;
  }
}
function mgOut(src,clrIn) {
  if (!src.contains(event.toElement)) {
    src.style.cursor = 'default'; src.bgColor = clrIn;
  }
}

//MAINNAVI
function go_m_news() {
  location.href=('news.php?section=harder');
}
function go_m_about() {
  location.href=('team.php?section=harder');
}
function go_m_streams() {
  location.href=('streams.php?section=harder');
}
function go_m_charts() {
  location.href=('charts.php?section=harder');
}
function go_m_board() {
  location.href=('forums.php?section=harder');
}
function go_m_files() {
  location.href=('files.php?section=harder'+'&category=1');
}
function go_m_contact() {
  location.href=('impressum.php?section=harder');
}
function go_m_misc() {
  location.href=('shop.php?section=harder');
}
function go_m_home() {
  location.href=('index.php?section=harder');
}
function go_m_myrm() {
  location.href=('login.php?section=harder');
}
function go_m_partner() {
  location.href=('partner.php?section=harder');
}
function go_partner() {
  location.href=('partner.php?section=harder');
}
function go_home() {
  location.href=('index.php');
}
function go_news() {
  location.href=('news.php?section=harder');
}
function go_newsarchiv() {
  location.href=('archiv.php?section=harder');
}
function go_sendnews() {
  location.href=('sendnews.php?section=harder');
}
function go_newsletter() {
  location.href=('newsletter.php?section=harder');
}
function go_specials() {
  location.href=('specials.php?section=harder');
}
function go_kolumnen() {
  location.href=('kolumnen.php?section=harder');
}
//ABOUT
function go_team() {
  location.href=('team.php?section=harder');
}
function go_history() {
  location.href=('history.php?section=harder');
}
function go_events() {
  location.href=('events.php?section=harder');
}
//STREAMS
function go_streams() {
  location.href=('streams.php?section=harder');
}
function go_sendeplan() {
  location.href=('schedule.php?section=harder');
}
function go_grusswunsch() {
  location.href=('greet_and_wish.php?section=harder');
}
//CHARTS
function go_musikcharts() {
  location.href=('charts.php?section=harder');
}
function go_abstimmen() {
  location.href=('vote_charts.php?section=harder');
}
function go_altecharts() {
  location.href=('charts_archive.php?section=harder');
}
function go_mccharts() {
  location.href=('mc_charts.php?section=harder');
}
//BOARD
function go_board() {
  location.href=('forums.php?section=harder');
}
function go_userlist() {
  location.href=('userlist.php?section=harder');
}
function go_userranking() {
  location.href=('userranking.php?section=harder');
}
function go_boardrules() {
	location.href="thread.php?id=161&section=harder";
}
function go_boardteam() {
  location.href=('team.php?section=harder&team=16');
}

//FILES
function go_telescherze() {
  location.href=('files.php?section=harder&category=1');
}
function go_iviews() {
  location.href=('files.php?section=harder&category=2');
}
function go_sonstiges() {
  location.href=('files.php?section=harder');
}
//CONTACT
function go_gbook() {
  location.href=('guestbook.php?section=harder');
}
function go_linkus() {
  location.href=('linkus.php?section=harder');
}
function go_bewerbung() {
  location.href=('bewerbung.php?section=harder');
}
function go_faq() {
  location.href=('faq.php?section=harder');
}
function go_disclaimer() {
  location.href=('impressum.php?section=harder');
}
//MISC
function go_shop() {
  location.href=('shop.php?section=harder');
}
function go_presse() {
  location.href=('presse.php?section=harder');
}
function go_bildergalerie() {
  location.href=('bildergalerie.php?section=harder');
}
function go_gewinnspiel() {
  location.href=('gewinnspiel.php?section=harder');
}
function go_browsergame() {
  location.href=('browsergame.php?section=harder');
}
//MY.RM
function go_login() {
  location.href=('login.php?section=harder');
}
function go_messages() {
  location.href=('messages.php?section=harder');
}
function go_register() {
  location.href=('register.php?section=harder');
}
function go_pwlost() {
  location.href=('password.php?section=harder');
}
function go_loginhelp() {
  location.href=('login_probleme.php?section=harder');
}
function go_eula() {
  location.href=('register.php?section=harder&sel=eula');
}
function go_profil() {
  location.href=('user_details.php?section=harder&id=');
}
function go_usergbook() {
  location.href=('user_gb.php?section=harder&id=');
}
function go_galerie() {
  location.href=('user_gallery.php?section=harder&id=');
}
function go_options() {
  location.href=('options.php?section=harder');
}
function go_logout() {
  location.href=('logout.php?section=harder');
}
function go_usersearch() {
  location.href=('usersearch.php?section=harder');
}
function go_dating() {
  location.href=('dating.php?section=harder');
}
function go_stats() {
  location.href=('user_stats.php?section=harder&id=');
}
function swap_content( span ) {
  displayType = ( document.getElementById('toggle_' + span ).style.display == 'none' ) ? 'block' : 'none';
  document.getElementById('toggle_' + span ).style.display = displayType;

  if (document.getElementById('toggle2img_' + span ).src == '/design/expand.gif') {
    document.getElementById('toggle2img_' + span ).src = '/design/collapse.gif';
    document.getElementById('toggle2img_' + span).alt = "-";
  } else {
    document.getElementById('toggle2img_' + span ).src = '/design/expand.gif';
    document.getElementById('toggle2img_' + span).alt = "+";
  }
}
