// ////////////////////////////////////
//
//  Make the necessary edits below.
//  Refer to the comments for help.
//
// ////////////////////////////////////




// ////////////////////////////////////
//
//   SETTINGS
//
// ////////////////////////////////////



//  -----------------
//  TITLE OF THE FORM
//  -----------------

var orderform_title = "Endless Visitors Order Form";


//  -------------------------
//  YOUR PAYPAL EMAIL ADDRESS
//  -------------------------

var pp_email = "sales@endlessvisitors.com";


//  --------------------------------------------------------------------------------
//  CURRENCY CODE 
//
//  AUD CAD EUR GBP JPY USD NZD CHF HKD SGD SEK DKK PLN NOK HUF CZK ILS MXN
//  NOTE: Currency symbol within the form will change based on the three letter code
//  --------------------------------------------------------------------------------

var ordering_cur = "USD";


//  ---------------------------------
//  URL TO YOUR ORDERING PAGE
//
//  Used as the PayPal cancel URL and
//  'Continue Shopping' URL
//  ---------------------------------

var order_pg_loc = "http://www.endlessvisitors.com/traffic/thankyou";


//  -------------------------------------------------
//  URL TO RETURN TO AFTER SUCCESSFUL PAYPAL CHECKOUT
//  -------------------------------------------------

var return_page = "http://www.endlessvisitors.com";


//  -------------------------------------------------
//  USE IPN
//
//  0 = No
//  1 = Yes
//  Refer to PayPal's documentation for instructions
//  on using IPN on your website
//  https://www.paypal.com/ipn
//  -------------------------------------------------

var allow_ipn = "0";


//  -------
//  IPN URL
//  -------

var ipn_path = "";



//  -----------------------------------------------------------------------------------
//  TRAFFIC PACKAGES
//
//  Min. is 1,000
//  Format is 'value|label and then separated by a ':'
//
//  Value is the actual package amount and the
//  label is what actually gets displayed
//
//  Example #1
//
//  "1000|1,000:10000|10,000:100000|100,000";
//
//  The above string would add three package amounts to the order form.
//  The first one would have a value of 1000 but display as '1,000'
//  The second one would have a value of 10000 but display as '10,000'
//  The third one would have a value of 100000 but display as '100,000'
//
//  Example #2
//
//  "1000|1,000:10000|10,000 -- Most Popular:100000|100,000 -- Best Value";
//
//  The above string would add three package amounts to the order form.
//  The first one would have a value of 1000 but display as '1,000'
//  The second one would have a value of 10000 but display as '10,000 -- Most Popular'
//  The third one would have a value of 100000 but display as '100,000 -- Best Value'
//  -----------------------------------------------------------------------------------

var visitor_amounts = "1000|1,000:2500|2,500:5000|5,000:7500|7,500:10000|10,000 - Save 5%:25000|25,000 - Save 10%:50000|50,000 - Save 15%";




// ////////////////////////////////////
//
//   PRICING
//
// ////////////////////////////////////



//  ----------------------------
//  SET STATIC OR VOLUME PRICING
//
//  0 = Static pricing
//  1 = Volume pricing
//  ----------------------------

var pricemode = 1;


//  -----------------------------------------------------------------
//  VOLUME PRICING THRESHOLDS FOR TRAFFIC
//
//  * Not used if pricemode variable above is set to 0 *
//
//  Min. is 1000
//  Format is value|percentage discount and then separated by a ':'
//
//  Value is the point at which the discount kicks in and
//  percentage discount is the discount amount in decimal form
//
//  Example
//
//  "25000|0.05:50000|0.10:100000|0.15";
//
//  The above string sets three discount thresholds
//
//  Packages of 25,000 but less than 50,000 would receive a discount
//  of 5% off of the CPM rate
//
//  Packages of 50,000 but less than 100,000 would receive a discount
//  of 10% off of the CPM rate
//
//  Packages of 100,000 or more would receive a discount
//  of 15% off of the CPM rate
//
//  Packages of less than 25,000 would receive no discount
//  ------------------------------------------------------------------

var vis_price_thresholds = "10000|0.05:25000|0.10:50000|0.15";



//  -----------------------------------------------------------
//  TRAFFIC RATES
//
//  Rates are in CPM and are the base prices meaning that these
//  rates will apply when either in static pricing mode or when
//  in volume pricing mode and no pricing discount is in effect.
//  -----------------------------------------------------------

var en_cpm = 4.15;        // English
var eu_cpm = 3.98;        // EU
var au_cpm = 3.91;        // AU
var na_cpm = 4.97;        // NA
var ca_cpm = 4.88;        // CA
var us_cpm = 5.05;        // US
var uk_cpm = 5.05;        // UK
var untar_cpm = 2.79;     // WW
var bulk_cpm = 1.70;      // Bulk



//  ------------------------------------------------------
//  CHARGE EXTRA FOR A CATEGORY
//
//  0 = Markup based on a percentage (set % below)
//  1 = Markup based on a static amount (set amount below)
//  ------------------------------------------------------

var useCatStaticPricing = 0;


//  ------------------------------------------------------------------------------
//  EXTRA CPM/PERCENTAGE FOR A CATEGORY 
//
//  This is a decimal that will operate in conjunction with the 
//  option you selected above
//
//  Example
//
//  0.10
//
//  If you set useCatStaticPricing above to 0 (%), then 0.10 would actually 
//  add 10% to the CPM when a category is selected
//
//  If you set useCatStaticPricing to 1 (static amount), then 0.10 would actually 
//  add /home/traffictaxi.net/cgi-bin/resellers/oswizardexecute.cgi.10/cpm (or in the currency you're using EUR, GBP, etc..) to the total 
//  when a category is selected
//
//  If you don't want to charge extra for a category, then set
//  catPrice to 0.00 
//
//  Setting catPrice to 0.00 overrides the useCatStaticPricing variable and its
//  value of 0 or 1 doesn't matter.
//  ------------------------------------------------------------------------------

var catPrice = 0.4;


//  ------------------------------------------------------
//  CHARGE EXTRA FOR THE 'HAS POP' OPTION
//
//  0 = Markup based on a percentage (set % below)
//  1 = Markup based on a static amount (set amount below)
//  ------------------------------------------------------

var usePopsStaticPricing = 0;


//  -----------------------------------------------------------------------------------
//  EXTRA CPM/PERCENTAGE FOR 'HAS POP' OPTION
//
//  This is a decimal that will operate in conjunction with the 
//  option you selected above
//
//  Example #1
//
//  If you set usePopsStaticPricing above to 0 (%), then setting popsPrice 
//  to 0.20 would actually add 20% to the CPM when the 'has pop' option is selected
//
//  Example #2
//
//  If you set usePopsStaticPricing to 1 (static amount), then setting 
//  popsPrice to 0.50 would actually add $0.50/cpm (or in the currency you're using EUR, 
//  GBP, etc..) to the total when the 'has pop' option is selected.
//
//  If you don't want to charge extra for the 'has pop' option, then set
//  popsPrice to 0.00 
//
//  Setting popsPrice to 0.00 overrides the usePopsStaticPricing variable and its
//  value of 0 or 1 doesn't matter.
//  -----------------------------------------------------------------------------------

var popsPrice = 0.4;


//  ------------------------------------------------------
//  CHARGE EXTRA FOR THE 'HAS SOUND' OPTION
//
//  0 = Markup based on a percentage (set % below)
//  1 = Markup based on a static amount (set amount below)
//  ------------------------------------------------------

var useSoundStaticPricing = 0;


//  ------------------------------------------------------------------------------------
//  EXTRA CPM/PERCENTAGE FOR 'HAS SOUND' OPTION
//
//  This is a decimal that will operate in conjunction with the 
//  option you selected above
//
//  Example #1
//
//  If you set useSoundStaticPricing above to 0 (%), then setting soundPrice 
//  to 0.20 would actually add 20% to the CPM when the 'has sound' option is selected
//
//  Example #2
//
//  If you set useSoundStaticPricing to 1 (static amount), then setting 
//  soundPrice to 0.50 would actually add $0.50/cpm (or in the currency you're using EUR, 
//  GBP, etc..) to the total when the 'has sound' option is selected.
//
//  If you don't want to charge extra for the 'has sound' option, then set
//  soundPrice to 0.00 
//
//  Setting soundPrice to 0.00 overrides the useSoundStaticPricing variable and its
//  value of 0 or 1 doesn't matter.
//  ------------------------------------------------------------------------------------

var soundPrice = 0.35;





