document.write ("") function createAjaxObj2C79E19F1E8F4CB1AB74273EBFE65782(){ var httprequest=false if (window.XMLHttpRequest){ // if Mozilla, Safari etc httprequest=new XMLHttpRequest() if (httprequest.overrideMimeType) httprequest.overrideMimeType('text/xml') } else if (window.ActiveXObject){ // if IE try { httprequest=new ActiveXObject("MSXML2.XMLHTTP.4.0"); } catch (e){ try{ httprequest=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){} } } return httprequest } // ------------------------------------------------------------------- // Main Ajax Ticker Object function // ajax_ticker(xmlfile, divId, divClass, delay, optionalfadeornot, isrotating) // isrotatin - 2 - off; 1 - on // ------------------------------------------------------------------- function ajax_ticker(xmlfile, divId, divClass, delay, fadeornot, isrotating,xmlString){ this.xmlfile=xmlfile //Variable pointing to the local ticker xml file (txt) this.tickerid=divId //ID of ticker div to display information this.delay=delay //Delay between msg change, in miliseconds. this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over ticker (and pause it if it is) this.pointer=0 this.isrotating=isrotating this.xmlString=xmlString this.opacitystring=(typeof fadeornot!="undefined")? "width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1" : "" if (this.opacitystring!="") this.delay+=500 //add 1/2 sec to account for fade effect, if enabled this.opacitysetting=0.2 //Opacity value when reset. Internal use. this.messages=[] //Arrays to hold each message of ticker this.ajaxobj=createAjaxObj2C79E19F1E8F4CB1AB74273EBFE65782() document.write('
Initializing xml...
') //style="'+this.opacitystring+'" //alert(divId) if (this.xmlfile != '') this.getXMLfile() else this.initializeStr() } // ------------------------------------------------------------------- // getXMLfile()- Use Ajax to fetch xml file (txt) // ------------------------------------------------------------------- ajax_ticker.prototype.getXMLfile=function(){ if (this.ajaxobj){ var instanceOfTicker=this var url=this.xmlfile+"?bustcache="+new Date().getTime() this.ajaxobj.onreadystatechange=function(){instanceOfTicker.initialize()} this.ajaxobj.open('GET', url, true) this.ajaxobj.send(null) } } // ------------------------------------------------------------------- // initialize()- Initialize ticker method. // -Gets contents of xml file and parse it using JavaScript DOM methods // ------------------------------------------------------------------- ajax_ticker.prototype.initialize=function(){ if (this.ajaxobj.readyState == 4){ //if request of file completed if (this.ajaxobj.status==200 || window.location.href.indexOf("http")==-1){ //if request was successful this.contentdiv=document.getElementById(this.tickerid).firstChild //div of inner content that holds the messages var xmldata xmldata=this.ajaxobj.responseText this.contentdiv.style.display="none" this.contentdiv.innerHTML=xmldata if (this.contentdiv.getElementsByTagName("div").length==0){ //if no messages were found this.contentdiv.innerHTML="Error fetching remote xml!" return } var instanceOfTicker=this document.getElementById(this.tickerid).onmouseover=function(){instanceOfTicker.mouseoverBol=1} document.getElementById(this.tickerid).onmouseout=function(){instanceOfTicker.mouseoverBol=0} if (window.attachEvent) //Clean up loose references in IE window.attachEvent("onunload", function(){instanceOfTicker.contentdiv=instanceOfTicker.ajaxobj=null}) //Cycle through XML object and store each message inside array for (var i=0; i ' + (this.pointer + 1) + '/' + this.messages.length + ' ' this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT } else { //else, construct item, show and rotate it! this.fadetransition("reset") //FADE EFFECT- RESET OPACITY this.pointer=(this.pointer ' + (this.pointer + 1) + '/' + this.messages.length + ' ' this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay) //update container periodically } } // ------------------------------------------------------------------- // nextmsg()- display next message // ------------------------------------------------------------------- ajax_ticker.prototype.nextmsg=function(){ var instanceOfTicker=this this.pointer=(this.pointer ' + (this.pointer + 1) + '/' + this.messages.length + ' ' this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT } // ------------------------------------------------------------------- // prevmsg()- display previous message // ------------------------------------------------------------------- ajax_ticker.prototype.prevmsg=function(){ var instanceOfTicker=this this.pointer=(this.pointer==0)? this.messages.length - 1 : this.pointer-1 this.fadetransition("reset") //FADE EFFECT- RESET OPACITY this.contentdiv.innerHTML=this.messages[this.pointer] + '
 ' + (this.pointer + 1) + '/' + this.messages.length + ' 
' this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT } // ------------------------------------------------------------------- // fadetransition()- cross browser fade method for IE5.5+ and Mozilla/Firefox // ------------------------------------------------------------------- ajax_ticker.prototype.fadetransition=function(fadetype, timerid){ var contentdiv=this.contentdiv if (fadetype=="reset") this.opacitysetting=0.2 if (contentdiv.filters && contentdiv.filters[0]){ if (typeof contentdiv.filters[0].opacity=="number") //IE6+ contentdiv.filters[0].opacity=this.opacitysetting*100 else //IE 5.5 contentdiv.style.filter="alpha(opacity="+this.opacitysetting*100+")" } else if (typeof contentdiv.style.MozOpacity!="undefined" && this.opacitystring!=""){ contentdiv.style.MozOpacity=this.opacitysetting } else this.opacitysetting=1 if (fadetype=="up") this.opacitysetting+=0.1 if (fadetype=="up" && this.opacitysetting>=1) clearInterval(this[timerid]) } var ticker2C79E19F1E8F4CB1AB74273EBFE65782 = new ajax_ticker("", "outhtmclass2C79E19F1E8F4CB1AB74273EBFE65782", "htmclass", 3500, "fade",1,'
Where is Your Heart?Where is Your Heart?
The statistics are astounding. You might call them heart stopping. Cigarette smoking kills 2.4 million Americans every year and increases your risk of coronary heart disease all by itself. Don't make a half-hearted effort. Quit today. It's the biggest step you can make toward improving your health.
Take Care of Your HeartTake Care of Your Heart
Good Samaritan Hospital's Dayson Heart Center is offering free Heart Healthy Living Classes. Click here to learn more information on these classes.
State-of-the-Art TechnologyState-of-the-Art Technology
Intensity Modulation Radiation Therapy is the most advanced method of cancer treatment offered by science. Tumors are destroyed with tightly focused accuracy, leaving minimal impact on healthy tissue.
State-of-the-Art Surgery with a Home-Town TouchState-of-the-Art Surgery with a Home-Town Touch
That day made me realize how quickly things can change. It scared me. But, thanks to the great surgeons and well-trained surgery team at Good Samaritan Hospital, I'm back to normal. When my doctor told me I needed surgery, my choice was easy: Good Samaritan Hospital.
');