function parole(koda)
{
	var str=document.URL;
	var poz=0;
	var jezik='';

	poz=str.lastIndexOf("/");
	jezik=str.substr(poz-2,2);

	if (jezik == 'en') 
	{
		koda="['5','Over the past 150 years, about half of the Alpine ice cover has been lost.','Apart from the Mediterranean, the Alps are Europe==s biggest ecosystem.','The Alps are a strategic European treasury of drinking water.','The Alps are not marketing capital for speculators trading and selling something they never created.','The 5000-year-old culture in the Alps is a culture of survival. Only those survived who were the most persistent, inventive and adaptable.','The important requirement for the future of the Alps is development in harmony with nature, emphasizing the principle that ==less is more==.']";
	} else
	{
		koda="['5','V zadnjih 150 letih je izginila veccc kot polovica ledenikov.','Alpe so stratessskega pomena kot vir pitne vode za Evropo.','Poleg Mediterana so Alpe najvecccji evropski ekosistem.','5000 letna zgodovina v Alpah je pomenila boj za prezzzivetje. Prezzziveli so le najbolj vztrajni, inovativni in prilagodljivi.','Prihodnji razvoj v Alpah mora potekati v harmoniji z naravo in s poudarkom na ==manj je veccc==.','Alpe so svet brez meja in vecccini ljudi nedosegljiv. Ohranimo jih!']";
	}

//	koda="['4','Over the past 150 years, about half of the Alpine ice cover has been lost.','Apart from the Mediterranean, the Alps are Europe==s biggest ecosystem.','The Alps are a strategic European treasury of drinking water.','The Alps are not marketing capital for speculators trading and selling something they never created.','The 5000-year-old culture in the Alps is a culture of survival. Only those survived who were the most persistent, inventive and adaptable.','The important requirement for the future of the Alps is development in harmony with nature, emphasizing the principle that ==less is more==.']";
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="495" height="72" id="parole" align="middle">');
	xx='<param name="movie" value="flash/parole.swf?moj_text=' + koda + '">';
	document.write(xx);
	document.write('<param name="quality" value="high"><param name="menu" value="false"><param name="wmode" value="transparent"><param name="bgcolor" value="#9DB97C" />');
	document.write('<!--[if !IE]> <-->');
	xx='<object data="flash/parole.swf?moj_text=' + koda + '" width="495" height="72" type="application/x-shockwave-flash">';
	document.write(xx);
	document.write('<param name="quality" value="high"><param name="menu" value="false"><param name="wmode" value="transparent"><param name="bgcolor" value="#9DB97C" />');
	document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');
	document.write('FAIL (the browser should render some flash content, not this).');
	document.write('</object>');
	document.write('<!--> <![endif]-->');
	document.write('</object>');
} 


//
// getPageSize()
// Returns array with page width, height and window width, height
// Core code from - quirksmode.org
// Edit for Firefox by pHaez
//
function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

//
// getPageScroll()
// Returns array with x,y page scroll values.
// Core code from - quirksmode.org
//
function getPageScroll(){

	var yScroll;

	if (self.pageYOffset) {
		yScroll = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop){	 // Explorer 6 Strict
		yScroll = document.documentElement.scrollTop;
	} else if (document.body) {// all other Explorers
		yScroll = document.body.scrollTop;
	}

	arrayPageScroll = new Array('',yScroll) 
	return arrayPageScroll;
}

function galerija(koda)
{
	pom= '<div id="overlay"><div id="fles" align="center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="696" height="504" id="galerija" align="middle">';
	pom= pom +'<param name="movie" value="flash/galerija.swf?moj_text=' + koda + '">';
	pom= pom + '<param name="quality" value="high"><param name="menu" value="false"><param name="bgcolor" value="#9DB97C" />';
	pom= pom +'<!--[if !IE]> <-->';
	pom= pom +'<object data="flash/galerija.swf?moj_text=' + koda + '" width="696" height="504" type="application/x-shockwave-flash">';
	pom= pom + '<param name="quality" value="high"><param name="menu" value="false"><param name="bgcolor" value="#9DB97C" />';
	pom= pom + '<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">';
	pom= pom + 'FAIL (the browser should render some flash content, not this).';
	pom= pom + '</object>';
	pom= pom + '<!--> <![endif]-->';
	pom= pom + '</object></div></div>';

	document.getElementById("div_galerija").innerHTML = pom;


	var objFlash = document.getElementById('fles');
	
	var arrayPageSize = getPageSize();
	var arrayPageScroll = getPageScroll();

	// center loadingImage if it exists
	if (objFlash) {
		objFlash.style.position = 'relative';
		objFlash.style.top = (arrayPageScroll[1] + ((arrayPageSize[3] - 35 - 504) / 2) + 'px');
//		objFlash.style.left = (((arrayPageSize[0] - 20 - 696) / 2) + 'px');
//		objFlash.style.width = '696';
//		objFlash.style.height = '504';
//		objFlash.style.zIndex = '90';
//		objFlash.style.display = 'block';
	}
}

function notr(koda)
{
	pom= '<div id="overlay"><div id="fles" align="center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="696" height="504" id="galerija" align="middle">';
	pom= pom +'<param name="movie" value="flash/notranjost.swf?moj_text=' + koda + '">';
	pom= pom + '<param name="quality" value="high"><param name="menu" value="false"><param name="bgcolor" value="#9DB97C" />';
	pom= pom +'<!--[if !IE]> <-->';
	pom= pom +'<object data="flash/notranjost.swf?moj_text=' + koda + '" width="696" height="504" type="application/x-shockwave-flash">';
	pom= pom + '<param name="quality" value="high"><param name="menu" value="false"><param name="bgcolor" value="#9DB97C" />';
	pom= pom + '<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">';
	pom= pom + 'FAIL (the browser should render some flash content, not this).';
	pom= pom + '</object>';
	pom= pom + '<!--> <![endif]-->';
	pom= pom + '</object></div></div>';

	document.getElementById("div_galerija").innerHTML = pom;


	var objFlash = document.getElementById('fles');
	
	var arrayPageSize = getPageSize();
	var arrayPageScroll = getPageScroll();

	// center loadingImage if it exists
	if (objFlash) {
		objFlash.style.position = 'relative';
		objFlash.style.top = (arrayPageScroll[1] + ((arrayPageSize[3] - 35 - 504) / 2) + 'px');
//		objFlash.style.left = (((arrayPageSize[0] - 20 - 696) / 2) + 'px');
//		objFlash.style.width = '696';
//		objFlash.style.height = '504';
//		objFlash.style.zIndex = '90';
//		objFlash.style.display = 'block';
	}
}