///////////////////////////////////////////////////////////
/// Magic Image Rotation                                                                ///
///        v 1.0.1                                                                                                ///
/// Copyright 2007, Loyce Bradley Petrey                                ///
///        All Rights Reserved.                                                                ///
/// http://www.EchoChrist.com/MagicImage                                ///
/// webmaster@EchoChrist.com                                                        ///
///                                                                                                                ///
///        This script is free to use as long as this notice         ///
/// remains unchanged and intact.                                                 ///
///                                                                                                                ///
/// This program is free software: you can redistribute ///
///        it and/or modify it under the terms of the GNU                 ///
///        General Public License as published by the Free         ///
///        Software Foundation.                                                                 ///
///                                                                                                                ///
/// This program is distributed in the hope that it         ///
/// will be useful, but WITHOUT ANY WARRANTY; without         ///
///        even the implied warranty of MERCHANTABILITY or         ///
///        FITNESS FOR A PARTICULAR PURPOSE.                                          ///
///                                                                                                         ///
/// Be Imitators of God as dear children and walk                ///
/// in love as Christ also loved us.                                        ///
///        Ephesians 5:1-2                                                                                ///
///////////////////////////////////////////////////////////

var ImageLoad = 
[
['http://www.cutenkinky.com/cute-lingerie/cat_4.html','skins/Kita2012/styleImages/cute1_470.jpg','Checkout Our Huge Selection Of Cute and Sexy Lingerie'  ],//  ['URL to linked page', 'URL to image', 'Caption under picture']        //
['http://www.cutenkinky.com/kinky-leather/cat_5.html','skins/Kita2012/styleImages/kleather1_470.jpg','We have got great kinky leather lingerie at the lowest prices'],//  The caption is not required and may be left blank like this:                //
['http://www.cutenkinky.com/cute-plus-size-lingerie/cat_46.html','skins/Kita2012/styleImages/cuteplus1_470.jpg','We Have a Great Selction of sexy plus size lingerie'],//  The caption is not required and may be left blank like this:                //
['http://www.cutenkinky.com/kinky-vinyl/cat_53.html','skins/Kita2012/styleImages/kvinyl1_470.jpg','Kinky Vinyl Lingerie is so sexy. Get yours for less at Cute N Kinky Lingerie'],//  ['URL to linked page', 'URL to image', '']                                                        //
//['http://www.cutenkinky.com/cute-lingerie/cat_4.html','skins/Kita2012/styleImages/cute2_470.jpg','Teddies, Babydolls, Bras, Bridal, Honeymoon'  ],//  ['URL to linked page', 'URL to image', 'Caption under picture']        //
['http://www.cutenkinky.com/cute-lingerie/cat_4.html','skins/Kita2012/styleImages/cute3_470.jpg','Satin and lace, corsets to nightgowns, Cute N Kinky Lingerie is the place for sexy lingerie'  ],//  ['URL to linked page', 'URL to image', 'Caption under picture']        //
['http://www.cutenkinky.com/kinky-leather-plus/cat_5999.html','skins/Kita2012/styleImages/kplus1_470.jpg','Kinky Plus Size Lingerie is so sexy. We can get you looking and feeling sexy for a lot less money.']//  The caption is not required and may be left blank like this:                //
/*['http://www.cutenkinky.com/bodystockings/cat_4444.html',         'skins/Kita2012/styleImages/cover350_bdystk.jpg',''], //  The caption is not required and may be left blank like this:                //
['http://www.cutenkinky.com/kinky-leather/cat_5.html',         'skins/Kita2012/styleImages/cover350_kinkyleather.jpg',''],//  The caption is not required and may be left blank like this:                //
['http://www.cutenkinky.com/costumes/cat_48.html',         'skins/Kita2012/styleImages/cover350_costume.jpg',''], //  Add as many images as you like seperated by commmas                                        //
['http://www.cutenkinky.com/holiday-lingerie/cat_6159.html',         'skins/Kita2012/styleImages/cover350_holiday.jpg',''],//  Almost ALL errors are caused by the url or path being wrong                 //
['http://www.cutenkinky.com/cute-lingerie/corsets-bustiers/cat_41.html',         'skins/Kita2012/styleImages/coverstockings.jpg','']//  The LAST image declaration does NOT have a comma after it */                       //
];

var ImageCount                = 6;                        //  *****  Change this to the total number of images loaded above  *****                 //
var ImageDelay                = 6000;                        //  *****  Set this to the delay interval desired.  5000 = 5 seconds.                        //
var LinkTarget                = "_self"                //  *****  Defines where you want linked page to open. _self, _blank, _top, etc        //
var ImageIndex                = 0;                        //  DO NOT ALTER        //
var FirstLoad                 = 0;                        //  DO NOT ALTER        //
var QuickStartID         = 0;                          //  DO NOT ALTER        //
var htmlString                 = ""                        //  DO NOT ALTER         //

//  This function rotates the banner  //
function ImageChange()

{                

htmlString = '<center>';
htmlString = htmlString + '<font face = "Verdana" size="2">';                //  Font and Font Size for caption may be changed here        //
htmlString = htmlString +'<a target="';
htmlString = htmlString + LinkTarget;
htmlString = htmlString + '" href="';
htmlString = htmlString + ImageLoad[ImageIndex][0];
htmlString = htmlString + '"><img border="0" src="';                                //  Image border size may be changed here                                //        
htmlString = htmlString + ImageLoad[ImageIndex][1];
htmlString = htmlString + '" alt="';
htmlString = htmlString + ImageLoad[ImageIndex][2];
htmlString = htmlString + '"></a></font>';
htmlString = htmlString + '</center>';                

document.getElementById('MagicImage').innerHTML = htmlString;                                 

if(ImageIndex == ImageCount - 1)                //  This statement increments image displayed and resets if displaying last image  //
{                                                                                
ImageIndex= 0;                                                                                                                                                                
}                                                                                                                                                                                                
else                                                                                                                                                                                        
{                                                                                                                                                                                                
ImageIndex++;                                                                                                                                                                        
}                                                                                                                                                                                                                

if(FirstLoad == 0)                                                //  Determins if this is the first time function has run.   // 
{
SlowFinish();
}

}
//  End Funtion  //

//  This function ensures first banner is displayted without a delay  //
function  QuickStart()
{
QuickStartID=setInterval("ImageChange()", 1000);
}
//  End Funtion  //                                                                                                                                                

//  This function sets display rate to user defined speed  //
function SlowFinish()
{
clearInterval(QuickStartID);
FirstLoad = 1;
setInterval("ImageChange()", ImageDelay);         
}
//  End Funtion  //

QuickStart()

