var newwindow;
function popupwindows(url)
{
	newwindow=window.open(url,'espopupwins','width=700,height=500,status=1,menubar=1,scrollbars=1,location=1,resizable=1');
	if (window.focus) {newwindow.focus()}
}

function stopp() {
if (window.external) {
document.execCommand('Stop');
}
else {
window.stop(); 
}
}

var soundwindow = null;
function popupmusic() 
{
  soundwindow = window.open('../../audio/music.htm', 'soundwindow', 'width=400,height=400,status=1,menubar=0,scrollbars=1,location=0,resizable=1');
  if (!soundwindow.opener) soundwindow.opener = self;
}

function playmusic() {
if (window.external)  {
parent.fbottom.document.all.bgmusic.src='../websound.wav';
}
else {
parent.fbottom.document.embmusic.play();
	}
}
function pausemusic() {
if (window.external) {
parent.fbottom.document.execCommand('Stop');
}
else {
parent.fbottom.document.embmusic.stop();
}
}

function icoon(which) {
which.style.backgroundColor='#202068';
}
function icooff(which) {
which.style.backgroundColor='';
}

function txtfon(txtf) {
txtf.style.color='#253663';
}
function txtfof(txtf) {
txtf.style.color='';
}

function txtbgon(txtbg) {
txtbg.style.backgroundColor='#D7D7E1';
}
function txtbgof(txtbg) {
txtbg.style.backgroundColor='';
}

function txtffon(txtff) {
txtff.style.color='#FFFFFF';
}
function txtffof(txtff) {
txtff.style.color='';
}

function typon(typf) {
typf.style.color='#000033';
}
function typof(typf) {
typf.style.color='';
}

function prava(){
var radnidani=window.open('../download/PRAVILNIK_O_PRAVIMA.doc','prava','width=600,height=400,status=1');
radnidani.focus();
}

function pohvale(){
var radnidani=window.open('../download/PRAVILNIK_O_POHVALAMA.doc','pohvale','width=600,height=400,status=1');
radnidani.focus();
}

function ponasanje(){
var radnidani=window.open('../download/PRAVILNIK_O _PONASANJU.doc','pohvale','width=600,height=400,status=1');
radnidani.focus();
}

function velikaslika(imageName,imageWidth,imageHeight,alt)
    {
LeftPosition = (screen.width) ? (screen.width-imageWidth)/2 : 0;
TopPosition = (screen.height) ? (screen.height-imageHeight)/2 : 0;

    newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+LeftPosition+",top="+TopPosition+",status=1,menubar=0,scrollbars=1,location=0,resizable=1");
    newWindow.document.open();
    newWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>LARGE IMAGE</title></head><body bgcolor="#504F62" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
    newWindow.document.write('<table height="100%" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle"><img src=\"'+imageName+'\" alt=\"'+alt+'\"></td></tr></table>');
    newWindow.document.write('</body></html>');
    newWindow.document.close();
    newWindow.focus();
}
