|
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 User : jackjohn ( 502) PHP Version : 5.3.17 Disable Function : NONE Directory : /home/jackjohn/public_html/cgi-bin/sc/templates/includes/ |
Upload File : |
[-- IF PageMenu --][-- PageMenu no_jscript --]
<script type="text/javascript">var liwidth = "0"; $("ul#ShopSite > li").each(function() {liwidth = parseInt(liwidth) + parseInt($(this).outerWidth());}); $("div.suckertreemenu").append("<a href=\"[-- MyStoreURL --]\" id=\"categoriesLink\" onclick=\"openVertical(); return false;\">Categories<\/a>"); $("ul#ShopSite").append("<div id=\"bb-navfade\" onclick=\"openVertical();\"><\/div>"); $("ul#ShopSite li").each(function() {if ($(this).children("ul").length > 0) {$(this).attr("class","bb-navfolder")}});
[-- IF VAR.Type "page" --]$("#ShopSite > li").each(function() {if ($(this).html().indexOf("[-- PAGE.FileName --]") != -1) {$(this).addClass("subcategory"); return false;}});[-- ELSE_IF VAR.Type "mi" --][-- IF VAR.PageFileName NE "index.html" --]$("#ShopSite > li").each(function() {if ($(this).html().indexOf("[-- VAR.PageFileName --]") != -1) {$(this).addClass("subcategory"); return false;}});[-- END_IF --][-- ELSE_IF VAR.Type "cart" --]$("#ShopSite > li").each(function() {if (/order.cgi/i.test($(this).html())) {$(this).addClass("subcategory"); return false;}});[-- END_IF --]
function rdCheck(wels) {
if (wels > $("div.suckertreemenu").parent().outerWidth()) {verticalNav();}
else if ($("html").attr("id") === "touch") {horizontalNavTouch();}
else {regularNav();}
}
$("document").ready(function() {
$(window).resize(debouncer(function() {rdCheck(liwidth);}));
rdCheck(liwidth);
});
#function rdCheck(wels) {if (wels > ($("div.suckertreemenu").parent().outerWidth())) {verticalNav();} else if ((wels <= ($("div.suckertreemenu").outerWidth())) && ($("html").attr("id") === "touch")) {horizontalNavTouch();} else {regularNav();}}
#$( window ).resize(debouncer(function(e) {if($("#ShopSite").css("display")!='none'){rdCheck(liwidth);}}));
#rdCheck(liwidth);
</script>
[-- ELSE_IF STORE.Type "STARTER" --]
<div class="suckertreemenu"><ul id="ShopSite"><li><a href="[-- MyStoreURL --]" title="[-- STORE.Name REMOVE_HTML --]">[-- STORE.Home --]</a></li><li><a href="[-- SHOPPING_CART_URL --]" title="[-- STORE.SC_YourShoppingCart --]">[-- STORE.ViewCartText --]</a></li></ul></div>
[-- END_IF --]