var katie = "<p>This young lady really loves night elves and requested she be transformed into one.</p><p>She uses her Betooned image as her avatar on social networks and forums. She has also had the image placed on a pillow and key-chain.</p><p>\"...I really like how everyone says my avatar is so gorgeous\".</p><p>This image would also look great printed on earrings, buttons and magnets to name just a few other gift ideas.</p> "

var sarah = "<p>\"I wanted to look like my WOW character...\"</p><p>This Betooned image was printed as a 36 inch x 24 inch poster.</p><p>\"...I love it, I can't wait to save up for another one\".</p><p>This image would look great on other fun gift ideas such as watches, necklaces, Italian charms, links and super-links.</p>"

var isiah = "<p>Wizards and magi were always his favorite so when Isiah gave us his photo already posed and ready for some wizard transformations, it was truly a pleasure.</p><p>\"...everyone asks me where I got my cool avatar so I tell them to go to Betooned\".</p><p>This image would look great on other fun gift ideas such as belt buckles, money clips, cuff-links, dog tags and wallets.</p>"

var zack = "<p>Zack wanted to have a warrior look so he posed with a sword which made it easier for us to imagine the rest of the composition. </p><p> The writing on his avatar says, \"Bushido, the way of the warrior\".</p><p>This image would look great on other fun gift ideas such as PSP case, USB flash drive, hat, long sleeve shirt, playing cards or travel mug.</p>"

var josh = "<p>This image was a birthday gift printed off as a 24 inch x 36 inch poster.</p><p>His girlfriend got two so she could have one as well!</p><p>This image would look great on other fun gift ideas such as hoodies, cigarette/money case, hip flask, flip top lighter, bottle opener and poker chips.</p>"

var selle = "<p>\"I love anything Celtic so I wanted a Celtic theme...\" </p><p>This image is being used as an avatar and has been placed on her now favorite coffee mug.</p><p>\"I love my toon, it turned out great!\"</p><p>This image would look great on other fun gift ideas such as on a handbag mirror, 3-ring key chain, jewelry case clock, nail clippers key chain, glasses cloth, key finder and jewelry bag.</p>"

var jawn = "<p>Look out Indiana Jones, Jawn is here!</p><p> This image was requested by his wife who thought he had an Indiana Jones look about him and wanted it for a t-shirt and coffee mug.</p><p>This image would look great on other fun gift ideas such as netbook case, placemat, necktie, digital camera bag, BBQ apron, golf ball marker hat clip and pen holder desk clock.</p>"

var sheba = "<p>This cute dog's image was placed on a t-shirt, clock and jigsaw puzzle for the kids.</p><p>What a fun way to immortalize your family pet. </p><p>This image would look great on other fun gift ideas such as a dog tag bone, handbag, door/bar mats, calendar, coin purse and an umbrella.</p>"

var bumpkin = "<p>This kitty is clearly king of his domain. </p><p>The image has been placed on a t-shirt and a fleece blanket.</p><p>This image would look great on other fun gift ideas such as bibs, infant creeper, bucket bags, mousepad, ornaments, tile coasters, rubber coasters, car window sign and travel alarm clocks.</p>"

var jessica = "<p>\"Everyone always said I was such an angel so...\"</p><p>She uses this as her avatar in forums and social networks. </p><p> \"I get a few laughs because I really am not an angel but everyone loves my avatar.\"</p><p>This image would look great on other fun gift ideas such as a cosmetic bag, photo books, mini makeup bag, tote bag  and pencil case.</p>"

var hollywood = "<p>Rusty said she wanted a bit of glam and with such beauty it wasn't hard to provide.</p><p>Her pose was so elegant which made it easy to work with.</p><p>Her beau had this image printed 8 inch x 10 inch for his desk at work.</p><p>This image would look great on other fun gift ideas such as handbag hanger, face towel, cushion case,  classic tote bag, ladies camisole and tank tops.</p>"

var rusty = "<p>Rusty uses this as her avatar on several social sites and forums.</p><p>As you can see in the smaller image you can have your name or anything else placed alongside the avatar.</p><p>This image would look great on other fun gift ideas such as ladies spaghetti tank, maternity t-shirt or a handbag.</p>"

var sarah_relaxed = "<p>This image was requested by this young ladies' mom to be printed and framed.</p><p>For other similar gift ideas such as this, you could consider having the image printed on ornaments, mousepads, coasters and even a teddy bear.</p> "

var katie_relaxed =  "<p>This image was requested by this young ladies' mom to be printed and framed.</p><p>For other similar gift ideas such as this, you could consider having the image printed on a porcelain plate, tote bag or face and hand towels.</p>"

var daydreaming = "<p>This image looks great printed on fun gift ideas such as a t-shirt, tank top, women's cap sleeve T, girly raglan and ringer t-shirt.</p> "

var txtDefault = "<p>You or someone you know is in need of a cool avatar or customized photo for use on forums, social networks, blog space or as a unique gift.</p><p>Chose a template or use your imagination, click on the order button, follow the simple instructions and in just a few days you'll have the coolest avatar or gift around.</p>"

jQuery(document).ready(function() {
 $(document).ready(function () {
   if (top.location != location) {
       top.location.href = document.location.href ;
   }
   });
      var gdiv = $("#gallerycontainer"),
      ul = $("#BsliderUl"),
      ulPadding = 15;
                  
      var divW = gdiv.width();

      gdiv.css({overflow: 'hidden'});

      var lastLi = ul.find('li:last-child');

      $("#rightside").click(function(){
            
            gdiv.scrollLeft(130);
      });
      $("#leftside").click(function(){
           gdiv.scrollLeft(-130);
      });
      gdiv.mousemove(function(e){
		
                var ulWidth = lastLi[0].offsetLeft + lastLi.outerWidth() + ulPadding;	
                var left = (e.pageX - gdiv.offset().left) * (ulWidth-divW) / divW;
                gdiv.scrollLeft(left);
      });
      $(".bthumb").click(function () { 
$("#fader").css("font-size", "10%").show().fadeTo("slow", 0.0);

            var newSrc = $(this).attr("src");
            var chSrc = 'bg_' + newSrc;
            $("#bview").attr("src", chSrc);  
             var rmFolder = newSrc.replace("bimages/","");
                 var newText = rmFolder.replace(".png","");

                  switch(newText)
                  {
                  case 'katie': $("#medbox2txt").html(katie); 
                                     break;
                  case 'sarah': $("#medbox2txt").html(sarah);
                                     break;
                  case 'isiah': $("#medbox2txt").html(isiah);
                                     break;
                  case 'zack': $("#medbox2txt").html(zack);
                                     break;
                  case 'josh': $("#medbox2txt").html(josh);
                                     break;
                  case 'selle': $("#medbox2txt").html(selle);
                                     break;
                  case 'jawn': $("#medbox2txt").html(jawn);
                                     break;
                  case 'sheba': $("#medbox2txt").html(sheba);
                                     break;
                  case 'bumpkin': $("#medbox2txt").html(bumpkin);
                                     break;
                  case 'jessica': $("#medbox2txt").html(jessica);
                                     break;
                  case 'hollywood': $("#medbox2txt").html(hollywood);
                                     break;
                  case 'rusty': $("#medbox2txt").html(rusty);
                                     break;
                  case 'sarah_relaxed': $("#medbox2txt").html(sarah_relaxed);
                                     break;
                  case 'katie_relaxed': $("#medbox2txt").html(katie_relaxed);
                                     break;
                  case 'daydreaming': $("#medbox2txt").html(daydreaming);
                                     break;
                  default:           $("#medbox2txt").html(txtDefault);
                                     break;
                  }
          $("#fader").css("font-size", "100%").show().fadeTo("slow", 1.0);  
                                
          
             });

      $(".bthumb").hover(function () {
            $(this).addClass("hilite");
      }, function () {
            $(this).removeClass("hilite");
                  
      });
                  
jQuery.preloadImages = function(){
  for(var i = 0; i<arguments.length; i++){
        jQuery("<img>").attr("src", arguments[i]);
  }
}


$.preloadImages("img/menu/home_selected_butt.png", "img/menu/home_hover_butt.png", "img/menu/home_butt.png", "img/menu/templates_butt.png", "img/menu/templates_hover_butt.png", "img/menu/templates_selected_butt.png", "img/menu/order_selected_butt.png", "img/menu/order_hover_butt.png", "img/menu/order_butt.png", "img/menu/about_selected_butt.png", "img/menu/about_hover_butt.png", "img/menu/about_butt.png", "img/menu/services_butt.png", "img/menu/services_hover_butt.png", "img/menu/services_selected_butt.png", "img/menu/contact_selected_butt.png", "img/menu/contact_hover_butt.png", "img/menu/contact_butt.png");

            
  });
        
 

