	var TrainCase = new Object();
	
	TrainCase.showPopup = function(el,num){
		var pos = TrainCase.findPos(el);
		var isIE = navigator.appName.indexOf("Microsoft") != -1;
		var leftAdjust = 15;
		var topAdjust = -40;
		if (isIE){
			leftAdjust = 25;
			topAdjust = 250;
		}
		var pop = document.getElementById("PopUp");
		pop.innerHTML = TrainCase.PopupCopy[num];
		pop.style.left=pos[0]  + leftAdjust + "px";
		pop.style.top=pos[1] + topAdjust + "px";
		pop.style.visibility = "visible";
	}
	
	TrainCase.hidePopup = function(el){
		var pop = document.getElementById("PopUp");
		pop.style.visibility = "hidden";
		return false;
	}
	TrainCase.findPos = function(el) {
		var curleft = curtop = 0;
		if (el.offsetParent) {
			do {
				curleft += el.offsetLeft;
				curtop += el.offsetTop;
			} while (el = el.offsetParent);
		} 
		return [curleft,curtop];
	}
	
	TrainCase.PopupCopy = [];
	TrainCase.PopupCopy[0] = "Sleeved in signature Anthony Logistics packaging, this case comes fully equipped with $300 worth of swoon-worthy grooming products for him.<br>Total value: $500"; 
	TrainCase.PopupCopy[1] = "This gem includes 10 customized, hand-blended bareMinerals Eyecolors made solely for this train case, and the ruby-infused Ruby Collection: bareMinerals Eyecolors in Golden Ruby and Vintage Ruby, bareMinerals Liner Shadow in Wild Ruby, Double-Ended Classic Black Mascara & Ruby Beautifully Luminous Lashes, Buxom Big & Healthy Full Color Lip Polish in Ruby, two brushes with custom handles, a stylish faux-crocodile Ruby Clutch. <i>Pssst</i>, there's a <i>precious</i> surprise in there, too!<br>Total value: $1574"; 
	TrainCase.PopupCopy[2] = "Covered&#151;inside and out&#151;with Benefit's most recognizable models and mantras, this case perfectly evokes the brand's playful nature through its cartoon-like colors, mini-flower adornments, and one-of-a-kind Gabby head. It's also packed with $300 worth of Benefit product!<br>Total value: $585"; 
	TrainCase.PopupCopy[3] = "Bliss' ever-present cartoon gals, clouds, and witticisms take center stage in this light-up traincase. Inside the whimsical kit is an ahhhmazing amount of product: Lemon and Sage Body Butter 1 oz , Daily Detoxifying Facial Toner, The Youth As We Know It Cleanser, The Youth As We Know It Concentrate, High Intensity Hand Cream, An Ounce of Prevention AM with SPF 15, Clog Dissolving Cleansing Milk, Lemon and Sage Conditioning Rinse, Lemon and Sage Supershine Shampoo, Lid and Lash Wash, Post Shave Repair Lotion Sample, Tried and Blue All-In-One Shampoo And Conditioner, Tried and Blue Bubbling Body Wash, and Tried and Blue Body Lotion.<br>Total value: $5,000"; 
	TrainCase.PopupCopy[4] = "Fringed in foliage, flowers, and butterflies-CARGO'S garden-inspired case speaks to their PlantLove&trade; products, a gorgeous collection packaged in eco-friendly materials. Open up the grassy masterpiece, and you'll find it blooming with CARGO must-haves: Liquid Powder, Big Bronzer, BeachBlush&trade; in Coral Beach, blu_ray powder, blu_ray blush in Pink, blu_ray gloss, TexasLash Mascara, Warm Essential Palette, Tahiti Color Palette, PlantLove&trade; Eyeshadow in Iris, PlantLove&trade; Illuminator in Wind, PlantLove&trade; Lipstick in Mariska, and PlantLove&trade; Gloss in Magnolia.<br>Total Value: $450"; 
	TrainCase.PopupCopy[5] = "Plucked straight from Caudalie's headquarters, this crate-encased trunk features faux grapes and grape leaves to represent their vine-derived, antioxidant-packed ingredients&#151;and $250 worth of products so you can reap their real benefits! There's also a gift certificate for a facial at their Vinothérapie Spa at The Plaza in New York City.<br>Total value: $685"; 
	TrainCase.PopupCopy[6] = "This fully functional train case showcases beautiful imagery, textures, and product, bringing the rich heritage of Dior to life: like ready-to-wear outtakes, backstage beauty products, fan-favorite fragrances, and the iconic D hardware. Inside, there's a complete set of Dior's Holiday 2008 color collection&#151;a breathtaking mix of midnight blues and metallics.<br>Total value: over $400"; 
	TrainCase.PopupCopy[7] = "Gumballs, marshmallows, jellybeans, oh my! The purveyor of decadent beauty has created the sweetest train case in beauty history, covering it with toothsome treats-and filling it with $100 worth of their candy&#151;and cake-scented bath and body products.<br>Total Value: $400"; 
	TrainCase.PopupCopy[8] = "Decked out in die-cuts of Fresh's fan-favorite products, this colorful case opens up to reveal the real treats: Soy Face Cleanser, Sugar Lip Treatment, Supernova Mascara, Firebird Mascara, High Noon Freshface Glow, Twilight Freshface Glow, Sugar Lip Gloss in Sugar Kiss, and Sugar Oval Soap.<br>Total value: $550"; 
	TrainCase.PopupCopy[9] = "ghd's flame-and-feather creation includes plush pillow accents,  a limited-edition IV Dark Styler and five full-size, best-selling products from their thermodynamics range: Thermal Protector, Miracle Mist, Sea Spray, Fat Hair Lotion, and Ultimate Hairspray.<br>Total value: over $500"; 
	TrainCase.PopupCopy[10] = "Wondering how many Sephora cult-favorites lurk inside this super-sized train case? The secret stash&#151;protected by a custom chain and padlock&#151;holds enough blockbuster items to slather, spritz, and suds you all the way to beauty nirvana. Once unlocked, you'll see that this collection of best-of-the-decade products is truly a treasure trove of Sephora surprises.<br>Total value: $500"; 
	TrainCase.PopupCopy[11] = "From the red-carpet authority comes a case that screams special event. Spotlights, billboards, and rhinestones complement the products that makeup artist Carol Shaw uses on her A-list clients: six lipsticks, a Croc Palette, mascara, and a Starry-Eyed Baked Eyeshadow Trio.<br>Total Value: $410"; 
	TrainCase.PopupCopy[12] = "Adorned with the adorable daisies that top Marc Jacobs' best-selling scent, this luxe, hand-painted train case is filled with the matching blends: 3.4 oz Daisy Eau de Toilette Spray, 5.1 oz Luminous Body Lotion, and a Solid Perfume Ring.<br>Total value: $500"; 
	TrainCase.PopupCopy[13] = "MAKE UP FOR EVER has translated their fantasy makeup look from the face to the case using vivid swirls of color and stenciled words. While the exterior is accented with grassy patches and sparkling, oversized flowers, the interior holds $325 worth of their professional-grade products used backstage all over the world.<br>Total value: $435"; 
	TrainCase.PopupCopy[14] = "This inspirational brand has covered their one-of-a-kind case in their favorite philosophies and vintage childhood pics, all of which can be found on their packaging. And to complement its sweet, smile-inducing cover, Philosophy has also filled the inside of the case with $350 worth of product.<br>Total value: $460"; 
	TrainCase.PopupCopy[15] = "Smooch marks and Stila girls sweeten up this pretty case, modeled after a pro artist makeup kit. The periwinkle custom creation is also fully stocked with Stila's most sought-after products.<br>Total value: $1474"; 
	TrainCase.PopupCopy[16] = "This bloom-and fruit-filled train case is ripe with Tarte's antioxidant-rich products: 4 Cheek Stains, 6 Vitamin Infused Lip Glosses, 3 Vitamin Infused Lipsticks, Eye Couture Day-To-Night Eye Palette, 2 Berry Couture All Natural Stain Sets, 2 Lash Hugger Natural Mascaras, 2 Glam Gams Leg Bronzing Sticks, Clean Slate, Smooth Operator SPF 20, 3 Double Dose lipglosses, 6 24/7 Lip Sheers, 4 EmphasEYES High Definition Eye Pencils, 4 Lock & Roll Creaseless Eyeshadow Duos, The Vanity Limited-Edition Palette, Purse Your Lips set, and Très Cheek set.<br>Total value: over $1,000"; 
	TrainCase.PopupCopy[17] = "This glamorous brand covered its case completely in pink crystals (even the handle!) and then filled it with its Too Faced Super Glam Favorites collection, which includes Lash Injection, Lip Injection, Teddy Bear Hair Professional Brush Set, Shadow Insurance, 3 Eyeshadows (Totally Toasted, Ooh & Aah, and Boy Toy), Lip Of Luxury in Drop Dead Red, and Starry Eyed Liner in Silver Lining. It's also signed by co-founder Jerrod Blandino.<br>Total value: $3,170"; 
	TrainCase.PopupCopy[18] = "Urban Decay collaged their case with images of their most famous looks-and then draped it with chains and charms for extra-edgy accents. Inside is $300 worth of beauty products sure to make any beauty junky go off the chain.<br>Total value: $850"; 