<!-- 

function getStyleObject(objectId) {
	if (document.getElementById && document.getElementById(objectId)) {
		return document.getElementById(objectId).style;
	} else if (document.all && document.all(objectId)) {
		return document.all(objectId).style;
	} else if (document.layers && document.layers[objectId]) {
		return document.layers[objectId];
	} else {
		return false;
	}
}

function changeObjectVisibility(objectId, newVisibility) {
	var styleObject = getStyleObject(objectId);
	if (styleObject) {
		styleObject.visibility = newVisibility;
		return true;
	} else
		return false;
}

function showLeaf(leafId) {
	hideLeaves();
	changeObjectVisibility("leaf"+leafId, "visible");
}

function hideLeaves() {
	for (i=1;i<=7;i++) {
		changeObjectVisibility("leaf"+i, "hidden");
	}
}

function uniqueId(input) {
	re = /[A-Za-z0-9]/g;
	myArray = input.match(re);
	output = "";
	for (i=0;i<myArray.length;i++) {
		output = output + myArray[i];
	}
	return output;
}

function ops(path, x, y) {
	if (typeof(path) == 'object') {
		re = /images\/views\/(\w+)t.jpg/;
		myArray = re.exec(path.innerHTML);
		url = '/images/views/' + RegExp.$1 + '.jpg';
	} else
		url = path;
	w_w = x; w_h = y;
	WindowName = uniqueId(url);
	s = 'status=no,scrollbars=no' + ',width=' + w_w + ',height=' + w_h;
	secWnd = window.open('', WindowName, s);
	with (secWnd) {
		document.write("<HTML>\n<head>\n<title>Статпро</title>\n");
		//document.write('<link rel="stylesheet" href="/default.css" type="text/css">\n');
		document.write("</head>\n");
        document.write("<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 bgcolor='White'>\n");
		//document.write(path.innerHTML);
        document.write("<DIV STYLE='left:0px;top:0px;margin:0px 0px 0px 0px;'>\n");
        document.write("<IMG SRC=\""+url+"\" WIDTH="+ w_w +" HEIGHT=" + w_h + " BORDER=0>\n");
        document.write("</DIV>\n");
        document.write("</BODY>\n</HTML>");
        document.close();
		focus();
	}
	return false;
}

function tops(url,w,h,scroll) {
	isScroll = (scroll) ? 'yes' : 'no';
	s = 'resizable=no,status=no,scrollbars=' + isScroll + ',width=' + w + ',height=' + h;
	WindowName = uniqueId(url);
	secWnd = window.open(url, WindowName, s);
	secWnd.focus();
	return false;
}


$(document).ready(
	function() {
		var frames = $('div.Case');
		for (i=0;i<=frames.length-1;i++) {
			$(frames[i]).attr('id','s'+i);
			$(frames[i]).after('<div class="CaseNumbers" id="nav'+i+'"></div>');
			$(function() {
				$('#s'+i) 
				.after('<div class="CaseNumbers" id="nav"'+i+'>') 
				.cycle({ 
			    	fx: 'turnDown', 
    				speed: 'fast', 
    				timeout: 0, 
    				pager: '#nav'+i 
				});
			});
		}
	}
);

// -->