var imgpath = '/lib/hippychixshop/';
var numOfImages = 37;
links = new Array(numOfImages);
links[0] = "italshir.html";
links[1] = "itbarshir1.html";
links[2] = "itbarshir.html"
links[3] = "shirts.html";
links[4] = "wilworbeijsh.html";
links[5] = "wilworbenshi.html";
links[6] = "itcarshir.html";
links[7] = "hawcombeacpa.html";
links[8] = "skinmintween.html"
links[9] = "crazbelslidb.html";
links[10] = "wilworelshir.html";
links[11] = "skinminfemsh.html";
links[12] = "itflowshir.html";
links[13] = "frogboxpaj.html"
links[14] = "plussizfrogb.html";
links[15] = "skinmincalsh.html";
links[16] = "wilworsilshi.html";
links[17] = "skinmintween2.html";
links[18] = "skinminjarsh.html";
links[19] = "rolhoodjac.html"
links[20] = "itlucshir.html";
links[21] = "marmonnewhob.html";
links[22] = "marmonmagpri.html";
links[23] = "skinmintween1.html";
links[24] = "itnirshir.html";
links[25] = "itpaisshir1.html"
links[26] = "wilworpapshi.html";
links[27] = "skinminelshi.html";
links[28] = "skinminridsh.html";
links[29] = "spoilshir.html";
links[30] = "rolhoodjac.html"
links[31] = "thewhoodjac.html";
links[32] = "ufogirhipcap.html";
links[33] = "yuklasartpri.html"
links[34] = "vinshir.html";
links[35] = "wilworyelshi.html";
links[36] = "lovammorshir.html";
images = new Array(numOfImages);
images[0] = "fpalohaenjoy.jpg";
images[1] = "fpbarbarella.jpg";
images[2] = "fpbarbie.jpg";
images[3] = "fpbaya.jpg";
images[4] = "fpbeijing.jpg";
images[5] = "fpbengal.jpg";
images[6] = "fpcarnaby.jpg";
images[7] = "fpcomfies.jpg";
images[8] = "fpcorbeille.jpg";
images[9] = "fpebeltz.jpg";
images[10] = "fpelefantino.jpg";
images[11] = "fpfemmes.jpg";
images[12] = "fpflowerchild.jpg";
images[13] = "fpfrogpjs.jpg";
images[14] = "fpfrogpjsplus.jpg";
images[15] = "fpgold.jpg";
images[16] = "fpgorilla.jpg";
images[17] = "fpgypsy.jpg";
images[18] = "fpjardin.jpg";
images[19] = "fplondon.jpg";
images[20] = "fplucky.jpg";
images[21] = "fpmmpursebw.jpg";
images[22] = "fpmmpursemag.jpg";
images[23] = "fpmotocyclette.jpg";
images[24] = "fpnirvana.jpg";
images[25] = "fppaisley.jpg";
images[26] = "fppapillon.jpg";
images[27] = "fprancho.jpg";
images[28] = "fpriders.jpg";
images[29] = "fpspoiled.jpg";
images[30] = "fpstones.jpg";
images[31] = "fpthewho.jpg";
images[32] = "fpufocapris.jpg";
images[33] = "fpvegas.jpg";
images[34] = "fpvinyl.jpg";
images[35] = "fpyellowstone.jpg";
images[36] = "fpzenaqua.jpg";
function setRandomImg(beenthere) {
	var i = beenthere ? 
	self.name.charAt(self.name.length-1) : Math.floor(Math.random() * numOfImages);
	document.write('<td align="center" valign="middle"><a href="' + links[i] + '">');
	document.write('<img border="0" width="162" height="234" ');
	document.write('src="' + imgpath + images[i] + '"></td>');
	window.name = 'Random' + i;
}

//***********************************************************************************************
// Fader Script
//***********************************************************************************************
//  texts:
//  Your messages may contain regular html tags but 
//  must at least contain: [ <font color='{COLOR}'> ]
//  Use single quotes [ ' ] in your html only. If you need 
//  a double quote in the message itself use an escape 
//  sign like this: [ \" ]  (not including the brackets)

var texts = new Array(
"<font class='fade' color='{COLOR}'>\"Very fast and friendly service. Will be doing business again soon, I'm sure!\"&nbsp;&nbsp;W.J. of SC</font>",
"<font class='fade' color='{COLOR}'>\"What a pleasure! Wonderful service. Thank you so much. I will recommend to friends!\"&nbsp;&nbsp;L.J. of NY</font>",
"<font class='fade' color='{COLOR}'>\"Always the best experience! Super-friendly! Great service! I adore the H-chix!\"&nbsp;&nbsp;C.H. of CO</font>",
"<font class='fade' color='{COLOR}'>\"Great shopping experience and great items.\"&nbsp;&nbsp;A.B. of TX</font>",
"<font class='fade' color='{COLOR}'>\"I would definitely order from this company again! I highly recommend them with no reservations!\"&nbsp;&nbsp;K.G. of HI</font>",
"<font class='fade' color='{COLOR}'>\"Super-friendly & thoughful people, and it's such a great experience shopping with the HIPPY-CHIX!\"&nbsp;&nbsp;C.H. of CO</font>",
"<font class='fade' color='{COLOR}'>\"What wonderful customer service! My item was shipped the same day I ordered it. I was very impressed!\"&nbsp;&nbsp;C.D. of CA</font>",
"<font class='fade' color='{COLOR}'>\"This store has great customer service and I received my order in great time.\"&nbsp;&nbsp;W.W. of TN</font>",
"<font class='fade' color='{COLOR}'>\"Unique offerings, good prices and swift delivery. Great source of gifts for my daughters.\"&nbsp;&nbsp;E.K. of MD</font>",
"<font class='fade' color='{COLOR}'>\"lot of info about what you are going to buy. My purchase came right away... will recommend this site to others.\"&nbsp;&nbsp;M.F. of PA</font>",
"<font class='fade' color='{COLOR}'>\"They shipped really quick...great service. I will shop here again soon. Thanks!\"&nbsp;&nbsp;A.W. of CA</font>",
"<font class='fade' color='{COLOR}'>\"They offer great customer service and in my grandaughters words the clothes are awsome.\"&nbsp;&nbsp;L.G. of IA</font>",
"<font class='fade' color='{COLOR}'>\"Exceeded all my expectations and really wonderful rapport with their customers...\"&nbsp;&nbsp;S.H. of ND</font>",
"<font class='fade' color='{COLOR}'>\"They are so wonderful, so helpful...and I look forward to purchasing from them again.\"&nbsp;&nbsp;C.S. of NY</font>",
"<font class='fade' color='{COLOR}'>\"Prompt service. Great product! Would definitely buy from there again.\"&nbsp;&nbsp;C.Z. of WI</font>",
"<font class='fade' color='{COLOR}'>\"I received my order within 3 days of placing it...I was very pleased with their service.\"&nbsp;&nbsp;A.E. of SC</font>",
"<font class='fade' color='{COLOR}'>\"This store's customer service is awesome. I wish every shopping experience online was this great.\"&nbsp;&nbsp;W.W. of TN</font>",
"<font class='fade' color='{COLOR}'>\"Very friendly, personal service... way beyond the call of duty!\"&nbsp;&nbsp;E.K. of VA</font>",
"<font class='fade' color='{COLOR}'>\"The service was FANTASTIC! I would definitely shop there again.\"&nbsp;&nbsp;T.A. of CA</font>",
"<font class='fade' color='{COLOR}'>\"What an awesome company and an awesome product. I'm very happy with your service! \"&nbsp;&nbsp;M.D. of VA</font>",
"<font class='fade' color='{COLOR}'>\"I hope this business is around for a LONG time! Keep up the great work. Thank you!\"&nbsp;&nbsp;M.W. of IL</font>",
"<font class='fade' color='{COLOR}'>\"Great customer service! Super fast shipment! Nice products!\"&nbsp;&nbsp;J.K. of OR</font>",
"<font class='fade' color='{COLOR}'>\"Very personable, easy shopping experience. Super-fast shipping.\"&nbsp;&nbsp;H.C. of NY</font>",
"<font class='fade' color='{COLOR}'>\"I definitely experienced exceptional service from this company.\"&nbsp;&nbsp;K.H. of Canada</font>",
"<font class='fade' color='{COLOR}'>\"Great store...fast shipping...and the people that work there [are] really nice.\"&nbsp;&nbsp;C.T. of NY</font>",
"<font class='fade' color='{COLOR}'>\"Excellent service fast shipping...will definitely buy from again thanks!\"&nbsp;&nbsp;I.S. of CA</font>",
"<font class='fade' color='{COLOR}'>\"Hippy Chix was the only store that replied to my queries in person...a delight to deal with!\"&nbsp;&nbsp;J.W. of the U.K.</font>",
"<font class='fade' color='{COLOR}'>\"Great to do business with them, received merchandise fast, great company and staff.\"&nbsp;&nbsp;K.C. of NY</font>",
"<font class='fade' color='{COLOR}'>\"You can expect great customer service that you just don't get with the bigger online stores.\"&nbsp;&nbsp;H.C. of NY</font>",
"<font class='fade' color='{COLOR}'>\"Very personal and professional. Order was shipped immediately and the product was perfect!\"&nbsp;&nbsp;J.R. of HI</font>",
"<font class='fade' color='{COLOR}'>\"...your customer service is head and shoulders above anyone else selling gear online.\"&nbsp;&nbsp;D.M. of MA</font>",
"<font class='fade' color='{COLOR}'>\"I got my belt hella fast!...it was here two days after I ordered--hippychix rocks out!\"&nbsp;&nbsp;M.T. of MA</font>",
"<font class='fade' color='{COLOR}'>\"Wonderful merchant!! Awesome customer service!! I will definitely shop at Hippy Chix again!\"&nbsp;&nbsp;S.S. of FL</font>",
"<font class='fade' color='{COLOR}'>\"Very quick shipment, very helpful...quality goods, great to work with - recommend highly.\"&nbsp;&nbsp;S.D. of NJ</font>",
"<font class='fade' color='{COLOR}'>\"This was a very good experience. Thanks to the friendly service, I will be back!\"&nbsp;&nbsp;S.S. of AZ</font>",
"<font class='fade' color='{COLOR}'>\"No doubt I will purchase from this site again. Please tell them to not change a thing.\"&nbsp;&nbsp;J.C. of MD</font>",
"<font class='fade' color='{COLOR}'>\"Once again, their service is OVER-satisfactory. Prompt, accurate, and friendly service.\"&nbsp;&nbsp;M.W. of IL</font>",
"<font class='fade' color='{COLOR}'>\"I definitely recommend Hippy Chix to any potential online consumer! Thanks again!\"&nbsp;&nbsp;M.W. of IL</font>",
"<font class='fade' color='{COLOR}'>\"Great shop and very polite! I would recommend everyone to shop there.\"&nbsp;&nbsp;B.W. of WV</font>",
"<font class='fade' color='{COLOR}'>\"They responded promptly to my emails and...they were very friendly. I'll order from Hippy Chix again.\"&nbsp;&nbsp;H.B. of NH</font>",
"<font class='fade' color='{COLOR}'>\"They went above and beyond in customer service - I am very pleased and will shop there again!\"&nbsp;&nbsp;R.F. of CA</font>",
"<font class='fade' color='{COLOR}'>\"I have never felt so valued as a customer before.\"&nbsp;&nbsp;K.O. of WY</font>");

var bgcolor = "#D6D6FF"; // background color, must be valid browser hex color (not color names)
var fcolor = "#003366";  // foreground or font color
var steps = 22; // number of steps to fade
var show = 4150; // milliseconds to display message
var sleep = 1300; // milliseconds to pause inbetween messages
var loop = true; // true = continue to display messages, false = stop at last message

// Do Not Edit Below This Line
var colors = new Array(steps);
getFadeColors(bgcolor,fcolor,colors);
var color = 0;
// var text = 0;
var text = Math.floor(Math.random() * texts.length);
var step = 1;

// fade: magic fader function
function fade() {

// insert fader color into message
var text_out = texts[text].replace("{COLOR}", colors[color]); // texts should be defined in user script, e.g.: var texts = new Array("<font color='{COLOR}' sized='+3' face='Arial'>howdy</font>");

// actually write message to document
if (document.all) fader.innerHTML = text_out; // document.all = IE only
if (document.layers) { document.fader.document.write(text_out); document.fader.document.close(); } // document.layers = Netscape only

// select next fader color
color += step; 

// completely faded in?
if (color >= colors.length-1) {
step = -1; // traverse colors array backward to fade out

// stop at last message if loop=false
if (!loop && text >= texts.length-1) return; // loop should be defined in user script, e.g.: var loop=true;
}

// completely faded out?
if (color == 0) {
step = 1; // traverse colors array forward to fade in again

// select next message
// text += 1;
// if (text == texts.length) text = 0; // loop back to first message
text = Math.floor(Math.random() * texts.length);
}

// subtle timing logic...
setTimeout("fade()", (color == colors.length-2 && step == -1) ? show : ((color == 1 && step == 1) ? sleep : 50)); // sleep and show should be defined in user script, e.g.: var sleep=30; var show=500;
}
// getFadeColors: fills Colors (predefined Array)
// with color hex strings fading from ColorA to ColorB

// note: Colors.length equals the number of steps to fade
function getFadeColors(ColorA, ColorB, Colors) {
len = Colors.length; 

// strip '#' signs if present 
if (ColorA.charAt(0)=='#') ColorA = ColorA.substring(1);
if (ColorB.charAt(0)=='#') ColorB = ColorB.substring(1);

// substract rgb compents from hex string 
var r = HexToInt(ColorA.substring(0,2));
var g = HexToInt(ColorA.substring(2,4));
var b = HexToInt(ColorA.substring(4,6));
var r2 = HexToInt(ColorB.substring(0,2));
var g2 = HexToInt(ColorB.substring(2,4));
var b2 = HexToInt(ColorB.substring(4,6));

// calculate size of step for each color component
var rStep = Math.round((r2 - r) / len);
var gStep = Math.round((g2 - g) / len);
var bStep = Math.round((b2 - b) / len);

// fill Colors array with fader colors
for (i = 0; i < len-1; i++) {
Colors[i] = "#" + IntToHex(r) + IntToHex(g) + IntToHex(b);
r += rStep;
g += gStep;
b += bStep;
}
Colors[len-1] = ColorB; // make sure we finish exactly at ColorB
}

// IntToHex: converts integers between 0-255 into a two digit hex string.
function IntToHex(n) {
var result = n.toString(16);
if (result.length==1) result = "0"+result;
return result;
}

// HexToInt: converts two digit hex strings into integer.
function HexToInt(hex) {
return parseInt(hex, 16);
}
