if ( WNAdManager != 'undefinded' ) {

    /* Example ad call 
        > http://ad.doubleclick.net/adXYZ/shz.kwch/[ad.wncc:schurzzone];pos=[ad.width]x[ad.height][ad.wnsz:schurzpos];dcopt=[ad.sequence:schurzdcopt];tile=[ad.sequence];sz=[ad.width]x[ad.height];ord=[page.rand]?
    Ad Serving Platform:                
        > http://ad.doubleclick.net/adXYZ/shz.kwch
    DFP Zone.  Providing worldnow content classification.  The custom function "schurzzone" will parse the worldnow
    content classirfication (ad.wncc) and return the correct Schurz zone.
        > /[ad.wncc:schurzzone]
        ::: PENDING DECISION /[ad.apptype:schurzapp][ad.wncc:schurzzone]
    Ad position.  Providing worldnow ad size id.  The custom function "schurzpos" will parse the worldnow ad size id
    (ad.wnsz) ad return the correct Schurz position.
        > ;pos=[ad.width]x[ad.height][ad.wnsz:schurzpos]
    DCOPT value.  Providing worldnow ad sequence value.  The custom function "schurzdcopt" will parse the worldnow ad 
    sequence value (ad.sequence) and return "ist" if the sequence is 1.
        > ;dcopt=[ad.sequence:schurzdcopt]
    Tile value.  Providing worldnow ad sequence value.
        > ;tile=[ad.sequence]
    Size value. Providing worldnow ad width and height values.
        > ;sz=[ad.width]x[ad.height]
    Ordinal value.  Providing worldnow random value followed by a hardcoded question mark.
        > ;ord=[page.rand]?
    */

    WNAdManager.setCustomParseFuncObj({
    
        'schurzzone' : function(input) {
            switch(input) {
				case 'Food Recipe' : return 'food'; break;
				case 'Ski Conditions' : return 'textme12'; break;
				case 'Community - Events' : return 'community'; break;
				case 'Community' : return 'volunteersource'; break;
				case 'Community' : return 'careersource'; break;
				case 'Community' : return 'marketplace'; break;
				case 'Consumer' : return 'consumerreports'; break;
				case 'Consumer' : return 'doesitwork'; break;
				case 'E-Commerce' : return 'livingonless'; break;
				case 'Health' : return 'health'; break;
				case 'Homepage' : return 'home'; break;
				case 'News' : return 'news'; break;
				case 'News' : return 'hardnews'; break;
				case 'News Special Coverage' : return 'webexlusives'; break;
				case 'News Special Coverage' : return 'greensburg'; break;
				case 'Political' : return 'campaign'; break;
				case 'Sale - Home and Garden' : return 'gardensource'; break;
				case 'Sale - Worldnow 4' : return 'solutionsforlife'; break;
				case 'Sales - Healthy Living' : return 'healthsource'; break;
				case 'Sales - Legal' : return 'legalsource'; break;
				case 'Sales - Holiday' : return 'holiday'; break;
				case 'Sports' : return 'sports'; break;
				case 'Station 10' : return 'kbsb'; break;
				case 'Station 11' : return 'kbsh'; break;
				case 'Station 12' : return 'kbsl'; break;
				case 'Weather' : return 'weather'; break;
				case 'Weather' : return 'schoolclosings'; break;
                default : return 'news'; break;
            }
        },

        'schurzapp' : function(input) {
        
            switch(input) {
                case '.video' : // worldnow app type name used
                    return 'video'; // schurz app type name used
                    break;
                case '.email' : 
                    return 'email';
                    break;
                case '.mobile' :
                    return 'mobile';
                    break;
                default : // worldnow uses a blank app type for platform (front-end) ad calls
                    return '';
                    break;     
            }
        
        },
        
        'schurznamedzone' : function(input) {
        
            if ( search.location.indexOf('video.asp') > 0 ) {
                switch(input) { // schurz zone previous determined through 'schurzzone'
                    case 'news' : 
                        return 'videonews';
                        break;
                }
            } else if ( search.location.indexOf('email.asp') > 0 ) {
                switch(input) { // schurz zone previous determined through 'schurzzone'
                    case 'news' :
                        return 'emailnews';
                        break;
                }
            } else {
                return input;
            }
        
        },
        
        'schurzpos' : function(input) {
            /*
            
            These are all of our duplicate ad units.
            
            WidthxHeight - Worldnow Ad Unit Name        Worldnow Ad ID
            120 x 240 - Vertical Banner - A             23	                Site	1
            120 x 240 - Vertical Banner - B             18	                Site	2		
            120 x 60 - Button - A                       26	                Site	1
            120 x 60 - Button - B                       27	                Site	2
            120 x 60 - Button - C                       28	                Site	3			
            180 x 150 - Rectangle                       20	                Site	1
            180 x 150 - Rectangle - B                   35	                Site	2		
            300 x 250 - Medium Rectangle - A            43	                Site	1
            300 x 250 - Medium Rectangle - B            52	                Site	2		
            400 x 300 - Video Buffering                 33	                Video	1
            400 x 300 - Video Intro                     30	                Video	2
            400 x 300 - Video Exit                      31	                Video	3
            */
            switch(parseInt(input)) {
                case 28 : // 120 x 60 - Button - C
                case 31 : // 400 x 300 - Video Exit
                    return '_3';
                    break;
                case 18 : // 120 x 240 - Vertical Banner - B
                case 27 : // 120 x 60 - Button - B
                case 35 : // 180 x 150 - Rectangle - B
                case 52 : // 300 x 250 - Medium Rectangle - B
                case 30 : // 400 x 300 - Video Intro
                    return '_2';
                    break;
                default :
                    return '_1';
                    break;
            }
            return input;

         },
         
         'schurzdcopt' : function(input) {
            if ( input == 1 ) {
                return 'ist';
            } else {
                return '';
            }
         }
    
    });

}
