function slideshow() {
		// load arguments as objects and set defaults
		var a = { objName:"ss", fadeSpeed:10 };
		for (var n in arguments[0]) 
		{ a[n]=arguments[0][n]; }
		
		this.slideBaseId = 'slide';
		this.numberBaseId = 'slide_number';
		this.slideImageBaseId = 'slide_image';
		this.slideLinksBaseId = 'slidelinks_container';
		this.slides = [];
		this.slideLinks = [];
		this.last = 0;
		this.current = 1;
		this.fadeTimers = []; 
		this.hashNumber = 1;
		
		// loads all the slid images. This is run with addLoadEvent at the end
		this.loadSlides = function()
		{
			function loadMe(elem_id,array_num) {
				var elem = document.getElementById(elem_id);
				
				if (elem != null) {
					elem.src = slide_images[array_num];
				}
			}
			
			// load image after
			loadMe(this.slideImageBaseId + (parseInt(this.hashNumber)+1),this.hashNumber);
			// load image before
			loadMe(this.slideImageBaseId + (parseInt(this.hashNumber)-1),this.hashNumber-2);
			// load the rest
			for (i=1;i<=slide_images.length;i++) {
				loadMe(this.slideImageBaseId + (String(i)),i-1);
			}
		};
		
		// this is used to move to a slide without a fade if need be
		this.showSlide = function()
		{
			this.current = this.hashNumber;
			
			this.slides[this.current].style.visibility = 'visible';
			this.slideLinks[this.current].style.visibility = 'visible';
			
			// add in your slide numbers to the navigation areas
			document.getElementById(this.numberBaseId).innerHTML = this.current;
			document.getElementById(this.numberBaseId + '_right').innerHTML = this.current;
		};





		// registers a page view
		this.pageView = function()
		{
			var URLFull,URL,pageURL;
			// Register Pageview
			try {
			var pageNumber = this.current;
			
			// Removes hash for slides
			//location.hash = pageNumber;
			
			URLFull=String(document.location).split("?"); 
			pageURL=URLFull[0];

			if (this.current == 1) {
				URLFull=String(pageURL).split("#");
				pageURL = URLFull[0];
			}
			
			// Adds in fake page URL since we removed hash
			pageURL = pageURL + '#' + pageNumber;

			// Makes each page a pageview
			wmdPageview("rxlist.com/script/main/art-" + s_asset, this.current);

			}
			catch(e) {}
		};




		
		// refreshes the banner and right side ads
		this.refreshAllAds = function()
		{
			function refreshAd(strAd,transTileId) {
				
				var objAd = document.getElementById(strAd);
				var okToLoop = 0;

				if (objAd) {
		
					var theObjects = objAd.getElementsByTagName("*");

					/* Makes sure there is an approved iframe before running a possible infinte loop */
					for (i=0;i<=theObjects.length-1;i++)
						{
							if (theObjects[i].id.indexOf("Ad_Iframe") != -1) {
								okToLoop+=1;
							}
						}
					
					/* Runs two loops that remove all other objects other then the original webmd iframe */
					if (okToLoop == 1)
					{
						while(theObjects.length > 1) {
							for (i=0;i<=theObjects.length-1;i++)
							{
								if (theObjects[i].id.indexOf("Ad_Iframe") < 0) {
									objAd.removeChild(theObjects[i]);
								}
							}
						}
					}
		
					/* Grabs the src of either the iframe or script whichever on is in the div */
					iframe = objAd.getElementsByTagName('iframe')[0];
					adScript = objAd.getElementsByTagName('script')[0];
					
					if(!iframe) {
						var strHTML = adScript.src;
					}
					else {
						var strHTML = iframe.src;
					}
						
					/* Refreshes the other variables in the src */ 
					strHTML = strHTML.replace(new RegExp("transactionID=[0-9]+"), "transactionID=" + transTileId);
					strHTML = strHTML.replace(new RegExp("tile=[0-9]*"), "tile=" + transTileId);
			
					if(!iframe) {
						adScript.contentWindow.location.replace(strHTML);
					}
					else {
						iframe.contentWindow.location.replace(strHTML);
					}
				}
			}
			
			var transTileId = Math.round(99999999*Math.random());
			refreshAd('slideshow_ad_300x250',transTileId);
			refreshAd('bannerAd_fmt',transTileId);
			
		};
		
		// moves to the next slide using the fade
		this.fadeNext = function() 
		{
			// if this.current has moved past the number of slides, bring it back to the beginning, otherwise, pick next slide
			if (this.current >= this.slides.length-1) 
//			{this.current = 1;this.last = this.slides.length-1;}

//			{window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90075";}

{
switch(s_asset)
{

case "90067":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=100179";break;
case "100179":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90068";break;
case "90068":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90066";break;
case "90066":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90503";break;
case "90503":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95380";break;
case "95380":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=93530";break;
case "93530":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=91846";break;
case "91846":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=100204";break;
case "100204":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=97867";break;
case "97867":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90180";break;
case "90180":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=100866";break;
case "100866":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90504";break;
case "90504":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=93141";break;
case "93141":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90502";break;
case "90502":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=104730";break;
case "104730":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=103619";break;
case "103619":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=103696";break;
case "103696":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=103830";break;
case "103830":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95433";break;
case "95433":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=93222";break;
case "93222":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90750";break;
case "90750":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95714";break;
case "95714":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=103735";break;
case "103735":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90505";break;
case "90505":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=93526";break;
case "93526":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95037";break;
case "95037":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=99053";break;
case "99053":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90656";break;
case "90656":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=92883";break;
case "92883":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=97428";break;
case "97428":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=91412";break;
case "91412":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94434";break;
case "94434":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90070";break;
case "90070":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95239";break;
case "95239":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94168";break;
case "94168":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94226";break;
case "94226":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=99634";break;
case "99634":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94955";break;
case "94955":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=92797";break;
case "92797":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=101626";break;
case "101626":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90115";break;
case "90115":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=91112";break;
case "91112":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=92051";break;
case "92051":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=97986";break;
case "97986":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=99288";break;
case "99288":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95329";break;
case "95329":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90069";break;
case "90069":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94531";break;
case "94531":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90073";break;
case "90073":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=91439";break;
case "91439":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90498";break;
case "90498":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90184";break;
case "90184":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=93931";break;
case "93931":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90264";break;
case "90264":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=93219";break;
case "93219":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=93491";break;
case "93491":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90501";break;
case "90501":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90072";break;
case "90072":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90890";break;
case "90890":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=93053";break;
case "93053":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94469";break;
case "94469":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=101464";break;
case "101464":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94900";break;
case "94900":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=99486";break;
case "99486":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95242";break;
case "95242":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95526";break;
case "95526":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90499";break;
case "90499":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=99022";break;
case "99022":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95040";break;
case "95040":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94630";break;
case "94630":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=93850";break;
case "93850":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=93895";break;
case "93895":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94868";break;
case "94868":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=91806";break;
case "91806":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=92239";break;
case "92239":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=91376";break;
case "91376":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94358";break;
case "94358":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=97396";break;
case "97396":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95355";break;
case "95355":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94273";break;
case "94273":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95556";break;
case "95556":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94871";break;
case "94871":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94472";break;
case "94472":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90920";break;
case "90920":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=92576";break;
case "92576":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=91059";break;
case "91059":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=91471";break;
case "91471":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=91377";break;
case "91377":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=98274";break;
case "98274":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90500";break;
case "90500":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=100297";break;
case "100297":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=104905";break;
case "104905":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90171";break;
case "90171":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=91773";break;
case "91773":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=92145";break;
case "92145":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=103990";break;
case "103990":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=98991";break;
case "98991":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90071";break;
case "90071":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95005";break;
case "95005":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95153";break;
case "95153":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=91053";break;
case "91053":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95875";break;
case "95875":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=99483";break;
case "99483":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=99766";break;
case "99766":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94634";break;
case "94634":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95487";break;
case "95487":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=98703";break;
case "98703":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=100984";break;
case "100984":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94369";break;
case "94369":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=98286";break;
case "98286":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=97465";break;
case "97465":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=100433";break;
case "100433":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94463";break;
case "94463":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=95798";break;
case "95798":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94464";break;
case "94464":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=98668";break;
case "98668":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=99382";break;
case "99382":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=101260";break;
case "101260":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=104263";break;
case "104263":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=97283";break;
case "97283":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=99846";break;
case "99846":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94754";break;
case "94754":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=100740";break;
case "100740":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=105041";break;
case "105041":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=94495";break;
case "94495":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=103616";break;
case "103616":  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90067";break;














default:
  window.location="http://www.rxlist.com/script/main/art.asp?articlekey=90075";
}

}



			else 
			{this.last = this.current;this.current++;}
			
			// fade in current slide, fade out last one
			this.initFade(this.current,0,this.slides[this.current],true,100); 
			this.slideLinks[this.current].style.visibility = 'visible';
			
			this.initFade(this.last,100,this.slides[this.last],false,0); 
			this.slideLinks[this.last].style.visibility = 'hidden';
			
			
			// add in your slide numbers to the navigation areas
			document.getElementById(this.numberBaseId).innerHTML = this.current;
			document.getElementById(this.numberBaseId + '_right').innerHTML = this.current;
			
			// count page view and refresh ads
			this.pageView();
			this.refreshAllAds();
			
		}; 
		
		// backs up a slide using the fade
		this.fadePrev = function() 
		{

			// if you are on slide 1, go back to last slide, otherwise, pick previous slide
			if (this.current == 1) 
			{this.current = this.slides.length-1;;this.last = 1;}
			else 
			{this.last = this.current;this.current--;}
			
			// fade out current slide, fade in last one
			this.initFade(this.current,0,this.slides[this.current],true,100); 
			this.slideLinks[this.current].style.visibility = 'visible';
			
			this.initFade(this.last,100,this.slides[this.last],false,0); 
			this.slideLinks[this.last].style.visibility = 'hidden';
			
			// add in your slide numbers to the navigation areas
			document.getElementById(this.numberBaseId).innerHTML = this.current;
			document.getElementById(this.numberBaseId + '_right').innerHTML = this.current;
			
			// count page view and refresh ads
			this.pageView();
			this.refreshAllAds();
		}; 
			
		// this initiaties a fade from one image to another
		this.initFade = function(i,opacity,theObject,fadeIn,fadeLimit) 
		{
			// i = which timer you are using. I'm using the image numbers as its timer. This allows for multiple fades at once.
			// opacity = the opacity at which you start your fades. For example, you can start at 10 if you want. 
			// theObject = which object you are fading
			// fadeIn = true for a fade in, false for a fade out
			// fadeLimit = opacity at which you stop. For example, you could stop with the object at 90
			
			// clear timer in case another fade with same timer is going on
			clearInterval(this.fadeTimers[i]);
			// set object to chosen opacity before starting fade, and make sure its visible
			this.setOpacity(i,opacity,theObject);
			theObject.style.visibility = 'visible';

			// fade in, or fade out depending on arguments
			if (fadeIn) {
				setTheInterval = 'window.setInterval(function() { ' + a.objName + '.setOpacity(i,opacity,theObject,fadeIn,fadeLimit); opacity = opacity + 4;},a.fadeSpeed)';
				this.fadeTimers[i] = eval(setTheInterval);
			}
			else {
				setTheInterval = 'window.setInterval(function() { ' + a.objName + '.setOpacity(i,opacity,theObject,fadeIn,fadeLimit); opacity = opacity - 4; if (opacity == 0) theObject.style.visibility = "hidden"; },a.fadeSpeed)';
				this.fadeTimers[i] = eval(setTheInterval);}
		}; 
		
		// function that is run on an interval to do the actual fade work
		this.setOpacity = function(i,opacity,theObject,fadeIn,fadeLimit) {
			// if you have reached whatever limit, clear timer
			if (opacity == fadeLimit) {clearInterval(this.fadeTimers[i]);}
			
			// set the opactity to whatever out of 100 and perform cross browser opacity move
			var setOpacity = opacity/100;
			theObject.style.filter = "alpha(opacity:"+opacity+")";
			theObject.style.KHTMLOpacity = setOpacity;
			theObject.style.MozOpacity = setOpacity;
			theObject.style.opacity = setOpacity;
		}; 
		
		this.init = function() {
			var count = 1;
			var s;
			// setup slides and texts arrays
			while (s = document.getElementById(this.slideBaseId + count)) {
				this.slides[count] = s;
				count++;
			}
			count = 1;
			while (s = document.getElementById(this.slideLinksBaseId + count)) {
				this.slideLinks[count] = s;
				count++;
			}
			
			// preload the first image based on the URL from which you enter
			if (location.hash) {
				var imageNumber = URLFull=String(location.hash).split("#");
				this.hashNumber = imageNumber[1];
				
				// grab only the image slide number from hash
				var imageSlide = document.getElementById(this.slideImageBaseId + this.hashNumber);
				
				// make sure we are on an image and not the text slide
				if (imageSlide) {
					// go ahead and load the image now
					document.getElementById(this.slideImageBaseId + this.hashNumber).src = slide_images[this.hashNumber-1];
				}
			}
			else {
				// if no hash, we just load the first image and set the hashNumber to 1
				document.getElementById(this.slideImageBaseId + '1').src = slide_images[0];		
			}
			
			// shows whichever slide you are supposed to go to based on hash
			this.showSlide();
		}; 
		this.jumpToSlide = function() 
		{


			//set this.last and this.current to their respective values.
			
			// fade out current slide, fade in last one
			this.initFade(this.current,0,this.slides[this.current],true,100); 
			this.slideLinks[this.current].style.visibility = 'visible';
			
			this.initFade(this.last,100,this.slides[this.last],false,0); 
			this.slideLinks[this.last].style.visibility = 'hidden';
			
			// add in your slide numbers to the navigation areas
			document.getElementById(this.numberBaseId).innerHTML = this.current;
			document.getElementById(this.numberBaseId + '_right').innerHTML = this.current;
			
			// count page view and refresh ads
			this.pageView();
			this.refreshAllAds();
		}; 

}
/* Repeating Functions from WebMD scripts.js to create a standalone slideshow */
/* function to add an onload event */
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') 
  {
    window.onload = func;
  } else 
    {
       window.onload = function() 
    {
      oldonload();
      func();
    }
  }
}	
/* function to change a class */
function setClass(objectID,newClass) {
	var object = document.getElementById(objectID);
	if (object) {
		object.className = newClass;
	}
}