/**
Функции слайдера. 
**/
function png(img){ 
	if(img.runtimeStyle && img.src.match(/\.png$/)){
		img.runtimeStyle.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='	+ img.src + ', sizingMethod=scale)'; img.src = '/sitefactor/0.gif'; 
	} 
}
function ipopup_open(src, txt){ 
	document.getElementById('ipopup_image').src = src; 
	if(txt) document.getElementById('ipopup_text').innerHTML = txt || ""; 
	document.getElementById('ipopup').style.display = 'block'; 
}
function ipopup_prepare(img){ // расчет размеров поп-апа и тени, обработка тени для stupid msie
	var w = img.width; var h = img.height; if(w == 1 && h == 1) return;
	try{
		ipopup_data.style.width = w + 'px'; ipopup_data.style.height = h + 'px';
		ipopup_shadow.style.width = w + 60 + 'px'; ipopup_shadow.style.height = h + 80 + 'px';
	}catch(e){}
}
function ipopup_close(){ 
	document.getElementById('ipopup').style.display = 'none'; 
	document.getElementById('ipopup_image').src = '/sitefactor/bizy.gif'; 
}
function ipopup_onerror(t){ t.src = '/sitefactor/dummy.gif'; }

//&larr;  	&#8592;  	←  	←  	влево
//&uarr; 	&#8593; 	↑ 	↑ 	вверх
//&rarr; 	&#8594; 	→ 	→ 	вправо
//&darr; 	&#8595; 	↓ 	↓ 	вниз
/*
function Slider(){
	this.ePicture = document.getElementById('fsScreen');
	this.ePrev = document.getElementById('fsControl_prev');
	this.eNext = document.getElementById('fsControl_next');
	var eLinks = document.getElementById('fsLinks');
	this.aeLink = eLinks.getElementsByTagName('A');
	this.show_picture = function( sBackground, iWidth, iHeight ){
		this.ePicture.style.backgroundImage = "url(" + sBackground + ")";
		if( iWidth )
			this.ePicture.style.width = iWidth;
		if( iHeight )
			this.ePicture.style.height = iHeight;
		this.set_current( sBackground );
	}
	this.set_current = function( sHref ){
		for( var i = 0 ; i < this.aeLink.length ; i++ ){
			if( this.aeLink[i].href.match( new RegExp( sHref + "$" ) ) ){
				this.aeLink[i].className += " current";
				this.ePrev.className = this.ePrev.className.replace( /\s+disabled/g, "" );
				this.eNext.className = this.eNext.className.replace( /\s+disabled/g, "" );
				if( i == 0 ){
					this.ePrev.className += " disabled";
					this.ePrev.onclick = function(){};
					this.eNext.onclick = this.aeLink[i + 1].onclick;
				}else if( i == this.aeLink.length - 1 ){
					this.eNext.className += " disabled";
					this.eNext.onclick = function(){};
					this.ePrev.onclick = this.aeLink[i - 1].onclick;
				}else{
					this.eNext.onclick = this.aeLink[i + 1].onclick;
					this.ePrev.onclick = this.aeLink[i - 1].onclick;
				}
			}else{
				this.aeLink[i].className = this.aeLink[i].className.replace( /\s*current/g, "" );
			}
		}
	}
}
*/
