function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

//Зареждане на блок със статия
function F_loadTxt(elId) {
	document.getElementById('a5b').style.display = "none";
	document.getElementById('a5e').style.display = "none";
	document.getElementById('a4b').style.display = "none";
	document.getElementById('a4e').style.display = "none";
	document.getElementById('a3b').style.display = "none";
	document.getElementById('a3e').style.display = "none";
	document.getElementById('a2b').style.display = "none";
	document.getElementById('a2e').style.display = "none";
	document.getElementById('a1b').style.display = "none";
	document.getElementById('a1e').style.display = "none";
	document.getElementById(elId).style.display = "block"; }

//Смяна на курсора и цвета като преминаваме над статиите
function cngCl(varID, varClass, vPoint){
	document.getElementById(varID).className=varClass;
	document.body.style.cursor= vPoint; }


function colChange(r) {
	document.body.style.cursor='pointer';
	document.getElementById(r).style.color='#FFFFFF';}

function colBack(r) {
	document.body.style.cursor='auto';
	var initCol = document.getElementById(r).style.color;
	if (initCol != '#FFFF66') {
		document.getElementById(r).style.color='#A52A2A';}
	}
// Пред<span style='color: white;'>Виж</span>ване в галерията с номера
function F_TR(rw,r){
			document.getElementById('row1').className='noTshow' ;
				document.getElementById('r1').className="f_orange";
			document.getElementById('row2').className='noTshow';
				document.getElementById('r2').className="f_orange";
			document.getElementById('row3').className='noTshow';
				document.getElementById('r3').className="f_orange";
			document.getElementById('row4').className='noTshow';
				document.getElementById('r4').className="f_orange";
			document.getElementById('row5').className='noTshow';
				document.getElementById('r5').className="f_orange";
			document.getElementById(rw).className='Tshow';
				document.getElementById(r).className="f_cream";
		}
// Пред<span style='color: white;'>Виж</span>ване в галерията с <<	
function F_TR1() {
	if (document.getElementById('row2').className=='Tshow' ) {
		return 		F_TR('row1','r1');	}
		if (document.getElementById('row3').className=='Tshow' ) {
		return 		F_TR('row2','r2');	}
		if (document.getElementById('row4').className=='Tshow' ) {
		return 		F_TR('row3','r3');	} 
		if (document.getElementById('row5').className=='Tshow' ) {
		return 		F_TR('row4','r4');	} 
		}
// Пред<span style='color: white;'>Виж</span>ване в галерията с >>
function F_TR2() {
	if (document.getElementById('row1').className=='Tshow' ) {
		return 		F_TR('row2','r2');	}
		if (document.getElementById('row2').className=='Tshow' ) {
		return 		F_TR('row3','r3');	}
		if (document.getElementById('row3').className=='Tshow' ) {
		return 		F_TR('row4','r4');	} 
		if (document.getElementById('row4').className=='Tshow' ) {
		return 		F_TR('row5','r5');	} 
		}


//Скриване - показване на менюта
function doSec(secID)
	{if (secID.className=="on"){secID.className="off"}else{secID.className="on"};
	secID.style.marginLeft='20px'; }

//Зареждане на картинка от галерията	първия път от голямата таблица			
function F_loadPic(tU,tL,vLayer,vtg) {
	if (document.getElementById(tU).className == 'Tshow') { document.getElementById(tU).className ='noTshow'};
	document.getElementById(tL).className = 'Tshow';
	document.getElementById(vLayer).innerHTML = "&nbsp <BR> &nbsp" + vtg ; 
	}
//Зареждане на картинка от галерията	първия път от малките таблички долу
function F_loadPicL(vLayer,vtg) {
	document.getElementById(vLayer).innerHTML = "&nbsp <BR> &nbsp" + vtg ; 
	}
	
//Увеличаване на малката картинка, след като излезе курсора
function f_enlarge(z){
	document.getElementById(z).style.height= '54px' ;
	document.getElementById(z).style.width= '72px' ; }

//Намаляване на малката картинка, след влизане на курсора
function f_shrink(z){
	document.getElementById(z).style.height='56px';
	document.getElementById(z).style.width= '74px' ; }


// Glow text 
	function nsGlow(gColor, depth, nsGlowX, excludeIE){
		if(excludeIE && document.all) return false; 
		sNode=document.getElementById(nsGlowX);
 		sNode.style.position="absolute";		
		var newNode = sNode.cloneNode(true);
		sNode.style.top=depth+"px";
		sNode.style.left="2px";
		newNode.style.color=gColor;
		for (var i=0;i<depth*2;i++){
			if(i<depth) 
				opFilt=(100/(depth*6))*(i+1);
			else 
				opFilt=(depth*2+depth)-((100/(depth*6))*(i-depth));
			newNode.style.MozOpacity=opFilt/100;
			newNode.style.filter="alpha(opacity="+opFilt+")";
			newNode.style.top=i+"px";
			newNode.id="";
			sNode.parentNode.insertBefore(newNode,sNode);
			newNode = newNode.cloneNode(true);

 			for (var j=0;j<8;j++){
				opFilt=100/(depth*6);
				newNode2 = newNode.cloneNode(true);
				newNode2.style.MozOpacity=opFilt/100;
				newNode2.style.filter="alpha(opacity="+opFilt+")";
				newNode2.style.left=j+"px";
				newNode2.id="";
				sNode.parentNode.insertBefore(newNode2,sNode);
			}
		}
	}

function glowText(){
		nsGlow('black', 4, 'nsGlow'); 
		nsGlow('#993300', 4, 'nsGlow1'); 
		nsGlow('black', 4, 'nsGlow2'); 

		FP_preloadImgs('/images/map.jpg', '/images/map1.jpg');	
		}

function glowText_HD(){
		nsGlow('black', 4, 'nsGlow3'); 
		}

// Зареждане на видеото от малките картинки долу.

function vidLoad(vLayer, varFile, videoName){
	document.getElementById(vLayer).innerHTML = ''+
				'<object type="application/x-shockwave-flash" data="http://flv-mp3.com/i/pic/uflvplayer_500x375.swf" height="299.2" width="352">' +
					'<param name="bgcolor" value="#000000" />' +
					'<param name="allowFullScreen" value="true" />' +
					'<param name="allowScriptAccess" value="always" />' +
					'<param name="movie" value="http://flv-mp3.com/i/pic/uflvplayer_500x375.swf" />' +
					'<param name="FlashVars" value="way=http://www.gurkhabg.com/video/' +
					
						varFile		+ '&amp;' +
						
						'swf=http://flv-mp3.com/i/pic/uflvplayer_500x375.swf&amp;w=352&amp;' +
						'h=299.2&amp;pic=http://www.gurkhabg.com/video/BA.jpg&amp;' +
						'autoplay=1&amp;tools=2&amp;skin=www.gurkhabg.com/video/skin_gold.swf&amp;volume=50&amp;' +
						'q=&amp;comment=" />' +
				'</object><br>';
	document.getElementById('vidName').innerHTML = '<smaller>'  + videoName + '</smaller>';
}
