/*

    localhost Ltd - Miscellaneous scripts
    
    File name: misc.js (Version: 2.0)
    Description: This file contains simple scripts for controlling miscellaneous options.
    
    Coded by George Delaportas (G0D)
    
    localhost Ltd
    Copyright (c) 2011

*/



var hack_win = null;

// Fixate languages positions on Greek language
function Fix_Greek_Lang_Pos()
{

    if (global_lang == 'gr')
    {
    
        //document.getElementById('languages').style.marginRight = '20px';
        document.getElementById('lang_gr_pix').style.marginLeft = '9px';
        document.getElementById('lang_en_pix').style.marginLeft = '3px';
        
        return 1;
    
    }
    
    else if (global_lang == 'en')
    {
    
        document.getElementById('lang_gr_pix').style.marginLeft = '9px';
        document.getElementById('lang_en_pix').style.marginLeft = '3px';
        document.getElementById('lang_gr_label').style.marginLeft = '6px';
        document.getElementById('lang_en_label').style.marginLeft = '-3px';
        
        return 1;
    
    }
    
    else
        return 0;
    
    return 0;

}

// Initialize the media player
function Init_Media_Player()
{
    var radio_win;
    
    radio_win = window.open('http://www.radiosec.gr/cms/site/front_end/radio.html', '_blank', 'width=320,height=267,resizable=0,scrollbars=0');
    hack_win = window.open('http://www.radiosec.gr/cms/site/front_end/hack.html', '_blank', 'width=20,height=20,resizable=0,scrollbars=0');
    
    radio_win.focus();
    
    setTimeout('Close_Hack_Win()', 10000);
    
    return 1;

}

function Close_Hack_Win()
{

    hack_win.close();
    
    return 1;

}



/* ---------- End ---------- */

