function checkCoocies(){
	if(document.cookie=="")document.write('<div class="error">To proceed please enable Cookies in your browser.</div>')
}

function SupportWindow(){
	var url = "http://messenger.providesupport.com/messenger/stimul-cash.html?ps_s=" + psYPWrsid + "&ps_mht=" + psYPWrmht + "";
	window.open(url, "_blank", "menubar=0,location=0,scrollbars=auto,resizable=1,status=0,width=500,height=460");
}
var seYPWr=document.createElement("script"); seYPWr.type="text/javascript";
var seYPWrs=(location.protocol.indexOf("https")==0?"https://secure.providesupport.com/image":"http://image.providesupport.com")+
"/js/stimul-cash/safe-standard.js?ps_h=YPWr\u0026ps_t="+new Date().getTime();
setTimeout("seYPWr.src=seYPWrs;document.getElementById('support').appendChild(seYPWr)",1);

function bookmark(){
	document.write('<a href="' + document.referrer + '" onclick="window.external.AddFavorite(top.location.href, top.document.title); return false;"' +
		'title="Add this page to FAVORITES" rel="sidebar"><img src="/_img/bmark.gif" align="" /></a>')
}

function expand(id){
	var switcher = document.getElementById('toggle_info');
	if ($('#' + id).attr('loaded')){
		$('#' + id).toggle('slow');
		switcher.innerHTML = (switcher.innerHTML == '« hide info' ? 'more product info »' : '« hide info');
	}else{
		switcher.innerHTML = '« hide info';
		$('#' + id).attr('loaded', true).append('<img src="/_img/table/load.gif" alt="" class="load" />').load('/lang/en/descr/' + id + '.html');
	}
}

function counter(mode){
	if(mode == 1){
	document.write('<a href="http://www.liveinternet.ru/click" target="_blank" rel="nofollow"><img'+
	' src="http://counter.yadro.ru/hit?t24.02;r'+escape(document.referrer)+((typeof(screen)=="undefined")?"":
	";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
	";"+Math.random()+'" alt="" /><\/a>')
	}else{
	document.write('<img src="/_img/24.02.gif" alt="" />')
	}
}

var hT = new Array();
var sT = new Array();
function SmoothShow(objId, x){
	var obj = document.getElementById(objId);
//	if(obj.style.opacity === '') obj.style.opacity = '1';
	op = (obj.style.opacity)?parseFloat(obj.style.opacity):parseInt(obj.style.filter)/100;

	if(op < x){
		clearTimeout(hT[objId]);
		op += 0.10;
		obj.style.opacity = op;
		obj.style.filter='alpha(opacity='+op*100+')';
		sT[objId]=setTimeout('SmoothShow(\''+objId+'\', '+x+')',50);
	}
}
function SmoothHide(objId, x){
	var obj = document.getElementById(objId);
	if(obj.style.opacity === '') obj.style.opacity = '1';
	op = (obj.style.opacity)?parseFloat(obj.style.opacity):parseInt(obj.style.filter)/100;

	if(op > x){
		clearTimeout(sT[objId]);
		op -= 0.10;
		obj.style.opacity = op;
		obj.style.filter='alpha(opacity='+op*100+')';
		hT[objId]=setTimeout('SmoothHide(\''+objId+'\', '+x+')',20);
	}
}
