function slideshow() {
		// load arguments as objects and set defaults
		var a = { objName:"ss", fadeSpeed:20 };
		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("medicinenet.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('bannerAd_fmt',transTileId);
                        refreshAd('leftAd_rdr',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.medicinenet.com/slideshows/article.htm";}

{
switch(s_asset)
{


case "89039":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=100177";break;
case "100177":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=88450";break;
case "88450":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=109293";break;
case "109293":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=89487";break;
case "89487":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90371";break;
case "90371":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95365";break;
case "95365":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=93527";break;
case "93527":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=91844";break;
case "91844":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=100200";break;
case "100200":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=97865";break;
case "97865":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90176";break;
case "90176":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=100667";break;
case "100667":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90394";break;
case "90394":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=93092";break;
case "93092":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90382";break;
case "90382":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=104727";break;
case "104727":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=103617";break;
case "103617":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=103685";break;
case "103685":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=103827";break;
case "103827":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95431";break;
case "95431":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=93220";break;
case "93220":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90740";break;
case "90740":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95658";break;
case "95658":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=103707";break;
case "103707":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90380";break;
case "90380":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=93518";break;
case "93518":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95035";break;
case "95035":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=99051";break;
case "99051":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=105621";break;
case "105621":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90622";break;
case "90622":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=92881";break;
case "92881":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=97426";break;
case "97426":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=105969";break;
case "105969":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=91410";break;
case "91410":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94377";break;
case "94377":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=89561";break;
case "89561":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95222";break;
case "95222":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94099";break;
case "94099":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94198";break;
case "94198":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=99631";break;
case "99631":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=105536";break;
case "105536":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=105756";break;
case "105756":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94953";break;
case "94953":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=92792";break;
case "92792":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=101617";break;
case "101617":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90062";break;
case "90062":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=91104";break;
case "91104":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=92049";break;
case "92049":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=97927";break;
case "97927":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=99284";break;
case "99284":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95320";break;
case "95320":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=88590";break;
case "88590":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94529";break;
case "94529":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=89919";break;
case "89919":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=91431";break;
case "91431":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90430";break;
case "90430":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90178";break;
case "90178":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=93849";break;
case "93849":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90213";break;
case "90213":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=93217";break;
case "93217":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=93462";break;
case "93462":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90384";break;
case "90384":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=89665";break;
case "89665":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90844";break;
case "90844":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=93030";break;
case "93030":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94465";break;
case "94465":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=101459";break;
case "101459":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94864";break;
case "94864":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=99484";break;
case "99484":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=109673";break;
case "109673":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95240";break;
case "95240":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95524";break;
case "95524":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90381";break;
case "90381":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=99020";break;
case "99020":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95038";break;
case "95038":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94627";break;
case "94627":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=93845";break;
case "93845":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=93846";break;
case "93846":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94802";break;
case "94802":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=91803";break;
case "91803":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=92236";break;
case "92236":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=91368";break;
case "91368":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94348";break;
case "94348":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=109175";break;
case "109175":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=97394";break;
case "97394":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=109500";break;
case "109500":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95330";break;
case "95330":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94265";break;
case "94265":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95554";break;
case "95554":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94846";break;
case "94846":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94470";break;
case "94470":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90900";break;
case "90900":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=92557";break;
case "92557":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=91057";break;
case "91057":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=91469";break;
case "91469":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=91379";break;
case "91379":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=98264";break;
case "98264":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90383";break;
case "90383":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=100271";break;
case "100271":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=104888";break;
case "104888":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=90164";break;
case "90164":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=91771";break;
case "91771":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=92141";break;
case "92141":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=103987";break;
case "103987":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=106488";break;
case "106488":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=106444";break;
case "106444":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=106489";break;
case "106489":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=98989";break;
case "98989":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=89655";break;
case "89655":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=107575";break;
case "107575":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95003";break;
case "95003":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95151";break;
case "95151":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=91050";break;
case "91050":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95831";break;
case "95831":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=99473";break;
case "99473":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=99727";break;
case "99727":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=106987";break;
case "106987":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94632";break;
case "94632":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95478";break;
case "95478":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=98695";break;
case "98695":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=100980";break;
case "100980":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94367";break;
case "94367":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=98275";break;
case "98275":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=97461";break;
case "97461":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=100390";break;
case "100390":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94437";break;
case "94437":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=95796";break;
case "95796":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94461";break;
case "94461":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=98640";break;
case "98640":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=108050";break;
case "108050":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=99380";break;
case "99380":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=106541";break;
case "106541":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=101250";break;
case "101250":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=104260";break;
case "104260":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=97281";break;
case "97281":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=99812";break;
case "99812":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94693";break;
case "94693":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=100658";break;
case "100658":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=105027";break;
case "105027":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=94492";break;
case "94492":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=101679";break;
case "101679":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=105279";break;
case "105279":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=105244";break;
case "105244":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=109351";break;
case "109351":  window.location="http://www.medicinenet.com/script/main/art.asp?articlekey=89039";break;











default:
  window.location="http://www.medicinenet.com/slideshows/article.htm";
}

}

			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;
	}
}