		YAHOO.namespace("wnan");
		function browser() {
 			  var ua=navigator.userAgent.toLowerCase(),isOpera=(ua.indexOf('opera')>-1),isSafari=(ua.indexOf('safari')>-1),isGecko=(!isOpera&&!isSafari&&ua.indexOf('gecko')>-1),isIE=(!isOpera&&ua.indexOf('msie')>-1);
			  if (ua.indexOf('opera')!=-1) { return 'opera';
			  } else if (ua.indexOf('msie 7')!=-1) { return 'ie7';
			  } else if (ua.indexOf('msie') !=-1) { return 'ie';
			  } else if (ua.indexOf('safari')!=-1) { return 'safari';
			  } else if (ua.indexOf('firefox') != -1) { return 'firefox';
			  } else if (ua.indexOf('gecko') != -1) { return 'gecko';
			  } else { return false; }
		}
		var theBrowser = browser();

		function jumpURL(URL) { window.location.href=URL; }

		function ShowPopWin(wName, page, header, wWidth, fWidth, wHeight, fHeight, wType) {
			if (wType == 1) {
				YAHOO.wnan.showWin = new YAHOO.widget.Panel(wName,{ width: wWidth,fixedcenter:true,close:true,draggable:false,height: wHeight,modal:true,visible:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.5}} );
				YAHOO.wnan.showWin.setBody("<body topmargin='0' leftmargin='0' rightmargin='0' bottommargin='0' marginwidth='0' marginheight='0'><IFRAME WIDTH='" + fWidth + "' HEIGHT='" + fHeight + "' SRC='" + page + "' BORDER='0' frameborder='0' marginwidth='0' marginheight='0' name='PFRAME'></body>");
			} else {
				YAHOO.wnan.showWin = new YAHOO.widget.Panel(wName,{ width: wWidth,fixedcenter:true,close:true,draggable:false,modal:true,visible:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.5}} );
				YAHOO.wnan.showWin.setBody(page);
			}
			YAHOO.wnan.showWin.setHeader(header);
			YAHOO.wnan.showWin.render(document.body);
   			YAHOO.wnan.showWin.show();
		}

		function ShowNonModalPopWin(wName, page, header, wWidth, fWidth, wHeight, fHeight, wType) {
			if (wType == 1) {
				YAHOO.wnan.showWin = new YAHOO.widget.Panel(wName,{ width: wWidth,fixedcenter:true,close:true,draggable:true,height: wHeight,modal:false,visible:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.5}} );
				YAHOO.wnan.showWin.setBody("<body topmargin='0' leftmargin='0' rightmargin='0' bottommargin='0' marginwidth='0' marginheight='0'><IFRAME WIDTH='" + fWidth + "' HEIGHT='" + fHeight + "' SRC='" + page + "' BORDER='0' frameborder='0' marginwidth='0' marginheight='0' name='PFRAME'></body>");
			} else {
				YAHOO.wnan.showWin = new YAHOO.widget.Panel(wName,{ width: wWidth,fixedcenter:true,close:true,draggable:true,modal:false,visible:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.5}} );
				YAHOO.wnan.showWin.setBody(page);
			}
			YAHOO.wnan.showWin.setHeader(header);
			YAHOO.wnan.showWin.render(document.body);
   			YAHOO.wnan.showWin.show();
		}

		function showRatingWin(CareGiverID, CareGiverName) {
			if (YAHOO.wnan.showWin != null)
				YAHOO.wnan.showWin.hide();
			if (theBrowser == "ie")
				return ShowPopWin("RateWin", "?cpx=search&fn=ratecg&id=" + CareGiverID, "Rate Caregiver `" + CareGiverName + "`", "370px", "360", "440px", "425",1);
			else
				return ShowPopWin("RateWin", "?cpx=search&fn=ratecg&id=" + CareGiverID, "Rate Caregiver `" + CareGiverName + "`", "355px", "350", "450px", "410",1);
		}

		function showAddNoteWin(CareGiverID) {
			if (YAHOO.wnan.showWin != null)
				YAHOO.wnan.showWin.hide();
			if (theBrowser == "ie")
				return ShowPopWin("RateWin", "?cpx=favourites&fn=noteform&cg=" + CareGiverID, "Add Note", "370px", "360", "140px", "125",1);
			else
				return ShowPopWin("RateWin", "?cpx=favourites&fn=noteform&cg=" + CareGiverID, "Add Note", "355px", "350", "140px", "125",1);
		}

		function popProfileHelp() {
			if (YAHOO.wnan.showWin != null)
				YAHOO.wnan.showWin.hide();
			if (theBrowser == "ie")
				return ShowNonModalPopWin("HelpWin", "cgreghelp.html", "Write a Winning Profile", "520px", "510", "380px", "365",1);
			else
				return ShowNonModalPopWin("HelpWin", "cgreghelp.html", "Write a Winning Profile", "505px", "500", "380px", "365",1);
		}


		function addFavorite(CareGiverID) {
			if (YAHOO.wnan.showWin != null)
				YAHOO.wnan.showWin.hide();
			return ShowPopWin("FavAddWin", "?cpx=favourites&fn=add&cg=" + CareGiverID, "Adding Favorite", "130px", "125", "50px", "45",1);
		}

		function showRatingInfo() {
			if (YAHOO.wnan.showWin != null)
				YAHOO.wnan.showWin.hide();
			if ((theBrowser == "ie") || (theBrowser == "ie7"))
				return ShowPopWin("RateWin", "?cpx=search&fn=rateinfo", "Our Rating System - How it Works", "570px", "565", "530px", "525",1);
			else
				return ShowPopWin("RateWin", "?cpx=search&fn=rateinfo", "Our Rating System - How it Works", "555px", "550", "510px", "480",1);
		}

		function stopSeeking() {
			if (YAHOO.wnan.showWin != null)
				YAHOO.wnan.showWin.hide();
			if ((theBrowser == "ie") || (theBrowser == "ie7"))
				return ShowPopWin("SeekWin", "?cpx=account&fn=chgseek", "Change Account Status", "470px", "465", "26s0px", "255",1);
			else
				return ShowPopWin("SeekWin", "?cpx=account&fn=chgseek", "Change Account Status", "455px", "450", "240px", "210",1);
		}