Как бы я сжал эту функцию? Любая помощь приветствуется. Спасибо.
$(document).ready(function () {
$(".GoogleAppsProducts li.ProductIcon1").click(function () {
$(".TabContent2").hide("slow");
$("this").show("slow");
$(".Gmail").show("slow").css("visibility", "visible");
});
$("input[id$='GoBackButton0']").click(function () {
$(".TabContent2").show("slow");
$("this").hide("slow");
$(".Gmail").hide("slow").css("visibility", "visible");
return false;
});
$(".GoogleAppsProducts li.ProductIcon2").click(function () {
$(".TabContent2").hide("slow");
$("this").show("slow");
$(".GoogleCalendar").show("slow").css("visibility", "visible");
});
$("input[id$='GoBackButton1']").click(function () {
$(".TabContent2").show("slow");
$("this").hide("slow");
$(".GoogleCalendar").hide("slow").css("visibility", "visible");
return false;
});
$(".GoogleAppsProducts li.ProductIcon3").click(function () {
$(".TabContent2").hide("slow");
$("this").show("slow");
$(".GoogleDocs").show("slow").css("visibility", "visible");
});
$("input[id$='GoBackButton2']").click(function () {
$(".TabContent2").show("slow");
$("this").hide("slow");
$(".GoogleDocs").hide("slow").css("visibility", "visible");
return false;
});
$(".GoogleAppsProducts li.ProductIcon4").click(function () {
$(".TabContent2").hide("slow");
$("this").show("slow");
$(".GoogleCloud").show("slow").css("visibility", "visible");
});
$("input[id$='GoBackButton3']").click(function () {
$(".TabContent2").show("slow");
$("this").hide("slow");
$(".GoogleCloud").hide("slow").css("visibility", "visible");
return false;
});
$(".GoogleAppsProducts li.ProductIcon5").click(function () {
$(".TabContent2").hide("slow");
$("this").show("slow");
$(".GoogleGroups").show("slow").css("visibility", "visible");
});
$("input[id$='GoBackButton4']").click(function () {
$(".TabContent2").show("slow");
$("this").hide("slow");
$(".GoogleGroups").hide("slow").css("visibility", "visible");
return false;
});
$(".GoogleAppsProducts li.ProductIcon6").click(function () {
$(".TabContent2").hide("slow");
$("this").show("slow");
$(".GoogleSites").show("slow").css("visibility", "visible");
});
$("input[id$='GoBackButton5']").click(function () {
$(".TabContent2").show("slow");
$("this").hide("slow");
$(".GoogleSites").hide("slow").css("visibility", "visible");
return false;
});
$(".GoogleAppsProducts li.ProductIcon7").click(function () {
$(".TabContent2").hide("slow");
$("this").show("slow");
$(".GoogleVideo").show("slow").css("visibility", "visible");
});
$("input[id$='GoBackButton6']").click(function () {
$(".TabContent2").show("slow");
$("this").hide("slow");
$(".GoogleVideo").hide("slow").css("visibility", "visible");
return false;
});
$(".GoogleAppsProducts li.ProductIcon8").click(function () {
$(".TabContent2").hide("slow");
$("this").show("slow");
$(".GoogleMoreGoogleApps").show("slow").css("visibility", "visible");
});
$("input[id$='GoBackButton7']").click(function () {
$(".TabContent2").show("slow");
$("this").hide("slow");
$(".GoogleMoreGoogleApps").hide("slow").css("visibility", "visible");
return false;
});
$(".GoogleAppsProducts li.ProductIcon9").click(function () {
$(".TabContent2").hide("slow");
$("this").show("slow");
$(".GoogleAppsMrkt").show("slow").css("visibility", "visible");
});
$("input[id$='GoBackButton8']").click(function () {
$(".TabContent2").show("slow");
$("this").hide("slow");
$(".GoogleAppsMrkt").hide("slow").css("visibility", "visible");
return false;
});
$(".GoogleAppsProducts li.ProductIcon10").click(function () {
$(".TabContent2").hide("slow");
$("this").show("slow");
$(".GoogleChrome").show("slow").css("visibility", "visible");
});
$("input[id$='GoBackButton9']").click(function () {
$(".TabContent2").show("slow");
$("this").hide("slow");
$(".GoogleChrome").hide("slow").css("visibility", "visible");
return false;
});
})