

 //Starting PT "/js/share.tpl" 
 //This file also generates/regenerates all files in the flashPlayer directory -->




		
	    

//share.js

	
function doArticleShare(service) {
	var shareTitle = document.title;
	shareTitle = encodeURIComponent(shareTitle.replace("Sutter Health - ", ""));
	var shareURL = document.location.href;
	var u = null;
	if (service == 'digg') {
		u = 'http://digg.com/submit'
		  + '?phase=2'
		  + '&url=' + shareURL
		  + '&title=' + shareTitle;
	}
	else if (service == 'delicious') {
		u = 'http://del.icio.us/post'
		  + '?url=' + shareURL
		  + '&title=' + shareTitle;
	}
	else if (service == 'newsvine') {
		u = 'http://www.newsvine.com/_tools/seed&save'
		  + '?u=' + shareURL
		  + '&h=' + shareTitle;
	}
	else if (service == 'facebook') {
		  u = 'http://www.facebook.com/sharer.php'
		  + '?u=' + shareURL
		  + '&t=' + shareTitle;
	}
	else if (service == 'reddit') {
		u = 'http://reddit.com/submit'
		  + '?url=' + shareURL
		  + '&title=' + shareTitle;
	}
	else if (service == 'furl') { // --------- acquired by Diigo -- OK to remove only after all sites are regenerated
		u = 'http://furl.net/storeIt.jsp'
		  + '?u=' + shareURL
		  + '&t=' + shareTitle;
	}
	else if (service == 'diigo') {
		u = 'http://www.diigo.com/post'
		  + '?url=' + shareURL
		  + '&title=' + shareTitle;
	}
	else if (service == 'yahoo') {
		u = 'http://myweb2.search.yahoo.com/myresults/bookmarklet'
		  + '?t='
		  + '&u=' + shareURL;
	}
	else if (service == 'google') {
		u = 'http://www.google.com/bookmarks/mark'
		  + '?op=add'
		  + '&bkmk=' + shareURL
		  + '&title=' + shareTitle
		  + '&labels=' + ''
		  + '&annotation=' + '';
	}
	else if (service == 'linkedin') {
		u = 'http://www.linkedin.com/shareArticle'
		  + '?mini=' + 'true'
		  + '&url=' + shareURL
		  + '&title=' + shareTitle;
	}
	else if (service == 'twitter') {
		u = 'http://twitter.com/home'
		  + '?status=Currently reading ' + shareURL
		  + '&title=' + shareTitle;
	}
	else if (service == 'whatIsThis') { //--------- Added whatIsThis case to support blog button help - Kyle
		shareInfo();
		return 0;
	}
	if (u != null) {
		popWin(u, 'share', 900, 640, 1)
		if (typeof winChild != "undefined" && winChild != null) {
			winChild.focus();
		}
	}
}

function popWin(url, winName, w, h, scroll) {
	if (typeof _gaq != 'undefined') _gaq.push(['_trackEvent',winName,'popup-window',url]);
	var sw = screen.width;
	var sh = screen.height;
	var cx = (.5 * sw) - (w * .5);
	var cy = (.5 * sh) - (h * .5);
	var values = 'toolbar=no,status=yes,menubar=no,scrollbars=' + scroll + ',resizable=yes,screenX=' + cx + ',screenY=' + cy + ',left=' + cx + ',top=' + cy + ',width=' + w + ',height=' + h + '';
	winChild = window.open(url, winName, values);
}
/* replacing with jquery in main.tpl to stop JAWS from reading onmouseover to user
sfHover = function() {
	var sfEls = document.getElementById("blogContainer");
			
	sfEls.onmouseover = function() {
		this.className += " sfhover";
	}
	sfEls.onmouseout = function() {
		this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
*/
<!-- For ADA JAWS Support for IE 6 and 7-->
jQuery(document).ready(function() {
       jQuery('li.share').hover(
          function() {
             jQuery(this).addClass('sfhover');     
          }, function() {
             jQuery(this).removeClass('sfhover');  
          }
       );
    });
	
function showBlogs(thisElement){
	document.getElementById("blogContainer").className = "share sfhover";
	if (thisElement != null){
		var curElement = thisElement;
		curElement.className = "blogEntrySelected";
	}
}

function hideBlogs(thisElement){
	document.getElementById("blogContainer").className = "share";
	if (thisElement != null){
		var curElement = thisElement;
		curElement.className = "blogEntry";
	}
}

function showHideBlogs(){
	var thisClassName = document.getElementById("blogContainer").className; //blogContainer
	if (thisClassName == 'share'){
		showBlogs();
	}
	else{
		hideBlogs();
	}
	//alert(thisClassName);
}

/*



----------------------------------------------------------------
---------------------------- INFO ------------------------------
  Everything below this comment is added by Sutter - Kyle        
----------------------------------------------------------------
---------------------------- CODE ------------------------------
*/

//--------- Added shareInfo function to support blog button help - Kyle
function shareInfo(){
	return 0;
}



//--------- Added emailAFriend function to support email button - Kyle
function emailAFriend(){
	var daReferrer = document.referrer; 
	var email = ""; 
	
	var thisHref = location.protocol +"//" +location.hostname +location.pathname +location.search;
	
	thisHref = thisHref.replace(/\&/g, "%26");
	thisHref = thisHref.replace(/\?/g, "%3F");
	thisHref = thisHref.replace(/\//g, "%2F");
	
	var subject = "I thought you might be interested in this Web page: " +"'" +document.title +"'"; 
	var body_message = "I found this page: " +document.title +", and thought you might be interested in it.  Click on the link below: %0D%0D" +thisHref;
	
	var mailto_link = 'mailto:'+email+'?subject='+subject+'&body='+body_message; 

	win = window.open(mailto_link,'emailWindow'); 
	if (win && win.open &&!win.closed) win.close(); 
}

//--------- Function to add Font-resizing, Email-a-friend, Share/Blog buttons to the page without the need to regen every page when updates are needed
function writePageActions(){


	var pageActionsInner = "";
	pageActionsInner += "<li class=\"decreaseFontSize\">";
	pageActionsInner += "	<a href=\"javascript:changeFontSize(-.1);\" title=\"";
	pageActionsInner += decreaseFontText;
	pageActionsInner += "\" onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','font-size-decrease']);\">";
	pageActionsInner += decreaseFontText;
	pageActionsInner += "</a>";
	pageActionsInner += "</li>";
	pageActionsInner += "<li class=\"increaseFontSize\">";
	pageActionsInner += "	<a href=\"javascript:changeFontSize(.1);\" title=\"";
	pageActionsInner += increaseFontText;
	pageActionsInner += "\" onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','font-size-increase']);\">";
	pageActionsInner += increaseFontText;
	pageActionsInner += "</a>";
	pageActionsInner += "</li>";
	pageActionsInner += "<li class=\"sendToFriend\">";
	pageActionsInner += "	<a href=\"javascript:emailAFriend();\" title=\"";
	pageActionsInner += sendToAFriendText;
	pageActionsInner += "\" onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','email']);\">";
	pageActionsInner += sendToAFriendText;
	pageActionsInner += "</a>";
	pageActionsInner += "</li>";
	pageActionsInner += "<li class=\"share\" id=\"blogContainer\">";
	pageActionsInner += "	<a name=\"share\"></a>";
	pageActionsInner += "	<ul>"; // Facebook, Twitter, LinkedIn, Google, Yahoo, Digg, Delicious, Reddit
	pageActionsInner += "		<li id=\"facebook\" ><a href=\"javascript:doArticleShare('facebook');\" title=\"facebook\" onfocus=\"showBlogs(this);\" onblur=\"hideBlogs(this);\" onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','social-facebook']);\">Facebook <span class=\"hideOffScreen\">Opens new window</span></a></li>";
	pageActionsInner += "		<li id=\"twitter\"  ><a href=\"javascript:doArticleShare('twitter');\"  title=\"twitter\" onfocus=\"showBlogs(this);\" onblur=\"hideBlogs(this);\"  onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','social-twitter']);\">Twitter <span class=\"hideOffScreen\">Opens new window</span></a></li>";
	pageActionsInner += "		<li id=\"linkedin\" ><a href=\"javascript:doArticleShare('linkedin');\" title=\"linkedin\" onfocus=\"showBlogs(this);\" onblur=\"hideBlogs(this);\"  onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','social-linkedin']);\">Linked In <span class=\"hideOffScreen\">Opens new window</span></a></li>";
	pageActionsInner += "		<li id=\"google\"   ><a href=\"javascript:doArticleShare('google');\"  title=\"google\"  onfocus=\"showBlogs(this);\" onblur=\"hideBlogs(this);\"  onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','social-google']);\">Google</a> <span class=\"hideOffScreen\">Opens new window</span></li>";
	pageActionsInner += "		<li id=\"yahoo\"    ><a href=\"javascript:doArticleShare('yahoo');\"  title=\"yahoo\"  onfocus=\"showBlogs(this);\" onblur=\"hideBlogs(this);\"   onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','social-yahoo']);\">Y<span class=\"hideOffScreen\">ahoo</span>! My Web</a> <span class=\"hideOffScreen\">Opens new window</span></li>";
	pageActionsInner += "		<li id=\"digg\"     ><a href=\"javascript:doArticleShare('digg');\"  title=\"digg\"   onfocus=\"showBlogs(this);\" onblur=\"hideBlogs(this);\"  onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','social-digg']);\">Digg This <span class=\"hideOffScreen\">Opens new window</span></a></li>";
	pageActionsInner += "		<li id=\"delicious\"><a href=\"javascript:doArticleShare('delicious');\" title=\"delicious\" onfocus=\"showBlogs(this);\" onblur=\"hideBlogs(this);\" onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','social-delicious']);\">del.icio.us <span class=\"hideOffScreen\">Opens new window</span></a></li>";
	pageActionsInner += "		<li id=\"reddit\"   ><a href=\"javascript:doArticleShare('reddit');\"  title=\"reddit\"  onfocus=\"showBlogs(this);\" onblur=\"hideBlogs(this);\"  onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','social-reddit']);\">Reddit <span class=\"hideOffScreen\">Opens new window</span></a></li>";
	pageActionsInner += "		<li id=\"newsvine\" ><a href=\"javascript:doArticleShare('newsvine');\" title=\"newsvine\"  onfocus=\"showBlogs(this);\" onblur=\"hideBlogs(this);\" onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','social-newsvine']);\">Newsvine <span class=\"hideOffScreen\">Opens new window</span></a></li>";
	pageActionsInner += "		<li id=\"diigo\"    ><a href=\"javascript:doArticleShare('diigo');\" title=\"diigo\"  onfocus=\"showBlogs(this);\" onblur=\"hideBlogs(this);\"  onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','social-diigo']);\">Diigo <span class=\"hideOffScreen\">Opens new window</span></a></li>";
	pageActionsInner += "	</ul>";
	pageActionsInner += "</li>";
	pageActionsInner += "<li class=\"print last\">";
	pageActionsInner += "	<a href=\"javascript:window.print();\" title=\"";
	pageActionsInner += printPageText;
	pageActionsInner += "\" onclick=\"if(typeof _gaq != 'undefined') _gaq.push(['_trackEvent','page-actions','click','print']);\">";
	pageActionsInner += printPageText;
	pageActionsInner += "</a>";
	pageActionsInner += "</li>";

	//document.getElementById("pageActions").appendChild(pageActionsInner);
	//document.write(pageActionsInner);

	document.getElementById("pageActions").innerHTML = pageActionsInner;
}

//--------- Handle delay and submission to Google Analytics - code by Blast Advanced Media, implementation by Keith
function submitDelay(el) {
	var formName = jQuery(el).parents('form').attr('name');
	jQuery(el).parents('form').find(':input').each(function(i) {
		if (jQuery(this).val() != null && jQuery(this).val().length > 0 && jQuery(this).attr('type') != 'hidden' && jQuery(this).attr('type') != 'button' && jQuery(this).attr('type') != 'submit') {
			if (jQuery(this).attr('type') == 'select-one') {
				_gaq.push(['_trackEvent', formName, jQuery(this).attr('name'), jQuery('#' + jQuery(this).attr('id') + ' option:selected').text()]);
			}
			else {
				_gaq.push(['_trackEvent', formName, jQuery(this).attr('name'), jQuery(this).val()]);
			}
		}
	});
	setTimeout(function() { jQuery(el).parents('form').submit(); }, 500);
}





	






 //Begining PT "/js/sutterCustom.tpl" 







//sutterCustom.js


/* 
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 * BEGIN JS CODE IS FROM THE OLD SUTTERHEALTH DESIGN'S "sutter.js" SCRIPT/////\\\\\
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 */
 
 
 
 /* 
 The hideSearch function is rendered inert with the 08 redesign.
 Leaving function to keep existing pages that still call it from throwing errors.
  */
 function hideSearch()
 {
 	//Just need a function placeholder
 }
 
 // Fix the Array.push functionality on old browsers (like IE 5.0)
 if(!Array.prototype.push) {
     function array_push(thing){
         this[this.length ] = thing; 
         return this.length
     }
     Array.prototype.push = array_push;
 }
 
 
 // Stuff for flash movie
 var moviename = "sutter";
  
 function movieobject(moviename)
 {
     if (navigator.appName.indexOf ("Microsoft") !=-1) 
     {
         return window[moviename]
     }
         else
     {
         return document[moviename]
     }
 }
 
 var movie_ready = "false";
 
 function loadmovie()
 {
     if(movie_ready == "false")
     {
         while(movie_ready == "false")
         {
             if(movieobject(moviename).PercentLoaded() == 100)
             {
                 movieobject(moviename).GotoFrame (65);
                 movie_ready = "true";
             }
         }
     }
     else
     {
         movieobject(moviename).GotoFrame (65);
     }
 }
 
 
 /*
 ----------------------------------------------------------------
 ----------------------------------------------------------------
   JAVASCRIPT
   Author: Matthew L. Empringham
   Date: May 3, 2002
   Version 1.0
   Function: Display Default Text in Search Text Field
   Notes: If different pages need different default messages, edit this function
 ----------------------------------------------------------------
 ----------------------------------------------------------------
 */
 function searchDefaultText(form,field,text){
     if(document[form] && document[form][field]){
         if(document[form][field].value == text)
         {
             document[form][field].value = "";
         }else if(document[form][field].value == "")
         {
             document[form][field].value = text;
         }
     }
 }
 
 
 
 /*
 ----------------------------------------------------------------
 ---------------------------- INFO ------------------------------
   JAVASCRIPT
   Author: Matthew L. Empringham
   Date: Nov 25, 2002
   Version 1.0
   Function: RETURNS QUERY STRING VALUE for GIVEN NAME
   Notes:    Returns VALUE from QUERYSTRING or FALSE if NOT FOUND
 ----------------------------------------------------------------
 ---------------------------- CODE ------------------------------
 */
 function getQueryValue(name){
     
     var subend;
     var substart;
     var queryString;
     var value = false;
     if(document.URL && document.URL.indexOf("?") > -1){
         queryString = unescape(document.URL);
         queryString.substring(queryString.indexOf("?")+1);
         
         if (queryString.indexOf(name) < 0) {
             return value;
         }
         
         substart = queryString.indexOf(name) + (name.length + 1);
         subend = queryString.indexOf("&",substart);
         if(subend == -1){
             subend = queryString.length;
         }
         if(substart != -1){
             value = queryString.substring(substart,subend);
         }
     }
     return value;
 }
 
 function isDomain(domain) {
 
     var url = document.URL;
     if (url.indexOf("?") > -1) {
         url = url.substring(0,url.indexOf("?")-1);
         return true;
     }
     //if (url.indexOf(domain + "/") > -1) {
     //    return true;
     //}
     
     return false;
 }
 
 
 
 /*
 ----------------------------------------------------------------
 ---------------------------- INFO ------------------------------
   JAVASCRIPT
   Author: Jesse Piascik
   Date: December 10, 2002
   Version 1.0
   Function: BackToLink object
   Notes:    Dependency of Cookie.js
             Creates a BackToLink object and sets the cookies.  
             Contains accessors for getting url and label.
         
 ----------------------------------------------------------------
 ---------------------------- CODE ------------------------------
 */
 function BackToLink(domain) {
     //If the current url doesn't contain domain throw error
     //if(!isDomain(domain)) {
     //   this.hasData = false;
     //    return;
     //}
 
     //methods
     this.getUrl = getBackToUrl;
     this.getLabel = getBackToLabel;
     this.destroy = destroyBackTo;
     this.jump = jumpBackTo;
 
     //attributes
     this.hasData = true;
     this.domain = domain;
     this.label = getCookie("aff_site");
     this.url = getCookie("aff_url");    
 
     //If the values aren't in the cookie, get them from the query string
     //If there not in the query string set hasData=false and return
     if (this.label == null) {
         this.label = getQueryValue("aff_site");
         if (this.label) {
             setCookie("aff_site", this.label, null, "/");
         } else {
             this.hasData = false;
             return;
         }
     }
     
     if (this.url == null) {
         this.url = getQueryValue("aff_url");
         //Make backward compatible to use http referer if aff_url is not passed
         //***When no url is available don't show backToLink***
         if(!this.url) {
             this.url = document.referrer;
         }
         //Final Check before setting the cookie
         if(!this.url) {
             this.destroy();
             return;
         } else {
             setCookie("aff_url", this.url, null, "/");
         }
     }
     
 
 }
 
 function getBackToLabel() {
     return unescape(this.label);
 }
 
 function getBackToUrl() {
     return this.url;
 }
 
 function destroyBackTo() {
     deleteCookie("aff_site", "/");
     deleteCookie("aff_url", "/");
 }
 
 function jumpBackTo() {
     this.destroy();
     document.location=this.url;
 }
 
 
 
 /*
 ----------------------------------------------------------------
 ----------------------------------------------------------------
   JAVASCRIPT
   Author: Keith Sharward
   Date: December 4, 2002
   Version 1.0
   Function: Launches the Video Window for streaming media
   Details:
    Links that are formatted as
    <a href="javascript:video(file=filename.wmv&title=TitleGoesHere&Text=GextGoesHere);">Link to Video</a>
    will spawn a new window, perfectly centered on the screen, which will
    contain the index.cfm file within the /video/ directory. The index.cfm file
    reads the parameters in the URL, then displays the video using an embedded
    Windows Media Player component.
 ----------------------------------------------------------------
 ----------------------------------------------------------------
 */
 var videoWindow = null; // confirms videoWindow is clean to start with
 
 function video(parameters) {
     
     if (videoWindow && videoWindow.open && !videoWindow.closed) {  // if videoWindow is already open...
         videoWindow.focus(); // ...activate it.
     }
     else {
         if (videoWindow && videoWindow.closed) { 
             videoWindow = null;
         }
     }
 
     height = 600; // sets desired browser window height 
     width = 583; // sets desired browser window width 
 
     x = 20; // sets temporary x variable 
     y = 20; // sets temporary y variable 
     
     if (screen) { // resets temporary variables if screen resolution can be detected 
         y = (screen.availHeight - height)/2-20; // subtract spawned window height from available hight and divide by 2 
         x = (screen.availWidth - width)/2; // subtract spawned window width from available width and divide by 2 
     }
     
     attributes = 'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x;
     attributes = attributes + ',resizable=1,menubar=no,status=no,scrollbars=yes,location=no,toolbar=no'
 
     videoWindow = window.open('/video?'+parameters,'video',attributes);
 
 }
 
 
 
 /* 
  * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
  * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
  * /////\\\\\ FROM THIS POINT FORWARD /////\\\\\/////\\\\\//////////\\\\\/////\\\\\
  * THIS JS CODE IS FROM THE OLD SUTTERHEALTH DESIGN PRIOR TO NOVEMBER of 2002 \\\\\
  * MAY NEED TO BE CLEANED OUT AT SOME TIME /////\\\\\/////\\\\\/////\\\\\/////\\\\\
  * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
  * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
  */
  
 
 //Macromedia functions
 
 function pop(theURL,winName,features) {
   window.open(theURL,winName,features);
 }
 
 function MM_preloadImages() { //v3.0
   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
 }
 
 function MM_swapImgRestore() { //v3.0
   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
 }
 
 function MM_findObj(n, d) { //v3.0
   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
 }
 
 function MM_swapImage() { //v3.0
   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
 }
 
 function MM_jumpMenu(targ,selObj,restore){
     eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
     if (restore) selObj.selectedIndex=0;
 }
 
 function MM_jumpMenuGo(selName,targ,restore){
   var selObj = MM_findObj(selName);
   if (selObj && selObj.selectedIndex!=0) {
     MM_jumpMenu(targ,selObj,restore);
   }
 }
 
 
 
 
 //Launch Pop-up window based on percentage of client's screen resolution
 function openWindow(width,height,xoffset,yoffset,html) {
     // pass in percentages of x and y screen position
     x = (640 - width)*(xoffset*0.01), y = (480 - height)*(yoffset*0.01);
 
     if (screen) {
         y = (screen.availHeight - height)*(yoffset*0.01);
         x = (screen.availWidth - width)*(xoffset*0.01);
     }
     if (screen.availWidth > 1800) {
         x = ((screen.availWidth/2) - width)/2;
     }
     window.open(''+html+'','newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
 }
 
 
 //Launch Grid for Specialty/Services
 function launchGrid(which){
     //call this in an <a href="javascript:launchGrid('mengrid');">
     var dim,winprops;
     switch(which) {
         //Behavioral Health
         case 'mengrid.html':
             dim='width=610,height=300';
             break;
         //Cancer
         case 'cangrid.html':
             dim='width=600,height=300';
             break;
         //Cardiac
         case 'crdgrid.html':
             dim='width=605,height=300';
             break;
         //homehealth
         case 'hhsgrid.html':
             dim='width=620,height=300';
             break;
         //ortho_neurosurgery
         case 'ortgrid.html':
             dim='width=655,height=300';
             break;
         //transplants
         case 'tragrid.html':
             dim='width=435,height=220';
             break;
         //women infant services
         case 'wmngrid.html':
             dim='width=655,height=300';
             break;
         default:
             return;
     }
 
     winprops = dim + ',resizable=yes,menubar=no,directories=no,status=yes';
     window.open(which,'Chart',winprops);
 }
 
 
 //Calendar forgot password function
 function forgot(){
             var f_mail = (prompt("Enter your e-mail address, and your password will be sent."));
             if (f_mail)
             {
  window.open('http://www.sutterhealth.org/guestbook/forgot.cfm?email='+f_mail,'forgot','scrollbars=no, resizable=no, width=0, height=0');
             }
 }
 
 
 
 
 
 
 /* 
  * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
  * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
  * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
  * THIS JS CODE IS FROM THE OLD SUTTERHEALTH DESIGN'S "cookie.js" SCRIPT\/////\\\\\
  * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
  * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
  * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
  */
 
 
 function setCookie(name, value, expires, path, domain, secure) {
 	var curCookie = name + "=" + escape(value) +
 		((expires) ? "; expires=" + expires.toGMTString() : "") +
 		((path) ? "; path=" + path : "") +
 		((domain) ? "; domain=" + domain : "") +
 		((secure) ? "; secure" : "");
 	document.cookie = curCookie;
 }
 
 
 function getCookie(name) {
 	var dc = document.cookie;
 	var prefix = name + "=";
 	var begin = dc.indexOf("; " + prefix);
 	if (begin == -1) {
 		begin = dc.indexOf(prefix);
 		if (begin != 0) {
 			return null
 		};
 	} else {
 		begin += 2;
 	}
 	var end = document.cookie.indexOf(";", begin);
 	if (end == -1) {
 		end = dc.length;
 	}
 	return unescape(dc.substring(begin + prefix.length, end));
 }
 
 
 function deleteCookie(name, path, domain) {
 	var expires = new Date();
 	expires.setTime(expires.getTime() - 1);
 	if (getCookie(name)) {
 		document.cookie = name + "=" + 
 		((path) ? "; path=" + path : "") +
 		((domain) ? "; domain=" + domain : "") +
 		"; expires=" + expires.toGMTString();
 	}
 }
 
 
 function fixDate(date) {
 	var base = new Date(0);
 	var skew = base.getTime();
 	if (skew > 0) {
 		date.setTime(date.getTime() - skew);
 	}
 }
 



/* 
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 * END JS CODE IS FROM THE OLD SUTTERHEALTH DESIGN'S "sutter.js" SCRIPT\\/////\\\\\
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 * /////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
 */

function popup(url,title,width,height){
	window.open(url, title, "location=no,width="+width+",height="+height+",resizable=1,toolbar=0,scrollbars=1"); 
}



    

 //Ending PT "/js/sutterCustom.tpl" 







/*
----------------------------------------------------------------
---------------------------- INFO ------------------------------
  Custom javascript (site specific) is everything below here        
----------------------------------------------------------------
---------------------------- CODE ------------------------------
*/
function doNothingAtAll() {

}

var _gaq = _gaq || []; // temporary patch to prevent "_gaq undefined" error






/*
Related files:
\javascript\sh\flashPlayer\*.*	[individual files listed below]
expressInstall.swf
player238.swf
player400.swf
Sutter2.swf
css
swfobject
xliff
videoplayer.js
assets

*/






    

 //Ending PT "/js/share.tpl" 



