		    //configuration
			URLall=document.URL;
                    var valueCheck = URLall.indexOf("qa=true");
		   	if(URLall.charAt(URLall.length-1)=="/"){
				URLall=URLall.substring(0,URLall.length-1);
			}
			var name="";
 
			var OAS_sitepage_temp ='travelchannel.com/';
                   
			if((valueCheck!=-1)){
                OAS_sitepage_temp ='qa-travelchannel.com/';
            }
                   
			var URLcheck=URLall.split("?");
			var URL=URLcheck[0].split("/");

			// Code added to directly support use of TCM custom advertising codes based on location hrefs, 2009/09/02.
			getTCMAdCode = function() {
				var loc = location.href.toLowerCase();
				TCMAdCode=(loc.indexOf('bizarregetaway.travelchannel.com')>-1)?'bizarre-world-sweeps':
						  (loc.indexOf('singapore-sweeps.travelchannel.com')>-1)?'singapore-sweeps':
						  '';
				return (typeof TCMAdCode=="undefined")?'':TCMAdCode;
			};

			TCMAdCode=getTCMAdCode();			
			
			if(TCMAdCode.length>0){			
				OAS_sitepage_temp = OAS_sitepage_temp+TCMAdCode;		
			}else if(URL.length==3){
				OAS_sitepage_temp = OAS_sitepage_temp+'index.html';
			}else{
				for (i=3;i<URL.length; i++){
					name=URL[i];
					tempArray=name.split(".");
                                  
					if(name.indexOf(".")>-1 && tempArray.length>1){
						name=tempArray[1];
					}
					OAS_sitepage_temp=OAS_sitepage_temp+name+'/';
					if(i==URL.length-1){
						OAS_sitepage_temp=OAS_sitepage_temp+name+'.html';
                                         
					}
				}
			}

 
		    OAS_url = 'http://oascentral.discovery.com/RealMedia/ads/';
                  OAS_sitepage = OAS_sitepage_temp.replace(/%26/g, "and");
                  OAS_sitepage = OAS_sitepage.replace(/&/g, "and");

           
		    //OAS_listpos = 'x21,TopLeft,x25';
		    //OAS_listpos = 'x21,TopLeft,x25';
		    OAS_query = '';
		    OAS_target = '_top';
		    //end of configuration
		    OAS_version = 10;
		    OAS_rn = '001234567890'; OAS_rns = '1234567890';
		    OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
		    function OAS_NORMAL(pos) {
		    document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=' + OAS_target + '>');
		    document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0></A>');
		    }

			
		    OAS_version = 11;
		    if ((navigator.userAgent.indexOf('Mozilla/3') != -1) || (navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1))
		    OAS_version = 10;
		    if (OAS_version >= 11)
		    document.write('<SCR' + 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' +
		    OAS_listpos + '?' + OAS_query + '"><\/SCRIPT>');//--> 

			
		    document.write('');
		    function OAS_AD(pos) {
		    if (OAS_version >= 11)
		    OAS_RICH(pos);
		    else
		    OAS_NORMAL(pos);
		    }