var currentGirl = 0;






rolloverImage0 = new Image();
rolloverImage0.src = "/city/img/slingback/carrie_icon_extras.gif";
function hover0()
{
if (document.getElementById) {
    document.getElementById('thumb0').src = '/city/img/slingback/carrie_icon_extras_sel.gif';
    }
}

function unhover0()
{
if (document.getElementById) {
    document.getElementById('thumb0').src = '/city/img/slingback/carrie_icon_extras.gif';
    }
}

function switch0() {
if (document.getElementById) {
    document.getElementById('img0').innerHTML = '<img id="thumb0" src="/city/img/slingback/carrie_icon_extras_sel.gif" alt="When in Doubt, Accessorize" width="80" height="78" border="0">';
    }
}

function unSwitch0() {
if (document.getElementById) {
      document.getElementById('img0').innerHTML = '<img src="/city/img/slingback/carrie_icon_extras.gif" alt="When in Doubt, Accessorize" width="80" height="78" border="0" class="cursor" id="thumb0" onMouseOver="hover0();" onMouseOut="unhover0();" onClick="setSlide(0);switch0();unSwitch1();unSwitch2();">';
     }
}




rolloverImage1 = new Image();
rolloverImage1.src = "/city/img/slingback/carrie_icon_outrageous.gif";
function hover1()
{
if (document.getElementById) {
    document.getElementById('thumb1').src = '/city/img/slingback/carrie_icon_outrageous_sel.gif';
    }
}

function unhover1()
{
if (document.getElementById) {
    document.getElementById('thumb1').src = '/city/img/slingback/carrie_icon_outrageous.gif';
    }
}

function switch1() {
if (document.getElementById) {
    document.getElementById('img1').innerHTML = '<img id="thumb1" src="/city/img/slingback/carrie_icon_outrageous_sel.gif" alt="Most Outrageous Outfits " width="74" height="78" border="0">';
    }
}

function unSwitch1() {
if (document.getElementById) {
      document.getElementById('img1').innerHTML = '<img src="/city/img/slingback/carrie_icon_outrageous.gif" alt="Most Outrageous Outfits " width="74" height="78" border="0" class="cursor" id="thumb1" onMouseOver="hover1();" onMouseOut="unhover1();" onClick="setSlide(1);switch1();unSwitch0();unSwitch2();">';
     }
}




rolloverImage2 = new Image();
rolloverImage2.src = "/city/img/slingback/carrie_icon_vice.gif";
function hover2()
{
if (document.getElementById) {
    document.getElementById('thumb2').src = '/city/img/slingback/carrie_icon_vice_sel.gif';
    }
}

function unhover2()
{
if (document.getElementById) {
    document.getElementById('thumb2').src = '/city/img/slingback/carrie_icon_vice.gif';
    }
}

function switch2() {
if (document.getElementById) {
    document.getElementById('img2').innerHTML = '<img id="thumb2" src="/city/img/slingback/carrie_icon_vice_sel.gif" alt="Vice Squad" width="70" height="78" border="0">';
    }
}

function unSwitch2() {
if (document.getElementById) {
      document.getElementById('img2').innerHTML = '<img src="/city/img/slingback/carrie_icon_vice.gif" alt="Vice Squad" width="70" height="78" border="0" class="cursor" id="thumb2" onMouseOver="hover2();" onMouseOut="unhover2();" onClick="setSlide(2);switch2();unSwitch0();unSwitch1();">';
     }
}




//Set the duration of slideshow (in seconds)
var SlideShowSpeed = 3000;


var title = new Array()


title[0] = 'When in Doubt, Accessorize'

title[1] = 'Most Outrageous Outfits '

title[2] = 'Vice Squad'

//set number of slideshows
var number_of_slideshows=3;


var imageLocation = new Array(number_of_slideshows)
var slideNumber = new Array(number_of_slideshows)
var captions = new Array(number_of_slideshows)


imageLocation[0]= new Array


imageLocation[0][0] = '/city/img/slingback/slideshows/carrie_extras/1.jpg'
imageLocation[0][1] = '/city/img/slingback/slideshows/carrie_extras/2.jpg'
imageLocation[0][2] = '/city/img/slingback/slideshows/carrie_extras/3.jpg'
imageLocation[0][3] = '/city/img/slingback/slideshows/carrie_extras/4.jpg'
imageLocation[0][4] = '/city/img/slingback/slideshows/carrie_extras/5.jpg'
imageLocation[0][5] = '/city/img/slingback/slideshows/carrie_extras/6.jpg'
imageLocation[0][6] = '/city/img/slingback/slideshows/carrie_extras/7.jpg'
imageLocation[0][7] = '/city/img/slingback/slideshows/carrie_extras/8.jpg'
imageLocation[0][8] = '/city/img/slingback/slideshows/carrie_extras/9.jpg'
imageLocation[0][9] = '/city/img/slingback/slideshows/carrie_extras/10.jpg'


slideNumber[0]= new Array

slideNumber[0][0] = '1/10'

slideNumber[0][1] = '2/10'

slideNumber[0][2] = '3/10'

slideNumber[0][3] = '4/10'

slideNumber[0][4] = '5/10'

slideNumber[0][5] = '6/10'

slideNumber[0][6] = '7/10'

slideNumber[0][7] = '8/10'

slideNumber[0][8] = '9/10'

slideNumber[0][9] = '10/10'


captions[0]= new Array
captions[0][0] = 'For a spring visit to Aidan&#39;s store, Carrie adorns her knit tank with one of her signature flower pins.  Also on hand is Christian Dior&#39;s saddle bag in a yellow scarf-print design and a sweet fur jacket by Marni.'
captions[0][1] = 'Carrie celebrates her 35th in a midriff-baring top and skirt by Prada with a light blue topper by French designer Jean Charles de Castelbajac. The Fendi bag of the moment is a patent logo frame bag.'
captions[0][2] = 'Brown IT-bagging it. The Miguel Androver dress with striped ties and newsboy cap are all very schoolboy but we doubt it&#39;s textbooks Carrie&#39;s lugging in the enormous Kieselstein-Cord alligator tote.'
captions[0][3] = 'Sometimes SPF 45 just isn&#39;t enough. Carrie keeps her cool in a white vintage sundress and UV ray-blocking Battenburg lace parasol. Look close: Barely-there nude mules by Manolo Blahnik add invisible height.'
captions[0][4] = 'Skip the corsage. Carrie dresses up this reconstructed prom dress mini by Imitation of Christ with white stiletto pumps by Manolo Blahnik, and a headwrap fashioned from a Hermes silk pochette with an &quot;H&quot; scarf ring.'
captions[0][5] = 'Pearls of wisdom.  Carrie drapes herself in pearls-by-the-yard. But the Christina Caruso hand-painted floral choker and her Harry Winston engagement ring still provide the bling.'
captions[0][6] = 'The most-sought-after accessory for a Narcisco Rodrquez dress? A baby of course&#0151;when it&#39;s worn to a Baptism, that is.  And the chiffon camellia head ornament by Chanel Couture isn&#39;t bad either.'
captions[0][7] = 'Sometimes all you need is a few carats. This diamond and emerald &quot;Wendy&quot; necklace by Sol Rafael is 18 carat gold with ten carats of diamonds. A perfect complement to the Sonia Rykiel dress and Comme des Garcons jacket.  '
captions[0][8] = 'Tres Francais. Carrie touches down in Paris sporting this sailor-inspired top by Sonia Rykiel&#0151;complete with flower&#0151; under a shimmering coat by Benaz Sarafpour, a Judith Leiber cream clutch, and a Chanel cap.'
captions[0][9] = 'Even published writer&#39;s get the blues. Carrie contemplates her book in a robin&#39;s egg blue vintage belted coat and a furry white cap by Chanel. Her clutch is by Louisa Beccaria.'

imageLocation[1]= new Array


imageLocation[1][0] = '/city/img/slingback/slideshows/carrie_outrageous/1.jpg'
imageLocation[1][1] = '/city/img/slingback/slideshows/carrie_outrageous/2.jpg'
imageLocation[1][2] = '/city/img/slingback/slideshows/carrie_outrageous/3.jpg'
imageLocation[1][3] = '/city/img/slingback/slideshows/carrie_outrageous/4.jpg'
imageLocation[1][4] = '/city/img/slingback/slideshows/carrie_outrageous/5.jpg'
imageLocation[1][5] = '/city/img/slingback/slideshows/carrie_outrageous/6.jpg'
imageLocation[1][6] = '/city/img/slingback/slideshows/carrie_outrageous/7.jpg'
imageLocation[1][7] = '/city/img/slingback/slideshows/carrie_outrageous/8.jpg'


slideNumber[1]= new Array

slideNumber[1][0] = '1/8'

slideNumber[1][1] = '2/8'

slideNumber[1][2] = '3/8'

slideNumber[1][3] = '4/8'

slideNumber[1][4] = '5/8'

slideNumber[1][5] = '6/8'

slideNumber[1][6] = '7/8'

slideNumber[1][7] = '8/8'


captions[1]= new Array
captions[1][0] = 'Carrie pairs naughty and nice to the hottest new fetish-themed restaurant: a strappy leather halter with a navel-baring pleated ballerina skirt. Around her neck: A lock and chain to which only Big has the key.'
captions[1][1] = 'Giddyup! Carrie discovers her inner urban cowgirl at a Hamptons hoedown, baring her midriff in a tiny strapless bandeau top and wrapping the rest in a blanket striped skirt by DKNY.'
captions[1][2] = 'Love, Peace and Hippiness:  Carrie makes kerchiefs and peasant tops chic in this chiffon blouse by Chanel and tie-dyed capris by Just in Time.'
captions[1][3] = 'It was a short &quot;trip&quot; down the runway for Carrie, but for a few moments she oozed confidence in a black satin bra, rhinestoned panty and blue satin evening coat by Italian design duo Dolce and Gabbana.'
captions[1][4] = 'She&#39;s no chicken when it comes to daring looks. Carrie tops this Vivienne Westwood &quot;feather bum&quot; skirt with a Chloe chiffon top with attached shoulder scarf. The vintage belt is from Marmalade.'
captions[1][5] = 'Who needs pants to hold up a buckle?  Carrie&#39;s midriff is secure in this floating &quot;polka square&quot; belt.  The fern print skirt is Givenchy, paired with a Hanes athletic tank and XOXO&#39;s supercropped Oxford.'
captions[1][6] = 'City Slicker. It&#39;s just another morning of errands for Carrie as she throws a Prada linen duster over a one-piece by French designer Pierrot, slips into some bejeweled Fendi logo mules and tops it off with a newsboy cap.'
captions[1][7] = 'Open and say &quot;Ah.&quot;  Carrie dresses the part for her house call to nurse a post-op Mr. Big in an official candy striper jumper and matching hat over a white body suit by Eres.'

imageLocation[2]= new Array


imageLocation[2][0] = '/city/img/slingback/slideshows/carrie_vices/1.jpg'
imageLocation[2][1] = '/city/img/slingback/slideshows/carrie_vices/2.jpg'
imageLocation[2][2] = '/city/img/slingback/slideshows/carrie_vices/3.jpg'
imageLocation[2][3] = '/city/img/slingback/slideshows/carrie_vices/4.jpg'
imageLocation[2][4] = '/city/img/slingback/slideshows/carrie_vices/5.jpg'
imageLocation[2][5] = '/city/img/slingback/slideshows/carrie_vices/6.jpg'
imageLocation[2][6] = '/city/img/slingback/slideshows/carrie_vices/7.jpg'
imageLocation[2][7] = '/city/img/slingback/slideshows/carrie_vices/8.jpg'


slideNumber[2]= new Array

slideNumber[2][0] = '1/8'

slideNumber[2][1] = '2/8'

slideNumber[2][2] = '3/8'

slideNumber[2][3] = '4/8'

slideNumber[2][4] = '5/8'

slideNumber[2][5] = '6/8'

slideNumber[2][6] = '7/8'

slideNumber[2][7] = '8/8'


captions[2]= new Array
captions[2][0] = 'Men and martinis&#0151;a dangerous but intoxicating combination. '
captions[2][1] = 'She gets no penalties for icing, but she may get time on the bench for smoking on the sidelines in this belted vintage sweater tunic and short fur jacket by Marni.'
captions[2][2] = 'Pick your vice: cigarettes or pleather?'
captions[2][3] = 'Sometimes you&#39;ve just got to relax with a cold one before you hit the runway.'
captions[2][4] = 'We don&#39;t blame her for playing dirty when she dresses up some worn Lee overalls and green rubber wellies from J. Crew with a striped Claudi Pierlot tank.'
captions[2][5] = 'It&#39;s a shoe thing.  She could pull herself up by her bootstraps and kick the habit, but what fun would that be? '
captions[2][6] = 'Vegan, shmegan. Sometimes you just need a slice. '
captions[2][7] = 'Man o Manolo. Here&#39;s one addiction she doesn&#39;t want to break. Carrie shows off a silk plaid buckle mule&#0151;which will be featured in her Hollywood steppin&#39; out in Season Three&#39;s &#39;Sex and Another City.&#39;'






var currentImg;
var total;

//var mainImg = ;
var thisImg = 0;
//var imgCt = imageLocation[mainImg].length - 1;
//alert(imgCt);
var baseCt = 0;

var tss;
var start = 1;








//variable is set to 1 initially so that slideshow starts when page is loaded
//vairable is set to 0 if PREVIOUS or NEXT is clicked which stops the slideshow
function StartorStop(x) {
start = x;
}

//this function is run first so that there is a delay on the first image
//otherwise the slideshow jumps to the second image immediately
//timer is faster for this than the loop
function runSlideShowParent(){
tss = setTimeout('runSlideShow()', 3000);
}

//this is the automatic slideshow
function runSlideShow(){

	if ( start == 1 ){

		//counter is at beginning so that if user interrupts the slideshow with the PREVIOUS NEXT
		//then the slideshow won't jump ahead two images instead of just one
var imgCt = imageLocation[mainImg].length - 1;
var slide = slideNumber[mainImg][thisImg];
var content = captions[mainImg][thisImg];


		if (thisImg >= imgCt){
		thisImg=0;
		slide = slideNumber[mainImg][thisImg];
		content = captions[mainImg][thisImg];
		} else {
		thisImg = thisImg + 1;
		slide = slideNumber[mainImg][thisImg];
		content = captions[mainImg][thisImg];
		}

	
		document.slider.src = imageLocation[mainImg][thisImg];		
		document.getElementById('slideDiv').innerHTML = slideNumber[mainImg][thisImg];
		document.getElementById('captionDiv').innerHTML = captions[mainImg][thisImg];
	
		
	
		
tss = setTimeout('runSlideShow()', SlideShowSpeed);
	}
}


//this function selects the slideshow
function setSlide(which){
mainImg=which;
thisImg=0;
document.slider.src=imageLocation[mainImg][thisImg];
document.getElementById('titleDiv').innerHTML = title[mainImg];
document.getElementById('slideDiv').innerHTML = slideNumber[mainImg][thisImg];
document.getElementById('captionDiv').innerHTML = captions[mainImg][thisImg];
trackSlideshow(mainImg);

	if (start == 0) {
	start = 1;
	runSlideShowParent();
	}
	

}


//this is the user controlled slideshow
function layerWrite(id,text) {
var imgCt = imageLocation[mainImg].length - 1;
//var image = imageLocation[mainImg][thisImg];
var slide = slideNumber[mainImg][thisImg];
var content = captions[mainImg][thisImg];

	if (thisImg > imgCt) {
	thisImg = 0;
	slide = slideNumber[mainImg][thisImg];
	content = captions[mainImg][thisImg];
	}
	
	if (thisImg < baseCt) {
	thisImg = imageLocation[mainImg].length - 1;
	slide = slideNumber[mainImg][thisImg];
	content = captions[mainImg][thisImg];
	}

	document.images.slider.src = imageLocation[mainImg][thisImg];
	document.getElementById('slideDiv').innerHTML = slideNumber[mainImg][thisImg];
	document.getElementById('captionDiv').innerHTML = captions[mainImg][thisImg];
}



function trackSlideshow(Num) {

	var s=s_gi(s_account);
	s.linkTrackVars='prop13,server';
	s.linkTrackEvents='None';
	s.server='hbo.com';
	

if (Num == 0) {s.prop13="HBO: SATC: Carrie: When in Doubt, Accessorize Slideshow Number";}

 else if (Num == 1) { s.prop13="HBO: SATC: Carrie: Most Outrageous Outfits  Slideshow Number";}

 else if (Num == 2) { s.prop13="HBO: SATC: Carrie: Vice Squad Slideshow Number";}
	
	s.t(this,'o','Slideshow Number');
}



function nextSlideshow(Num) {

	var s=s_gi(s_account);
	s.linkTrackVars='prop13,server';
	s.linkTrackEvents='None';
	s.server='hbo.com';
	

if (Num == 0) {s.prop13="HBO: SATC: Carrie: When in Doubt, Accessorize Slideshow Next";}

 else if (Num == 1) { s.prop13="HBO: SATC: Carrie: Most Outrageous Outfits  Slideshow Next";}

 else if (Num == 2) { s.prop13="HBO: SATC: Carrie: Vice Squad Slideshow Next";}
	
s.t(this,'o','Slideshow Next');
}



function previousSlideshow(Num) {

	var s=s_gi(s_account);
	s.linkTrackVars='prop13,server';
	s.linkTrackEvents='None';
	s.server='hbo.com';
	

if (Num == 0) {s.prop13="HBO: SATC: Carrie: When in Doubt, Accessorize Slideshow Previous";}

 else if (Num == 1) { s.prop13="HBO: SATC: Carrie: Most Outrageous Outfits  Slideshow Previous";}

 else if (Num == 2) { s.prop13="HBO: SATC: Carrie: Vice Squad Slideshow Previous";}
	
s.t(this,'o','Slideshow previous');
}
