x=0;
function scroll_text()
{
if (x==-1400) x=310;
x=x-1;
document.getElementById("scrolling_text").style.marginLeft=x;
setTimeout("scroll_text()",10);
}
function view_dj_album(url)
{
var scr=screen.width
if (scr>=1024)
{
 wheight=600;
 wwidth=800;
}
else
{
 wheight=480;
 wwidth=640;
}

 var top=(screen.height-wheight)/2-40;
 var left=(screen.width-wwidth)/2+100;

url='dj_album.php?dj='+url;
windop=window.open( url, "_blank", "toolbar=0,scrollbars=0,resizable=1,status=0,left="+left+",top="+top+",width=300,height=490");

}

function open_radio1() {
var FunctionWindow;
 FunctionWindow=window.open('http://www.smslove.lv/europaplus.php',"radio","scrollbars=no,directories=no,width=260,height=500")

if (FunctionWindow != null && FunctionWindow.opener == null)
    FunctionWindow.opener=window
    FunctionWindow.moveTo(300,150)
    FunctionWindow.focus()
}

function open_radio()
{
var radioWindow
	if (!radioWindow || radioWindow.closed) {
	radioWindow=window.open('http://www.europaplus.lv/radio_live/radio_live.php', 'radio_live', 'width=404, height=555, scrollbars=0, resizable=0');
	}
}

function open_radio2()
{
var radioWindow
	if (!radioWindow || radioWindow.closed) {
	radioWindow=window.open('http://www.europaplus.lv/radio_live/radio_live11.php', 'radio_live', 'width=404, height=150, scrollbars=0, resizable=0');
	}
}



function open_camera() {
var FunctionWindow;
 FunctionWindow=window.open('http://www.europaplus.lv/eurocam.php',"camera","scrollbars=no,directories=no,width=383,height=356")

if (FunctionWindow != null && FunctionWindow.opener == null)
    FunctionWindow.opener=window
    FunctionWindow.moveTo(300,150)
    FunctionWindow.focus()
}


var state = 'none';

function showhide(layer_ref) {

if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
}
