 function affCache() {
	
var urlbegin = window.location.href.substring(0,42);
var urlbeginuk = window.location.href.substring(0,44);
var urlbegintag = window.location.href.substring(0,38);
var urlintertag = window.location.href.substring(0,32);
var urlcate = window.location.href.substring(0,48);
var urlprod = window.location.href.substring(0,49);
var urlproduk = window.location.href.substring(0,51);
var urlcateuk = window.location.href.substring(0,45);
var urlcateuktm = window.location.href.substring(0,43);
var urlonluk = window.location.href.substring(0,42);
var urlonluktm = window.location.href.substring(0,40);
var urlprodukt = window.location.href.substring(0,41);
var urlproduktm = window.location.href.substring(0,39);

var urllangukt = window.location.href.substring(0,44);
var urllanguktm = window.location.href.substring(0,42);

var urltmmuk = window.location.href.substring(0,48);
var urltmmuktm = window.location.href.substring(0,46);
var urlclick = window.location.href.substring(0,34);
var urlclicksecond = window.location.href.substring(0,59);
var urlcoach=window.location.href.substring(0,52);


if ( window.location.href == "http://www.tellmemorestore.co.uk/default.asp"){

       document.getElementById("hp_home_title").style.display = 'none';
       document.getElementById("hp_home_title_no_demo").style.display = 'none';

}else if (urlclicksecond == "http://www.tellmemorestore.co.uk/Articles.asp?ID=264&Click="){ 
       document.getElementById("hp_home_title").style.display = 'none';
       document.getElementById("hp_home_title_no_demo").style.display = 'none';

}else if (urllanguktm == "http://www.tellmemorestore.co.uk/Language_"){	   
       document.getElementById("bak_right_fiche_webpass").style.display = 'block';






}else if (urltmmuktm == "http://www.tellmemorestore.co.uk/TELL_ME_MORE_"){	   
       document.getElementById("hp_home_product").style.display = 'block';

}else if (urlprodukt  == "http://www.tellmemorestore.co.uk/product_"){	   
       document.getElementById("hp_home_product").style.display = 'block';





}else if (urlprodukt  == "http://www.tellmemorestore.co.uk/live_tut"){	   
       document.getElementById("hp_home_product").style.display = 'block';

}else if (urlprodukt  == "http://www.tellmemorestore.co.uk/webpass_"){	   
       document.getElementById("hp_home_product").style.display = 'block';





}else if (urlproduktm == "http://www.tellmemorestore.co.uk/Learn_"){	   
       document.getElementById("hp_research").style.display = 'block';




}else if (urlonluktm == "http://www.tellmemorestore.co.uk/Online_"){	   
       document.getElementById("hp_research").style.display = 'block';

}else if (urlcateuktm == "http://www.tellmemorestore.co.uk/category_s"){	   
       document.getElementById("hp_research").style.display = 'block';


}else if (urlproduk == "http://www.tellmemorestore.co.uk/ProductDetails.asp"){	   
       document.getElementById("hp_home_product").style.display = 'block';

}else if (urlcate == "http://www.tellmemorestore.co.uk/SearchResults"){	     
       document.getElementById("hp_research").style.display = 'block';




}else if (urlbeginuk == "http://www.tellmemorestore.co.uk/default.asp"){	
      
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';


}else if (urlclick == "http://www.tellmemorestore.co.uk/?"){	
      
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (urlbeginuk == "http://www.tellmemorestore.co.uk/Default.asp"){	
      
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Default.asp"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';



}else if (window.location.href == "http://www.tellmemorestore.co.uk/"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';





}else if (window.location.href == "http://www.tellmemorestore.co.uk/ShoppingCart.asp?"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=251&Click=35"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';


}else if (window.location.href == "http://www.tellmemorestore.co.uk/#"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/one-page-checkout.asp"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';



}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=168"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';




}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=275"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (urlcoach== "http://www.tellmemorestore.co.uk/Articles.asp?ID=266"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';
	   
}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=267"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';
	   
	   
}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=268"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';	   

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=272"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';



}else if (window.location.href == "http://www.tellmemorestore.co.uk/OrderFinished.asp"){

       document.getElementById("hp_home_title_no_demo").style.display = 'block';
       document.getElementById("hp_home_title").style.display = 'none';


}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=239"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';




}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=240"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=240#recommended_product"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=241"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=241#recommended_product"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';


}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=242"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=242#recommended_product"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';



}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=243"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=243#recommended_product"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';
	   
}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=244"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=244#recommended_product"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';
	   
}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=245"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=245#recommended_product"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';


}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=246"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=246#recommended_product"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';


}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=247"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';




}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=248"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';



}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=249"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';

}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=250"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';



}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=251"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';




}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=252"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';



}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=253"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';


}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=254"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';



}else if (window.location.href == "http://www.tellmemorestore.co.uk/Articles.asp?ID=255"){	
       document.getElementById("hp_home_title_no_demo").style.display = 'none';
       document.getElementById("hp_home_title").style.display = 'none';


} else {     

       document.getElementById("hp_home_title_no_demo").style.display = 'none'; 
document.getElementById("hp_home_title").style.display = 'block';

      }
	  

}



   $(function () {
        $('.bubbleInfo').each(function () {
            var distance = 10;
            var time = 50;
            var hideDelay = 50;

            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var trigger = $('.trigger', this);
            var info = $('.popup', this).css('opacity', 0);


            $([trigger.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        top: -90,
                        left: -33,
                        display: 'block'
                    }).animate({
                        top: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
    });
    




function verif_formulaire()
{
  if(document.form.first_name.value == "")  {
   alert("Please complete all of the fields");
   document.form.first_name.focus();
   return false;
  }  
 if(document.form.last_name.value == "")  {
   alert("Please complete all of the fields");
   document.form.last_name.focus();
   return false;
  }

 if(document.form.e_mail.value == "") {
   alert("Please complete all of the fields");
   document.form.e_mail.focus();
   return false;
  }
 if(document.form.e_mail.value.indexOf('@') == -1) {
   alert("Please complete all of the fields");
   document.form.e_mail.focus();
   return false;
  }
    if(document.form.country.selectedIndex == 0)  {
   alert("Please complete all of the fields");
   document.form.country.focus();
   return false;
  } 
   

}
