
// Main shop functions
var ERROR_CODE = "999";

// display named item in the layer window
// the only function that should need updating
function showItem( name )
{
   var code = "";
   var desc = "";

   // default image names
   var img_names = new Array("front","back","","");
   var img_src = new Array("","","","");

	// default item options
   var option_names = new Array("Size", "Colour");

   var option_lists = new Array();
   option_lists[0] = new Array( "S", "M", "L", "XL", "Girls S", "Girls M", "Girls L", " Girls XL" );
   option_lists[1] = new Array( "Red", "White", "Light Blue", "Kelly Green", "Khaki", "Olive", "Grey" );

	// settings for each t-shirt, every item must be listed here
   // the name must match the showItem(<name>) in the html page
   if ( name == "cash" )
   {
      title = "Cash T-Shirt";
      img_src[0] = "t-shirt_cash_front.jpg";
      img_src[1] = "t-shirt_cash_back.jpg";
      code = "hog106";
      desc = "Here's a chance to get your very own Country And Western Revolutionary shirt ";
      desc += "done in the style of Che Guevara but featuring Mr.Johnny Cash, that sinner/songwriter from Tennessee. ";
      desc += "Comes with back print.";
      desc += "<br><br>";

		// if necessary additional images can be setup e.g.:
      //img_src[2] = "t-shirt_cash_back.jpg";
      //img_names[2] = "side";

		// also option lists can be changed for each shirt e.g.:
      //option_lists[0] = new Array( "S","L","XL" );
      //option_lists[1] = new Array( "Red","Light Grey" );
   }
   else if ( name == "blakey" )
   {
      title = "Blakey T-Shirt";
      img_src[0] = "t-shirt_blakey.jpg";
      code = "hog101";
      desc = "The world's worst Bus Inspector 'Blakey' depicted on this T-shirt in all his miserable glory.";
      desc += "Wear it and spend the rest of the day telling people that 'you hate them'.";
      desc += "Would work even better if their name was actually 'Butler'.";
      desc += "<br><br>";
   }
     else if ( name == "daley" )
   {
      title = "Daley T-Shirt";
      img_src[0] = "t-shirt_daley.jpg";
      code = "hog102";
      desc = "Forget Terry Venables-this man was the original ‘rogue trader’. A one man crusade hell-bent on keeping alight the flickering flame of Thatcher’s free enterprise days whilst making a few quid for himself and running up outrageous bar-tabs at the Winchester Club. ";
      
   }
   else if ( name == "gripper" )
   {
      title = "Gripper T-Shirt";
      img_src[0] = "t-shirt_gripper.jpg";
      code = "hog112";
      desc = "Flippin Eck its Gripper Stebson! Lover of all things ethnic, dinner money collector and master of the Chinese Burn. Rejoice in his fights with Roland, Pogo Patterson and Clare something or other and finally his expulsion at the hands of Bullet Baxter and a gang of vigilantes. ";
   }
   else if ( name == "mccluskey" )
   {
      title = "McCluskey T-Shirt";
      img_src[0] = "t-shirt_mccluskey.jpg";
      code = "hog190";
      desc = "Ruled Grange Hill with an iron fist, Bridget the Midget was usually harsh but fair, as long as you wore your uniform etc. Am I making myself clear Suzanne? ";
   }
   else if ( name == "sausage" )
   {
      title = "Sausage T-Shirt";
      img_src[0] = "t-shirt_sausage.jpg";
      code = "hog191";
      desc = "Iconic image of that sausage featured during the opening credits of Grange Hill. ";
   }
   else if ( name == "krays" )
   {
      title = "Krays T-Shirt";
      img_src[0] = "t-shirt_krays.jpg";
      code = "hog105";
      desc = "Relive the 60's again, when Reggie and Ronnie ruled and everything was made of wood and cost tuppence. They loved their mum, supported West Ham (probably) and were more East-End than any of the characters currently going through the motions in Albert Square. ";
   }
     else if ( name == "tyson" )
   {
      title = "Tyson T-Shirt";
      img_src[0] = "t-shirt_tyson.jpg";
      code = "hog108";
      desc = "“Iron Mike” former heavyweight boxing champion and social misfit, now nicely settled into a life of continued title fights to keep his jewellery collection together and his entourage and bouffanted Don King in the ligging lifestyle they've become accustomed to.  ";
   }
    else if ( name == "hawking" )
   {
      title = "Hawking T-Shirt";
      img_src[0] = "t-shirt_hawking.jpg";
      code = "hog107";
      desc = "The most intelligent man in the world, lothario and author of the infamous 'A Brief History in Crime' written after he was caught shoplifting Curlywurlys out of Woolworths under his tarten travel rug.Controversial relationship with his second(count 'em!) wife.  ";
   }
     else if ( name == "noel" )
   {
      title = "Noel T-Shirt";
      img_src[0] = "t-shirt_noel.jpg";
      code = "hog115";
      desc = "We've all seen the little beardy man on the telly giving out cash in that guessing game. We've marvelled at the symbols on his hand and wondered where he gets those shirts from. Now buy your very own little Che Noel!";
	  
   }
   else if ( name == "bronson" )
   {
      title = "Bronson T-Shirt";
      img_src[0] = "t-shirt_bronson.jpg";
      code = "hog109";
      desc = "YOU BOY!' was the familiar shout across the corridors of Grange Hill from this absurdly toupe-ed form master. Stern of face and short on hair, Danny Kendall's nemesis and Mcluskey's successor. Every school should have one! ";
   }
    else if ( name == "dot" )
   {
      title = "Dot Cotton T-Shirt";
      img_src[0] = "t-shirt_dot.jpg";
      code = "hog157";
      desc = "Queen of the Launderette, Mr Opidopalos's golden girl and mother to that comedy villain, Nick Cotton. Salt of the Earth as says so in the bible, Matthew 10 paragraph 2 or something ";
   }
   
    else if ( name == "sid" )
   {
      title = "Sid James T-Shirt";
      img_src[0] = "t-shirt_sid.jpg";
      code = "hog117";
      desc = "Purveyor of the dirtiest laugh this side of Nadia the he-she from Big Brother, Sid flew the flag for the 70's smutty toilet humour and bloke's skin-care before Oil of Olay saturated the market with fish-oil and we started watching classic American 'comedies' like 'Friends' ";
   }
    else if ( name == "lemmy" )
   {
      title = "Lemmy T-Shirt";
      img_src[0] = "t-shirt_lemmy.jpg";
      code = "hog158";
      desc = "Legendary Motorhead frontman and chord bass player, Sir Lemmy on a T-shirt ";
   }
   else if ( name == "jagger" )
   {
      title = "Mick Jagger T-Shirt";
      img_src[0] = "t-shirt_jagger.jpg";
      code = "hog159";
      desc = "the old Rolling Bones, at least 250 years combined age but still knocking out some quality pub rock.  ";
   }
      else if ( name == "benny" )
   {
      title = "Fred Scuttle";
      img_src[0] = "t-shirt_benny.jpg";
      code = "hog160";
      desc = "Benny Hill's alter ego, Fred Scuttle-failed entrepreneur and founder of 'Scuttlevision'- dedicated to programmes mostly about chasing semi-naked ladies around a field- quality  ";
   }
    else if ( name == "feck" )
	(
        title = "Father Jack T-Shirt";
      img_src[0] = "t-shirt_feck_front.jpg";
      img_src[1] = "t-shirt_feck_back.jpg";
      code = "hog161";
      desc = "Alcoholic priest famous for shouting out random words, mostly 'Feck!', Drink! or Arse! Sometimes even 'Girls!' ";
 
      
    
   }
       else if ( name == "eric" )
   {
      title = "Eric Morecambe T-Shirt";
      img_src[0] = "t-shirt_eric.jpg";
      code = "hog162";
      desc = "The funny half of the legendary duo! ";
   }
	else if ( name == "thatcher" )
   {
      title = "Thatcher T-Shirt";
      img_src[0] = "t-shirt_thatcher_front.jpg";
	  img_src[1] = "t-shirt_thatcher_back.jpg";
      code = "hog103";
      desc = "Maggie Thatcher milk snatcher, mad as a hedge leader of our country during the glory years '79 to '91. Who can forget Poll Tax, Miner’s strikes, a nation of bad teeth and mullets. Comes with the old bag’s ugly mug on the front and 'Striker 84' on the back.  ";
   }
      else if ( name == "trisha" )
   {
      title = "Trisha T-Shirt";
      img_src[0] = "t-shirt_trisha_front.jpg";
	  img_src[1] = "t-shirt_trisha_back.jpg";
      code = "hog116";
      desc = "The undisputed Queen of Council House telly who fronts a show you can only watch in sheer horror as another load of Estate alcoholics, mullets, thugs and teenage mums in Argos gold are paraded before you in the name of daytime entertainment. It's all about the baby!  ";
   }
	else if ( name == "ron" )
   {
      title = "Ron Jeremy Shirt";
      img_src[0] = "t-shirt_ron_front.jpg";
	  img_src[1] = "t-shirt_ron_back.jpg";
      code = "hog100";
      desc = "We've all seen 'the Hedgehog' sweating away on the telly for the sake of his art, now you can celebrate his 'acting' achievements by wearing this highly original T-shirt featuring Ron's fat face on the front and his legendary number 9 3/4 inches on the back.  ";
   }
   else if ( name == "saddam" )
   {
      title = "Saddam T-Shirt";
      img_src[0] = "t-shirt_saddam_front.jpg";
      img_src[1] = "t-shirt_saddam_back.jpg"; 	  
      code = "hog104";
      desc = " Bearded tramp-like loser looking like he's 6 litres of 8% cider in on a session and sitting in his own pissed stained trousers. This shirt gives you his current position in Iraq's war victory league.";
      desc += "<br><br>";
	}
         else if ( name == "zammonew" )
   {
      title = "Zammo T-Shirt";
      img_src[0] = "t-shirt_zammonew.jpg";
	  
      code = "hog110";
      desc = "Zammo, often seen licking toilet floors or selling his mum's furniture to buy smack,  now available on this T-shirt. Despite his failings he managed to hold on to a cracking looking girlfriend and even get a song into the charts, the classic 'Just Say No'.  ";
   }
	        else if ( name == "tucker" )
   {
      title = "Tucker's Luck ";
      img_src[0] = "t-shirt_tucker.jpg";
	  
      code = "hog111";
      desc = "Tucker(pre-HIV) with is fat mate and young Benny Green were deemed popular enough to warrant their own series. Mostly involved in dodgy scams and avoiding the local thug, 'Passmore'. Haircuts styled by mum's fruitbowl.  ";
   }
	 else if ( name == "roland" )
   {
      title = "Roland T-Shirt";
      img_src[0] = "t-shirt_roland_front.jpg";
	  img_src[1] = "t-shirt_roland_back.jpg";
      code = "hog113";
      desc = "Fat lad, lover of chips, not keeping hold of his dinner money and being asked if 'he wanted any help' by that girl. National Health glasses and a fat dad too. 'Why do you eat so much Ro-LAND?' ";
   }
      else if ( name == "kendall" )
   {
      title = "Kendall T-Shirt";
      img_src[0] = "t-shirt_kendall.jpg";
	  
      code = "hog114";
      desc = "Tortured, mostly mute,friendless anti-hero and sprayer of 'right-on' graffiti on his Speaking Wall-used to shuffle about school, mostly towards the exit doors. Constantly whinge-ing and died nicking Bronson's car after being harrassed by the 'man'.  ";
   }
     else if ( name == "filth" )
   {
      title = "Filth T-Shirt";
      img_src[0] = "t-shirt_filth.jpg";
	  
      code = "hog118";
      desc = "Show your love and respect for your local constabulary by wearing this shirt out on a friday and then when the riot kicks off outside the kebab shop after the pubs have turfed out and no-one's pulled, offer to give them a hand. They'll thank you I'm sure";
   option_lists[1] = new Array( "Black","White" );
   }
       else if ( name == "howerd" )
   {
      title = "Frankie Howerd ";
      img_src[0] = "t-shirt_howerd.jpg";
	  
      code = "hog121";
      desc = "King of the Innuendo and star of many a Carry-On film and Up Pompeii, Frankie Howerd's withering looks and trademark stammering were all the rage in the day. Now bastardised into a Frankie Goes to Hollywood style shirt!  ";
   
   }
   else if ( name == "bush" )
   {
      title = "Bush T-Shirt";
      img_src[0] = "t-shirt_bush.jpg";
	  
      code = "hog120";
      desc = "US president, brought in to finish his daddy's job off in the Middle East whilst still getting a round of golf in at the weekend. Everyone knows he's as dumb as a stone but he still got re-elected. Still never mind, he's not dangerous!   ";
   }
            else if ( name == "bruceforsyth" )
   {
      title = "Brucey T-Shirt";
      img_src[0] = "t-shirt_bruceforsyth.jpg";
	  
      code = "hog122";
      desc = "Brucey, been in the business for nigh on 80 years, several wives, gameshows and celebrity golf tournaments under his chin. Come on down my son, the price is right! ";
   }
                    else if ( name == "hattie" )
   {
      title = "Hattie T-Shirt";
      img_src[0] = "t-shirt_hattie.jpg";
	  
      code = "hog123";
      desc = "Ooh Matron! Larger than life and with a lovely personality I expect character from the Carry On films. Never seen without either a bedpan or a large syringe for pricking boils etc   ";
   }
                   else if ( name == "doherty" )
   {
      title = "Pete Doherty Shirt";
      img_src[0] = "t-shirt_doherty.jpg";
	  
      code = "hog124";
      desc = "Got it all this bloke, supermodel girlfriend, major substance habit and never far from the tabloids. What more could you want? A bird with bigger tits perhaps?  ";
   }
                else if ( name == "apeman" )
   {
      title = "ape-man T-Shirt";
      img_src[0] = "t-shirt_apeman.jpg";
	  
      code = "hog125";
      desc = "Planet of the Apes style chimp action. Basically a monkey with a hat on but he looks cool as you like.   ";
   }
                 else if ( name == "chefc" )
   {
      title = "Che FC T-Shirt";
      img_src[0] = "t-shirt_chefc.jpg";
	  
      code = "hog126";
      desc = "The ultimate symbol for freedom and fried chicken lovers everywhere, Che FC represents all that's great in greasy food establishments across the free west...oh yeah and Mao Tse Tung once said 'Change must come through a chicken in a bun' ..He really did. ";
  option_lists[1] = new Array( "White","Grey","Light Blue" );

  
   }
               else if ( name == "fonz" )
   {
      title = "Fonz T-Shirt";
      img_src[0] = "t-shirt_fonz.jpg";
	  
      code = "hog127";
      desc = "The original 'King Of Cool'- that's if you count being a middle aged dwarf dressed in a tight leather jacket hanging about with a bunch of college kids cool. I remember I used to and still attempt to fire up the local juke box by punching it rather than put any money in. ";
   }
               else if ( name == "keegan" )
   {
      title = "Keegan T-Shirt";
      img_src[0] = "t-shirt_keegan.jpg";
	  
      code = "hog128";
      desc = "Relive the glorious age of bubble perms and Brut 33 by donning this T-shirt featuring the high-barneted Kevin Keegan- judging by his managerial qualities he looks like he's walked out of the hairdressers when the job's only half finished. Unfortunately does not come with baseball bat. ";
	  

   }
              else if ( name == "fredwest" )
   {
      title = "Fred West T-Shirt";
      img_src[0] = "t-shirt_fredwest_front.jpg";
	  img_src[1] = "t-shirt_fredwest_back.jpg";
	  
      code = "hog129";
      desc = "Notorius serial killer Fred West seen here with his Christmas jumper on. Comes with in-appropriate back print ";
	  

   }
      else if ( name == "gervais" )
   {
      title = "Ricky Chevais T-Shirt";
      img_src[0] = "t-shirt_gervais.jpg";
      code = "hog130";
      desc = "Your very own Ricky Gervais in classic pose during his political period. Notice the lack of wheelchair gags. Fact.  ";
      
   }
   else if ( name == "citizen" )
   {
      title = "Citizen Smith Tee";
      img_src[0] = "t-shirt_citizen_front.jpg";
	  img_src[1] = "t-shirt_citizen_back.jpg";
      code = "hog131";
      desc = "Wolfie Smith, proud leader of the Tooting Popular front and nigh on son-in-law to that batty old bird from Eastenders, Nana Moon. Relive the heady days of London's finest revolutionaries and their fight for the cause- that'll be not working then and avoiding the local gangsters. ";
   }
      else if ( name == "posh" )
   {
      title = "Posh Spice";
      img_src[0] = "t-shirt_posh.jpg";
      code = "hog132";
      desc = "She's tried singing, dancing and being a footballer's wife so far, now it's time to unleash her mug on a t-shirt. You won't find these beauties anywhere else, well not yet anyway, so grab your chance to liven up the pub and pull in clubs or singles night at the ASDA on a Friday.    ";
      
   }
       else if ( name == "beckham" )
   {
      title = "Beckham";
      img_src[0] = "t-shirt_beckham.jpg";
      code = "hog133";
      desc = "Used to be good at football, well taking free kicks, now he's just a celebrity parasite with a whiney voice. Never forgiven for that penalty kick in Portugal or wearing a sarong. Now involved in shagging as many sour-faced hangers-on as possible so give the lad credit where it's due.    ";
      
   }
   	  else if ( name == "rafa" )
   {
      title = "Rafa Benitez";
      img_src[0] = "t-shirt_rafa.jpg";
	  
      code = "hog134";
      desc = "Rafa the Gaffa who managed to steer Liverpool through as winners of the Champion's League. Who's now questioning his managerial ability even after he'd included Harry Kewell in the starting line-up and allowed Cisse to show off his new barnet with not even a smirk.  ";
   }
    	  else if ( name == "jose" )
   {
      title = "Jose Mourinho";
      img_src[0] = "t-shirt_jose.jpg";
	  
      code = "hog136";
      desc = "It's the shirt they all wanted!!-exclusively designed in the style of Cuban revolutionary Che Guevara. We ask will he ever take that coat off?  Will the KGB want their money back? Is John Terry secretly growing a mullet? Who knows? You decide!";
 
  
   }
   	  else if ( name == "geldof" )
   {
      title = "Bob Geldof";
      img_src[0] = "t-shirt_geldof.jpg";
	  
      code = "hog137";
      desc = "Your very own Sir Bob Geldof depicted here on a special Live 8 Tribute T-shirt. Some people may call it 'Making Poverty Profit', I like to think it's more like keeping you lot warm in quality gear whilst you're queuing up giving money to charity and that";
 
  
   }
     else if ( name == "biggs" )
   {
      title = "Ronnie Biggs";
      img_src[0] = "t-shirt_biggs.jpg";
	  
      code = "hog138";
      desc = "*Ronnie Biggs was doing time until he done a bunk, now he says he's seen the light and sold his soul to punk* So sang the Sex Pistols and they may have had a point concerning this particular bloke. Surely should be released now considering his poor health.  ";
   }
      else if ( name == "kyle" )
   {
      title = "Jeremy Kyle";
      img_src[0] = "t-shirt_kyle.jpg";
	  
      code = "hog139";
      desc = "The orchestrator for the worst kind of genetic screw-ups to ever grace our screens. From gap-toothed hooligans to greasy comb-over wifebeaters this man will provide a TV platform for them to grunt through their excuses whilst he offers random advice  ";
   }
      else if ( name == "manson" )
   {
      title = "Charles Manson";
      img_src[0] = "t-shirt_manson.jpg";
	  
      code = "hog140";
      desc = "Cult leader and good ol'Christian boy, Charlie Manson seen here before the tattooist went to work on his head with a compass and some Indian ink giving him the swastika effect.     ";
   }
        else if ( name == "swamptrash" )
   {
      title = "Swamptrash";
      img_src[0] = "t-shirt_swamptrash.jpg";
	  
      code = "hog141";
      desc = "Scottish legends specialising in cajun/hoedown music in the early 90's, now currently doing the business as Shooglenifty on the festival circuit with their unique brand of acid-croft tunes.    ";
   }
        else if ( name == "silly" )
   {
      title = "Silly Walks";
      img_src[0] = "t-shirt_silly.jpg";
	  
      code = "hog142";
      desc = "Monty Python's Ministry of Silly Walks featuring the impossibly lanky John Cleese in all his goose-steeping glory.    ";
   }
           else if ( name == "hardape" )
   {
      title = "Galon";
      img_src[0] = "t-shirt_hardape.jpg";
	  
      code = "hog143";
      desc = "Fear-inducing image of 'Galon' from the Planet of the Apes- at least I think it's him, it might be Orca, or was that a killer whale? Who knows? what I do know though is that there's always room on your back for one more monkey! ";
   }
           else if ( name == "yank" )
   {
      title = "Yanks Overhead";
      img_src[0] = "t-shirt_yank.jpg";
	  
      code = "hog144";
      desc = "Banksy's tribute to the success rate of the American Forces taking care of our boys in the Gulf. By taking care of...well you know what I mean. ";
   }
   
             else if ( name == "graffiti" )
   {
      title = "Keep it Real";
      img_src[0] = "t-shirt_graffiti.jpg";
	  
      code = "hog145";
      desc = "Classic image found sprayed onto my Mum's garden wall in Stepney. Yep, she's still keeping it real or so she tells me. ";
   }
             else if ( name == "albert" )
   {
      title = "Uncle Albert";
      img_src[0] = "t-shirt_albert.jpg";
	  
      code = "hog163";
      desc = "Legendary Only Fools and Horses character and Naval Ambassador your very own Buster Merryfield. ";
   }
            else if ( name == "getout" )
   {
      title = "Get Out While You Can";
      img_src[0] = "t-shirt_keepitreal.jpg";
	  
      code = "hog146";
      desc = "Classic Banksy rat with appropriate signage ";
   }
           else if ( name == "copper" )
   {
      title = "Rude Copper";
      img_src[0] = "t-shirt_copper.jpg";
	  
      code = "hog147";
      desc = "It's because he loves you. The caring side of community policing. ";
   }
             else if ( name == "heavy" )
   {
      title = "Heavy Weaponry";
      img_src[0] = "t-shirt_heavy.jpg";
	  
      code = "hog148";
      desc = "Heavy load featuring an elephant and a missile. ";
   }
                else if ( name == "spencer" )
   {
      title = "Frank Spencer";
      img_src[0] = "t-shirt_spencer.jpg";
	  
      code = "hog149";
      desc = "Frank Spencer, bumbling idiot and lothario, seen here in his special Che-style beret. ";
   }
              else if ( name == "dirtyharry" )
   {
      title = "Dirty Harry";
      img_src[0] = "t-shirt_dirtyharry.jpg";
	  
      code = "hog150";
      desc = "Clint Eastwood with a bloody big gun. ";
   }
               else if ( name == "pat" )
   {
      title = "Pat Butcher";
      img_src[0] = "t-shirt_pat.jpg";
	  
      code = "hog151";
      desc = "Paaat! look what you done to me. Eastenders' sex siren, always seen in huge earrings and a bit of leopardskin for the boys ";
   }
              else if ( name == "shane" )
   {
      title = "Shane Macgowan";
      img_src[0] = "t-shirt_shane.jpg";
	  
      code = "hog152";
      desc = "Che Macgowan, toothless legend, champion Dry Martini drinker and writer of some of the best song lyrics known to man. Still doing the business on stage with the Pogues and the Popes ";
   }
          else if ( name == "boss" )
   {
      title = "Boss Hogg";
      img_src[0] = "t-shirt_boss.jpg";
	  
      code = "hog153";
      desc = "Ruled Hazzard County with a chubby fist-never without his white suit, white stetson and greasy chicken. Loved locking up those Duke boys and counting his ill-gotten gains. ";
   }
             else if ( name == "morrissey" )
   {
      title = "Morrissey";
      img_src[0] = "t-shirt_morrissey.jpg";
	  
      code = "hog154";
      desc = "The miserable legend that is Morrissey. ";
   }
             else if ( name == "carroll" )
   {
      title = "Michael Carroll";
      img_src[0] = "t-shirt_carroll.jpg";
	  
      code = "hog155";
      desc = "King of the Chavs, 9 million odd quid in the bank from his Lottery win so why not spend it all on Stella, banger racing and chunky gold. I know I would. An inspiration to us all. ";
   }
                else if ( name == "barker" )
   {
      title = "Ronnie Barker";
      img_src[0] = "t-shirt_barker.jpg";
	  
      code = "hog156";
      desc = "Norman Stanley Fletcher, inmate of HM Slade Prison and comedy genius.   ";
   }
             else if ( name == "jesus" )
   {
      title = "jesus with guns";
      img_src[0] = "t-shirt_jesus.jpg";
	  
      code = "hog164";
      desc = "What gun would Jesus use? Yes indeed. I'd take the Kalashnikov personally.   ";
   }
              else if ( name == "lenny" )
   {
      title = "Lenny Mclean-guvnor";
      img_src[0] = "t-shirt_lenny.jpg";
	  
      code = "hog165";
      desc = "Prize fighting hardnut, door enforcer and thespian-the late great Lenny Mclean.   ";
   }
              else if ( name == "max" )
   {
      title = "Mad Max-road warrior";
      img_src[0] = "t-shirt_max.jpg";
	  
      code = "hog166";
      desc = "Mad Max seen here taking his dog for a walk on that long lonely road to the apocalypse.   ";
   }
                else if ( name == "kurt" )
   {
      title = "Kurt Cobain";
      img_src[0] = "t-shirt_kurt.jpg";
	  
      code = "hog167";
      desc = "Nirvana front man depicted in classic revolutionary style.   ";
   }
               else if ( name == "shameless" )
   {
      title = "Frank Gallagher";
      img_src[0] = "t-shirt_shameless.jpg";
	  
      code = "hog168";
      desc = "Straight outta Chatsworth, the alcoholic, work-shy lothario and head of his sprawling family brought to you in a Jesus Christ style.   ";
   }
              else if ( name == "ugly" )
   {
      title = "Ugly Betty";
      img_src[0] = "t-shirt_ugly.jpg";
	  
      code = "hog169";
      desc = "Bushy eyebrowed babe with metal teeth and your nan's glasses   ";
   }
              else if ( name == "strummer" )
   {
      title = "Joe Strummer";
      img_src[0] = "t-shirt_strummer.jpg";
	  
      code = "hog170";
      desc = "The Clash main man and people's champion.   ";
   }
              else if ( name == "irwin" )
   {
      title = "Steve Irwin";
      img_src[0] = "t-shirt_irwin.jpg";
	  
      code = "hog171";
      desc = "Steve Irwin tribute tot he great man. Crikey!   ";
   }
             else if ( name == "capone" )
   {
      title = "Al Capone-gangster shit";
      img_src[0] = "t-shirt_capone.jpg";
	  
      code = "hog172";
      desc = "Al Capone -gave his name to one of the best Ska tracks ever!   ";
   }
         else if ( name == "royle" )
   {
      title = "Jim Royle";
      img_src[0] = "t-shirt_royle.jpg";
	  
      code = "hog173";
      desc = "Armchair bound, remote-control lovin, banjo playin', tea drinkin' layabout and Britain's favourite TV critic.   ";
   }
     else if ( name == "marty" )
   {
      title = "Marty Feldman";
      img_src[0] = "t-shirt_marty.jpg";
	  
      code = "hog174";
      desc = "The late comedy genius Marty Feldman in all his glory on a T-shirt and he could be on your back within days...   ";
   }
      else if ( name == "keef" )
   {
      title = "Keef Richards";
      img_src[0] = "t-shirt_keef.jpg";
	  
      code = "hog175";
      desc = "at least 50 years playing rock and roll and on the piss, and he still looks the business!   ";
   }
    else if ( name == "knoxville" )
   {
      title = "Johnny Knoxville";
      img_src[0] = "t-shirt_knoxville.jpg";
	  
      code = "hog176";
      desc = "after years of self abuse he's now taken up film roles playing 'special' people   ";
   }
       else if ( name == "rocky" )
   {
      title = "Rocky Balboa";
      img_src[0] = "t-shirt_rocky.jpg";
	  
      code = "hog177";
      desc = "I've followed his career since 'The Italian Stallion' and he's never failed to impress me with his silky acting skills and sparkling dialogue.   ";
   }
      else if ( name == "rotten" )
   {
      title = "Johnny Rotten";
      img_src[0] = "t-shirt_rotten.jpg";
	  
      code = "hog178";
      desc = "All spitting-all dancing legend from the glory days of punk. Now found fronting nature programmes on the telly and getting friendly with ostriches!     ";
   }
     else if ( name == "beadle" )
   {
      title = "Jeremy Beadle";
      img_src[0] = "t-shirt_beadle.jpg";
	  
      code = "hog179";
      desc = "Give a big hand to the late great prankster Sir. Jeremy Beadle. The no. 1 in Eighties entertainment.    ";
   }
     else if ( name == "victor" )
   {
      title = "Victor Meldrew";
      img_src[0] = "t-shirt_victor.jpg";
	  
      code = "hog180";
      desc = "Miserable old git Victor Meldrew.. nope, I can't believe it either!     ";
   }
    else if ( name == "britney" )
   {
      title = "Britney Spears";
      img_src[0] = "t-shirt_britney.jpg";
	  
      code = "hog181";
      desc = "Tabloid sensation Britney Spears. I'm apparently 4th on the list to marry her after that paparazzi bloke she's currently shacked up with has had his couple of weeks on board.     ";
   }
    else if ( name == "randy" )
   {
      title = "Randy Hickey";
      img_src[0] = "t-shirt_randy.jpg";
	  
      code = "hog182";
      desc = "Randy, the younger and more fragile member of the Hickey family just doin' what's right.    ";
   }
       else if ( name == "earl" )
   {
      title = "Earl Hickey";
      img_src[0] = "t-shirt_earl.jpg";
	  
      code = "hog183";
      desc = "Earl Hickey- he's just trying to do the right thing..it's karma man!    ";
   }
      else if ( name == "panesar" )
   {
      title = "Monty Panesar";
      img_src[0] = "t-shirt_panesar.jpg";
	  
      code = "hog184";
      desc = "The legend that is Monty Panesar, England's spin bowler extraordinaire...er...and fielder.     ";
   }
    else if ( name == "hatton" )
   {
      title = "Ricky Hatton";
      img_src[0] = "t-shirt_hatton.jpg";
	  
      code = "hog185";
      desc = "Ladies and Gentleman, I give you Ricky 'The Hitman' Hatton light welterweight champion of the world, 44 fights, 43 wins, 31 by knockout- his only recent defeat was taking on Mayweather and the referee";

   
   }
       else if ( name == "sweep" )
   {
      title = "Che Sweep";
      img_src[0] = "t-shirt_sweep.jpg";
	  
      code = "hog186";
      desc = "No, I can't believe it either, Sweep that annoying little puppet from the telly on a T-shirt in a Che Guevara style. Often seen fighting Sooty for Sue's affection while trying to shake off Matthew Corbett's hand from out of his backside.";
   }
         else if ( name == "sybil" )
   {
      title = "Sybil Fawlty";
      img_src[0] = "t-shirt_sybil.jpg";
	  
      code = "hog187";
      desc = "Oh Audrey...I know.....oh, I know......you're too good for him, you really are. He doesn't deserve you, he really doesn't. ";
   }
     else if ( name == "basil" )
   {
      title = "Basil Fawlty";
      img_src[0] = "t-shirt_basil.jpg";
	  
      code = "hog188";
      desc = "Torquay's favourite son, the one and only Basil Fawlty.       ";
   }
     else if ( name == "gene" )
   {
      title = "Gene Hunt";
      img_src[0] = "t-shirt_gene.jpg";
	  
      code = "hog189";
      desc = "Not afraid to call a spade a spade and stick the boot in where necessary, he is the original plod with attitude. Gene Hunt. Fire up the Quattro.       ";
   }
   
   
		  else if ( name == "pikey" )
   {
      title = "Pikey T-Shirt";
      img_src[0] = "t-shirt_pikey.jpg";
	  
      code = "hog119";
      desc = "Tell those nice Oirish people what you really think of them and their clothes pegs, shoddy tarmac and empty gas bottles. Watch them churn up local school playing fields with earth movers, move in on mass, leave a trail of rubbish & dogshite..and then go and sign on ";
   }
   else
   {
      // error item not found
       title = "Error";
       img_src[0] = "t-shirt_missing.jpg";
       code = ERROR_CODE;
       desc = "An error has occurred, please contact support@hogbitch.co.uk for assistance.";
   }

   var content = buildContent(title,code,desc,img_names,img_src,option_names,option_lists);
   var l1 = getRefToDiv( "MainWindow", document );
   setContent( l1, content );
}

// runs when pages loads
// lights up category ( for category pages )
function setCategory( doc )
{
   // category page names and images must be the same as these:
	var categories = new Array("school","ron","political","comedy");

   for ( var i = 0; i < categories.length; i++ )
   {
	   if ( document.location.href.indexOf(categories[i]) != -1 )
	   {
	      setImage(categories[i],"cat_" + categories[i] + "_on.gif");
	   }
   }
}

// create the HTML code to display in the info pane
function buildContent( name, code, desc, img_names, img_src, option_names, option_lists )
{
   var i = 0;
   var len = 0;
   var content = "";

   content += '<table bgcolor="#999" width="480" cellpadding="0" cellspacing="0">';
   content += '<tr>';
   content += '<td bgcolor="#ffffff" width="250" valign="middle" align="center">';
   content += '<div id="imageLayer" align="center" style="border:0px solid black; background-color:#fff;">\n\n';

   // how many images are set?
   for ( len = 0; len < img_src.length; len++ )
   {
      if ( img_src[len] == "" )
      {
         break;
      }
   }

	// add first image
   content += "<img name=\"shirt\" height=\"225\" width=\"250\" src=\"images/" + img_src[0] + "\"><br>";

   // are there any more images for this item?
   if ( len > 1 )
   {
      // show links to the other garments
      for ( i = 0; i < len; i++ )
      {
         content += "<a href=\"javascript:setImage('shirt','" + img_src[i] + "')\">" + img_names[i] + "</a>";
         if ( (i+1) < len )
         {
            content += " | ";
         }
      }
   }
   else
   {
      // no links below image
      content += "&nbsp;";
   }



   content += '</div>\n\n';
   content += '</td>';
   content += '<td bgcolor="#cccccc">';
   content += '<img src="images/spacer.gif" height="333" width="8">';
   content += '</td>';
   content += '<td bgcolor="#cccccc" valign="top" width="230">';
   content += '<div id="descLayer" style="margin-right:5px; border:0px solid black; background-color:#ccccCC;"">';

   content += '<span class="item-title">' + name + '</span><br><br>';
   content += '<span class="item-desc">' + desc + '</span>';

   content += '<br><br>';



   if ( code != ERROR_CODE )
   {
		content += '<div align="right">';

		content += '<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">';



		content += '<input type="hidden" name="add" value="1">';
		content += '<input type="hidden" name="cmd" value="_cart">';
		content += '<input type="hidden" name="business" value="jonbruce@gmx.net">';
		content += '<input type="hidden" name="item_name" value="' + name + '">';
		content += '<input type="hidden" name="item_number" value="' + code + '">';
		content += '<input type="hidden" name="amount" value="10.00">';
		content += '<input type="hidden" name="no_note" value="1">';
		content += '<input type="hidden" name="currency_code" value="GBP">';
		content += '<input type="hidden" name="lc" value="GB">';

		var submit = "";

   	//  create option pull downs
	   for ( j = 0; j < option_names.length; j++ )
	   {
	   	if ( option_names[j] != "" )
	      {
	         if ( submit != "" )
	         {
	            submit += ",";
	         }
            var o = option_names[j];

				content += '<input type="hidden" name="on' + j + '" value="' + o + '">';
				content += '<span class="option-title">' + o + '</span> ';
		   	content += '<select name="os' + j + '">';

			   for ( i = 0; i < option_lists[j].length; i++ )
			   {
	            if ( option_lists[j][i] != "" )
	            {
			      	content += '<option value="' + option_lists[j][i] + '">' + option_lists[j][i] + '</option>';
	            }
			   }
		   	content += '</select><br><img src="images/spacer.gif" height="5"><br>';
	      }
	      else
	      {
	         break;
	      }
	   }

		// order button
   	content += '<img src="images/spacer.gif" height="5"><br>';
		content += '<input type="image" src="images/add.gif" border="0" name="submit" alt="Make payments with PayPal">';
	   content += '<br><img src="images/spacer.gif" height="5"><br>';
      content += '<a href="info.html"><img src="images/cheque.gif"></a><br>';
		content += '</form></div>';
   }

   content += '</div>';



   content += '</td>';
   content += '</tr>';
   content += '</table>';
	//alert(content);
   return content;
}


