<!--

///////////////////////////////////////////////////////////////////////////////////
//
// Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
// This notice MUST stay intact for legal use
// Visit http://www.dynamicdrive.com/ for this script and 100s more.
//
///////////////////////////////////////////////////////////////////////////////////

var xDELAYSCROLLTIMEOUT;
var xSCROLLTIMEOUT;

var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
  if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+0))
    cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
  else
    cross_marquee.style.top=parseInt(marqueeheight)+0+"px"
}

function initializemarquee(){
  if (xDELAYSCROLLTIMEOUT) { clearTimeout(xDELAYSCROLLTIMEOUT) }
  if (xSCROLLTIMEOUT) { clearTimeout(xSCROLLTIMEOUT) }
  cross_marquee=document.getElementById("vmarquee")
  cross_marquee.style.top=0
  marqueeheight=document.getElementById("marqueecontainer").offsetHeight
  actualheight=cross_marquee.offsetHeight
  if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
    cross_marquee.style.height=marqueeheight+"px"
    cross_marquee.style.overflow="scroll"
    return
  }
  xDELAYSCROLLTIMEOUT=setTimeout('xSCROLLTIMEOUT=setInterval("scrollmarquee()",30)', delayb4scroll);
}

var Polje;

window.defaultStatus="Povrce.com";

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 3) version = "n3";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "n3";
else version = "n2";


// promjena statusa
function S(Msg) {
  if (Msg=='' || Msg==' ') { Msg='Povrce.com' }
  else { Msg='Povrce.com: '+Msg }
  window.status=Msg;
  return(true);
}

var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function banner_DoFSCommand(command, args) {
	var bannerObj = isInternetExplorer ? document.all.banner : document.banner;
	//
	{if(command=="openWindow"){ openNewWindow()}}function openNewWindow(){setTimeout(window.open('?P=izlog&MBG=syngenta&H=13','Syngentaizlog',
'toolbar=no,directories=0,location=0,scrollbars=1,resizable=1,status=no,menubar=0,width=900,height=700')),0}
	//
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub banner_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call banner_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
//-->
