// footer javacript

function openPopup(pageUrl, width, height)

{

	var scrollbars = "yes";

	var popupWin = window.open (pageUrl, 'popupWin', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,width=' + width + ',height=' + height);

	popupWin.focus();

	return false;

}

function findPosX(obj)  {
	var curleft = 0;
	if(obj.offsetParent)
		while(1) {
		  curleft += obj.offsetLeft;
		  if(!obj.offsetParent)
			break;
		  obj = obj.offsetParent;
		} else if(obj.x) curleft += obj.x;
	return curleft;
}

function findPosY(obj) {
	var curtop = 0;
	if(obj.offsetParent)
		while(1) {
		  curtop += obj.offsetTop;
		  if(!obj.offsetParent)
			break;
		  obj = obj.offsetParent;
		} else if(obj.y) curtop += obj.y;
	return curtop;
}	

function abfive() {
	NS6=false;
	IE4=(document.all);
	if (!IE4) {NS6=(document.getElementById);}
	NS4=(document.layers);
	floatX = 0;
	floatY = findPosY(document.getElementById('footerImg'))+32;

	if (NS4) {document.write('<LAYER NAME="floatlayer" LEFT="'+floatX+'" TOP="'+floatY+'">');}
	if ((IE4) || (NS6)) {document.write('<div id="floatlayer" style="position:absolute; left:'+floatX+'; top:'+floatY+';">');}
	
	document.write('<table width="1300" height="150" bgcolor="#000000">');
	document.write('<tr>');
	document.write('<td>&nbsp;</td>');
	document.write('</tr>');
	document.write('</table>');
	
	
	if (NS4) {
		document.write('</LAYER>');
	}
	if ((IE4) || (NS6)) {
		document.write('</DIV>');
	}

}

function footerImg() {
	if (location.hostname!='viart.com.ua') {
		NS6=false;
		IE4=(document.all);
		if (!IE4) {NS6=(document.getElementById);}
			NS4=(document.layers);
			abfive();
			window.onresize = function() {
		}
		//if ((NS4) || (NS6)) {document.onkeypress = myKeyPressHandler;}
	}
}