var thisURL=document.location.href;var splitURL=thisURL.split("#");var photoId=splitURL[1]- 1;var photoId=(!photoId)?0:photoId;var borderSize=10;var photoDir="photos/01/";var photoArray=new Array(new Array("giftguide_start.jpg","770","450","10 Best Gifts for the Woman In Your Life"),new Array("Laura-Mercier-Creme-Brulee-Souffle-Body-Cream.jpg","770","450","(For Your Mother) Laura Mercier Creme Brulee Souffle Body Cream - A holiday favorite, Creme Brulee Souffle is a luxurious body cream that's bound to put a smile her face. Pair it with the matching body scrub and you've just selected a gift that can't go wrong.   $50 @ Nordstrom"),new Array("bond-no9-new-york-andy-warhol-union-square.jpg","770","450","(For Your Girlfriend/Wife) Bond No. 9 New York Andy Warhol Union Square - So you've decided that a fragrance is the right way to go. Then bypass the Chanel counter and go straight to Bond No. 9 New York. Named after neighborhoods in New York, take the plunge and buy a fragrance that not only has a unique scent, but comes in a beautiful bottle. Your choice should be Andy Warhol Union Square, but Scent of Peace and Fire Island are great selections as well.  $135 @ Saks Fifth Avenue"),new Array("Alexis-Bittar-Citrine-Getty-Drop-Earrings.jpg","770","450","(For Your Gilfriend/Wife) Alexis Bittar Citrine Getty Drop Earrings - Want something slightly more personal but trying to ensure you can pay it off on your next credit card statement? Visit the Alexis Bittar boutique to see their selection of beautiful jewelry. $135 @ alexisbittar.com"),new Array("bliss-spa-gift-card.jpg","770","450","(Gift For Your Assistant or Secretary) Gift Card from Bliss Spa - People say that gift cards are for lazy gift givers. Well, the recipients don't think so. Especially those receiving a gift card from Bliss Spa. Every woman loves a little pampering from Bliss, so don't be afraid.  $50+ @ blissworld.com"),new Array("missoni-stripe-scarf.jpg","770","450","(For Your Sister) Missoni Striped Scarf - You may not recognize these stripes, but she most certainly will. Missoni, the designer that brought you zigzags on women's apparel, give them in the form of a scarf.  $214 @ shopbop.com"),new Array("Mrs-John-L-Strong-Monogram-Collection.jpg","770","450","(For Your Female Boss or Mother-In-Law) Mrs. John L. Strong Monogram Collection - Buying a gift for the woman who has everything? Look no further past Mrs. John L. Strong, the most exquisite hand-crafted stationary.  This recipient will be impressed with your taste for such fine paper products, and you'll know you did well when you receive a hand-written thank you card on the very same stationary.  $95 @ mrsstrong.com"),new Array("hanky-panky-signature-lace-thong.jpg","770","450","(For Your Live-In Girlfriend) Hanky Panky Signature Lace Thong - Tired of buying lingerie that she never wears? Well, shock her with something useful. This popular panty is a favorite among women (and men alike we're assured). Buy an assortment in a variety of colors and stuff her, um, stocking.  $18 @ barenecessities.com"),new Array("nike-ipod-kit.jpg","770","450","(For Your Female Friend) Nike+iPod Sport Kit. For the runner in your life, the Nike+iPod Sport Kit is a must have for any iPod owner. This sensor can be inserted into most Nike running shoes and tracks her runs on both the iPod and online. Just don't complain when she outruns you even more. $29 @ Apple.com"),new Array("sony-cyber-shot-t700.jpg","770","450","Sony Cyber-shot T700. Every woman will tell you they love taking pictures. So why not get her a new camera? Chances are her camera is quite outdated. This Sony also comes in silver, gold, pink and red, and you can get it engraved with a special note. $369 @ sonystyle.com"),new Array("t3-bespoke-labs-featherweight-dryer.jpg","770","450","T3 Bespoke Labs Featherweight Dryer. Find yourself waiting for your loved one to 'finish drying her hair?' Try giving her a T3 hair dryer and help speed up the 'getting-beautiful' process. Don't be distracted by the price tag. Just think how much it will be worth to be on time.  $200 @ Sephora.com"));var photoNum=photoArray.length;Object.extend(Element,{getWidth:function(element){element=$(element);return element.offsetWidth;},setWidth:function(element,w){element=$(element);element.style.width=w+"px";},setHeight:function(element,h){element=$(element);element.style.height=h+"px";},setSrc:function(element,src){element=$(element);element.src=src;},setHref:function(element,href){element=$(element);element.href=href;},setInnerHTML:function(element,content){element=$(element);element.innerHTML=content;}});var Slideshow=Class.create();Slideshow.prototype={initialize:function(photoId){this.photoId=photoId;this.photo='Photo';this.photoBox='Container';this.prevLink='PrevLink';this.nextLink='NextLink';this.captionBox='CaptionContainer';this.caption='Caption';this.counter='Counter';this.loader='Loading';},getCurrentSize:function(){this.wCur=Element.getWidth(this.photoBox)- borderSize;this.hCur=Element.getHeight(this.photoBox)- borderSize;},getNewSize:function(){this.wNew=photoArray[photoId][1];this.hNew=photoArray[photoId][2];},getScaleFactor:function(){this.getCurrentSize();this.getNewSize();this.xScale=(this.wNew/this.wCur)*100;this.yScale=(this.hNew/this.hCur)*100;},setNewPhotoParams:function(){Element.setSrc(this.photo,photoDir+ photoArray[photoId][0]);Element.setHref(this.prevLink,"#"+(photoId+1));Element.setHref(this.nextLink,"#"+(photoId+1));},setPhotoCaption:function(){Element.setInnerHTML(this.caption,photoArray[photoId][3]);Element.setInnerHTML(this.counter,((photoId+1)+'/'+photoNum));},resizePhotoBox:function(){this.getScaleFactor();new Effect.Scale(this.photoBox,this.yScale,{scaleX:false,duration:0.3,queue:'front'});new Effect.Scale(this.photoBox,this.xScale,{scaleY:false,delay:0.5,duration:0.3});Element.setWidth(this.captionBox,this.wNew-(-borderSize));},showPhoto:function(){new Effect.Fade(this.loader,{delay:0.5,duration:0.3});new Effect.Appear(this.photo,{duration:0.5,queue:'end',afterFinish:function(){Element.show('CaptionContainer');Element.show('PrevLink');Element.show('NextLink');}});},nextPhoto:function(){(photoId==(photoArray.length- 1))?photoId=0:photoId++;this.initSwap();},prevPhoto:function(){(photoId==0)?photoId=photoArray.length- 1:photoId--;this.initSwap();},initSwap:function(){Element.show(this.loader);Element.hide(this.photo);Element.hide(this.captionBox);Element.hide(this.prevLink);Element.hide(this.nextLink);this.setNewPhotoParams();this.resizePhotoBox();this.setPhotoCaption();}}
var myrules={'#Photo':function(element){element.onload=function(){var myPhoto=new Slideshow(photoId);myPhoto.showPhoto();}},'#PrevLink':function(element){element.onmouseover=function(){soundManager.play('beep');}
element.onclick=function(){var myPhoto=new Slideshow(photoId);myPhoto.prevPhoto();soundManager.play('select');}},'#NextLink':function(element){element.onmouseover=function(){soundManager.play('beep');}
element.onclick=function(){var myPhoto=new Slideshow(photoId);myPhoto.nextPhoto();soundManager.play('select');}},a:function(element){element.onfocus=function(){this.blur();}}};Behaviour.addLoadEvent(init);Behaviour.apply();function init(){var myPhoto=new Slideshow(photoId);myPhoto.initSwap();soundManagerInit();}
