var cart = new Array();
var cartWindow;
var w = 630;
var h = 600;
var c;
var cookiesOn = cookiesActive();
var rates = new Object();
var shipZone;
var shippingObj = new Object();
var flatProcessing = 1;
var registered = getCookie('registered') == "false" || !getCookie('registered') ? false : true;
if(!opener || store){
	var items = new Array();
    var cType = getCookie('cType') ? getCookie('cType') : "All Items";
	with(items){	
		/*
		push({
			 image:"img/aeolian_fluxion_special_sm.jpg",
			 group:"The Ocean",
			 name:"Aeolian/Fluxion Deluxe Edition",
			 desc:"<p>Both albums come in a special slipcase with matching art and respective golden (Aeolian) and silver (Fluxion) embossed printing!</p><h3>Fluxion CD [Re-release]</h3><ul><li>60 minutes</li><li>new vocals by Mike Pilat, remixed, remastered</li><li>entirely new artwork by Martin Kvamme</li><li>deluxe edition, comes with black slipcase including special print colors and additional artwork and illustrations by Martin Kvanmme</li></ul><h3>Aeolian</h3><ul><li>52:55 minutes.</li></ul>",
			 dollar:"null",
			 euro:"25.00",
			 shipping:"260",
			 itemNumber:"901",
			 type:"Specials",
             stock:1
			 });
		
		push({
			 image:"img/fluxion_shirt_cd_special_sm.jpg",
			 group:"The Ocean",
			 name:"Fluxion [Re-release] + Fluxion T-shirt",
			 desc:"<h3>Fluxion CD [Re-release]</h3><ul><li>60 minutes</li><li>new vocals by Mike Pilat, remixed, remastered</li><li>entirely new artwork by Martin Kvamme</li><li>deluxe edition, comes with black slipcase including special print colors and additional artwork and illustrations by Martin Kvanmme</li></ul><h3>Fluxion T-shirt</h3><ul><li>grey front print of illustration from Fluxion booklet</li><li>sleeve print on left arm: The Ocean / \"Fluxion\" logo</li><li>sleeve print on right arm: The Ocean / \"Aeolian\" logo</li><li>illustration has excerpts from the lyrics to \"The Greatest Bane\": \"Breathe in deep. Get lost in what we call 'the real world'\"</li></ul>",
			 dollar:"null",
			 euro:"24.00",
			 shipping:"260",
			 itemNumber:"902",
			 type:"Specials",
             stock:1
			 });
		
		/* Discounted */
		
		/*
		push({
			 image:"img/aeolian_black_sm.jpg",
			 name:"Aeolian Shirt (black/black)",
			 desc:"",
			 dollar:"null",
			 euro:"10.00",
			 shipping:"130",
			 itemNumber:"111",
			 type:"Sale",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		
		push({
			 image:"img/winged_octopus_khaki_sm.jpg",
			 name:"Winged Octopus Shirt (dark metallic green/khaki)",
			 desc:"",
			 dollar:"null",
			 euro:"10.00",
			 shipping:"130",
			 itemNumber:"101",
			 type:"Sale",
             stock:{s:1, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		
		push({
			 image:"img/winged_octopus_white_sm.jpg",
			 name:"Winged Octopus Shirt (grey/white)",
			 desc:"",
			 dollar:"null",
			 euro:"11.00",
			 shipping:"130",
			 itemNumber:"115",
			 type:"Sale",
             stock:{s:0, m:0, l:0, xl:1, sg:0, mg:0}
			 });
		
		push({
			 image:"img/tower_white_sm.jpg",
			 name:"Towers Shirt (fluorescent white/white, glows in the dark!)",
			 desc:"",
			 dollar:"null",
			 euro:"10.00",
			 shipping:"130",
			 itemNumber:"114",
			 type:"Sale",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		*/
		
		
		/* Shirts */
			 
		push({
			 image:"img/anglerfisch.jpg",
			 group:"The Ocean",
			 name:"Anglerfisch",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"fisch_01",
			 type:"Shirts",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0}
			 });
			 
		push({
			 image:"img/eye_shirt_sm.jpg",
			 group:"The Ocean",
			 name:"One Eye (black/charcoal)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"eye_01",
			 type:"Shirts",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0}
			 });
			 
		push({
			 image:"img/heliocentric_sm.jpg",
			 group:"The Ocean",
			 name:"Heliocentric",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"123",
			 type:"Shirts",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0}
			 });
			 
		push({
			 image:"img/heretic_angel_sm.jpg",
			 group:"The Ocean",
			 name:"Heretic Angel",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"123",
			 type:"Shirts",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0}
			 });
			 
		push({
			 image:"img/urania_sm.jpg",
			 group:"The Ocean",
			 name:"Urania",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"123",
			 type:"Shirts",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0}
			 });
			 
		push({
			 image:"img/luminaries_sm.jpg",
			 group:"The Ocean",
			 name:"Luminaries",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"122",
			 type:"Shirts",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0}
			 });
				
		push({
			 image:"img/nebra_galaxy_sm.jpg",
			 group:"Nebra",
			 name:"Galaxy",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"neb02",
			 type:"Shirts",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0}
			 });
		
		
		push({
			 image:"img/nebra_discs_sm.jpg",
			 group:"Nebra",
			 name:"Discs",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"neb03",
			 type:"Shirts",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0}
			 });
			 
		push({
			 image:"img/fluxion_shirt_sm.jpg",
			 group:"The Ocean",
			 name:"Fluxion (grey/black)",
			 desc:"<ul><li>grey front print of illustration from Fluxion booklet</li><li>sleeve print on left arm: The Ocean / \"Fluxion\" logo</li><li>sleeve print on right arm: The Ocean / \"Aeolian\" logo</li><li>illustrations has excerpts from the lyrics to \"The Greatest Bane\": \"Breathe in deep. Get lost in what we call 'the real world'\"</li></ul>",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"118",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		
		push({
			 image:"img/thibault_sm.jpg",
			 group:"The Ocean",
			 name:"Thibault (blue-turquoise/black)",
			 desc:"<ul><li>Fluxion/Aeolian logos on left/right sleeve</li></ul>",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"119",
			 type:"Shirts",
             stock:{s:1, m:1, l:1, xl:1, sg:1, mg:1}
			 });
		
		/*
		push({
			 image:"img/bats_sm.jpg",
			 group:"The Ocean",
			 name:"Bats (blue-grey-white/black)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"120",
			 type:"Shirts",
             stock:{s:0, m:0, l:1, xl:1, sg:0, mg:0}
			 });
		*/
		
		push({
			 image:"img/pelagic_sm.jpg",
			 group:"The Ocean",
			 name:"Pelagic Records (dark grey/black)",
			 desc:"",
			 dollar:"null",
			 euro:"12.00",
			 shipping:"130",
			 itemNumber:"121",
			 type:"Shirts",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0}
			 });
		
		/*
		push({
			 image:"img/tower_black_sm.jpg",
			 group:"The Ocean",
			 name:"Towers Shirt (black/black)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"117",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:1, sg:0, mg:0}
			 });
		*/
		
		push({
			 image:"img/precambrian_shirt_sm.jpg",
			 group:"The Ocean",
			 name:"Precambrian",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"113",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		
		/*
		push({
			 image:"img/bubbles.jpg",
			 name:"Bubbles",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"112",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		
		push({
			 image:"img/shirt3_black.jpg",
			 name:"Tentacles (dark orange/black)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"110",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		*/
		
		
		push({
			 image:"img/shirt3_white.jpg",
			 group:"The Ocean",
			 name:"Tentacles (green/white)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"116",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:1, sg:0, mg:0}
			 });
		
		push({
			 image:"img/winged_octopus_black_sm.jpg",
			 group:"The Ocean",
			 name:"Winged Octopus (silverish grey/black)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"102",
			 type:"Shirts",
             stock:{s:1, m:1, l:1, xl:1, sg:1, mg:1}
			 });
		
		/*
		push({
			 image:"img/octopussy_zink_sm.jpg",
			 group:"The Ocean",
			 name:"Octopussy (zink)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"103",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:1, sg:0, mg:0}
			 });
		*/
		
		push({
			 image:"img/octopussy_khaki_sm.jpg",
			 group:"The Ocean",
			 name:"Octopussy (khaki)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"104",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:1, sg:0, mg:0}
			 });
		
		push({
			 image:"img/octopussy_white_sm.jpg",
			 group:"The Ocean",
			 name:"Octopussy (white)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"105",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:1, sg:0, mg:0}
			 });
		
		/*
		push({
			 image:"img/aeolian_sm.jpg",
			 name:"Aeolian (gold/black)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"106",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		
		push({
			 image:"img/aeolian_silver_sm.jpg",
			 name:"Aeolian (silver/black)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"107",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		*/
		
		push({
			 image:"img/aeolian_gray_sm.jpg",
			 group:"The Ocean",
			 name:"Aeolian (black/grey)",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"108",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		
		/*
		push({
			 image:"img/sea_creatures_sm.jpg",
			 name:"Sea Creatures",
			 desc:"",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"109",
			 type:"Shirts",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		*/
		
		/* Hoodies/Zippers */
		push({
			 image:"img/heretic_hoodie_sm.jpg",
			 group:"The Ocean",
			 name:"Heretic Angel w/zipper (gray/black)",
			 desc:"",
			 dollar:"null",
			 euro:"35.00",
			 shipping:"670",
			 itemNumber:"ang_01",
			 type:"Hoodies",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0},
             isNew:true
			 });
			 
		push({
			 image:"img/arrowman_grey_sm.jpg",
			 group:"The Ocean",
			 name:"Arrowman Hoodie w/zipper (anthracite/black)",
			 desc:"W/logo on hood",
			 dollar:"null",
			 euro:"35.00",
			 shipping:"670",
			 itemNumber:"209",
			 type:"Hoodies",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0},
             isNew:true
			 });
		
		push({
			 image:"img/winged_octopus_khaki_sm.jpg",
			 group:"The Ocean",
			 name:"Winged Octopus Hoodie (dark metallic green/khaki)",
			 desc:"",
			 dollar:"null",
			 euro:"30.00",
			 shipping:"670",
			 itemNumber:"201",
			 type:"Hoodies",
             stock:{s:1, m:0, l:0, xl:0, sg:0, mg:0},
             isNew:true
			 });
		
		push({
			 image:"img/winged_octopus_black_hoodie.jpg",
			 group:"The Ocean",
			 name:"Winged Octopus Hoodie w/zipper (silverish grey/black)",
			 desc:"",
			 dollar:"null",
			 euro:"35.00",
			 shipping:"670",
			 itemNumber:"208",
			 type:"Hoodies",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		
		/*
		push({
			 image:"img/shirt3_black.jpg",
			 name:"Tentacles Hoodie (dark orange/black)",
			 desc:"",
			 dollar:"null",
			 euro:"30.00",
			 shipping:"130",
			 itemNumber:"206",
			 type:"Hoodies",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0}
			 });
		
		push({
			 image:"img/shirt3_white.jpg",
			 name:"Tentacles Hoodie (green/white)",
			 desc:"",
			 dollar:"null",
			 euro:"30.00",
			 shipping:"130",
			 itemNumber:"207",
			 type:"Hoodies",
             stock:{s:1, m:1, l:1, xl:1, sg:0, mg:0}
			 });
		
		push({
			 image:"img/winged_octopus_black_sm.jpg",
			 group:"The Ocean",
			 name:"Winged Octopus Hoodie (silverish grey/dark graphite)",
			 desc:"",
			 dollar:"null",
			 euro:"30.00",
			 shipping:"670",
			 itemNumber:"202",
			 type:"Hoodies",
             stock:{s:1, m:0, l:0, xl:1, sg:0, mg:0}
			 });
		*/
		
		push({
			 image:"img/octopussy_white_zipper_sm.jpg",
			 name:"Octopussy Hoodie w/zipper (white)",
			 desc:"",
			 dollar:"null",
			 euro:"35.00",
			 shipping:"670",
			 itemNumber:"203",
			 type:"Hoodies",
             stock:{s:1, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		
		/*
		push({
			 image:"img/aeolian_gray_sm.jpg",
			 name:"Aeolian Hoodie (black/grey)",
			 desc:"",
			 dollar:"null",
			 euro:"30.00",
			 shipping:"670",
			 itemNumber:"204",
			 type:"Hoodies",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		
		push({
			 image:"img/aeolian_sm.jpg",
			 name:"Aeolian Hoodie (gold/black)",
			 desc:"",
			 dollar:"null",
			 euro:"30.00",
			 shipping:"670",
			 itemNumber:"205",
			 type:"Hoodies",
             stock:{s:0, m:0, l:0, xl:0, sg:0, mg:0}
			 });
		*/
		
		/* Releases */
		push({	
			 image:"img/helio_feature_sm.jpg",
			 fullsize:"img/helio_vinyl_box_preorder_detail.jpg",
			 group:"The Ocean",
			 name:"Heliocentric / Anthropocentric 4xLP Box",
			 desc:"<p class='warning'>*** note: This strictly limited box is designed to hold 2 gatefold covers and 4x 180g vinyl records: the \"Heliocentric\" album (April 13th 2010) and the \"Anthropocentric\" album (October 2010). For now, the box is only being delivered with the \"Heliocentric\" album included! The \"Anthropocentric\" album can be purchased separately in October ***</p><ul><li>heavy (950 g) black cardboard box with silver hot foil stamp print all across the front and exclusive artwork by Martin Kvamme</li><li>the box has space for both the \"Heliocentric\" and the \"Anthropocentric\" albums</li></ul><h3>Inside the box</h3><ul><li>\"Heliocentric\" gatefold cover with 3 revolving transparent & silver-printed PVC dials attached to the front of gatefold with a screw: the inner dial shows the sun, the next (larger dial) shows the orbits of the planets revolving around the sun, the outer dial shows the zodiacs and a stellar map. These dials can be manually turned.</li><li>the \"Anthropocentric\" album will be sold separately in October, to be put into this box... It will come in a separate gatefold cover with similar artwork, dials etc.</li></ul><h3>Inside the \"Heliocentric\" gatefold</h3><ul><li>2x 180 g colored vinyl</li><li>D-side has an engraving featuring special artwork by Martin Kvamme</li><li>9 special cards with images by Francisco de Hollanda and lyrics on backside.</li></ul>",
			 dollar:"null",
			 euro:"35.00",
			 shipping:"1350",
			 itemNumber:"helio-spec01",
			 stock:1,
			 type:"Vinyls"
			 });
			 
		push({
			 image:"img/helio_feature2_sm.jpg",
			 fullsize:"img/helio_cd_box_preorder_detail.jpg",
			 group:"The Ocean",
			 name:"Heliocentric / Anthropocentric CD Box",
			 desc:"<p class='warning'>*** note: This strictly limited silver-foiled cardboard CD box is designed to hold 2 digipaks: the \"Heliocentric\" album (April 13th 2010) and the \"Anthropocentric\" album (October 2010), plus an extra CD called \"Heliocentral\", a fully mastered instrumental version of 'Heliocentric'. For now, the box is only being delivered with the \"Heliocentric\" digipak and the \"Heliocentral\" extra CD included! The \"Anthropocentric\" album can be purchased separately in October, to be put into the box... ***</p><h3>the box</h3><ul><li>silver hot foil-stamped cardboard box, exclusive artwork by Martin Kvamme</li><li>the box has space for both the \"Heliocentric\" and the \"Anthropocentric\" albums.</li></ul><h3>inside the box</h3><p>\"Heliocentric\" digipak (European version, Metal Blade Records) with 3 revolving transparent & silver-foiled PVC dials attached to the front of gatefold with a screw: the inner dial shows the sun, the next (larger dial) shows the orbits of the planets revolving around the sun, the outer dial shows the zodiacs and a stellar map. These dials can be turned by hand.</p><ul><li>extra CD \"Heliocentral\"</li><li>9 cards with images by Francisco de Hollanda and lyrics on backside.</li><li>the \"Anthropocentric\" album will be released separately in October / November. Packaging and artwork will be similar to \"Heliocentric\" (also with dials, etc.)</li></ul><p>All preorders need to be paid up front and will be shipped as soon as the vinyls come in, no later than May 9th 2010. We have extra packing helpers so we can guarantee to ship all preorders within 1 week of receiving the finished products (so maybe even before May 9th). If you live in the EU and prefer to pay upfront by bank wire, send an email with your order details and shipping address to <a href='mailto:info@theoceancollective.com'>info@theoceancollective.com</a></p>",
			 dollar:"null",
			 euro:"22.00",
			 shipping:"300",
			 itemNumber:"helio-spec02",
			 stock:1,
			 type:"CDs"
			 });
			 
		push({
			 image:"img/giaa_age.jpg",
			 group:"God Is An Astronaut",
			 name:"Age of the Fifth Sun LP",
			 desc:"<h3>God Is An Astronaut - Age of the Fifth Sun LP</h3><ul><li>the brand new album by this fine Irish post-rock trio</li><li>180 g vinyl</li><li>the first preorders will get limited edition colored wax!!!</li></ul>",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"600",
			 itemNumber:"giaa-spec01",
			 stock:1,
			 type:"Vinyls"
			 });
		
		push({
			 image:"img/giaa_sm.jpg",
			 group:"God Is An Astronaut",
			 name:"All Is Violent, All Is Bright LP",
			 desc:"<ul><li>God Is An Astronaut's legendary 2nd album finally available on vinyl for the first time!</li><li>strictly limited to 300 copies!</li><li>black vinyl</li><li>first 150 copies come with special hand-numbered silk screen poster designed by Gerd Kornmann</li></ul>",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"300",
			 itemNumber:"Pel003",
			 stock:1,
			 type:"Vinyls"
			 });
		
		/*
		push({
			 image:"img/precambrian_sm.jpg",
			 group:"The Ocean",
			 name:"Precambrian 3xLP",
			 desc:"<a href='http://metalbladerecords.de'>(Garden of Exile / Throne Records, 2008)</a><ul><li>84 minutes / 3 LPs</li><li>brick-heavy 180g coloured vinyl</li><li>each LP in different volcanic colours: silver/black, red/black and yellow/red</li><li>comes in a gatefold cover with the same artwork as the European deluxe CD packaging version - including diecut holes on front and back, UV-gloss, metallic inks, full-color sleeves and inserts, all on the thickest cardboard - and 2 text sheets with the art from the booklets...</li><li>limited to 1000 copies</li></ul>",
			 dollar:"null",
			 euro:"25.00",
			 shipping:"900",
			 itemNumber:"305",
			 stock:1,
			 type:"Vinyls"
			 });
		*/
		
		push({
			 image:"img/aeolian_fluxion_sm.jpg",
			 group:"The Ocean",
			 name:"Fluxion / Aeolian 3xLP",
			 desc:"<a href='http://thronerecords.net'>(Throne Records, 2006)</a><ul><li>Both 2004's 'Fluxion' album (original version) and 2005's 'Aeolian' album in a 3xLP packaging.</li><li>3rd and final pressing, 3 vinyls per package, 8mm spine gatefold cover, silver print on black background, comes with additional artprint poster (gold on white) with the art from the 'Aeolian' slipcase (European version).</li></ul>",
			 dollar:"null",
			 euro:"25.00",
			 shipping:"630",
			 itemNumber:"303",
			 stock:1,
			 type:"Vinyls"
			 });
		
		push({
			 image:"img/nebra_sky_disk_sm.jpg",
			 group:"Nebra",
			 name:"Sky Disk",
			 desc:"<ul><li>debut EP by this instrumental Swiss powerhouse</li><li>featuring members of KNUT, MUMAKIL and NOSTROMO</li><li>2nd release on Robin Staps (THE OCEAN)'s new label Pelagic Records</li><li>deluxe digipak with special print colors, artwork by SELDON HUNT</li><li>special 3\"inch CD with plastic frame</li></ul>",
			 dollar:"null",
			 euro:"10.00",
			 shipping:"130",
			 itemNumber:"neb01",
			 stock:1,
			 type:"CDs"
			 });
		
		push({
			 image:"img/fluxion_sm.jpg",
			 group:"The Ocean",
			 name:"Fluxion [Re-release]",
			 desc:"<a href='http://theoceancollective.com/pelagic/'>(Pelagic Records, 2009)</a><ul><li>60 minutes</li><li>new vocals by Mike Pilat, remixed, remastered</li><li>entirely new artwork by Martin Kvamme</li><li>deluxe edition, comes with black slipcase including special print colors and additional artwork and illustrations by Martin Kvanmme</li></ul>",
			 dollar:"null",
			 euro:"12.00",
			 shipping:"130",
			 itemNumber:"308",
			 stock:1,
			 type:"CDs"
			 });
		
		/*
		push({
			 image:"img/precambrian_sm.jpg",
			 group:"The Ocean",
			 name:"Precambrian 2xCD (European Deluxe Packaging Edition)",
			 desc:"<a href='http://metalbladerecords.de'>(Metal Blade Records, 2007)</a><ul><li>84 minutes / 2 CDs</li><li>comes in a slick double-layered digipak with diecut holes for changing front cover impressions and 2 booklets printed in special colors, including additional art that is not available in the US version!</li></ul>",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"130",
			 itemNumber:"301",
			 stock:0,
			 type:"CDs"
			 });
		
		push({
			 image:"img/precambrian_sm.jpg",
			 group:"The Ocean",
			 name:"Precambrian 2xCD",
			 desc:"<a href='http://metalbladerecords.de'>(Metal Blade Records, 2007)</a><ul><li>84 minutes / 2 CDs</li></ul>",
			 dollar:"null",
			 euro:"12.00",
			 shipping:"130",
			 itemNumber:"307",
			 stock:1,
			 type:"CDs"
			 });
		*/
		
		push({
			 image:"img/aeolian_cd_sm.jpg",
			 group:"The Ocean",
			 name:"Aeolian CD (European Deluxe Packaging Edition)",
			 desc:"<a href='http://metalbladerecords.de'>(Metal Blade Records, 2005)</a><ul><li>52:55 minutes.</li><li>Comes with a slick white slipcase with golden embossed printing that was not available in the US!</li></ul><ol><li>'monstrously huge' <i>- Revolver, USA, 5 / 5</i></li><li>*record of the month* december 2005 <i>- Close Up Magazine, Sweden</i></li><li>'The Ocean is the future!'<i> - Rock Tribune, Belgium, 95 / 100</i></li><li>'Complex, overwhelming and mercilessly tight, this is a spot of pain barrier demolition your ears wont forgive in a hurry.'<i> - Kerrang!, KKKK</i></li><li>'a vast and intimidating piece of work... a spiky and cerebral modern metal odyssey.'<i> - Terrorizer, UK</i></li></ol>",
			 dollar:"null",
			 euro:"14.00",
			 shipping:"130",
			 itemNumber:"302",
			 stock:0,
			 type:"CDs"
			 });
		
		push({
			 image:"img/aeolian_cd_sm.jpg",
			 group:"The Ocean",
			 name:"Aeolian CD",
			 desc:"<a href='http://metalbladerecords.de'>(Metal Blade Records, 2005)</a><ul><li>52:55 minutes.</li></ul><ol><li>'monstrously huge' <i>- Revolver, USA, 5 / 5</i></li><li>*record of the month* december 2005 <i>- Close Up Magazine, Sweden</i></li><li>'The Ocean is the future!'<i> - Rock Tribune, Belgium, 95 / 100</i></li><li>'Complex, overwhelming and mercilessly tight, this is a spot of pain barrier demolition your ears wont forgive in a hurry.'<i> - Kerrang!, KKKK</i></li><li>'a vast and intimidating piece of work... a spiky and cerebral modern metal odyssey.'<i> - Terrorizer, UK</i></li></ol>",
			 dollar:"null",
			 euro:"12.00",
			 shipping:"130",
			 itemNumber:"306",
			 stock:1,
			 type:"CDs"
			 });
		
		push({
			 image:"img/fogdiver_sm.jpg",
			 group:"The Ocean",
			 name:"Fogdiver CD UK edition",
			 desc:"<a href='iapetusrecordings.co.uk'>(Iapetus Records 2005)</a><ul><li>30:02 minutes. This album is entirely instrumental.</li><li>Originally released via Make My Day Records in 2003, this is a re-edition in revised packaging.</li><li>Comes in a slick digipak with UV gloss, booklet and additional artwork.</li></ul><ol><li>'airily melodic passages alongside the requisite end-of-the-world-is-nigh bludgeon. 'Fogdiver' is an eminently listenable piece of work, with skilful attention to mood comparable to soundtrack music.'<i> - Kerrang!, UK, KKKK</i></li><li>'brimming with ingenuity, passion and a driving sense of urgency. As invigorating as a breath of fresh sea air, this is a treasure that's begging to b discovered.'<i> - Rock Sound, UK</i></li></ol>",
			 dollar:"null",
			 euro:"10.00",
			 shipping:"90",
			 itemNumber:"304",
			 stock:1,
			 type:"CDs"
			 });
		
		/* Buttons */
		push({
			 image:"img/qualle_sm.jpg",
			 group:"The Ocean",
			 name:"Qualle button",
			 desc:"",
			 dollar:"null",
			 euro:"1.00",
			 shipping:"10",
			 itemNumber:"503",
			 stock:1,
			 type:"Buttons",
             isNew:true
			 });
		
		push({
			 image:"img/button_precambrian_sm.jpg",
			 group:"The Ocean",
			 name:"Precambrian button",
			 desc:"",
			 dollar:"null",
			 euro:"1.00",
			 shipping:"10",
			 itemNumber:"504",
			 stock:1,
			 type:"Buttons",
             isNew:true
			 });
		
		push({
			 image:"img/logo_sm.jpg",
			 group:"The Ocean",
			 name:"Logo button",
			 desc:"",
			 dollar:"null",
			 euro:"1.00",
			 shipping:"10",
			 itemNumber:"501",
			 stock:0,
			 type:"Buttons"
			 });
		
		push({
			 image:"img/octopus_sm.jpg",
			 group:"The Ocean",
			 name:"Octopus button",
			 desc:"",
			 dollar:"null",
			 euro:"1.00",
			 shipping:"10",
			 itemNumber:"502",
			 stock:0,
			 type:"Buttons"
			 });
		
		/* Posters */
		
		push({
			 image:"img/alchemist_girl.jpg",
			 group:"The Ocean",
			 name:"Special Gig Poster",
			 desc:"special gig poster for The Ocean - gig at the Limelight in Belfast on April 10th 2010. 2-color (silver and black) silk screen print, hand-numbered, limited to 75 copies. Size: 48 x 64 cm. Printed on thick cardboard. Design by Glyn Smyth.",
			 dollar:"null",
			 euro:"15.00",
			 shipping:"15",
			 itemNumber:"tos-01",
			 stock:1,
			 type:"Posters",
             isNew:true
			 });
		
		push({
			 image:"img/friction-fest_poster_1.jpg",
			 group:"The Ocean",
			 name:"Friction Fest Poster I",
			 desc:"4-color silk screen print, hand-numbered, limited to 75 copies. Size: 47 x 64 cm. Design by Damien Tran.",
			 dollar:"null",
			 euro:"10.00",
			 shipping:"15",
			 itemNumber:"fric-01",
			 stock:1,
			 type:"Posters",
             isNew:true
			 });
		
		push({
			 image:"img/friction-fest_poster_2.jpg",
			 group:"The Ocean",
			 name:"Friction Fest Poster II",
			 desc:"3-color silk screen print, limited to 50 copies. Size: 50 x 70 cm. Design by Dawik Piprek",
			 dollar:"null",
			 euro:"10.00",
			 shipping:"15",
			 itemNumber:"fric-02",
			 stock:1,
			 type:"Posters",
             isNew:true
			 });
			 
		push({
			 image:"img/aeolian_poster.jpg",
			 group:"The Ocean",
			 name:"Aeolian Postcard Motif 1",
			 desc:"Aeolian miniature artprint in maxi-postcard format, glossy golden print on thick white cardboard, design by Martin Kvamme",
			 dollar:"null",
			 euro:"1.00",
			 shipping:"15",
			 itemNumber:"402",
			 stock:1,
			 type:"Posters"
			 });
		
		push({
			 image:"img/aeolian_poster_2.jpg",
			 group:"The Ocean",
			 name:"Aeolian Postcard Motif 2",
			 desc:"Aeolian miniature artprint in maxi-postcard format, glossy golden print on thick white cardboard, design by Martin Kvamme",
			 dollar:"null",
			 euro:"1.00",
			 shipping:"15",
			 itemNumber:"403",
			 stock:1,
			 type:"Posters"
			 });
		
	}
	if(!c){
		c = getCookie("c") ? getCookie("c") : "e";
	}
} else {
	cart = opener.cart;
	c = opener.c;
	rates.germany = [{d:0, e:5.4, s:"Germany (Maxibrief)", h:1.5}, {d:0, e:5.4, s:"Germany (Maxibrief)", h:1.5}, {d:0, e:5.4, s:"Germany (Maxibrief)", h:2}, {d:0, e:7.9, s:"Germany (DHL Paket)", h:2.5}];
	rates.europe = [{d:0, e:4.5, s:"Europe (DHL International)", h:1.5}, {d:0, e:7, s:"Europe (DHL International)", h:1.5}, {d:0, e:9.6, s:"Europe (DHL International)", h:2}, {d:0, e:18, s:"Europe (DHL Paket International, Uninsured)", h:2.5}];
	rates.surface = [{d:0, e:7.5, s:"World 1 (USA, Switzerland, Canada)", h:1.5}, {d:0, e:13, s:"World 1 (USA, Switzerland, Canada)", h:1.5}, {d:0, e:14.9, s:"World 1 (USA, Switzerland, Canada)", h:2}, {d:0, e:36, s:"World 1 (USA, Switzerland, Canada)", h:2.5}];
	rates.air = [{d:0, e:7.5, s:"World 2 (Australia, New Zealand)", h:1.5}, {d:0, e:13, s:"World 2 (Australia, New Zealand)", h:1.5}, {d:0, e:14.9, s:"World 2 (Australia, New Zealand)", h:2}, {d:0, e:41, s:"World 2 (Australia, New Zealand)", h:2.5}];
	shipZone = getCookie("shipZone") || "germany";
}
//
function writeShop(){
    id('main').innerHTML = "<div id='page_title'><div id='tabs'><span id='shop_title'>Shop:</span></div></div>";
	e = "";
	e += "<p class='small_warning'>We are currently on tour and have temporarily limited merch stock available here, as most of our stock is on tour with us. If you want more designs, come see a show:) The first preorders went out last week, a lot are still being processed, please be patient, we are facing a large amount of orders and are ding our best to process them ASAP, so you will have them soon!! Thanks.</p>";
	e += "<p class='small_warning'>Due to a high volume of orders some items are partially or completely out of stock. They should be available again soon.</p>";
	e += "<p class='small_warning'>For other exclusive The Ocean T-shirt designs, visit the <a href='http://www.bandstores.co.uk/shop/theocean/products.php?cat=1378' target='_blank'>Omerch webstore</a>.</p>";
	if(c == "d") e += "<br/>All US dollar shipping and prices are calculated based on the latest exchange rates.";
	id('main').innerHTML += "<div id='messages'>"+e+"</div>";
	if(!cookiesOn){
		id("main").innerHTML += "<div class='small_warning' style='padding-bottom:10px;'>Cookies are disabled on your browser. If you reload this window, your shopping cart and preferences will be lost.</div>";
	}
	id('main').innerHTML += "<div id='container'></div>";
    addTab("All Items");
	for(i=0; i<items.length; i++){
        it = items[i];
		addTab(it.type);
		if((it.type == cType || cType == "All Items" || (cType == "New" && it.isNew))){
			r = "<div class='product'>";
			r += "<div class='thumb'>";
			if(isInStock(it)){
				if(it.fullsize){
					r += "<a href='"+it.fullsize+"' target='_blank'><img src='"+it.image+"' class='thumb' /></a><br/><span>click for detail</span>";
				} else {
					r += "<img src='"+it.image+"' />";
				}
			} else {
				r += "<img src='img/sold_out.gif' style='background-image:url("+it.image+");' class='thumb_none' />";
			}
			r += "</div>";
			r += "<h2>"+(it.group ? it.group+" - " : "")+it.name+"</h2>";
			r += "<div class='details'>"+it.desc;
			/* GIAA Vinyl Colors */
			if(it.itemNumber == "giaaage-spec01"){
				r += "<table cellspacing='1' class='buy_table'><tr>";
				r += "<td class='price' valign='middle'"+(it.stock.sg || it.stock.mg ? " rowspan=\'2\'" : "")+">"+getSymbol()+getPrice(it.euro, it.dollar)+"</td>";
				r += "<td><a href=\"javascript:addToCart(\'"+it.itemNumber+"-y\',\'"+it.name+" (yellow)\',\'"+it.dollar+"\',\'"+it.euro+"\',\'"+it.shipping+"\',\'"+it.type+"\')\">yellow</a></td>";
				r += "<td><a href=\"javascript:addToCart(\'"+it.itemNumber+"-o\',\'"+it.name+" (orange)\',\'"+it.dollar+"\',\'"+it.euro+"\',\'"+it.shipping+"\',\'"+it.type+"\')\">orange</a></td>";
				r += "<td><a href=\"javascript:addToCart(\'"+it.itemNumber+"-b\',\'"+it.name+" (black)\',\'"+it.dollar+"\',\'"+it.euro+"\',\'"+it.shipping+"\',\'"+it.type+"\')\">black</a></td>";
				r += "</tr></table>";
			} else if(typeof(it.stock) == "object"){
				r += "<table cellspacing='1' class='buy_table'><tr>";
				r += "<td class='price' valign='middle'"+(it.stock.sg || it.stock.mg ? " rowspan=\'2\'" : "")+">"+getSymbol()+getPrice(it.euro, it.dollar)+"</td>";
				r += "<td class='type'>"+(it.type == "Shirts" ? 'T-Shirt' : 'Standard')+"</td>";
				if(it.stock.s){
					r += "<td><a href=\"javascript:addToCart(\'"+it.itemNumber+"\',\'"+it.name+" SMALL\',\'"+it.dollar+"\',\'"+it.euro+"\',\'"+it.shipping+"\',\'"+it.type+"\')\">small</a></td>";
				} else {
					r += "<td class='out'>small</td>";
				}
				if(it.stock.m){
					r += "<td><a href=\"javascript:addToCart(\'"+it.itemNumber+"\',\'"+it.name+" MEDIUM\',\'"+it.dollar+"\',\'"+it.euro+"\',\'"+it.shipping+"\',\'"+it.type+"\')\">medium</a></td>";
				} else {
					r += "<td class='out'>medium</td>";
				}
				if(it.stock.l){
					r += "<td><a href=\"javascript:addToCart(\'"+it.itemNumber+"\',\'"+it.name+" LARGE\',\'"+it.dollar+"\',\'"+it.euro+"\',\'"+it.shipping+"\',\'"+it.type+"\')\">large</a></td>";
				} else {
					r += "<td class='out'>large</td>";
				}
				if(it.stock.xl){
					r += "<td><a href=\"javascript:addToCart(\'"+it.itemNumber+"\',\'"+it.name+" EXTRA-LARGE\',\'"+it.dollar+"\',\'"+it.euro+"\',\'"+it.shipping+"\',\'"+it.type+"\')\">x-large</a></td>";
				} else {
					r += "<td class='out'>x-large</td>";
				}
				r += "</tr>";
				if(it.stock.sg || it.stock.mg){
					r += "<tr>";
					r += "<td class='type'>Girl's V-neck</td>";
					if(it.stock.sg){
						r += "<td><a href=\"javascript:addToCart(\'"+it.itemNumber+"\',\'"+it.name+" SMALL FEMALE\',\'"+it.dollar+"\',\'"+it.euro+"\',\'150\',\'"+it.type+"\')\">small</a></td>";
					} else {
						r += "<td class='out'>small</td>";
					}
					if(it.stock.mg){
						r += "<td><a href=\"javascript:addToCart(\'"+it.itemNumber+"\',\'"+it.name+" MEDIUM FEMALE\',\'"+it.dollar+"\',\'"+it.euro+"\',\'150\',\'"+it.type+"\')\">medium</a></td>";
					} else {
						r += "<td class='out'>medium</td>";
					}
					r += "<td colspan='2'></td>";
					r += "</tr>";
				}
				r += "</table>";
			} else {
				r += "<table cellspacing='1' class='buy_table'><tr>";
				r += "<td class='price' valign='middle'>"+getSymbol()+getPrice(it.euro, it.dollar)+"</td>";
				if(it.stock){
					r += "<td><a href=\"javascript:addToCart(\'"+it.itemNumber+"\',\'"+it.name+"\',\'"+it.dollar+"\',\'"+it.euro+"\',\'"+it.shipping+"\',\'"+it.type+"\')\">add to cart</a></td>";
				} else {
					r += "<td class='out'>out of stock</td>";
				}
				r += "</tr></table>";
			}
			r += "</div><div class='clear'></div></div>";
			//
			if(cType == "All Items" || cType == "New"){
				cont = getContainer(it.type);
			} else {
				cont = id('container');
			}
			cont.innerHTML += r;
		}
	}
	full = getCookie("cart");
	if(full && !clear){
		cart = new Array();
		existingCart = full.split(",,");
		for(i=0; i<existingCart.length; i++){
			cart.push(existingCart[i].split(","));
		}
	}
	updateCart();
}
function isInStock(it){
	if(it.stock == 1){
		return true;
	}
	if(it.stock.s){
		return true;
	}
	if(it.stock.m){
		return true;
	}
	if(it.stock.l){
		return true;
	}
	if(it.stock.xl){
		return true;
	}
	if(it.stock.sg){
		return true;
	}
	if(it.stock.mg){
		return true;
	}
	return false;
}
function getContainer(cont){
	conta = id(cont);
	if(!id(cont)){
		id("container").innerHTML += "<h1>"+cont+"</h1><div class='clear'></div><div id='"+cont+"' class='category'></div>";
		conta = id(cont);
	}
	return conta;
}
function addToCart(itemNumber, itemName, itemDollar, itemEuro, itemShipping, itemType){
	found = false;
	for(i=0; i<cart.length; i++){
		if(cart[i][1] == itemName){
			found = true;
			cart[i][5]++;
		}
	}
	if(!found){
		cart.push([itemNumber, itemName, itemDollar, itemEuro, itemShipping, 1, itemType]);
	}
	updateCart();
	openCart();
}
function confirmRemove(itemNumber){
	if(confirm('Are you sure you wish to remove "'+cart[itemNumber][1]+'" from your cart?')){
		removeFromCart(itemNumber);
	}
}
function removeFromCart(itemNumber){
    if(cart.length == 1){
        cart = new Array();
    } else {
        cart.splice(itemNumber, 1);
    }
    opener.cart = cart;
    opener.updateCart();
    writeCart();
}
function updateCart(){
	itemTotal = 0;
	newCart = "";
	for(i=0; i<cart.length; i++){
		newCart += cart[i];
		if(i < cart.length-1) newCart += ",,";
		itemTotal += parseInt(cart[i][5]);
	}
	setCookie("cart", newCart);
	id("control").innerHTML = "<a href='javascript:openCart()' class='cartCount'>Cart: <span class='white'>"+itemTotal+"</span> "+(itemTotal == 1 ? 'Item' : 'Items')+"</a> | "+'Currency: <select name="currency" onchange="changeCurrency(this.value);"><option value="e" '+(c == "e" ? " selected" : "")+'>Euros</option><option value="d"'+(c == "d" ? " selected" : "")+'>US Dollars</option></select>';
}
function openCart(){
	id("control").firstChild.blur();
	if(cartWindow && !cartWindow.closed){
		cartWindow.focus();
		cartWindow.writeCart();
	} else {
		x = (screen.availWidth-w)/2;
		y = (screen.availHeight-h)/2;
		props = "status=1,resize=0,scrollbars=1,locaiton=0,top="+y+",left="+x+",width="+w+",height="+h;
		cartWindow = window.open("cart.php", "cart", props);
	}
}
function writeCart(){
	r = "<div class='header'>"+'<div style="float:right;">Currency: <select name="currency" onchange="changeCurrency(this.value);" style="margin:0px;"><option value="e" '+(c == "e" ? " selected" : "")+'>Euros</option><option value="d"'+(c == "d" ? " selected" : "")+'>US Dollars</option></select></div><img src="img/shopping_cart.gif" /><div style="clear:both;"></div>'+"</div>";
	r += "<div style='padding:10px 0px;'>To order items from this store, you must have a PayPal account or be able to sign up for one when checking out.<br /><br /><span class='small_warning'>After you have placed your order, you will get a confirmation email from paypal. We will process your order as soon as possible, however, sometimes items are temporarily out of stock, so PLEASE don't write us asking 'where's my stuff' only 10 days after you ordered. Please allow 2-3 weeks for processing and shipping, depending where you live and what shipping option you choose.</span></div>";
	r += "<table class='cart_header' cellspacing='1'><tr><td class='number'>#</td><td class='item'>Item Name</td><td class='price'>Price</td><td class='quantity'>Qty</td><td class='close'></td></tr></table>";
	total = shipping = shippingPosters = numOfButtons = 0;
	itemTotal = 0;
    handling = 0;
	cartR = "";
	areVinyls = false;
	if(cart.length){
		for(i=0; i<cart.length; i++){
			it = cart[i];
            r += "<table class='cart_item' cellspacing='1'><tr><td class='number'>"+it[0]+"</td><td class='item'>"+it[1]+(it[6] == "Posters" ? "<div class='warning'><a href=\"javascript:alert('Because posters must be shipped via a tube that only accomodates paper, you must pay shipping for this item seperately from other, non-poster items. These shipping costs are automatically calculated in your total.');\">CLICK HERE TO READ IMPORTANT INFORMATION ABOUT THE SHIPPING OF THIS ITEM.</a>" : "")+"</td><td class='price'>"+getSymbol()+getPrice(it[3], null)+"</td><td class='quantity'><a href='javascript:lowerQuant("+i+");'>&nbsp;-&nbsp;</a> "+it[5]+" <a href='javascript:raiseQuant("+i+");'>&nbsp;+&nbsp;</a></td><td class='close'><a href='javascript:confirmRemove("+i+")'></a></td></tr></table>";
            total += parseFloat(getPrice(cart[i][3],cart[i][2])*cart[i][5]);
            if(cart[i][6] == "Posters"){
            	shippingPosters += parseFloat(cart[i][4]*cart[i][5]);
			} else if(cart[i][6] == "Buttons"){
				numOfButtons++;
            } else {
                shipping += parseFloat(cart[i][4]*cart[i][5]);
            }
            itemTotal += parseInt(it[5]);
            if(it[6] == "Vinyls"){
            	areVinyls = true;
            }
		}
		shippingObj = getRate(shipping);
		shippingWeight = shipping;
        shippingObjPosters = getPosterShipping(shippingPosters);
        shippingExists = shipping ? 1 : 0;
		if(!shipping && !shippingPosters && numOfButtons){
			shipping = getPrice(1);
			handling = getPrice(0);
		} else {
			shipping = getPrice(shippingObj.e+shippingObjPosters+(registered && shippingExists ? 2.5 : 0)+(numOfButtons ? 1 : 0));
			handling = getPrice(parseFloat(shippingObj.h)+(shippingPosters ? 1 : 0));
		}
		if(areVinyls){
			shipping = Math.max(shipping, 6.9);
		}
		//
		if (!shippingObj.custom){
			cartR += '<form action="https://www.paypal.com/cgi-bin/webscr" method="post" onsubmit="checkout()">';
		} else {
			cartR += '<form name="emailRequest" action="email.php" method="POST" onsubmit="return verifyFields();">';
		}
		cartR += '<input type="hidden" name="cmd" value="_cart" />';
		cartR += '<input type="hidden" name="upload" value="1" />';
		cartR += '<input type="hidden" name="business" value="info@theoceancollective.com" />';
        cartR += '<input type="hidden" name="cpp_header_image" value="http://www.theoceancollective.com/shop/img/logo_for_paypal.gif" />';
        cartR += '<input type="hidden" name="return" value="http://www.theoceancollective.com/shop/success.html" />';
        cartR += '<input type="hidden" name="cancel_return" value="http://www.theoceancollective.com/shop/cart.php" />';
		cartR += '<input type="hidden" name="currency_code" value="'+(c == 'd' ? 'USD' : 'EUR')+'" />';
		cartR += '<input type="hidden" name="custom1" value="'+shippingWeight+'" />';
		//cartR += '<input type="hidden" name="on0_1" value="'+shippingObj.s+'" />';
        cartR += '<input type="hidden" name="shipping_1" value="'+shipping+'" />';
        cartR += '<input type="hidden" name="handling_1" value="'+handling+'" />';
		offset = 0;
		for(i=0; i<cart.length; i++){
            cartR += '<input type="hidden" name="item_number_'+(i+1+offset)+'" value="'+cart[i][0]+'"><input type="hidden" name="item_name_'+(i+1+offset)+'" value="'+cart[i][1]+'"><input type="hidden" name="quantity_'+(i+1+offset)+'" value="'+cart[i][5]+'"><input type="hidden" name="amount_'+(i+1+offset)+'" value="'+getPrice(cart[i][3])+'">';
		}
		if (!shippingObj.custom && total) cartR += '<div style="text-align:right;"><input type="submit" value="PayPal Checkout"></div></form>';
	} else {
		r += "<table class='cart_item' cellspacing='1'><tr><td>There are no items in your cart.</td></tr></table>";
        handling = "0.00";
	}
	totaltotal = (total+parseFloat(shipping)+parseFloat(handling)).toFixed(2);
	total = total.toFixed(2);
	shipping = (parseFloat(shipping)).toFixed(2);
	r += "<table class='cart_footer' cellspacing='1'><tr><td class='item' colspan='2'>Subtotal</td><td class='price'>"+getSymbol()+total+"</td><td class='quantity'>"+itemTotal+"</td><td class='close'></td></tr>";
	if (!shippingObj.custom || !cart.length){
		r += '<tr><td class="item" colspan="2">Shipping: <select name="zone" onchange="changeZone(this.value);" style="margin:0px;" id="ship_zone"><option value="germany"'+(shipZone == "germany" ? " selected" : "")+'>Germany</option><option value="europe" '+(shipZone == "europe" ? " selected" : "")+'>Europe</option><option value="surface" '+(shipZone == "surface" ? " selected" : "")+'>World 1 (USA, Switzerland, Canada)</option><option value="air" '+(shipZone == "air" ? " selected" : "")+'>World 2 (Australia, New Zealand)</option></select>'+writeRegistered()+'</td><td class="price">'+getSymbol()+shipping+'</td><td class="close"></td></tr>';
		r += "<tr><td class='item' colspan='2'>Processing</td><td class='price'>"+getSymbol()+handling+"</td><td class='quantity'></td><td class='close'></td></tr>";
		r += "<tr class='total'><td class='item' colspan='2'>Total</td><td class='price'>"+getSymbol()+totaltotal+"</td><td class='quantity'></td><td class='close'></td></tr></table>";
	} else {
		r += "<tr class='total'><td class='number'></td><td colspan='3'>"+cartR+"So it would appear you're looking to purchase many things. Wonderful.<br /><br />Unfortunately, shipping rates become complicated as weight increases. At this point, we ask that you <a href='mailto:info@theoceancollective.com?subject=Pelagic Records: Overweight Order'>email us concerning your desired order</a> so we may accurately quote your shipping rate.";
		r += "</td><td class='close'></td></tr></table>";
		/*
		r += "<tr class='total'><td class='number'></td><td colspan='2'>"+cartR+"It looks like you're buying a whole lot of stuff (or a few heavy things)	... which is awesome. But once an order exceeds 2000g (which this one has), shipping gets a little complicated. No big deal though. If you fill out the form below, we will get back to you soon with a total inluding shipping. Once we receive that amount from you via paypal, we'll send your order lovingly off toward the sunset.<br/>";
		cartR = "";
		r += '<div class="inputs">Shipping Zone<br/><select name="zone" onchange="changeZone(this.value);"><option value="germany"'+(shipZone == "germany" ? " selected" : "")+'>Germany</option><option value="europe" '+(shipZone == "europe" ? " selected" : "")+'>Europe</option><option value="air" '+(shipZone == "air" ? " selected" : "")+'>World Air (5 - 7 days)</option><option value="surface" '+(shipZone == "surface" ? " selected" : "")+'>World Surface (1 - 6 weeks)</option></select><br/>';
		
		r += 'Your Name<div id="userNameTitle" class="hidden">Please provide a name (first and last preferred), as this is how we know which order is which.</div><input type="text" id="userName" class="full" name="userName"/><br/>';
		r += 'Contact Email<div id="userEmailTitle" class="hidden">Please provide a valid email through which we may contact you.</div><input type="text" id="userEmail" class="full" name="userEmail"/><br/>';
		r += 'Paypal Email<div id="paypalEmailTitle" class="hidden">Please provide a valid PayPal email address, even if it is the same as your contact email address.</div><input type="text" id="paypalEmail" class="full" name="paypalEmail"/><br/>';
		r += 'Street Address<div id="addressTitle" class="hidden">We require a valid street address for correct shipping.</div><input type="text" id="address" class="full" name="address"/><br/>';
		r += 'City, State/Province, Area Code, Country<div id="locationTitle" class="hidden">We require a valid Town, State/Province, Area Code, Country and any other defining information of you area for shipping.</div><input type="text" id="location" class="full" name="location"/><br/>';
		r += "<div style='text-align:right;'><input type='submit' value='Send Email'></div>";
		r += "</div></form></td><td class='close'></td></tr></table>";
		*/
	}
	//
	id("cart").innerHTML = r+cartR+"<div id='blockout' class='hiddenBlockout'></div><div id='box'></div>";
}
function lowerQuant(num){
	if(cart[num][5] == 1){
    	confirmRemove(num);
	} else {
		cart[num][5]--;
        opener.updateCart();
        writeCart();
	}
}
function raiseQuant(num){
	cart[num][5]++;
	opener.updateCart();
	writeCart();
}
function getPrice(euro, dollar){
	euro = String(euro);
    if(dollar){
        dollar = String(dollar);
    } else {
    	dollar = null;
    }
	if(c == "e"){
    	if(euro && euro != "null"){
        	return parseFloat(euro).toFixed(2);
        } else {
        	return (dollar/ratio).toFixed(2);
        }
    } else {
    	if(dollar && dollar != "null"){
        	return parseFloat(dollar).toFixed(2);
        } else {
        	return (euro*ratio).toFixed(2);
        }
    }
}
function verifyFields(){
	ready = true;
	if(id("userName").value == ""){
		id("userNameTitle").className = "error";
		ready = false;
	} else {
		id("userNameTitle").className = "hidden";
	}
	if(id("userEmail").value == "" || id("userEmail").value.indexOf("@") == -1 || id("userEmail").value.indexOf(".") == -1 || id("userEmail").value.length < 5){
		id("userEmailTitle").className = "error";
		ready = false;
	} else {
		id("userEmailTitle").className = "hidden";
	}
	if(id("paypalEmail").value == "" || id("paypalEmail").value.indexOf("@") == -1 || id("paypalEmail").value.indexOf(".") == -1 || id("paypalEmail").value.length < 5){
		id("paypalEmailTitle").className = "error";
		ready = false;
	} else {
		id("paypalEmailTitle").className = "hidden";
	}
	if(id("address").value == "" || id("address").value.length < 8){
		id("addressTitle").className = "error";
		ready = false;
	} else {
		id("addressTitle").className = "hidden";
	}
	if(id("location").value == "" || id("location").value.length < 8){
		id("locationTitle").className = "error";
		ready = false;
	} else {
		id("locationTitle").className = "hidden";
	}
	if(!ready){
		return false;
	}
	return true;
}
function checkout(){
	window.resizeTo(900, 700);
	window.moveTo((screen.width-Math.min(900, screen.availWidth))/2, (screen.height-Math.min(700, screen.availHeight))/2);
}
//
function id(eid){
	return document.getElementById(eid);
}
function getSymbol(){
	return c == "d" ? "$" : "&euro;";
}
function getRate(num){
	re = 3;
	if(num > 500) num += 150;
	if(num == 0){
		return {d:0, e:0, s:0, h:0};
	} else if(num < 500){
		re = 0;
	} else if(num < 1000){
		re = 1;
	} else if (num < 2000){
		re = 2;
	} else if (false){
		//return {d:num, e:num, s:num, custom:true};
	}
	return filterZipper(rates[shipZone][re]);
}
function filterZipper(obj){
	for(i=0; i<cart.length; i++){
		if(cart[i][1].indexOf("zipper") > -1){
			if(shipZone == "germany"){
				obj.e = Math.max(obj.e, 4.5);
				obj.d = Math.max(obj.d, 6.6);
			} else if(shipZone == "europe"){
				obj.e = Math.max(obj.e, 6.5);
				obj.d = Math.max(obj.d, 9.5);
			}
		}
	}
	return obj;
}
function getPosterShipping(num){
	//posterShipping = {germany:3.9, europe:8.6, surface:12.9, air:25.8};
	//posterShipping = {germany:1.5, europe:2.5, surface:4, air:4};
	posterShipping = {germany:6.9, europe:17, surface:35, air:40};
	if(num){
    	return posterShipping[shipZone];
    }
    return 0;
}
function changeZone(newZone){
	setCookie("shipZone", newZone);
	shipZone = newZone;
    if(shipZone == "germany" || shipZone == "europe"){
    	toggleRegistered(false);
    }
	writeCart();
}
//
function cookiesActive(){
	if(!document.cookie){
		document.cookie = "cookie=";
		if(!document.cookie){
			return false;
		}
	}
	return true;
}
function setCookie(name, val){
	if(document.cookie.length){
		cookie = document.cookie.split("||");
		var index;
		for(i=0; i<cookie.length; i++){
			if(cookie[i].indexOf(name+"//") > -1){
				index = i;
				break;
			}
		}
		if(index || index == 0){
			cook = cookie[index].split("//");
			cook[1] = val;
			cook = cook.join("//");
			cookie[index] = cook;
		} else {
			cookie.push(name+"//"+val);
		}
		document.cookie = cookie.join("||");
	} else {
		document.cookie = "cookie="+name+"//"+val+"||";
	}
}
function getCookie(name){
	if(document.cookie.length){
		cookie = document.cookie.split("||");
		for(i=0; i<cookie.length; i++){
			if(cookie[i].indexOf(name+"//") > -1){
				return cookie[i].split("//")[1];
			}
		}
	}
	return null;
}
function deleteCookie(name){
	if(document.cookie.length){
		cookie = document.cookie.split("||");
		for(i=0; i<cookie.length; i++){
			if(cookie[i].indexOf(name+"//")){
				cookie.splice(i, 1);
				document.cookie = cookie.join("||");
				break;
			}
		}
	}
}
function writeRegistered(){
    return "";
	if(shipZone == "surface" || shipZone == "air"){
        return ' - <a href="javascript:toggleRegistered();"'+(registered ? ' class="registered">Registered' : " >Non-Registered")+'</a> (<a href="javascript:alert(\'International shipments sometimes get lost. Selecting &quot;Registered&quot; for an additional '+getSymbol()+getPrice(2.5)+' (per package) will ensure that your items are properly delivered.\n\nThis option does not apply to poster tubes.\n\nWe will NOT take responsibility or reimburse you for lost packages unless you choose registered shipping!\');">?</a>)';
    }
}
function toggleRegistered(force){
	if(registered || force == false){
    	registered = false;
    } else {
    	registered = true;
    }
    setCookie('registered', registered);
    writeCart();
}
function openBox(message){
	o = "";
	for(i=1; i<arguments.length; i++){
    	o += "<a href='javascript:"+arguments[i+1]+";'>"+arguments[i]+"</a>";
        i++;
    }
	id('box').innerHTML = "<div class='holder'><div class='boxText'>"+message+"</div><div class='boxOptions'>"+o+"</div></div><div class='tl'></div><div class='tm'></div><div class='tr'></div><div class='bl'></div><div class='bm'></div><div class='br'></div><div class='m' id='m'></div>";
	id('box').className = 'visibleBox';
    area = getArea(id('box'));
    id('box').style.left = (w-(area.brx-area.tlx))/2+"px";
    id('box').style.top = (h-(area.bry-area.tly))/2+"px";
    id('m').style.height = (area.bry-area.tly)-35+"px";
    id('blockout').className = 'visibleBlockout';
    id('blockout').style.width = "100%";
    id('blockout').style.height = "100%";
	id('ship_zone').style.visible = 0;
}
function closeBox(){
	id('box').className = 'hiddenBox';
    id('blockout').className = 'hiddenBlockout';
    id('box').style.left = "0px";
    id('box').style.top = "0px";
	id('ship_zone').style.visible = 1;
}
function getPosition(obj) {
	var x = 0;
	var y = 0;
	if ( obj.offsetParent ) {
		x = obj.offsetLeft;
		y = obj.offsetTop;
		while ( obj = obj.offsetParent ) {
			x += obj.offsetLeft;
			y += obj.offsetTop;
		}
	}
	return {x:x, y:y};
}
function getArea(obj) {
	var position = getPosition(obj);
	var area = new Object();
	area.tlx = position.x;
	area.tly = position.y;
	area.brx = position.x + obj.offsetWidth;
	area.bry = position.y + obj.offsetHeight;
	return area;
}
function addTab(nTab){
	if(!id(nTab+"Tab")){
    	if(nTab == cType){
            id('tabs').innerHTML += "<span id='"+nTab+"Tab' class='tab'>"+nTab+"</span>";
        } else {
        	id('tabs').innerHTML += "<a id='"+nTab+"Tab' class='tab' href=\"javascript:setTab('"+nTab+"');\">"+nTab+"</a>"
        }
    }
}
function setTab(nTab){
	cType = nTab;
    setCookie("cType", cType);
    writeShop();
}
function changeCurrency(val){
	c = val;
	setCookie('c', val);
	if(store){
		writeShop();
		if(cartWindow){
			cartWindow.c = val;
			cartWindow.writeCart();
		}
	} else {
		opener.c = val;
		opener.writeShop();
		writeCart();
	}
	//if(cartWindow && !cartWindow.closed){ cartWindow.close(); };
}