function zoompic(img){
	eval('win'+'dow.open("http://www.regnum.ru/showpicture/?img="+img,"Изображение","height=200,width=200,status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no,top=20,left=20")');
}

function openBrWindow(theURL,winName,features){
	if (winName==''){
		var now = new Date;
		seconds = now.getSeconds();
		winName = 'win' + seconds;
	}
	window.open(theURL,winName,features);
}


function openNewsWindow(winName) {
}

function goRootTimeout(){
	if (self.parent.frames.length != 0) {
		self.parent.location.href = '/';
	} else {
		window.location.href = '/';
	}
}
function goRoot() {
	setTimeout ("goRootTimeout()", 5000);
}

function doCloseWin(){
	var n = (document.layers) ? 0:1;      // it is netscape4.X ?
	if (n) window.close();
}

function miceOverTable(src,color){
	if (!src.contains(event.fromElement)){
		src.style.cursor = 'hand';
		src.bgColor = color;
    }
}

function miceOutTable(src,color){
	if (!src.contains(event.toElement)){
		src.style.cursor = 'default'; 
		src.bgColor = color;
	}
}

function miceClickTable(src){
	if(event.srcElement.tagName=='TD') src.children.tags('A')[0].click();
}

function emulateMouseOver(src){
	if (!src.contains(event.fromElement)) src.style.cursor = 'hand';
}

function emulateMouseOut(src){
	if (!src.contains(event.toElement)) src.style.cursor = 'default'; 
}

function emulateMouseClick(src){
	if(event.srcElement.tagName=='TD') src.children.tags('A')[0].click();
}