	// --- elementa ieguushana	
		function el(obj){
			return document.getElementById(obj);
		}
		// --- ieguustam H
		function getScrollY() {
		  var scrOfY = 0;
		  if( typeof( window.pageYOffset ) == 'number' ) {
		    scrOfY = window.pageYOffset;
		  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		    scrOfY = document.body.scrollTop;
		  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		    scrOfY = document.documentElement.scrollTop;
		  }
		  return scrOfY;
		}
		// --- ieguustam visas lapas augstumu
		function getDocHeight() {
		    var D = document;
		    return Math.max(
		        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
		        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
		        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
		    );
		}
		// --- paraadam popup
		function pops(c_src,c_w,c_h){
			// --- peleekais
    	el('w_over').style.height = getDocHeight() + 'px';
			el('w_over').style.width = document.body.clientWidth + 'px';
			el('w_over').style.display = '';	
			// --- iframe
			var ww = document.body.clientWidth;
			var wh = document.body.clientHeight;
			el("pop_d").style.top = getScrollY() + 100 + 'px';
			el("pop_d").style.left = ((ww - c_w)/2) + 'px';
			el("pop_d").style.display = '';
			el("pop_d").innerHTML = '<div style="text-align: right; padding: 3px; border-bottom: solid 1px #fff"><a href="javascript: void(0)" onclick="poph(); return false"><img src="../files/portfolio/closelabel.gif" alt="close" border="0"></a></div><iframe src="' + c_src + '" width="' + c_w + '" height="' + c_h + '" scrolling="no" frameborder="0"></iframe>';

		}
		// --- nosleepjam popup
		function poph(){
			el("w_over").style.display = 'none';
			el("pop_d").style.display = 'none';
			el("pop_d").innerHTML = '';
		}

