function rView(oElement)
{		


//		var n  = (document.layers);

//		alert(n);
//		var mousex = (n) ? oElement.pageX : event.x+document.body.scrollLeft;
//		var mousey = (n) ? oElement.pageY : event.y+document.body.scrollTop;


	if (window.event) { // for IE
		var mousex = event.x+document.body.scrollLeft;
		var mousey = event.y+document.body.scrollTop;
	} else {

		var mousex = event.pageX;
		var mousey = event.pageY;

	}

		oElement._color	= oElement.style.backgroundColor;
		document.getElementById('ralView').style.backgroundColor = oElement._color;

        document.getElementById('ralView').style.visibility = "visible";
		document.getElementById('ralView').style.top = mousey - 136;
		document.getElementById('ralView').style.left = mousex - 200;

	//oElement.className	= "over";
}
function rHide(oElement)
{		
		document.getElementById('ralView').style.visibility = "hidden";

}

var v=parseInt(navigator.appVersion);
isNetscape=navigator.appName.indexOf('Netscape')>=0;
isExplorer=navigator.appName.indexOf('Explorer')>=0;
if (v>=3) self.focus();

function popUp(goLocation,ww,wh,scr) {

		goLocation = "/images/"+goLocation;

		if (scr != 1){
			scr = 0;
		}else{
			ww = Number(ww) + 17;
		}
		positionCode='';

		if (v>=4) {
			sw=screen.width; sh=screen.height;
			wbx=Math.round((sw-ww)/2); wby=Math.round((sh-wh)/2)-25;
			if (isExplorer) positionCode='left='+wbx+',top='+wby+',';
			if (isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
		}

		page = window.open(goLocation,'','width='+ww+',height='+wh+','+positionCode+'toolbar=0,'+'scrollbars='+scr+','+'resizable=0');
		page.document.open();
		pagecode = '<HEAD><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=windows-1251" /><TITLE>Contrast Interactive</TITLE></HEAD><BODY STYLE="margin: 0px; padding: 0px"><table height="100%" cellpadding=0 cellspacing=0><tr><td height="100%" valign="middle"><A HREF="#" OnClick="javascript: window.close(); return false;"><img src="' + goLocation + '" ALT="close window" border=0></A><br></td></tr></table></BODY>';
		page.document.write(pagecode);
		page.document.close();
		if (isNetscape && v>=3) page.focus();
}




function popUpFlash(goLocation,ww,wh,title) {
		goLocation = "img/flash/"+goLocation;
		positionCode='';

		if (v>=4) {
			sw=screen.width; sh=screen.height;
			wbx=Math.round((sw-ww)/2); wby=Math.round((sh-wh)/2)-25;
			if (isExplorer) positionCode='left='+wbx+',top='+wby+',';
			if (isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
		}
		sww = parseInt(ww);
		swh = parseInt(wh);

		page = window.open(goLocation,'','width='+sww+',height='+swh+','+positionCode+', toolbar=0,location=0,fullscreen=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
		page.document.open();
		pagecode = '<HEAD><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=windows-1251" /><TITLE>'+title+'</TITLE></HEAD><BODY STYLE="margin: 0px; padding: 0px 0px 0px 0px;"><table height="100%" cellpadding=0 cellspacing=0><tr><td height="100%" valign="middle"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+ww+'" HEIGHT="'+wh+'" id="flash" ALIGN=""><PARAM NAME=movie VALUE="' + goLocation + '"><param name="menu" value="false"><PARAM NAME=quality VALUE=high><param name="wmode" value="opaque"><PARAM NAME=bgcolor VALUE=#ffffff><EMBED src="' + goLocation + '" quality=high wmode="opaque" bgcolor=#ffffff  WIDTH="'+ww+'" HEIGHT="'+wh+'" NAME="flash" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT></td></tr></table></BODY>';
		page.document.write(pagecode);
		page.document.close();
		page.focus();
}

