

function i2_navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#E16A47';
				tableCellRef.style.border  = '#000000';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ddd';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}

function i2_navBar2( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#F4F0D2';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#F4F0D2';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ddd';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}


function i2_taken( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#ff0000';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#990000';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ddd';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}





function i2_navBarClick( tableCellRef, navStyle, url ) {
	i2_navBar( tableCellRef, 0, navStyle );
	CNN_goTo( url );
}


function zoomBox(evt,zlink,maxw,maxh,tox,toy) {
if (arguments.length > 2) zNew=1;
scrollH=(window.pageYOffset!=null)?window.pageYOffset:document.body.scrollTop;
maxW=maxw?maxw:window.innerWidth?innerWidth:document.body.clientWidth;
maxH=maxh?maxh:window.innerHeight?innerHeight:document.body.clientHeight;
toX=tox?tox:0;
toY=(toy?toy:0)+scrollH;
fromX=evt.pageX?evt.pageX:evt.clientX;
fromY=(evt.pageY?evt.pageY:evt.clientY)+(document.all?scrollH:0);
adjX=toX+evt.screenX-fromX;
adjY=toY+evt.screenY-fromY;
if (document.createElement && document.body.appendChild && !zBox) {
	zBox=document.createElement("div");
	zBox.style.position="absolute";
	document.body.appendChild(zBox);
} else if (document.all && !zBox) {
	document.all[document.all.length-1].outerHTML+='<div id="zBoxDiv" style="position:absolute"></div>';
	zBox=document.all.zBoxDiv;
} else if (document.layers && !zBox) {
	zBox=new Layer(maxW);
	zBox.style=zBox;
	}
zLink=zlink;
doZoom();
}

var remotespPop=null;
var remoteAlt=null;
var remotePromo=null;
var remoteJoin=null;
var remoteChatPop=null;
var remoteLarge=null;
function realSpawn(spath2, x) {
remotespPop=window.open(spath2,"popupspPop","width=520,height=350,scrollbars=yes,status=yes,resizable=yes");
if (remotespPop != null) {
if (remotespPop.opener == null)
remotespPop.opener = self;
}
if (x == 1) { return remotespPop; }
}
function realSpawnPromo(spathPromo2, xPromo) {
remotePromo=window.open(spathPromo2,"popupPromo","width=580,height=250,scrollbars=yes,status=yes");
if (remotePromo != null) {
if (remotePromo.opener == null)
remotePromo.opener = self;
}
if (xPromo == 1) { return remotePromo; }
}
function realSpawnAlt(spathAlt2, xAlt) {
remoteAlt=window.open(spathAlt2,"popupAlt","width=500,height=170,scrollbars=yes"); // changed by rt to scroll yes
if (remoteAlt != null) {
if (remoteAlt.opener == null)
remoteAlt.opener = self;
}
if (xAlt == 1) { return remoteAlt; }
}
function realSpawnLarge(spathLarge2, xLarge) {
remoteLarge=window.open(spathLarge2,"popupLarge","width=790,height=458,scrollbars=yes"); // changed by rt to scroll yes
if (remoteLarge != null) {
if (remoteLarge.opener == null)
remoteLarge.opener = self;
}
if (xLarge == 1) { return remoteLarge; }
}
function realSpawnChatPop(spathChat2Pop, xChatPop) {
remoteChatPop=window.open(spathChat2Pop,"popupChatPop","width=520,height=350,scrollbars=yes,status=yes,resizable=yes");
if (remoteChatPop != null) {
if (remoteChatPop.opener == null)
remoteChatPop.opener = self;
}
if (xChatPop == 1) { return remoteChatPop; }
}
function realSpawnJoin(spathJoin2, xJoin) {
remoteJoin=window.open(spathJoin2,"popupJoin","width=550,height=250,scrollbars=yes");  // changed by rt to scroll yes
if (remoteJoin != null) {
if (remoteJoin.opener == null)
remoteJoin.opener = self;
}
if (xJoin == 1) { return remoteJoin; }
}
var awnd=null;
var awndAlt=null;
var awndPromo=null;
var awndJoin=null;
var awndChatPop=null;
var awndLarge=null;
function spawn(spath) {
awnd=realSpawn(spath,1);
awnd.focus();
}
function spawnLarge(spathLarge) {
awndLarge=realSpawnLarge(spathLarge,1);
awndLarge.focus();
}
function spawnAlt(spathAlt) {
awndAlt=realSpawnAlt(spathAlt,1);
awndAlt.focus();
}
function spawnPromo(spathPromo) {
awndPromo=realSpawnPromo(spathPromo,1);
awndPromo.focus();
}
function spawnChatPop(spathChatPop) {
awndChatPop=realSpawnChatPop(spathChatPop,1);
awndChatPop.focus();
}
function spawnjoin(spathJoin) {
awndJoin=realSpawnJoin(spathJoin,1);
awndJoin.focus();
}

function WinOpen_ph() {
open("/keeping_people_healthy/nurse_patient_relationship_phn_pop_up.asp","popup",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=480,height=540,left=500,top=140')
}

function WinOpen_parish() {
open("/keeping_people_healthy/nurse_patient_relationship_parish_pop_up.asp","popup",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=480,height=450,left=500,top=140')
}

function Window_High()
        {
        msgWindow=window.open("http://www.rnao.org/video2/video_personalStories_High.html","displayWindow", "toolbar=no,width=650, height=500,directories=no, status=no,scrollbars=yes,resize=yes,menubar=no")
        } 

function Window_Low()
        {
        msgWindow=window.open("http://www.rnao.org/video2/video_personalStories_Low.html","displayWindow", "toolbar=no,width=650, height=500,directories=no, status=no,scrollbars=yes,resize=yes,menubar=no")
        } 

function WinOpen_reference() {
open("/citing.asp","popup",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=480,height=475,left=500,top=140')
}


