function slideshow() {
		// load arguments as objects and set defaults
		var a = { objName:"ss", fadeSpeed:5 };
		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("emedicinehealth.com/script/main/art-" + s_asset, this.current);
//			wbdPageview("medicinenet.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('AD_Top',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.emedicinehealth.com/script/main/art.asp?articlekey=89845";}

{
switch(s_asset)
{


case "89704":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=100178";break;
case "100178":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=89814";break;
case "89814":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=109303";break;
case "109303":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=89811";break;
case "89811":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90497";break;
case "90497":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95379";break;
case "95379":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=93529";break;
case "93529":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=91845";break;
case "91845":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=100203";break;
case "100203":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=97866";break;
case "97866":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90179";break;
case "90179":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=100865";break;
case "100865":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90496";break;
case "90496":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=93140";break;
case "93140":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90510";break;
case "90510":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=104729";break;
case "104729":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=103618";break;
case "103618":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=103692";break;
case "103692":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=103829";break;
case "103829":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95432";break;
case "95432":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=93221";break;
case "93221":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90743";break;
case "90743":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95710";break;
case "95710":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=103734";break;
case "103734":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90506";break;
case "90506":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=93525";break;
case "93525":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95036";break;
case "95036":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=99052";break;
case "99052":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=105701";break;
case "105701":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90654";break;
case "90654":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=92882";break;
case "92882":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=97427";break;
case "97427":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=105996";break;
case "105996":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=91411";break;
case "91411":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94428";break;
case "94428":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=89705";break;
case "89705":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95238";break;
case "95238":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94167";break;
case "94167":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94223";break;
case "94223":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=99633";break;
case "99633":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=105581";break;
case "105581":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=105759";break;
case "105759":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94954";break;
case "94954":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=92796";break;
case "92796":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=101620";break;
case "101620":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90112";break;
case "90112":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=91111";break;
case "91111":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=92050";break;
case "92050":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=97985";break;
case "97985":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=99287";break;
case "99287":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95328";break;
case "95328":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=89815";break;
case "89815":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94530";break;
case "94530":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=89999";break;
case "89999":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=91438";break;
case "91438":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90487";break;
case "90487":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90182";break;
case "90182":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=93929";break;
case "93929":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90263";break;
case "90263":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=93218";break;
case "93218":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=93489";break;
case "93489":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90509";break;
case "90509":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=89817";break;
case "89817":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90897";break;
case "90897":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=93052";break;
case "93052":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94468";break;
case "94468":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=101463";break;
case "101463":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94897";break;
case "94897":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=99485";break;
case "99485":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=109806";break;
case "109806":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95241";break;
case "95241":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95525";break;
case "95525":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90507";break;
case "90507":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=99021";break;
case "99021":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95039";break;
case "95039":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94629";break;
case "94629":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=93848";break;
case "93848":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=93892";break;
case "93892":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94867";break;
case "94867":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=91805";break;
case "91805":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=92238";break;
case "92238":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=91375";break;
case "91375":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94357";break;
case "94357":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=109213";break;
case "109213":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=97395";break;
case "97395":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=109515";break;
case "109515":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95352";break;
case "95352":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94272";break;
case "94272":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95555";break;
case "95555":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94870";break;
case "94870":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94471";break;
case "94471":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90919";break;
case "90919":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=92559";break;
case "92559":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=91058";break;
case "91058":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=91470";break;
case "91470":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=91378";break;
case "91378":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=98273";break;
case "98273":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90508";break;
case "90508":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=100298";break;
case "100298":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=104902";break;
case "104902":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=90170";break;
case "90170":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=91772";break;
case "91772":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=92142";break;
case "92142":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=103989";break;
case "103989":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=106490";break;
case "106490":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=106452";break;
case "106452":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=106492";break;
case "106492":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=98990";break;
case "98990":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=89816";break;
case "89816":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=107605";break;
case "107605":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95004";break;
case "95004":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95152";break;
case "95152":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=91052";break;
case "91052":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95874";break;
case "95874":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=99478";break;
case "99478":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=99754";break;
case "99754":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=107006";break;
case "107006":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94633";break;
case "94633":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95486";break;
case "95486":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=98702";break;
case "98702":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=100983";break;
case "100983":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94368";break;
case "94368":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=98285";break;
case "98285":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=97464";break;
case "97464":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=100429";break;
case "100429":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94438";break;
case "94438":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=95797";break;
case "95797":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94462";break;
case "94462":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=98667";break;
case "98667":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=108065";break;
case "108065":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=99381";break;
case "99381":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=107153";break;
case "107153":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=101259";break;
case "101259":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=104261";break;
case "104261":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=97282";break;
case "97282":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=99841";break;
case "99841":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94753";break;
case "94753":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=100702";break;
case "100702":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=105039";break;
case "105039":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=94494";break;
case "94494":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=103615";break;
case "103615":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=105284";break;
case "105284":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=105249";break;
case "105249":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=109357";break;
case "109357":  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=89704";break;















default:
  window.location="http://www.emedicinehealth.com/script/main/art.asp?articlekey=89845";
}

}



			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;
	}
}