// Conversion Name:Available PCPs
// INSTRUCTIONS
// The Conversion Tags should be placed at the top of the <BODY> section of the HTML 
// page. 
// In case you want to ensure that the full page loads as a prerequisite for a conversion
// being recorded, place the tag at the bottom of the page. Note, however, that this may
// skew the data in the case of slow-loading pages and in general not recommended.
//
// NOTE: It is possible to test if the tags are working correctly before campaign launch 
// as follows:  Browse to http://bs.serving-sys.com/BurstingPipe/testmode.asp, which is 
// a page that lets you set your local machine to "testing" mode.  In this mode, when
// visiting a page that includes an conversion tag, a new window will open, showing you
// the data sent by the conversion tag to the Eyeblaster servers.
//
// END of instructions (These instruction lines can be deleted from the actual HTML).

function placeConersionTags() {
    if (location.href.indexOf("PhysiciansAvailableWithin2WeeksorLess.aspx") != -1 || location.href.indexOf("SeeAPhysicianin48HoursorLess.aspx") != -1) {
        var ebRand = Math.random() + ' ';
        ebRand = ebRand * 1000000;

        //var conversionTags = document.createElement("script");
        //conversionTags.src = "HTTP://bs.serving-sys.com/BurstingPipe/ActivityServer.bs?cn=as&ActivityID=27900&rnd=" + ebRand;
        //document.getElementsByTagName("body")[0].appendChild(conversionTags);
        
        document.write('<scr' + 'ipt src="HTTP://bs.serving-sys.com/BurstingPipe/ActivityServer.bs?cn=as&amp;ActivityID=27900&amp;rnd=' + ebRand + '"></scr' + 'ipt>');
    }
}

function test() {
	alert("called a test function in ConversionTags.js.");
}
