
function goback()
{
  history.go (-1);
}


function GO_PAGE(PageS)
{
window.location.href=PageS
}

function GO_PROGRAM(PageS)
{
window.alert('WWW');
window.location.href=PageS
window.status="GO:"+PageS;
window.status="";
}

function OBRAZEK_MALY_CLICK(NameS1,AltS,Poradi,Poradi2)
{
pomimg=new Image();
pomimg.src="http://www.occupationsguide.cz/EN/POVOL/PIC"+NameS1;
// pro OBRAZEK_VELKY_CLICK
Obrazek="http://www.occupationsguide.cz/EN/POVOL/OBR"+NameS1;
pomimg.align="center";
Obrazek_label=AltS

//
//for (i = 44; i < 50; i++)
//{
//  alert(document.images[i].src);
//}
//
//alert(pomimg.src);
//pomimg.alt="yyyyyy";

Poradi=Poradi+3;
Poradi2=Poradi2+3;

document.images[Poradi].src=pomimg.src;
document.images[Poradi].alt=AltS
document.images[Poradi].title=AltS

//alert(AltS,Poradi);
//alert(pomimg.src);

pomimg2=new Image();
pomimg2.src="../ICO/icfotoyy.gif"

if (document.images[Poradi2].src.search("icfoto")>-1)
  pomimg2.src="../ICO/icfotoyy.gif"
else
  pomimg2.src="../ICO/icsounyy.gif";

document.images[Poradi2].src=pomimg2.src;
}
function SOUND_TRACK()
{
//alert(document.pisnicka);


document.pisnicka.play()
}

function OBRAZEK_MALY_CLICK_SOUND(NameS1,AltS,Poradi,Poradi2,NameWAV)
{
pomimg=new Image();
pomimg.src="../POVOL/PIC"+NameS1;
// pro OBRAZEK_VELKY_CLICK
Obrazek="../POVOL/OBR"+NameS1;
pomimg.align="center";
Obrazek_label=AltS

//
//for (i = 0; i < 10; i++)
//{
//  alert(document.images[i].src);
//}
//
document.images[Poradi].src=pomimg.src;
document.images[Poradi].alt=AltS

pomimg2=new Image();
pomimg2.src="../ICO/icfotoyy.gif"

if (document.images[Poradi2].src.search("icfoto")>-1)
  pomimg2.src="../ICO/icfotoyy.gif"
else
  pomimg2.src="../ICO/icsounyy.gif";

document.images[Poradi2].src=pomimg2.src;

//window.location=NameWAV+".MP3"

//alert(navigator.appName)

if (navigator.appName=="Netscape")
{
//alert(NameWAV)
ooo=window.open("","","width=320,height=100");
ooo.location.href=NameWAV+".mp3"
//ooo.blur();
}
else
{
document.pisnicka.play()
}
}


//pomimg=new Image();
//pomimg.src="../POVOL/PIC"+NameS1;
                // pro OBRAZEK_VELKY_CLICK
//Obrazek="../POVOL/OBR"+NameS1;
//pomimg.align="center";
        //window.alert(Poradi);
//document.images[Poradi].src=pomimg.src;
//document.images[Poradi].alt=AltS;

//window.location=NameWAV+".MP3"
        //window.location=NameWAV+'.WAV'
        //hraje porad dokola - jinak dobry SOUND_DA(NameWAV)



function SOUND_DA(NameWAV)
{
m = DAControl.MeterLibrary;

rawSnd1 = m.ImportSound(NameWAV).Sound.Loop();

<!--;finalSnd = m.MixArray(new Array(rawSnd1.Pan(0).Gain(0), rawSnd2.Pan(0).Gain(0), rawSnd3.Pan(0).Gain(0), rawSnd4.Pan(0).Gain(0,2)));-->
finalSnd = rawSnd1;

<!-- DEFINICE OBRAZOVEHO OKNA -->
oscillatingNumber = m.Sin(m.LocalTime);
txtCol = m.ColorHslAnim(m.Abs(oscillatingNumber), m.DANumber(0.5), m.DANumber(0.5));
fontStyle = m.Font("Arial",-18, txtCol );
sndImg = m.StringImage("DirectAnimation Sound", fontStyle);


DAControl.Image = m.Overlay(sndImg, m.SolidColorImage(m.Black));
DAControl.Sound = finalSnd;
DAControl.Start();
}


function OBRAZEK_VELKY_CLICK(NameS1)
{
//window.alert('AAAAAA'+location.href);

w=window.open("","","status,resizable,c_rollbars")

if (Obrazek=="")
  {
  w.location.href=NameS1
  w.status=LabelS
  }
else
  {
  w.location.href=Obrazek;
  w.status=Obrazek_label
}
}

function go_trolley(PageS)
{
PageS="../spolecne/trolley.aspx?Typ="+PageS;
window.location.href=PageS
}


