<!--
// Copyright 2006 David Thomas www.jewels.co.uk
// Only used with single item pages, not price lists.

//  The only differences in the nogold10.js and yesgold10.js files are the variation  settings relating to each type of metal, plus discount settings. See help. 

// var startdiscount settings are below 
// includeourprice "N" means all items excepting items using OUR PRICE in the shipping cost field.
var includeourprice = "Y"
var vatrate = 0  // the percentage of vat - input zero for no vat 
var vatcalc = .1489361  // the decimal that equates to calculating the vat percentage given in the variable vatrate, being .1489361 for 17.5% 

// spinwin is not used in price lists, spinwin = 0 for 0%, or spinwin = 110 for 5% disc, or 10 for 10% or 20 for 15% or 30 for 20% or 40 for 25% or 50 for 30 or 60 for 35% or 70 for 40% or 80 for 45% or 90 for 50%.

// The discount amount specified in the globaldiscount variable will be added to the startdiscount amount for all items allocated a discount, It will globally increase initial startdiscounts by that percentage.

// The discount amount specified in the startdiscount variable will be the startdiscount amount that shows initially for discount items..

var globaldiscount = 0;  // globally added to startdiscount
var extradiscount = 0;  // 10 equals 5%  extra item discount

// startdiscount settings
var zero = 0;
var five = 5;
var ten = 10;
var fifteen = 15;
var twenty = 20;
var twentyfive = 25;
var thirty = 30;
var thirtyfive = 35;
var forty = 40;
var fortyfive = 45;
var fifty = 50;


// Do not change settings below.

if (spinwin == 0) {
var startdiscount = (globaldiscount + zero);
}

if (spinwin < 90) {
spinwin = (spinwin + extradiscount);
}


// Items with 5% discount settings will be allocated the discount specified in the variable startdiscount.
if (spinwin == 110) {
var startdiscount = (globaldiscount + five);
var winner1 = "aaa"  // For top winner to win use aaa - cba if not wanted, bbb 2nd, or ccc 3rd  05%
var winner2 = "aaa"  // For 2nd winner to win use bbb - ecb if not wanted, bbb 2nd, or ccc 3rd  05%
var winner3 = "aaa"  // For 3rd winner to win use ccc - abc if not wanted, bbb 2nd, or ccc 3rd  05%
}

// Items with 10% discount settings will be allocated the discount specified in the variable startdiscount.
if (spinwin == 10) {
var startdiscount = (globaldiscount + ten);
var winner1 = "aaa"  // For top winner to win use aaa - cba if not wanted, bbb 2nd, or ccc 3rd  10%
var winner2 = "aaa"  // For 2nd winner to win use bbb - ecb if not wanted, bbb 2nd, or ccc 3rd  10%
var winner3 = "aaa"  // For 3rd winner to win use ccc - abc if not wanted, bbb 2nd, or ccc 3rd  05%
}

// Items with 15% discount settings will be allocated the discount specified in the variable startdiscount.
if (spinwin == 20) {
var startdiscount = (globaldiscount + fifteen);
var winner1 = "aaa"  // For top winner to win use aaa - cba if not wanted, bbb 2nd, or ccc 3rd  15% 
var winner2 = "bbb"  // For 2nd winner to win use bbb - ecb if not wanted, bbb 2nd, or ccc 3rd  10% 
var winner3 = "aaa"  // For 3rd winner to win use ccc - abc if not wanted, bbb 2nd, or ccc 3rd  05%
}

// Items with 20% discount settings will be allocated the discount specified in the variable startdiscount.
if (spinwin == 30) {
var startdiscount = (globaldiscount + twenty);
var winner1 = "aaa"  // For top winner to win use aaa - cba if not wanted, bbb 2nd, or ccc 3rd  20%
var winner2 = "bbb"  // For 2nd winner to win use bbb - ecb if not wanted, bbb 2nd, or ccc 3rd  15%
var winner3 = "aaa"  // For 3rd winner to win use ccc - abc if not wanted, bbb 2nd, or ccc 3rd  10%
}

// Items with 25% discount settings will be allocated the discount specified in the variable startdiscount.
if (spinwin == 40) {
var startdiscount = (globaldiscount + twentyfive);
var winner1 = "aaa"  // For top winner to win use aaa - cba if not wanted, bbb 2nd, or ccc 3rd  25% 
var winner2 = "bbb"  // For 2nd winner to win use bbb - ecb if not wanted, bbb 2nd, or ccc 3rd  15%
var winner3 = "aaa"  // For 3rd winner to win use ccc - abc if not wanted, bbb 2nd, or ccc 3rd  10%
}

// Items with 30% discount settings will be allocated the discount specified in the variable startdiscount.
if (spinwin == 50) {
var startdiscount = (globaldiscount + thirty);
var winner1 = "aaa"  // For top winner to win use aaa - cba if not wanted, bbb 2nd, or ccc 3rd  30%
var winner2 = "bbb"  // For 2nd winner to win use bbb - ecb if not wanted, bbb 2nd, or ccc 3rd  20%
var winner3 = "aaa"  // For 3rd winner to win use ccc - abc if not wanted, bbb 2nd, or ccc 3rd  10%
}

// Items with 35% discount settings will be allocated the discount specified in the variable startdiscount.
if (spinwin == 60) {
var startdiscount = (globaldiscount + thirtyfive);
var winner1 = "aaa"  // For top winner to win use aaa - cba if not wanted, bbb 2nd, or ccc 3rd  35%
var winner2 = "bbb"  // For 2nd winner to win use bbb - ecb if not wanted, bbb 2nd, or ccc 3rd  20%
var winner3 = "aaa"  // For 3rd winner to win use ccc - abc if not wanted, bbb 2nd, or ccc 3rd  15%
}

// Items with 40% discount settings will be allocated the discount specified in the variable startdiscount.
if (spinwin == 70) {
var startdiscount = (globaldiscount + forty);
var winner1 = "aaa"  // For top winner to win use aaa - cba if not wanted, bbb 2nd, or ccc 3rd  40%
var winner2 = "bbb"  // For 2nd winner to win use bbb - ecb if not wanted, bbb 2nd, or ccc 3rd  30%
var winner3 = "aaa"  // For 3rd winner to win use ccc - abc if not wanted, bbb 2nd, or ccc 3rd  20%
}

// Items with 45% discount settings will be allocated the discount specified in the variable startdiscount.
if (spinwin == 80) {
var startdiscount = (globaldiscount + fortyfive);
var winner1 = "aaa"  // For top winner to win use aaa - cba if not wanted, bbb 2nd, or ccc 3rd  45%
var winner2 = "bbb"  // For 2nd winner to win use bbb - ecb if not wanted, bbb 2nd, or ccc 3rd  30%
var winner3 = "aaa"  // For 3rd winner to win use ccc - abc if not wanted, bbb 2nd, or ccc 3rd  20%
}

// Items with 50% discount settings will be allocated the discount specified in the variable startdiscount.
if (spinwin == 90) {
var startdiscount = (globaldiscount + fifty);
var winner1 = "aaa"  // For top winner to win use aaa - cba if not wanted, bbb 2nd, or ccc 3rd  50%
var winner2 = "bbb"  // For 2nd winner to win use bbb - ecb if not wanted, bbb 2nd, or ccc 3rd  40%
var winner3 = "aaa"  // For 3rd winner to win use ccc - abc if not wanted, bbb 2nd, or ccc 3rd  30%
}


// **** Below this line relates to Metal Fluctuation & is used only for price lists ****

//  Important Note!! The varaiable metal=1 is set in nogold.js & yesgold.js files only. 
//  Important Note!! Metal Fluctuation control only applies to manufacturer price list items. 
//  Important Note!! Metal Fluctuation applies price control for all precious metals within each supplier 
//  in price lists you input "product description", "price", "metal type". 1=gold, 2=platinum, 3=silver  
//  You must use the files yesgold.js or nogold.js to set metal pricing functioning or non-functioning.
//  Supplier files such as 44fancy.js, 44plain.js, or 63.js overide default settings of the base precious
//  metal settings in nogold.js & yesgold.js, price lists do not use file types nogold00.js or yesgold10.js, or this file. 

//  Adjust base metal price settings for price lists here, note "nogold00" & "yesgold10" etc apply only 
//  to normal stock items & all settings below should be zero. To disable metal fluctuation for nogold.js 
//  for use with price lists set metal = 0, to re-enable in yesgold.js set metal = 1. 

var gold = 0
var platinum = 0
var silver = 0
var metal = 0


// All configurable variables are above this line. Below this line are default settings only.

// All viewable text is above this line..... nothing in nogold.js & yesgold.js

// Variables below must not be changed, they are defaults but some are changed automatically 
// in the manufacturer file, example 44fancy.js.

//  Not implimented in single items, but in the future you may use percentup & percentdown as a starting
//  point, but probably not worth doing. These settings are over written in price lists. 
var percentup=0
var percentdown=0

var curate=0
var onoff = 0
var profit = 1


// Spinwin Start
// Only used with single item pages, not price lists.

color1 = "";
var disc = 0;

if (spinwin > 0) {

function writeanotherTable() {
   document.write('<br><br><IMG NAME="lfwhl" SRC="/slotm/w1.gif"><IMG NAME="mdwhl" SRC="/slotm/w1.gif"><IMG NAME="rtwhl" SRC="/slotm/w1.gif">');
document.write('<TR><TD width="100%" ALIGN=CENTER><input style="width:170px; height:26px; padding-top:2px; padding-bottom:0px;  font-size:14px; font-weight:bold; font-family:Arial, sans-serif; text-align:center; background-color:#FFFFFF; color:#111111; border-width:3px; border-style:solid;  border-color:#F8F8F8 #808080 #808080 #F8F8F8; padding-top:2px; padding-bottom:0px" onchange=winning() name=buttontext></TD></TR><TR><TD width="100%" ALIGN=CENTER><input style="width:180px; height:26px; padding-top:2px; padding-bottom:0px; font-size:14px; font-weight:bold; font-family:Arial, sans-serif; text-align:center;  background-color:#111111; color:#FFFFFF; border-width:3px; border-style:solid; border-color:#F8F8F8 #808080 #808080 #F8F8F8; padding-top:2px; padding-bottom:0px" name="button1" type="BUTTON" value ="Discount Generator" onclick="hctr=1;spinIt();"><IMG NAME="spin" SRC="/slotm/1a.gif"></img></TD></TR><TR><TD width="100%" ALIGN=CENTER><IMG SRC="/slotm/p5.gif" NAME="prize"></TD></TR><TR><TD width="100%" ALIGN=CENTER><INPUT TYPE="button" VALUE="Refresh " onClick="history.go()"></TD></TR>');
  
}

writeanotherTable();   // writes Table

var count = 1;

ls=" abcdefg";
/* Load your images into an array during initial
   page loading. These are the mouseOver buttons. */


if (document.images) {
 isn1=new Array();
 for (i=1;i<7;i++){
  isn1[i]=new Image();
  isn1[i].src="/slotm/w"+i+".gif";
  }
 
 // And these are the handle pages.
 isn=new Array();
 for (i=1;i<5;i++){
  isn[i]=new Image();
  isn[i].src="/slotm/"+i+"a.gif";
 }

} 
  
 if (spinwin == 110) {
 
 var pri=new Array();
 for (i=1;i<6;i++){
  pri[i]=new Image();
  pri[i].src="/slotm/05/p"+i+".gif";
 }
 }
 
 
 if (spinwin == 10) {
 
 var pri=new Array();
 for (i=1;i<6;i++){
  pri[i]=new Image();
  pri[i].src="/slotm/10/p"+i+".gif";
 }
 }
 
 if (spinwin == 20) {

 var pri=new Array();
 for (i=1;i<6;i++){
  pri[i]=new Image();
  pri[i].src="/slotm/15/p"+i+".gif";
 }
 }
 
 if (spinwin == 30) {

 var pri=new Array();
 for (i=1;i<6;i++){
  pri[i]=new Image();
  pri[i].src="/slotm/20/p"+i+".gif";
 }
 }
 
 if (spinwin == 40) {

 var pri=new Array();
 for (i=1;i<6;i++){
  pri[i]=new Image();
  pri[i].src="/slotm/25/p"+i+".gif";
 }
 }
 
 if (spinwin == 50) {

 var pri=new Array();
 for (i=1;i<6;i++){
  pri[i]=new Image();
  pri[i].src="/slotm/30/p"+i+".gif";
 }
 }
  
 if (spinwin == 60) {

 var pri=new Array();
 for (i=1;i<6;i++){
  pri[i]=new Image();
  pri[i].src="/slotm/35/p"+i+".gif";
 }
 }
    
 if (spinwin == 70) {

 var pri=new Array();
 for (i=1;i<6;i++){
  pri[i]=new Image();
  pri[i].src="/slotm/40/p"+i+".gif";
 }
 }   

 if (spinwin == 80) {

 var pri=new Array();
 for (i=1;i<6;i++){
  pri[i]=new Image();
  pri[i].src="/slotm/45/p"+i+".gif";
 }
 }    
            
 if (spinwin == 90) {

 var pri=new Array();
 for (i=1;i<6;i++){
  pri[i]=new Image();
  pri[i].src="/slotm/50/p"+i+".gif";
 }
 }
 
 
 var win=new Array();
 win[0]=winner3; // 3rd winner
 win[1]="bcd";
 win[2]="cde";
 win[3]="dea";
 win[4]=winner1; // 1st winner
 win[5]="bbe";
 win[6]="ebe";
 win[7]="eac";
 win[8]=winner2; // 2nd winner
 win[9]="aeb";
 var hctr=0;
}


function handleIt(){
 if (hctr==4){hctr=5;}
 if (hctr<4){
  document.spin.src=isn[hctr].src;
  setTimeout("spinIt()",75);
 }
 else{
  document.spin.src=isn[(7-hctr)].src;
  setTimeout("spinIt()",75);
  }
}
-->

