function fnGetPopUnder(iCoAcct, iCobraCompanyPk) {
fnSetCookie("RT_PopUnder", "1", 1, "/", "", "");
  switch (iCobraCompanyPk) {
    case '243': //HomeGainTest
    case '14':
    case '15':
    case '346':
    case '255':
    case '8':
    case '205':
    case '353':
    case '364':
    case '393':
    case '489':
    case '492':
    case '494':
      // OMIT THE ABOVE COMPANIES
      break;
    default:
      switch (iCoAcct) {
        case '65358': //Quigo 	Paid Inclusion - Search Foreclosures
        case '65359': //Quigo   Paid Inclusion - Free Trial
        case '65360': //Quigo   Paid Inclusion - Daily Alerts
          // OMIT THE ABOVE ACCOUNTS
          break;
        default:  
          if ((fnGetCookie("RT_PopUnder") == null) && (fnGetCookie("RT_PopUnder") != "1"))
          {        		
			
            //Set cookie and expire it in 1 day (3rd Parameter)		
            fnSetCookie("RT_PopUnder", "1", 1, "/", "", "")
       
		       /********************************************************************************************************
                  The following line has been split up to fix a norton internet security problem. 
                  The program was blocking this entire file because "a d s" and/or "a d d y n a m i x" (without spaces) where found using a string search. 
                  By splitting them up like this the program doesn't recognize this file and therfore the site works with the norton ad blocking software (lame, i know) 
            	********************************************************************************************************/

				var laAdSpot		= new Array();
				var lsLocation		= parent.document.location.toString().toLowerCase()
				var lsServerName	= document.location.host
				var lsProtocol		= document.location.protocol
				var lsDomainURL		= lsProtocol + "//" + lsServerName
				var lsArea			= "GENERAL"
				var liBannerType	= 3 //720x300 Banner

					laAdSpot[0] = "GENERAL~/pub/landing/opti_81.asp"				
					laAdSpot[1] = "SEARCH~/freesearch.asp"				
					laAdSpot[2] = "SEARCH~/freesearchResult.asp"				
					laAdSpot[3] = "SEARCH~/freePropDetails.asp"
					
							for (i=0; i<laAdSpot.length; i++)
							{
								var laAdParts	= laAdSpot[i].split("~");
								var re			= new RegExp(laAdParts[1], "i");

								if (lsLocation.search(re) > 0 )
								{
									lsArea	= laAdParts[0];
									break;
								}
							}

            				//win2=window.open(lsDomainURL + '/RTracweb/Banner.aspx?iBannerType=' + liBannerType + '&CobraCompanyPK=' + iCobraCompanyPk.toString() + '&AccountPK=' + iCoAcct.toString() + '&Area=' + lsArea, 'RealtyTrac', 'SCROLLBARS=NO, RESIZABLE=NO, WIDTH=750, HEIGHT=325, TOOLBAR=NO, MENUBAR=NO, TOP=250, LEFT=250');

                            win2=window.open(lsDomainURL + '/RTracWeb/DoubleClickBanner.aspx?widthXheight=WidthXHeight720x300&AdShowAdsText=0&AdTile=1&AdDoubleClickSite=rti.general', 'RealtyTrac', 'SCROLLBARS=NO, RESIZABLE=NO, WIDTH=750, HEIGHT=325, TOOLBAR=NO, MENUBAR=NO, TOP=250, LEFT=250');

							if (win2 != null) win2.blur(); //have to check that pop-up was not blocked
					 
					 
			} // end if

          break;
      } // end iCoAcct switch
  } // end iCobraCompanyPk switch

} // end function


