
var themes = new Array();
var tab1HTML = "", tab2HTML = "", tab3HTML = "", tab4HTML = "", tab5HTML = "";
var tab2_2_HTML = "";
var themesGuyHTML = "";
var themesGirlyHTML = "";
var themesKidsHTML = "";
var themesGamesHTML = "";
var themesMusicHTML = "";
var themesCarsHTML = "";
var themesLoveHTML = "";
var themesAnimalsHTML = "";
var themesSportsHTML = "";
var themesReligiousHTML = "";
var themesFoodHTML = "";
var themesFunnyHTML = "";
var themesGothicHTML = "";
var themesPlacesHTML = "";
var themesNatureHTML = "";
var themesCelebritiesHTML = "";
var themesBollywoodHTML = "";
var themesMoviesHTML = "";
var themesPatrioticHTML = "";
var themesMiscHTML = "";
var themesLogosHTML = "";
var themesTruebloodHTML = "";
var themesTwilightHTML = "";
var themesNickiminajHTML = "";
var themesLadygagaHTML = "";


function initThemes()
{
  var th = new Array();
  pushTheme(th, 'ferrari', 'Ferrari', '/images/theme/ferrari/ferrari_icon.jpg');
  pushTheme(th, 'matrix1', 'Matrix', '/images/theme/matrix/mm1_icon.jpg');

  pushTheme(th, 'lamborghini', 'Sports Car', '/images/theme/lamborghini/lamborghini_icon.jpg');
  pushTheme(th, 'lamborghini2', 'Dream Car', '/images/theme/lamborghini/lamborghini3_icon.jpg');
  pushTheme(th, 'peugeot', 'My Dream GF', '/images/theme/peugeot/peugeot_icon.jpg');

  pushTheme(th, 'kitty2', 'Sunny Kitty', '/images/theme/kitty2/kitty2_jr.jpg');
  pushTheme(th, 'kitty1', 'Hello Kitty', '/images/theme/kitty1/kitty1_jr.jpg');


  pushTheme(th, 'dexterwallpaper', 'Dexter The Best', '/images/theme/dexter/dexter_wallpaper_icon.jpg');
  pushTheme(th, 'dexter1', 'Dexter', '/images/theme/dexter/dexter__s_colors_icon.jpg');
  pushTheme(th, 'dexterwallpaper1', 'Dexter Wallpaper', '/images/theme/dexter/dexter_wallpaper1_icon.jpg');

  pushTheme(th, 'spongebob2', 'Sponge Bob Chasing Jellyfish', '/images/theme/spongebob/spongebob_chasing_jellyfish_icon.jpg');
  pushTheme(th, 'spongebob3', 'Sponge Bob & Logos', '/images/theme/spongebob/spongebob_logos_icon.jpg');

  pushTheme(th, 'trueblood1', 'True Blood Wallpaper', '/images/theme/trueblood/True-Blood-Wallpaper-true-blood_icon.jpg');
  pushTheme(th, 'trueblood', 'True Blood Mary Ann', '/images/theme/trueblood/True-Blood_icon.jpg');

  pushTheme(th, 'justinbieber4', 'Justin Bieber My World', '/images/theme/justinbieber/justin-bieber4_icon.jpg');
  pushTheme(th, 'justinbieber5', 'Justin Bieber B&W', '/images/theme/justinbieber/justin-bieber5_icon.jpg');

  pushTheme(th, 'justinbieber2', 'Justin Bieber in Cool Blue', '/images/theme/justinbieber/justin-bieber2_icon.jpg');

  pushTheme(th, 'nickiminaj2', 'Nicki Minaj Cool', '/images/theme/nickiminaj/nickiminaj2_icon.jpg');

  pushTheme(th, 'girly3', 'I Sexy', '/images/theme/girly/Girl_with_heart_icon.jpg');
  pushTheme(th, 'girly4', 'MyFashion', '/images/theme/girly/SweetStart_icon.jpg');
  pushTheme(th, 'i__10060', 'Princess Me', 'http://www.sleeksearch.com/udb/21/e6/da/c3/10060_icon.jpg');
  pushTheme(th, 'games2', 'My Games', '/images/theme/videogames/cgames_icon.jpg');
  pushTheme(th, 'i__10103', 'Love Ride', 'http://www.sleeksearch.com/udb/ef/77/46/c8/10103_icon.jpg');

  pushTheme(th, 'girlyflowers', 'Girls Rule', '/images/theme/kids/girlyflowers_icon.jpg');
  pushTheme(th, 'twilite', 'Twilight', '/images/theme/twilite/twilite_icon.jpg');
  pushTheme(th, 'butterfly', 'Love Butterfly', '/images/theme/butterfly/butterfly_icon.jpg');
  pushTheme(th, 'kids1', 'Disney Kids', '/images/theme/kids/disneybabies_icon.jpg');
  pushTheme(th, 'kids2', 'My Fav Hannah', '/images/theme/kids/hannahM1_icon.jpg');

  pushTheme(th, 'surprisekitty', 'Cute Kitty', '/images/theme/animals/surprisekitty_jr.jpg');
  pushTheme(th, 'home', 'Rain Home', '/images/theme/home/home_icon.jpg');

  pushTheme(th, 'twosheeps', 'Sheeps', '/images/theme/animals/twosheeps_icon.jpg');
  pushTheme(th, 'iphone', 'My iPhone', '/images/theme/iphone/iphone_icon.jpg');
  pushTheme(th, 'guygals5', 'Dream Love', '/images/theme/anime/love_icon.jpg');
  pushTheme(th, 'guygals1', 'Gucci Lady', '/images/theme/guysgals/gucci_icon.jpg');
  pushTheme(th, 'guygals2', 'Tender Love', '/images/theme/guysgals/love_party_icon.jpg');

  pushTheme(th, 'celebrities1', 'The King Of Pop', '/images/theme/celebrities/mj2_icon.jpg');
  pushTheme(th, 'mj', 'Michael Jackson', '/images/theme/wallpaper/ACTORS.SINGERS.SPORTS/MJ/mj_icon.jpg');
  pushTheme(th, 'mj1', 'Michael Jackson', '/images/theme/wallpaper/ACTORS.SINGERS.SPORTS/MJ/mj1_jr.jpg');
  pushTheme(th, 'music1', 'Bob Marley', '/images/theme/music/bobmarley_icon.jpg');
  pushTheme(th, 'music2', 'Music Guitar', '/images/theme/music/guitar2_icon.jpg');
  pushTheme(th, 'music3', 'I Love Home Music', '/images/theme/music/ilovemusic_icon.jpg');
  pushTheme(th, 'music4', 'Iron Maiden', '/images/theme/music/ironmaiden2_icon.jpg');
  pushTheme(th, 'matrix2', 'Matrix Reloaded', '/images/theme/matrix/mm2_icon.jpg');
  pushTheme(th, 'matrix_s', 'Matrix Static 3D', '/images/theme/matrix/mms_icon.jpg');


  pushTheme(th, 'buddha', 'The Buddha', '/images/theme/faith/buddha_icon.jpg');
  pushTheme(th, 'faith6', 'The Allah The Peace', '/images/theme/faith/mosque_icon.jpg');
  pushTheme(th, 'faith1', 'My Krishna', '/images/theme/faith/krishna4_icon.jpg');
  pushTheme(th, 'faith3', 'From Dark To Light', '/images/theme/faith/jesus4_icon.jpg');

  pushTheme(th, 'sports1', 'I Love Soccer', '/images/theme/sports/football1_icon.jpg');
  pushTheme(th, 'sports2', 'Just Do It', '/images/theme/sports/nikelogo_icon.jpg');
  pushTheme(th, 'sports3', 'Basketball Love', '/images/theme/sports/basketball_icon.jpg');
  pushTheme(th, 'bike1', 'Dark And Hot', '/images/theme/bikes/hd4_icon.jpg');

  pushTheme(th, 'dodge', 'Dodge', '/images/theme/dodge/dodge_icon.jpg');
  pushTheme(th, 'peugeot1', 'The Sleek And Sexy', '/images/theme/peugeot/peugeot6_icon.jpg');
  pushTheme(th, 'bike3', 'The Ultimate', '/images/theme/bikes/invader1_icon.jpg');
  pushTheme(th, 'peugeot3', 'Lets Race', '/images/theme/peugeot/peugeot4_icon.jpg');
  pushTheme(th, 'peugeot4', 'You Bet...', '/images/theme/peugeot/peugeot7_icon.jpg');
  pushTheme(th, 'porsche', 'Miss Autobahn', '/images/theme/cars/por2_icon.jpg');
  pushTheme(th, 'rollsroyace', 'Rolls Royace', '/images/theme/cars/rr_icon.jpg');


  pushTheme(th, 'guitar', 'Heaty Guitar', '/images/theme/music/burningguitar1_icon.jpg');
  pushTheme(th, 'funny', 'Guys Fun', '/images/theme/funny/BGE_icon.jpg');
  pushTheme(th, 'cutepuppy', 'Cute Puppy', '/images/theme/animals/cutepuppy4_jr.jpg');
  pushTheme(th, 'simple_plain', 'Rainbow', '/images/theme/simple_plain/rainbowleft_jr.jpg');
  pushTheme(th, 'toons', 'Toons', '/images/theme/kids/toons1_jr.jpg');
  pushTheme(th, 'catfun', 'Play Mood', '/images/theme/catfun/catfun_icon.jpg');
  pushTheme(th, 'manydogs', 'Innocent Dogs', '/images/theme/animals/manydogs_jr.jpg');
  pushTheme(th, 'wolf', 'Full Moon', '/images/theme/wolf/wolf_icon.jpg');
  pushTheme(th, 'eyes', 'The Beauty', '/images/theme/eyes/eyes_icon.jpg');
  pushTheme(th, 'soulmates', 'Soul Mates', '/images/theme/soulmates/soulmates_icon.jpg');
  pushTheme(th, 'abstract1', 'A Thought', '/images/theme/abstract1/abstract1_icon.jpg');
  pushTheme(th, 'abstract2', 'Bad', '/images/theme/abstract2/abstract2_icon.jpg');
  pushTheme(th, 'panda', 'Cute Panda', '/images/theme/animals/panda_jr.jpg');
  pushTheme(th, 'ladygaga', 'Lady Gaga', '/images/theme/music/ladygaga1_icon.jpg');
  pushTheme(th, 'tomcruise', 'Tom Cruise', '/images/theme/celebrities/tomcruise_icon.jpg');
  pushTheme(th, 'avril', 'Avril', '/images/theme/celebrities/avril_icon.jpg');
  pushTheme(th, 'angelina', 'Angelina', '/images/theme/celebrities/angelina_icon.jpg');
  pushTheme(th, 'beyonce', 'Beyonce', '/images/theme/celebrities/beyonce_icon.jpg');

  pushTheme(th, 'faith2', 'Little Krishna', '/images/theme/faith/krishna_icon.jpg');
  pushTheme(th, 'faith4', 'The Son Of God', '/images/theme/faith/jesus2_icon.jpg');
  pushTheme(th, 'faith5', 'Trust In Jesus', '/images/theme/faith/jesus1_icon.jpg');
  pushTheme(th, 'faith7', 'Guan Yin', '/images/theme/faith/Guan-Yin_icon.jpg');
  pushTheme(th, 'faith8', 'Dalai Lama', '/images/theme/faith/Dalai_lama_icon.jpg');

  pushTheme(th, 'funny1', 'How Cars Are Made', '/images/theme/cars/cars_made_icon.jpg');
  pushTheme(th, 'funny2', 'My Powerful Sword', '/images/theme/funny/dragon_icon.jpg');
  pushTheme(th, 'funny3', 'Forget The Dog', '/images/theme/funny/warningowner_icon.jpg');
  pushTheme(th, 'funny4', 'The Simple Truth', '/images/theme/funny/theSimpleTruth_icon.jpg');
  pushTheme(th, 'funny5', 'Warning', '/images/theme/funny/warning_icon.jpg');
  pushTheme(th, 'funny6', 'Insanity', '/images/theme/funny/phrase_icon.jpg');
  pushTheme(th, 'funny7', 'For Girls', '/images/theme/funny/usebrain_icon.jpg');
  pushTheme(th, 'funny8', 'Oh! My God', '/images/theme/anime/funny_icon.jpg');
  pushTheme(th, 'i__10080', 'Too Much', 'http://www.sleeksearch.com/udb/bf/65/f7/4d/10080_icon.jpg');
  pushTheme(th, 'dexterlightning', 'Dexter Lightining', '/images/theme/dexter/dexterlightning_icon.jpg');
  pushTheme(th, 'dextersmiley', 'Dexter Smiley', '/images/theme/dexter/dexter-smiley_icon.jpg');
  pushTheme(th, 'dexter2', 'Dexter The Serial Killer', '/images/theme/dexter/dexter-2_icon.jpg');
  pushTheme(th, 'nickiminaj1', 'Nicki Minaj', '/images/theme/nickiminaj/nickiminaj1_icon.jpg');

  themes = th;
}

function getGuyThemes()
{
  if(themesGuyHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'mj', 'Michael Jackson', '/images/theme/wallpaper/ACTORS.SINGERS.SPORTS/MJ/mj_icon.jpg');
    pushTheme(th, 'guitar', 'Heaty Guitar', '/images/theme/music/burningguitar1_icon.jpg');
    pushTheme(th, 'funny', 'Guys Fun', '/images/theme/funny/BGE_icon.jpg');
    pushTheme(th, 'matrix1', 'Matrix', '/images/theme/matrix/mm1_icon.jpg');
    pushTheme(th, 'guygals4', 'Tattoo', '/images/theme/guysgals/tattoo2_icon.jpg');
    pushTheme(th, 'manydogs', 'Innocent Dogs', '/images/theme/animals/manydogs_jr.jpg');
    pushTheme(th, 'iphone', 'My iPhone', '/images/theme/iphone/iphone_icon.jpg');
    pushTheme(th, 'guygals3', 'Playboy', '/images/theme/guysgals/playboy_icon.jpg');
    pushTheme(th, 'wolf', 'Full Moon', '/images/theme/wolf/wolf_icon.jpg');
    pushTheme(th, 'trueblood1', 'True Blood Wallpaper', '/images/theme/trueblood/True-Blood-Wallpaper-true-blood_icon.jpg');
    pushTheme(th, 'trueblood', 'True Blood Mary Ann', '/images/theme/trueblood/True-Blood_icon.jpg');
    pushTheme(th, 'trueblood2', 'True Blood Sam', '/images/theme/trueblood/wallpaper-sam_icon.jpg');
    pushTheme(th, 'trueblood3', 'True Blood Lafayette', '/images/theme/trueblood/wallpaper-lafayette_icon.jpg');
    pushTheme(th, 'trueblood4', 'True Blood Jessica', '/images/theme/trueblood/wallpaper-jessica_icon.jpg');
    pushTheme(th, 'nickiminaj1', 'Nicki Minaj', '/images/theme/nickiminaj/nickiminaj1_icon.jpg');
    pushTheme(th, 'nickiminaj2', 'Nicki Minaj Cool', '/images/theme/nickiminaj/nickiminaj2_icon.jpg');

    pushTheme(th, 'abstract2', 'Bad', '/images/theme/abstract2/abstract2_icon.jpg');
    pushTheme(th, 'ladygaga', 'Lady Gaga', '/images/theme/music/ladygaga1_jr.jpg');
    pushTheme(th, 'tomcruise', 'Tom Cruise', '/images/theme/celebrities/tomcruise_icon.jpg');
    pushTheme(th, 'avril', 'Avril', '/images/theme/celebrities/avril_icon.jpg');
    pushTheme(th, 'angelina', 'Angelina', '/images/theme/celebrities/angelina_icon.jpg');
    pushTheme(th, 'beyonce', 'Beyonce', '/images/theme/celebrities/beyonce_icon.jpg');
    pushTheme(th, 'games1', 'Pac Man', '/images/theme/videogames/Pac_Man_icon.jpg');
    pushTheme(th, 'games2', 'My Games', '/images/theme/videogames/cgames_icon.jpg');
    pushTheme(th, 'dexterwallpaper1', 'Dexter Wallpaper', '/images/theme/dexter/dexter_wallpaper1_icon.jpg');
    pushTheme(th, 'dexter1', 'Dexter', '/images/theme/dexter/dexter__s_colors_icon.jpg');
    pushTheme(th, 'dexterwallpaper', 'Dexter My Favorite', '/images/theme/dexter/dexter_wallpaper_icon.jpg');
    pushTheme(th, 'dexterlightning', 'Dexter Lightining', '/images/theme/dexter/dexterlightning_icon.jpg');
    pushTheme(th, 'dextersmiley', 'Dexter Smiley', '/images/theme/dexter/dexter-smiley_icon.jpg');
    pushTheme(th, 'dexter2', 'Dexter Serial Killer', '/images/theme/dexter/dexter-2_icon.jpg');
    themesGuyHTML = createRandomThemeDiv("Guy");
    for(i=0; i<th.length; ++i)
    {
      themesGuyHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesGuyHTML;
  displaySubThemes();
}

function getGirlyThemes()
{
  if(themesGirlyHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'girly3', 'I Sexy', '/images/theme/girly/Girl_with_heart_icon.jpg');
    pushTheme(th, 'girlyflowers', 'Girls Rule', '/images/theme/kids/girlyflowers_icon.jpg');
    pushTheme(th, 'girly4', 'MyFashion', '/images/theme/girly/SweetStart_icon.jpg');
    pushTheme(th, 'i__10060', 'Princess Me', 'http://www.sleeksearch.com/udb/21/e6/da/c3/10060_icon.jpg');
    pushTheme(th, 'girly5', 'I Dream', '/images/theme/girly/dream_icon.jpg');
    pushTheme(th, 'girly6', 'I Love Pink', '/images/theme/girly/GirlyPink_icon.jpg');
    pushTheme(th, 'girly2', 'I Flora', '/images/theme/girly/Fluffy-Flower_icon.jpg');
    pushTheme(th, 'girly1', 'Night Walk', '/images/theme/girly/walking_icon.jpg');
    pushTheme(th, 'twilite', 'Twilight', '/images/theme/twilite/twilite_icon.jpg');
    pushTheme(th, 'i__10103', 'Love Ride', 'http://www.sleeksearch.com/udb/ef/77/46/c8/10103_icon.jpg');
    pushTheme(th, 'butterfly', 'Love Butterfly', '/images/theme/butterfly/butterfly_icon.jpg');
    pushTheme(th, 'manydogs', 'Innocent Dogs', '/images/theme/animals/manydogs_jr.jpg');
    pushTheme(th, 'iphone', 'My iPhone', '/images/theme/iphone/iphone_icon.jpg');
    pushTheme(th, 'guygals5', 'Dream Love', '/images/theme/anime/love_icon.jpg');
    pushTheme(th, 'guygals1', 'Gucci Lady', '/images/theme/guysgals/gucci_icon.jpg');
    pushTheme(th, 'guygals2', 'Tender Love', '/images/theme/guysgals/love_party_icon.jpg');
    pushTheme(th, 'guygals3', 'Playboy', '/images/theme/guysgals/playboy_icon.jpg');
    pushTheme(th, 'kitty2', 'Sunny Kitty', '/images/theme/kitty2/kitty2_jr.jpg');
    pushTheme(th, 'kitty1', 'Hello Kitty', '/images/theme/kitty1/kitty1_jr.jpg');
    pushTheme(th, 'tomcruise', 'Tom Cruise', '/images/theme/celebrities/tomcruise_icon.jpg');
    pushTheme(th, 'angelina', 'Angelina', '/images/theme/celebrities/angelina_icon.jpg');
    pushTheme(th, 'trueblood1', 'True Blood Wallpaper', '/images/theme/trueblood/True-Blood-Wallpaper-true-blood_icon.jpg');
    pushTheme(th, 'trueblood', 'True Blood Mary Ann', '/images/theme/trueblood/True-Blood_icon.jpg');
    pushTheme(th, 'trueblood2', 'True Blood Sam', '/images/theme/trueblood/wallpaper-sam_icon.jpg');
    pushTheme(th, 'trueblood3', 'True Blood Lafayette', '/images/theme/trueblood/wallpaper-lafayette_icon.jpg');
    pushTheme(th, 'trueblood4', 'True Blood Jessica', '/images/theme/trueblood/wallpaper-jessica_icon.jpg');

    pushTheme(th, 'matrix1', 'Matrix', '/images/theme/matrix/mm1_icon.jpg');
    pushTheme(th, 'panda', 'Cute Panda', '/images/theme/animals/panda_jr.jpg');
    pushTheme(th, 'dexterwallpaper1', 'Dexter Wallpaper', '/images/theme/dexter/dexter_wallpaper1_icon.jpg');
    pushTheme(th, 'dexter1', 'Dexter', '/images/theme/dexter/dexter__s_colors_icon.jpg');

    themesGirlyHTML = createRandomThemeDiv("Girly");
    for(i=0; i<th.length; ++i)
    {
      themesGirlyHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesGirlyHTML;
  displaySubThemes();
}


function getKidsThemes()
{
  if(themesKidsHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'surprisekitty', 'Cute Kitty', '/images/theme/animals/surprisekitty_jr.jpg');
    pushTheme(th, 'kitty2', 'Sunny Kitty', '/images/theme/kitty2/kitty2_jr.jpg');
    pushTheme(th, 'spongebob1', 'Sponge Bob', '/images/theme/spongebob/sponge_bob_icon.jpg');
    pushTheme(th, 'spongebob2', 'Sponge Bob Chasing Jellyfish', '/images/theme/spongebob/spongebob_chasing_jellyfish_icon.jpg');
    pushTheme(th, 'spongebob3', 'Sponge Bob & Logos', '/images/theme/spongebob/spongebob_logos_icon.jpg');
    pushTheme(th, 'justinbieber1', 'Justin Bieber', '/images/theme/justinbieber/justin-bieber1_icon.jpg');
    pushTheme(th, 'justinbieber2', 'Justin Bieber in Cool Blue', '/images/theme/justinbieber/justin-bieber2_icon.jpg');
    pushTheme(th, 'justinbieber3', 'Justin Bieber Heart Goes Knock Knock', '/images/theme/justinbieber/justin-bieber3_icon.jpg');
    pushTheme(th, 'justinbieber4', 'Justin Bieber My World', '/images/theme/justinbieber/justin-bieber4_icon.jpg');
    pushTheme(th, 'justinbieber5', 'Justin Bieber Black & White', '/images/theme/justinbieber/justin-bieber5_icon.jpg');
    pushTheme(th, 'justinbieber6', 'Justin Bieber in Style', '/images/theme/justinbieber/justin-bieber6_icon.jpg');
    pushTheme(th, 'nickiminaj1', 'Nicki Minaj', '/images/theme/nickiminaj/nickiminaj1_icon.jpg');
    pushTheme(th, 'nickiminaj2', 'Nicki Minaj Cool', '/images/theme/nickiminaj/nickiminaj2_icon.jpg');

    pushTheme(th, 'kitty1', 'Hello Kitty', '/images/theme/kitty1/kitty1_jr.jpg');
    pushTheme(th, 'kids1', 'Disney Kids', '/images/theme/kids/disneybabies_icon.jpg');
    pushTheme(th, 'kids2', 'My Fav Hannah', '/images/theme/kids/hannahM1_icon.jpg');
    pushTheme(th, 'kids3', 'Bunny', '/images/theme/kids/bugsbunny_icon.jpg');
    pushTheme(th, 'twosheeps', 'Sheeps', '/images/theme/animals/twosheeps_icon.jpg');
    pushTheme(th, 'cutepuppy', 'Cute Puppy', '/images/theme/animals/cutepuppy4_jr.jpg');
    pushTheme(th, 'toons', 'Toons', '/images/theme/kids/toons1_jr.jpg');
    pushTheme(th, 'catfun', 'Play Mood', '/images/theme/catfun/catfun_icon.jpg');
    pushTheme(th, 'manydogs', 'Innocent Dogs', '/images/theme/animals/manydogs_jr.jpg');
    pushTheme(th, 'matrix1', 'Matrix', '/images/theme/matrix/mm1_icon.jpg');
    pushTheme(th, 'panda', 'Cute Panda', '/images/theme/animals/panda_jr.jpg');
    pushTheme(th, 'home', 'Rain Home', '/images/theme/home/home_icon.jpg');
    pushTheme(th, 'games1', 'Pac Man', '/images/theme/videogames/Pac_Man_icon.jpg');
    pushTheme(th, 'games2', 'My Games', '/images/theme/videogames/cgames_icon.jpg');
    pushTheme(th, 'guygals2', 'Tender Love', '/images/theme/guysgals/love_party_icon.jpg');
    pushTheme(th, 'music2', 'Music Guitar', '/images/theme/music/guitar2_icon.jpg');
    pushTheme(th, 'celebrities1', 'The King Of Pop', '/images/theme/celebrities/mj2_icon.jpg');
    pushTheme(th, 'abstract1', 'A Thought', '/images/theme/abstract1/abstract1_icon.jpg');

    themesKidsHTML = createRandomThemeDiv("Kids");
    for(i=0; i<th.length; ++i)
    {
      themesKidsHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesKidsHTML;
  displaySubThemes();
}


function getGamesThemes()
{
  if(themesGamesHTML == "")
  {
    var th = new Array();

    pushTheme(th, 'games1', 'Pac Man', '/images/theme/videogames/Pac_Man_icon.jpg');
    pushTheme(th, 'games2', 'My Games', '/images/theme/videogames/cgames_icon.jpg');

    themesGamesHTML = createRandomThemeDiv("Games");
    for(i=0; i<th.length; ++i)
    {
      themesGamesHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesGamesHTML;
  displaySubThemes();
}

function getMusicThemes()
{
  if(themesMusicHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'celebrities1', 'The King Of Pop', '/images/theme/celebrities/mj2_icon.jpg');
    pushTheme(th, 'mj', 'Michael Jackson', '/images/theme/wallpaper/ACTORS.SINGERS.SPORTS/MJ/mj_icon.jpg');
    pushTheme(th, 'mj1', 'Michael Jackson', '/images/theme/wallpaper/ACTORS.SINGERS.SPORTS/MJ/mj1_jr.jpg');
    pushTheme(th, 'guitar', 'Heaty Guitar', '/images/theme/music/burningguitar1_icon.jpg');
    pushTheme(th, 'music1', 'Bob Marley', '/images/theme/music/bobmarley_icon.jpg');
    pushTheme(th, 'music2', 'Music Guitar', '/images/theme/music/guitar2_icon.jpg');
    pushTheme(th, 'music3', 'I Love Home Music', '/images/theme/music/ilovemusic_icon.jpg');
    pushTheme(th, 'music4', 'Iron Maiden', '/images/theme/music/ironmaiden2_icon.jpg');
    pushTheme(th, 'ladygaga', 'Lady Gaga', '/images/theme/music/ladygaga1_jr.jpg');
    pushTheme(th, 'avril', 'Avril', '/images/theme/celebrities/avril_icon.jpg');

    themesMusicHTML = createRandomThemeDiv("Music");
    for(i=0; i<th.length; ++i)
    {
      themesMusicHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesMusicHTML;
  displaySubThemes();
}

function getCarsThemes()
{
  if(themesCarsHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'ferrari', 'Ferrari', '/images/theme/ferrari/ferrari_icon.jpg');
    pushTheme(th, 'lamborghini', 'Sports Car', '/images/theme/lamborghini/lamborghini_icon.jpg');
    pushTheme(th, 'peugeot', 'My Dream GF', '/images/theme/peugeot/peugeot_icon.jpg');
    pushTheme(th, 'lamborghini2', 'Dream Car', '/images/theme/lamborghini/lamborghini3_icon.jpg');
    pushTheme(th, 'dodge', 'Dodge', '/images/theme/dodge/dodge_icon.jpg');
    pushTheme(th, 'peugeot1', 'The Sleek And Sexy', '/images/theme/peugeot/peugeot6_icon.jpg');
    pushTheme(th, 'bike3', 'The Ultimate', '/images/theme/bikes/invader1_icon.jpg');
    pushTheme(th, 'peugeot3', 'Lets Race', '/images/theme/peugeot/peugeot4_icon.jpg');
    pushTheme(th, 'peugeot4', 'You Bet...', '/images/theme/peugeot/peugeot7_icon.jpg');
    pushTheme(th, 'porsche', 'Miss Autobahn', '/images/theme/cars/por2_icon.jpg');
    pushTheme(th, 'rollsroyace', 'Rolls Royace', '/images/theme/cars/rr_icon.jpg');
    pushTheme(th, 'audi1', 'My Audi', '/images/theme/cars/audi2_icon.jpg');
    pushTheme(th, 'bike1', 'Dark And Hot', '/images/theme/bikes/hd4_icon.jpg');
    pushTheme(th, 'bike2', 'The Power The Bike', '/images/theme/bikes/yamaha1_icon.jpg');
    pushTheme(th, 'bike4', 'Harley For Me', '/images/theme/bikes/hd6_icon.jpg');
    pushTheme(th, 'cars', 'My Dream Garage', '/images/theme/cars/show_cars_icon.jpg');
    pushTheme(th, 'peugeot2', 'The Future Car', '/images/theme/peugeot/peugeot1_icon.jpg');
    pushTheme(th, 'ferrari1', 'The Ultimate GF', '/images/theme/cars/ferrari1_icon.jpg');
    pushTheme(th, 'ferrari2', 'My GF', '/images/theme/cars/ferrari3_icon.jpg');
    pushTheme(th, 'jaguar', 'My Dream Car', '/images/theme/cars/jag2_icon.jpg');

    themesCarsHTML = createRandomThemeDiv("Cars");
    for(i=0; i<th.length; ++i)
    {
      themesCarsHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesCarsHTML;
  displaySubThemes();
}

function getLoveThemes()
{
  if(themesLoveHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'twilite', 'Twilight', '/images/theme/twilite/twilite_icon.jpg');
    pushTheme(th, 'soulmates', 'Soul Mates', '/images/theme/soulmates/soulmates_icon.jpg');
    pushTheme(th, 'guygals5', 'Dream Love', '/images/theme/anime/love_icon.jpg');
    pushTheme(th, 'guygals2', 'Tender Love', '/images/theme/guysgals/love_party_icon.jpg');
    pushTheme(th, 'butterfly', 'Love Butterfly', '/images/theme/butterfly/butterfly_icon.jpg');
    pushTheme(th, 'i__10104', 'Simply Lovely', 'http://www.sleeksearch.com/udb/71/13/d3/6b/10104_icon.jpg');
    pushTheme(th, 'i__10103', 'Love Ride', 'http://www.sleeksearch.com/udb/ef/77/46/c8/10103_icon.jpg');

    themesLoveHTML = createRandomThemeDiv("Love");
    for(i=0; i<th.length; ++i)
    {
      themesLoveHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesLoveHTML;
  displaySubThemes();
}

function getAnimalsThemes()
{
  if(themesAnimalsHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'surprisekitty', 'Cute Kitty', '/images/theme/animals/surprisekitty_jr.jpg');
    pushTheme(th, 'butterfly', 'Love Butterfly', '/images/theme/butterfly/butterfly_icon.jpg');
    pushTheme(th, 'kitty2', 'Sunny Kitty', '/images/theme/kitty2/kitty2_jr.jpg');
    pushTheme(th, 'kitty1', 'Hello Kitty', '/images/theme/kitty1/kitty1_jr.jpg');
    pushTheme(th, 'twosheeps', 'Sheeps', '/images/theme/animals/twosheeps_icon.jpg');
    pushTheme(th, 'cutepuppy', 'Cute Puppy', '/images/theme/animals/cutepuppy4_jr.jpg');
    pushTheme(th, 'toons', 'Toons', '/images/theme/kids/toons1_jr.jpg');
    pushTheme(th, 'catfun', 'Play Mood', '/images/theme/catfun/catfun_icon.jpg');
    pushTheme(th, 'manydogs', 'Innocent Dogs', '/images/theme/animals/manydogs_jr.jpg');
    pushTheme(th, 'wolf', 'Full Moon', '/images/theme/wolf/wolf_icon.jpg');
    pushTheme(th, 'panda', 'Cute Panda', '/images/theme/animals/panda_jr.jpg');

    themesAnimalsHTML = createRandomThemeDiv("Animals");
    for(i=0; i<th.length; ++i)
    {
      themesAnimalsHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesAnimalsHTML;
  displaySubThemes();
}

function getSportsThemes()
{
  if(themesSportsHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'ferrari', 'Ferrari', '/images/theme/ferrari/ferrari_icon.jpg');
    pushTheme(th, 'lamborghini', 'Sports Car', '/images/theme/lamborghini/lamborghini_icon.jpg');
    pushTheme(th, 'dodge', 'Dodge', '/images/theme/dodge/dodge_icon.jpg');
    pushTheme(th, 'sports1', 'I Love Soccer', '/images/theme/sports/football1_icon.jpg');
    pushTheme(th, 'sports2', 'Just Do It', '/images/theme/sports/nikelogo_icon.jpg');
    pushTheme(th, 'sports3', 'Basketball Love', '/images/theme/sports/basketball_icon.jpg');
    pushTheme(th, 'peugeot2', 'The One', '/images/theme/peugeot/peugeot1_icon.jpg');
    pushTheme(th, 'ferrari2', 'My GF', '/images/theme/cars/ferrari3_icon.jpg');
    pushTheme(th, 'peugeot4', 'You Bet...', '/images/theme/peugeot/peugeot7_icon.jpg');

    themesSportsHTML = createRandomThemeDiv("Sports");
    for(i=0; i<th.length; ++i)
    {
      themesSportsHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesSportsHTML;
  displaySubThemes();
}

function getReligiousThemes()
{
  if(themesReligiousHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'buddha', 'The Buddha', '/images/theme/faith/buddha_icon.jpg');
    pushTheme(th, 'faith1', 'My Krishna', '/images/theme/faith/krishna4_icon.jpg');
    pushTheme(th, 'faith2', 'Little Krishna', '/images/theme/faith/krishna_icon.jpg');
    pushTheme(th, 'faith3', 'From Dark To Light', '/images/theme/faith/jesus4_icon.jpg');
    pushTheme(th, 'faith4', 'The Son Of God', '/images/theme/faith/jesus2_icon.jpg');
    pushTheme(th, 'faith5', 'Trust In Jesus', '/images/theme/faith/jesus1_icon.jpg');
    pushTheme(th, 'faith6', 'The Allah The Peace', '/images/theme/faith/mosque_icon.jpg');
    pushTheme(th, 'faith7', 'Guan Yin', '/images/theme/faith/Guan-Yin_icon.jpg');
    pushTheme(th, 'faith8', 'Dalai Lama', '/images/theme/faith/Dalai_lama_icon.jpg');

    themesReligiousHTML = createRandomThemeDiv("Religious");
    for(i=0; i<th.length; ++i)
    {
      themesReligiousHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  themesReligiousHTML += '<div class=themePreview><div class=themeImg onclick="getDobInfo()"><img src="/images/theme/horoscope/horo_icon.jpg" />' +
        '<div class=themeName>Daily Horoscope</div></div></div>';
  tab2_2_HTML = themesReligiousHTML;
  displaySubThemes();
}

function getFoodThemes()
{
  if(themesFoodHTML == "")
  {
   themesFoodHTML += '<div class=themePreview><div class=themeImg><div class=createThemeDiv>Themes coming soon!</div></div></div>';
  }
  tab2_2_HTML = themesFoodHTML;
  displaySubThemes();
}

function getFunnyThemes()
{
  if(themesFunnyHTML == "")
  {
    var th = new Array();

    pushTheme(th, 'funny', 'Guys Fun', '/images/theme/funny/BGE_icon.jpg');
    pushTheme(th, 'catfun', 'Play Mood', '/images/theme/catfun/catfun_icon.jpg');
    pushTheme(th, 'funny1', 'How Cars Are Made', '/images/theme/cars/cars_made_icon.jpg');
    pushTheme(th, 'funny2', 'My Powerful Sword', '/images/theme/funny/dragon_icon.jpg');
    pushTheme(th, 'funny3', 'Forget The Dog', '/images/theme/funny/warningowner_icon.jpg');
    pushTheme(th, 'funny4', 'The Simple Truth', '/images/theme/funny/theSimpleTruth_icon.jpg');
    pushTheme(th, 'funny5', 'Warning', '/images/theme/funny/warning_icon.jpg');
    pushTheme(th, 'funny6', 'Insanity', '/images/theme/funny/phrase_icon.jpg');
    pushTheme(th, 'funny7', 'For Girls', '/images/theme/funny/usebrain_icon.jpg');
    pushTheme(th, 'funny8', 'Oh! My God', '/images/theme/anime/funny_icon.jpg');
    pushTheme(th, 'i__10080', 'Too Much', 'http://www.sleeksearch.com/udb/bf/65/f7/4d/10080_icon.jpg');

    themesFunnyHTML = createRandomThemeDiv("Funny");
    for(i=0; i<th.length; ++i)
    {
      themesFunnyHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesFunnyHTML;
  displaySubThemes();
}

function getGothicThemes()
{
  if(themesGothicHTML == "")
  {
    themesGothicHTML += '<div class=themePreview><div class=themeImg><div class=createThemeDiv>Themes coming soon!</div></div></div>';
  }
  tab2_2_HTML = themesGothicHTML;
  displaySubThemes();
}

function getPlacesThemes()
{
  if(themesPlacesHTML == "")
  {
    themesPlacesHTML += '<div class=themePreview><div class=themeImg><div class=createThemeDiv>Themes coming soon!</div></div></div>';
  }
  tab2_2_HTML = themesPlacesHTML;
  displaySubThemes();
}

function getNatureThemes()
{
  if(themesNatureHTML == "")
  {
    var th = new Array();

    pushTheme(th, 'home', 'Rain Home', '/images/theme/home/home_icon.jpg');
    pushTheme(th, 'whitedaisy', 'White Daisy', '/images/theme/nature/whitedaisy_icon.jpg');
    pushTheme(th, 'girlyflowers', 'Girls Rule', '/images/theme/kids/girlyflowers_icon.jpg');
    pushTheme(th, 'butterfly', 'Love Butterfly', '/images/theme/butterfly/butterfly_icon.jpg');
    pushTheme(th, 'simple_plain', 'Rainbow', '/images/theme/simple_plain/rainbowleft_jr.jpg');
    pushTheme(th, 'i__10110', 'A Day In Autumn', 'http://www.sleeksearch.com/udb/6f/65/26/33/10110_icon.jpg');
    themesNatureHTML = createRandomThemeDiv("Nature");
    for(i=0; i<th.length; ++i)
    {
      themesNatureHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesNatureHTML;
  displaySubThemes();
}


function getTruebloodThemes()
{
  if(themesTruebloodHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'trueblood1', 'True Blood Wallpaper', '/images/theme/trueblood/True-Blood-Wallpaper-true-blood_icon.jpg');
    pushTheme(th, 'trueblood', 'Mary Ann', '/images/theme/trueblood/True-Blood_icon.jpg');
    pushTheme(th, 'trueblood2', 'Sam', '/images/theme/trueblood/wallpaper-sam_icon.jpg');
    pushTheme(th, 'trueblood3', 'Lafayette', '/images/theme/trueblood/wallpaper-lafayette_icon.jpg');
    pushTheme(th, 'trueblood4', 'Jessica', '/images/theme/trueblood/wallpaper-jessica_icon.jpg');
    pushTheme(th, 'trueblood5', 'True Love? True Blood!', '/images/theme/trueblood/trueblood5_icon.jpg');
    pushTheme(th, 'trueblood6', 'Bill', '/images/theme/trueblood/trueblood6_icon.jpg');
    pushTheme(th, 'trueblood7', 'Eric', '/images/theme/trueblood/trueblood7_icon.jpg');
    pushTheme(th, 'trueblood8', 'Frenzy', '/images/theme/trueblood/trueblood8_icon.jpg');
    pushTheme(th, 'trueblood9', 'Evil is Going On', '/images/theme/trueblood/trueblood9_icon.jpg');
    pushTheme(th, 'trueblood10', 'Season 3 Poster ', '/images/theme/trueblood/trueblood10_icon.jpg');
    pushTheme(th, 'trueblood11', 'True Blood Casts', '/images/theme/trueblood/trueblood11_icon.jpg');
    pushTheme(th, 'trueblood12', 'True Blood - Eric', '/images/theme/trueblood/trueblood12_icon.jpg');
    pushTheme(th, 'trueblood13', 'True Blood - Sookie', '/images/theme/trueblood/trueblood13_icon.jpg');
    pushTheme(th, 'trueblood14', 'It Hurts So Good', '/images/theme/trueblood/trueblood14_icon.jpg');
    pushTheme(th, 'trueblood15', 'Eric And Sookie', '/images/theme/trueblood/trueblood15_icon.jpg');
    pushTheme(th, 'trueblood16', 'True Blood', '/images/theme/trueblood/trueblood16_icon.jpg');
    themesTruebloodHTML = createRandomThemeDiv("Nature");
    for(i=0; i<th.length; ++i)
    {
      themesTruebloodHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesTruebloodHTML;
  displaySubThemes();
}


function getTwilightThemes()
{
  if(themesTwilightHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'twilite', 'Twilight', '/images/theme/twilite/twilite_icon.jpg');
    pushTheme(th, 'twilight','Twilight Wallpaper ', '/images/theme/twilight/twilight_icon.jpg');
    pushTheme(th, 'twilight1','Nature Moonlight', '/images/theme/twilight/twilight1_icon.jpg');
    pushTheme(th, 'twilight2','Apple in Hand. ', '/images/theme/twilight/twilight2_icon.jpg');
    pushTheme(th, 'twilight3','Twilight Babes', '/images/theme/twilight/twilight3_icon.jpg');
    pushTheme(th, 'twilight4','Twilight Paramore', '/images/theme/twilight/twilight4_icon.jpg');
    pushTheme(th, 'twilight5','Twilight Deep Inside', '/images/theme/twilight/twilight5_icon.jpg');
    pushTheme(th, 'twilight6','Robert Pattinson', '/images/theme/twilight/twilight6_icon.jpg');
    pushTheme(th, 'twilight7','Twilight Nature', '/images/theme/twilight/twilight7_icon.jpg');
    pushTheme(th, 'twilight8','Twilight Saga', '/images/theme/twilight/twilight8_icon.jpg');
    pushTheme(th, 'twilight9','Bella Swan', '/images/theme/twilight/twilight9_icon.jpg');
    pushTheme(th, 'twilight10','Twilight The Beaut', '/images/theme/twilight/twilight10_icon.jpg');
    pushTheme(th, 'twilight11','Twilight Saga', '/images/theme/twilight/twilight11_icon.jpg');
    pushTheme(th, 'twilight12','Twilight Portrait', '/images/theme/twilight/twilight12_icon.jpg');
    pushTheme(th, 'twilight13','Twilight New Moon', '/images/theme/twilight/twilight13_icon.jpg');
    pushTheme(th, 'twilight14','Twilight Backstage', '/images/theme/twilight/twilight14_icon.jpg');
    themesTwilightHTML = createRandomThemeDiv("Nature");
    for(i=0; i<th.length; ++i)
    {
      themesTwilightHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesTwilightHTML;
  displaySubThemes();
}


function getNickiminajThemes()
{
  if(themesNickiminajHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'nickiminaj1', 'Nicki Minaj', '/images/theme/nickiminaj/nickiminaj1_icon.jpg');
    pushTheme(th, 'nickiminaj2', 'Nicki Minaj Cool', '/images/theme/nickiminaj/nickiminaj2_icon.jpg');
    pushTheme(th, 'nickiminaj3','Nicki Minaj Chinese? Japnese?', '/images/theme/nickiminaj/nickiminaj3_icon.jpg');
    pushTheme(th, 'nickiminaj4','Nicki Minaj Sexy Doll', '/images/theme/nickiminaj/nickiminaj4_icon.jpg');
    pushTheme(th, 'nickiminaj5','Nicki Minaj Nice Ass', '/images/theme/nickiminaj/nickiminaj5_icon.jpg');
    pushTheme(th, 'nickiminaj6','Nicki Minaj Album Pink', '/images/theme/nickiminaj/nickiminaj6_icon.jpg');
    pushTheme(th, 'nickiminaj7','Nicki Minaj Sexy', '/images/theme/nickiminaj/nickiminaj7_icon.jpg');
    pushTheme(th, 'nickiminaj8','Nicki Minaj Sexy Pose', '/images/theme/nickiminaj/nickiminaj8_icon.jpg');
    pushTheme(th, 'nickiminaj9','Nicki Minaj Rapper', '/images/theme/nickiminaj/nickiminaj9_icon.jpg');
    pushTheme(th, 'nickiminaj10','Nicki Minaj Mask', '/images/theme/nickiminaj/nickiminaj10_icon.jpg');
    pushTheme(th, 'nickiminaj11','Nicki Minaj The Aftermath', '/images/theme/nickiminaj/nickiminaj11_icon.jpg');
    pushTheme(th, 'nickiminaj12','Nicki Minaj Barbie', '/images/theme/nickiminaj/nickiminaj12_icon.jpg');
    pushTheme(th, 'nickiminaj13','Nicki Minaj Resurrects', '/images/theme/nickiminaj/nickiminaj13_icon.jpg');
    pushTheme(th, 'nickiminaj14','Nicki Minaj Cool', '/images/theme/nickiminaj/nickiminaj14_icon.jpg');
    themesNickiminajHTML = createRandomThemeDiv("Nature");
    for(i=0; i<th.length; ++i)
    {
      themesNickiminajHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesNickiminajHTML;
  displaySubThemes();
}


function getLadygagaThemes()
{
  if(themesLadygagaHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'ladygaga', 'Lady Gaga', '/images/theme/music/ladygaga1_icon.jpg');
    pushTheme(th, 'ladygaga2','Lady GaGa The Sexy', '/images/theme/ladygaga/ladygaga2_icon.jpg');
    pushTheme(th, 'ladygaga3','Lady GaGa Poker Face', '/images/theme/ladygaga/ladygaga3_icon.jpg');
    pushTheme(th, 'ladygaga4','Lady GaGa The Illuminati Puppet', '/images/theme/ladygaga/ladygaga4_icon.jpg');
    pushTheme(th, 'ladygaga5','HOT NEW Lady GaGa', '/images/theme/ladygaga/ladygaga5_icon.jpg');
    pushTheme(th, 'ladygaga6','Lady GaGa Pictures', '/images/theme/ladygaga/ladygaga6_icon.jpg');
    pushTheme(th, 'ladygaga7','Lady GaGa Just Dance', '/images/theme/ladygaga/ladygaga7_icon.jpg');
    pushTheme(th, 'ladygaga8','Just Lady GaGa', '/images/theme/ladygaga/ladygaga8_icon.jpg');
    pushTheme(th, 'ladygaga9','Lady GaGa Sexy', '/images/theme/ladygaga/ladygaga9_icon.jpg');
    pushTheme(th, 'ladygaga10','Lady GaGa Might Be Wrong', '/images/theme/ladygaga/ladygaga10_icon.jpg');
    pushTheme(th, 'ladygaga11','Lady GaGa Sexy Pose', '/images/theme/ladygaga/ladygaga11_icon.jpg');
    pushTheme(th, 'ladygaga12','Lady GaGa Sexy Pose', '/images/theme/ladygaga/ladygaga12_icon.jpg');
    pushTheme(th, 'ladygaga13','Lady GaGa Pocker Face', '/images/theme/ladygaga/ladygaga13_icon.jpg');
    pushTheme(th, 'ladygaga14','Lady GaGa Love Me', '/images/theme/ladygaga/ladygaga14_icon.jpg');
    pushTheme(th, 'ladygaga15','Lady GaGa Standing', '/images/theme/ladygaga/ladygaga15_icon.jpg');
    themesLadygagaHTML = createRandomThemeDiv("Nature");
    for(i=0; i<th.length; ++i)
    {
      themesLadygagaHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesLadygagaHTML;
  displaySubThemes();
}


function getCelebritiesThemes()
{
  if(themesCelebritiesHTML == "")
  {
    var th = new Array();

    pushTheme(th, 'mj', 'Michael Jackson', '/images/theme/wallpaper/ACTORS.SINGERS.SPORTS/MJ/mj_icon.jpg');
    pushTheme(th, 'mj1', 'Michael Jackson', '/images/theme/wallpaper/ACTORS.SINGERS.SPORTS/MJ/mj1_jr.jpg');
    pushTheme(th, 'ladygaga', 'Lady Gaga', '/images/theme/music/ladygaga1_jr.jpg');
    pushTheme(th, 'tomcruise', 'Tom Cruise', '/images/theme/celebrities/tomcruise_icon.jpg');
    pushTheme(th, 'avril', 'Avril', '/images/theme/celebrities/avril_icon.jpg');
    pushTheme(th, 'angelina', 'Angelina', '/images/theme/celebrities/angelina_icon.jpg');
    pushTheme(th, 'beyonce', 'Beyonce', '/images/theme/celebrities/beyonce_icon.jpg');
    pushTheme(th, 'twilite', 'Twilight', '/images/theme/twilite/twilite_icon.jpg');
    pushTheme(th, 'celebrities1', 'The King Of Pop', '/images/theme/celebrities/mj2_icon.jpg');
    pushTheme(th, 'music1', 'Bob Marley', '/images/theme/music/bobmarley_icon.jpg');
    pushTheme(th, 'dexterwallpaper1', 'Dexter Wallpaper', '/images/theme/dexter/dexter_wallpaper1_icon.jpg');
    pushTheme(th, 'dexter1', 'Dexter', '/images/theme/dexter/dexter__s_colors_icon.jpg');
    pushTheme(th, 'dexterwallpaper', 'Dexter My Favorite', '/images/theme/dexter/dexter_wallpaper_icon.jpg');
    pushTheme(th, 'dexterlightning', 'Dexter Lightining', '/images/theme/dexter/dexterlightning_icon.jpg');
    pushTheme(th, 'dextersmiley', 'Dexter Smiley', '/images/theme/dexter/dexter-smiley_icon.jpg');
    pushTheme(th, 'dexter2', 'Dexter Serial Killer', '/images/theme/dexter/dexter-2_icon.jpg');

    themesCelebritiesHTML = createRandomThemeDiv("Celebrities");
    for(i=0; i<th.length; ++i)
    {
      themesCelebritiesHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesCelebritiesHTML;
  displaySubThemes();
}

function getBollywoodThemes()
{
  if(themesBollywoodHTML == "")
  {
    var th = new Array();


    themesBollywoodHTML = createRandomThemeDiv("Bollywood");

    for(i=0; i<th.length; ++i)
    {
      themesBollywoodHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesBollywoodHTML;
  displaySubThemes();
}

function getPatrioticThemes()
{
  if(themesPatrioticHTML == "")
  {
    themesPatrioticHTML += '<div class=themePreview><div class=themeImg><div class=createThemeDiv>Themes coming soon!</div></div></div>';
  }
  tab2_2_HTML = themesPatrioticHTML;
  displaySubThemes();
}

function getMoviesThemes()
{
  if(themesMoviesHTML == "")
  {
    themesMoviesHTML += '<div class=themePreview><div class=themeImg><div class=createThemeDiv>Themes coming soon!</div></div></div>';
  }
  tab2_2_HTML = themesMoviesHTML;
  displaySubThemes();
}

function getMiscThemes()
{
  if(themesMiscHTML == "")
  {
    var th = new Array();

    pushTheme(th, 'twosheeps', 'Sheeps', '/images/theme/animals/twosheeps_icon.jpg');
    pushTheme(th, 'simple_plain', 'Rainbow', '/images/theme/simple_plain/rainbowleft_jr.jpg');
    pushTheme(th, 'wolf', 'Full Moon', '/images/theme/wolf/wolf_icon.jpg');
    pushTheme(th, 'eyes', 'The Beauty', '/images/theme/eyes/eyes_icon.jpg');
    pushTheme(th, 'abstract1', 'A Thought', '/images/theme/abstract1/abstract1_icon.jpg');
    pushTheme(th, 'abstract2', 'Bad', '/images/theme/abstract2/abstract2_icon.jpg');

    themesMiscHTML = createRandomThemeDiv("Misc");
    for(i=0; i<th.length; ++i)
    {
      themesMiscHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesMiscHTML;
  displaySubThemes();
}

function createRandomThemeDiv(categoryName)
{
  return '<div class=themePreview><div class=themeImg onclick="window.top.location = \'/?askInvite=1&theme=random_'+categoryName+'\'; return false; " ><div class=randomThemeDiv>Everyday automatically get a random theme from this category!</div><div class=themeName>Random theme</div></div></div>';
}

function getLogosThemes()
{
  if(themesLogosHTML == "")
  {
    var th = new Array();
    pushTheme(th, 'ferrari', 'Ferrari', '/images/theme/ferrari/ferrari_icon.jpg');
    pushTheme(th, 'sports2', 'Just Do It', '/images/theme/sports/nikelogo_icon.jpg');
    pushTheme(th, 'music3', 'I Love Home Music', '/images/theme/music/ilovemusic_icon.jpg');

    themesLogosHTML = createRandomThemeDiv("Logos");
    for(i=0; i<th.length; ++i)
    {
      themesLogosHTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+th[i].id+'\')"> <img src="'+th[i].imgJr+'" />' +
                  '<div class=themeName>'+th[i].name+'</div></div></div>';
    }
  }
  tab2_2_HTML = themesLogosHTML;
  displaySubThemes();
}

function displaySubThemes()
{
  if(tab2_2_HTML == "")
  {
    getGuyThemes();
  }
  else
  {
    var c = document.getElementById('cont-2-2');
    if(c != undefined)
    {
      c.innerHTML = tab2_2_HTML;
    }
  }
}

function addToThemes(theme)
{
  themes.push(theme);
}

function pushTheme(themeArry, id, name, imgJr)
{
  var theme = createTheme(id, name, imgJr);
  themeArry.push(theme);
}

function createTheme(id, name, imgJr)
{
  var theme = new Object();
  theme.id = id;
  theme.name = name;
  theme.imgJr = imgJr;

  return theme;
}

function createTab1HTML()
{
  if(tab1HTML == "")
  {
    tab1HTML += "<div class=\"tabcontent paddingAll\" id=\"cont-1-1\">";
    tab1HTML += '<div class=themePreview><div class=themeImg onclick="ShowHideTabs(5)"><div class=createThemeDiv><br>Create your own free customized theme! <div class=smalltext>(Your own logo and background image)</div></div>' +
          '<div class=themeName>Create Your Own Theme!</div></div></div>';

    tab1HTML += '<div class=themePreview><div class=themeImg onclick="getDobInfo()"><img src="/images/theme/horoscope/horo_icon.jpg" />' +
          '<div class=themeName>Daily Horoscope</div></div></div>';

    tab1HTML += createRandomThemeDiv('Mostpopular');

    for(i=0; i<themes.length; ++i)
    {
      tab1HTML += '<div class=themePreview><div class=themeImg onclick="processTheme(\''+themes[i].id+'\')"> <img src="'+themes[i].imgJr+'" />' +
            '<div class=themeName>'+themes[i].name+'</div></div></div>';
    }

    tab1HTML += '<div class=themePreview><div class=themeImg onclick="orderMakeThemes()"><div class=createThemeDiv><br>Order/Make Customized Professional Themes! <div class=smalltext></div></div>' +
          '<div class=themeName>Order/Make Themes!</div></div></div>';

    tab1HTML += "</div>";
    document.getElementById('cont-1').innerHTML = tab1HTML;
  }
}



function createTab2HTML()
{
  if(tab2HTML == "")
  {
    tab2HTML += "<div id=cont-2-1 class=cAlign style='padding:10px;font-weight:normal'><a href=\"#\" onclick=\"getGuyThemes();hiliteLink(this);return false;\" class=\"themeLink hilite\" >Guys</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getGirlyThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Girly</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getCarsThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Cars/Bikes</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getKidsThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Teens/Kids</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getMusicThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Music</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getTruebloodThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Trueblood</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getTwilightThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Twilight</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getNickiminajThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Nicki Minaj</a>";

    tab2HTML += " <a href=\"#\" onclick=\"getLoveThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Love</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getAnimalsThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Animals</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getSportsThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Sports</a>";
    tab2HTML += " <a href=\"#\" onclick=\"getReligiousThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Faith</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getFunnyThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Funny</a>";

    //tab2HTML += "<a href=\"#\" onclick=\"getFoodThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Food</a>";
    //tab2HTML += " <a href=\"#\" onclick=\"getGothicThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Gothic</a>";
    //tab2HTML += "<a href=\"#\" onclick=\"getPlacesThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Places</a>";
    tab2HTML += "<br><a href=\"#\" onclick=\"getNatureThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Nature</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getCelebritiesThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Celebrities</a>";
    //tab2HTML += " <a href=\"#\" onclick=\"getBollywoodThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Bollywood</a>";
    //tab2HTML += "<a href=\"#\" onclick=\"getMoviesThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Movies/TV</a>";
    //tab2HTML += "<a href=\"#\" onclick=\"getPatrioticThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Patriotic</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getLogosThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Just Logos</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getGamesThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Games/Animie</a>";
    tab2HTML += "<a href=\"#\" onclick=\"getMiscThemes();hiliteLink(this);return false;\" class=\"themeLink\" >Miscellaneous</a>";
    tab2HTML += "<a href=\"#\" onclick=\"window.top.location='/skins/allthemes';return false;\" class=\"themeLink\" >Browse All Themes</a>";

    tab2HTML += "</div>";
    if(tab2_2_HTML == "")
    {
      getGuyThemes();
    }
    tab2HTML += "<div class=\"tabcontent paddingAll\" id=\"cont-2-2\">"+tab2_2_HTML+"</div>";

    document.getElementById('cont-2').innerHTML = tab2HTML;
  }
}


function hiliteLink(t)
{
  var aList = document.getElementById('cont-2-1').getElementsByTagName('a');
  for(var i=0; i<aList.length; ++i)
  {
    if(aList[i] != t)
    {
      aList[i].className = 'themeLink';
    }
    else
    {
      aList[i].className = 'themeLink hilite';
    }
  }
}

function createTab3HTML()
{
  if(tab3HTML == "")
  {
    var ct = document.getElementById("cont-3");
    ct.style.width = '100%';
    ct.style.background = 'transparent';
    tab3HTML = "<iframe frameborder=0 id=myThemeIframe allowTransparency=true style='width:100%;border:0px solid red; height:580px; background-color:transparent; text-align:center;' src='/my/mythemes?cmd=myThemes' align=center>";document.getElementById('cont-3').innerHTML = tab3HTML;
  }
}

function createTab4HTML()
{
  //if(tab4HTML == "")
  {
    var ct = document.getElementById("cont-4");
    ct.style.width = '100%';
    ct.style.background = 'transparent';
    tab4HTML = "<iframe frameborder=0 id=recentThemeIframe allowTransparency=true style='width:100%;border:0px solid red; height:580px; background-color:transparent; text-align:center;' src='/my/mythemes?cmd=recentThemes' align=center>";document.getElementById('cont-4').innerHTML = tab4HTML;
  }
}


function createTab5HTML()
{
  if(tab5HTML == "")
  {
    createMyThemeTab(5);
    document.getElementById('cont-5').innerHTML = tab5HTML;
  }
}

function ShowHideTabs(index)
{
  for(var i=1;i<=5;++i)
  {
    var cnt = document.getElementById("cont-"+i);
    var tb = document.getElementById("tab-"+i);
    if(i == index)
    {
      cnt.className = "tabcontent";
      tb.className = "tabLink activeLink";
      eval ("createTab"+i+"HTML()");
    }
    else
    {
      cnt.className = "tabcontent hide";
      tb.className = "tabLink";
    }
  }
}

function promptThemes()
{
  initThemes();
  var html = '';

  html += "<div class=\"tab-box\">";
  html += "<a href=\"#\" onclick=\"ShowHideTabs(1);return false;\" class=\"tabLink activeLink\" id=\"tab-1\">Most Popular</a>";
  html += "<a href=\"#\" onclick=\"ShowHideTabs(2);return false;\" class=\"tabLink \" id=\"tab-2\"> By Category</a>";
  html += "<a href=\"#\" onclick=\"ShowHideTabs(3);return false;\" class=\"tabLink \" id=\"tab-3\">My Themes</a>";
  html += "<a href=\"#\" onclick=\"ShowHideTabs(4);return false;\" class=\"tabLink \" id=\"tab-4\">Recently Created</a>";
  html += "<a href=\"#\" onclick=\"ShowHideTabs(5);return false;\" class=\"tabLink \" id=\"tab-5\">Create Theme!</a>";
  html += "</div>";

  html += "<div class=\"tabcontent paddingAll\" id=\"cont-1\">";

  html += "</div>";

  html += "<div class=\"tabcontent paddingAll hide\" id=\"cont-2\">";
  //html += "This is content box Two ";
  html += "</div>";

  html += "<div class=\"tabcontent paddingAll hide\" id=\"cont-3\">";
  //html += "This is content box Three";
  html += "</div>";

  html += "<div class=\"tabcontent paddingAll hide\" id=\"cont-4\">";
  //html += "This is content box Three";
  html += "</div>";

  html += "<div class=\"tabcontent paddingAll hide\" id=\"cont-5\">";
  //html += "This is content box Three";
  html += "</div>";

  /*html = '<div class=themeContainer id=themeContainerDiv><div class=themeText>Please Select Your Theme Below</div>'+html+'</div>';*/
  html = '<div class=themeContainer id=themeContainerDiv><div class=themeText></div>'+html+'</div>';

  createFormDiv('header', html, 725, 0, 15, 148);
  createTab1HTML();
}



function createMyThemeTab(i)
{
  //var ct = document.getElementById('themeContainerDiv');
  var ct = document.getElementById("cont-"+i);
  //ct.style.background = 'black';
  //ct.style.height = '600px';
  ct.style.width = '100%';
  //alert(ct.innerHTML);
  tab5HTML = "<iframe frameborder=0 id=myThemeIframe bgcolor=lightyellow allowTransparency=true style='width:100%;border:0px solid red; height:580px; background-color:lightyellow; text-align:center;' src='/my/userupload' align=center>";
}

function createMyTheme()
{
  var ct = document.getElementById('themeContainerDiv');
  ct.style.background = 'lightyellow';
  ct.innerHTML = "<iframe frameborder=0 id=myThemeIframe style='width:100%;border:none; height:580px; background:lightyellow; text-align:center;' src='/my/userupload' align=center>";
}

function orderMakeThemes()
{
  var ct = document.getElementById('themeContainerDiv');
  ct.style.background = 'lightyellow';

  var html = "<p style='margin:30px auto 30px auto;background:#333333; width:500px; padding:20px;color:orange;font-family:arial,sans-serif;font-size:15px; text-align:left'>"+
            "If you want a professional quality theme, made by our designers, specifically for you or for your friends, "+
            "please contact us at <b> <a style='color:lightgreen' href='mailto:themes@sleeksearch.com'>themes@sleeksearch.com</a></b>" +
            "<br/><br>Please note that this service usually cost $8 to $30 based on complexity and time involved by our designers."+
            "<br><br>However, if you already have the customized picuters we encourage you to create your own theme for FREE by clicking <a href='#' onclick='createMyTheme()'>here</a>. "+
            "<br><br><br><span style='color:lightyellow'>If you are a designer and want to make and sell professional themes please contact us at <b><a style='color:lightgreen'  href='mailto:artists@sleeksearch.com'>artists@sleeksearch.com</a></b> </span></p>";
  ct.innerHTML = html;
}


