﻿$(document).ready(function() {
    //LEFT NAVIGATION
    var aniSpeed = 200;
    var aniSpeed2 = 150;
    var isIE = $.browser.msie;
    var browserVersion = $.browser.version;

    MM_preloadImages('/images/bg_mainTop.jpg');

    if (navigator.appVersion.indexOf("Mac") != -1) { // && $.browser.mozilla == true
        $('.footerTextContainer').find('a').css('font-size', '9px');
    }

    $('#SpurLeftNav').find('.SpurLeftNavItemUp').css('display', 'block');
    $('#SpurLeftNav').find('.SpurLeftNavItemHover').css('display', 'none');
    $('#SpurLeftNav').find('.SpurLeftNavItemUp').css('z-index', '1');
    $('#SpurLeftNav').find('.SpurLeftNavItemHover').css('z-index', '20');

    $('.SpurLeftNavItem').mouseover(function() {
        $('.SpurLeftNavItem').find('.SpurLeftNavItemHover').css('margin-left', '-4px');
        $('.SpurLeftNavItem').find('.SpurLeftNavItemHover').css('opacity', '0');
        $(this).find('.SpurLeftNavItemHover').css('display', 'block');
        $(this).find('.SpurLeftNavItemHover').animate({ marginLeft: 0, opacity: 1 }, { duration: aniSpeed, queue: false });
    });
    $('.SpurLeftNavItem').mouseout(function() {
        $('#SpurLeftNav').find('.SpurLeftNavItemHover').css('display', 'none');
    });


    $('.newsletterItem').hover(function() {
        $(this).animate({ width: 23 }, { duration: aniSpeed2, queue: false });
    }, function() {
        $(this).animate({ width: 20 }, { duration: aniSpeed2, queue: false });
    });


    $('.hozLine').html('');
    $('.hozLine').height(1);

    //Carousel Buttons
    if ($.browser.msie == true && $.browser.version == 7) {
        $('#prev').hover(function() {
            $(this).animate({ marginLeft: -55 }, { duration: 70, queue: false });
        }, function() {
            $(this).animate({ marginLeft: -50 }, { duration: 70, queue: false });
        });
        $('#next').hover(function() {
            var cMargin = $(this).css('margin-left').replace('px', '');
            $(this).animate({ marginLeft: 575 }, { duration: 70, queue: false });
        }, function() {
            var cMargin = $(this).css('margin-left').replace('px', '');
            $(this).animate({ marginLeft: 570 }, { duration: 70, queue: false });
        });
    }
    else {
        $('#prev').hover(function() {
            $(this).animate({ marginLeft: -75 }, { duration: 70, queue: false });
        }, function() {
            $(this).animate({ marginLeft: -70 }, { duration: 70, queue: false });
        });
        $('#next').hover(function() {
            var cMargin = $(this).css('margin-left').replace('px', '');
            $(this).animate({ marginLeft: 595 }, { duration: 70, queue: false });
        }, function() {
            var cMargin = $(this).css('margin-left').replace('px', '');
            $(this).animate({ marginLeft: 590 }, { duration: 70, queue: false });
        });
        //Sauces
        $('#sauceprev').hover(function() {
            $(this).animate({ marginLeft: 5 }, { duration: 70, queue: false });
        }, function() {
            $(this).animate({ marginLeft: 10 }, { duration: 70, queue: false });
        });
        $('#saucenext').hover(function() {
            var cMargin = $(this).css('margin-left').replace('px', '');
            $(this).animate({ marginLeft: 475 }, { duration: 70, queue: false });
        }, function() {
            var cMargin = $(this).css('margin-left').replace('px', '');
            $(this).animate({ marginLeft: 470 }, { duration: 70, queue: false });
        });
    }

    //MENU BUTTONS
    $('.menuButton').hover(function() {
        //if (!isIE || browserVersion != 8.0) {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '0px');
        $(this).find('.btnStateHover:first').css('display', 'block');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 276 }, { duration: aniSpeed2, queue: false });
        //}
        //else {
        //$(this).find('.btnStateHover:first').show();
        //}
    }, function() {
        $(this).find('.btnStateHover:first').hide();
        //$(this).find('.btnStateHover:first').find('img:first').animate({ width: 0 }, { duration: aniSpeed2, queue: false });
    });

    //OTHER BUTTONS - OPTION 1
    $('.button').hover(function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '0px');
        $(this).find('.btnStateHover:first').css('display', 'block');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 152 }, { duration: aniSpeed2, queue: false });
    }, function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '152px');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 0 }, { duration: aniSpeed2, queue: false });
    });

    $('.buttonUpload').hover(function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '0px');
        $(this).find('.btnStateHover:first').css('display', 'block');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 318 }, { duration: aniSpeed2, queue: false });
    }, function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '318px');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 0 }, { duration: aniSpeed2, queue: false });
    });

    //PLAYCAYON BUTTONS - OPTION 1
    $('.buttonPC').hover(function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '0px');
        $(this).find('.btnStateHover:first').css('display', 'block');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 129 }, { duration: aniSpeed2, queue: false });
    }, function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '129px');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 0 }, { duration: aniSpeed2, queue: false });
    });

    $('.button2').hover(function() {
        $(this).find('.btnStateUp:first').hide();
        $(this).find('.btnStateHover:first').fadeIn(aniSpeed2);
    }, function() {
        $(this).find('.btnStateHover:first').hide();
        $(this).find('.btnStateUp:first').fadeIn(aniSpeed2);
    });

    $('.button3').hover(function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '0px');
        $(this).find('.btnStateHover:first').css('display', 'block');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 168 }, { duration: aniSpeed2, queue: false });
    }, function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '168px');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 0 }, { duration: aniSpeed2, queue: false });
    });

    $('.button4').hover(function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '0px');
        $(this).find('.btnStateHover:first').css('display', 'block');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 230 }, { duration: aniSpeed2, queue: false });
    }, function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '230px');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 0 }, { duration: aniSpeed2, queue: false });
    });
    $('.button5').hover(function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '0px');
        $(this).find('.btnStateHover:first').css('display', 'block');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 331 }, { duration: aniSpeed2, queue: false });
    }, function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '331px');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 0 }, { duration: aniSpeed2, queue: false });
    });
    $('.button6').hover(function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '0px');
        $(this).find('.btnStateHover:first').css('display', 'block');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 350 }, { duration: aniSpeed2, queue: false });
    }, function() {
        $(this).find('.btnStateHover:first').find('img:first').css('width', '350px');
        $(this).find('.btnStateHover:first').find('img:first').animate({ width: 0 }, { duration: aniSpeed2, queue: false });
    });
});

//MARC: SET FLOAT CONTAINER HEIGHT - Layout Fixing
function setFloatContainerHeight(divID, lookFor) {
    $(document).ready(function() {
        $('#' + divID).css('height', $('#' + divID).find(lookFor + ':first').height() + 4 + 'px');
    });
}
function setFloatContainerHeightByClass(divID, lookFor) {
    $(document).ready(function() {
        $('.' + divID).css('height', $('.' + divID).find(lookFor + ':first').height() + 4 + 'px');
    });
}

function setFloatContainerHeightMax(divID, lookFor, plusHeight) {
    $(document).ready(function() {
        var tempHeight = 0;
        var containerIDHeight = 0;
        $.each($('#' + divID).find('.' + lookFor), function(key, value) {
            tempHeight = $(value).height() + plusHeight;
            if (tempHeight >= containerIDHeight) {
                containerIDHeight = tempHeight;
            }
        });
        $('#' + divID).css('height', containerIDHeight + 'px');
    });
}

function setItemsHeightMax(divID, lookFor, setItems, plusHeight) {
    $(document).ready(function() {
        var tempHeight = 0;
        var containerIDHeight = 0;
        $.each($('#' + divID).find('.' + lookFor), function(key, value) {
            tempHeight = $(value).height() + plusHeight;
            if (tempHeight >= containerIDHeight) {
                containerIDHeight = tempHeight;
            }
        });
        $('.' + setItems).css('height', containerIDHeight + 'px');
    });
}

function setHorScrollerTop(divID, plusHeight) {
    $(document).ready(function() {
        var heightVal = $('#' + divID).height();
        $('#content-slider').css('margin-top', heightVal + plusHeight + "px");
        $('#extra-content-slider').css('margin-top', heightVal + plusHeight + "px");
    });
}

function setHeight(ItemClass, IDsetHeight, plusHeight) {
    $(document).ready(function() {
        newHeight = $('#' + IDsetHeight).height() + plusHeight;
        $('.' + ItemClass).css('height', newHeight + 'px');
    });
}
function setHeightByClass(ItemClass, ClassSetHeight, plusHeight) {
    $(document).ready(function() {
        newHeight = $('.' + ClassSetHeight).height() + plusHeight;
        $('.' + ItemClass).css('height', newHeight + 'px');
    });
}

function setWidth(containerID, itemsClass, plusWidth) {
    $(document).ready(function() {
        var containerIDWidth = 0;
        $.each($('#' + containerID).find('.' + itemsClass), function(key, value) {
            containerIDWidth += $(value).width() + plusWidth;
        });
        $('#' + containerID).css('width', containerIDWidth + 'px');
    });
}

function setWidthItems(containerClass, lookFor, plusWidth) {
    $(document).ready(function() {
        var containerClassWidth = 0;
        $.each($('.' + containerClass).find(lookFor), function(key, value) {
            containerClassWidth = $(value).width() + plusWidth;
            if (containerClassWidth > 240)
                $(this).parents('.' + containerClass + ':first').css('width', containerClassWidth + 'px');
            else
                $(this).parents('.' + containerClass + ':first').css('width', '240px');
        });

    });
}

/*
//IE ClearType font fix
function() {
try {this.style.removeAttribute("filter");}
catch(Err){}
}
*/

function randomFromTo(from, to) {
    return Math.floor(Math.random() * (to - from + 1) + from);
}


//Load Flash
function loadFlash(swfFilename) {


    var secondFlashFile = false;
    var thirdFlashFile = false;
    if (randomFromTo(1, 100) > 50) secondFlashFile = true;
    if (randomFromTo(1, 300) > 150) thirdFlashFile = true;

    if (secondFlashFile) {
        if (swfFilename == "header1-home" || swfFilename == "header2-our story" || swfFilename == "header3-store locator" || swfFilename == "header10-franchise" || swfFilename == "header13-contact" || swfFilename == "specials" || swfFilename == "spur-people")
            swfFilename = swfFilename + "2";
    }

    if (thirdFlashFile) {
        if (swfFilename == "header13-contact" || swfFilename == "spur-people")
            swfFilename = swfFilename + "3";
    }

    $(document).ready(function() {
        var flashvars = {
            inBrowser: true,
            cacheVersion: 1
        };

        var params = {
            menu: "false",
            allowScriptAccess: "always",
            wmode: "transparent"
        };

        var attributes = {
            id: "main",
            name: "main"
        };
        var flashFound = swfobject.hasFlashPlayerVersion("9");
        if (!flashFound) {
            var flashImg = document.getElementById('flashDetectImage');
            flashImg.src = "/images/img_topFlashContainer.jpg";
            $("#TopFlash").fadeIn();
        } else {
            swfobject.embedSWF("/Swf/" + swfFilename + ".swf?v=" + flashvars.cacheVersion, "TopFlash", "747", "151", "9.0.124", "swf/expressInstall.swf", flashvars, params, attributes);
            $("#TopFlash").show();
        }
    });
}

function loadFlashCustom(swfFilename, divID, width, height) {
    $(document).ready(function() {
        var flashvars = {
            inBrowser: true,
            cacheVersion: 1
        };

        var params = {
            menu: "false",
            allowScriptAccess: "always",
            wmode: "transparent"
        };

        var attributes = {
            id: divID + "SWF",
            name: divID + "SWF"
        };
        var flashFound = swfobject.hasFlashPlayerVersion("9");
        if (flashFound) {
            swfobject.embedSWF("/Swf/" + swfFilename + ".swf?v=" + flashvars.cacheVersion, divID, width, height, "9.0.124", "swf/expressInstall.swf", flashvars, params, attributes);
        }
    });
}

function loadFlashCustomAssets(swfFilename, divID, width, height) {
    $(document).ready(function() {
        swfFilename = swfFilename.replace('.swf', '');
        var flashvars = {
            inBrowser: true,
            cacheVersion: 1
        };

        var params = {
            menu: "false",
            allowScriptAccess: "always",
            wmode: "transparent"
        };

        var attributes = {
            id: divID + "SWF",
            name: divID + "SWF"
        };
        var flashFound = swfobject.hasFlashPlayerVersion("9");
        if (flashFound) {
            swfobject.embedSWF("/Assets/" + swfFilename + ".swf?v=" + flashvars.cacheVersion, divID, width, height, "9.0.124", "/swf/expressInstall.swf", flashvars, params, attributes);
        }
    });
}

function loadFlashHomePromos(swfFilename, divID, width, height, sLink, sTarget) {
    $(document).ready(function() {
        swfFilename = swfFilename.replace('.swf', '');
        var flashvars = {
            inBrowser: true,
            cacheVersion: 1,
            link: sLink,
            target: sTarget
        };

        var params = {
            menu: "false",
            allowScriptAccess: "always",
            wmode: "transparent"
        };

        var attributes = {
            id: divID + "SWF",
            name: divID + "SWF"
        };
        var flashFound = swfobject.hasFlashPlayerVersion("9");
        if (flashFound) {
            swfobject.embedSWF("/Assets/" + swfFilename + ".swf?v=" + flashvars.cacheVersion, divID, width, height, "9.0.124", "/swf/expressInstall.swf", flashvars, params, attributes);
        }
    });
}

//AJAX Load page
function loadPage(url, contentID, extraClass) {
    var loadingHtmlDiv = '<div style="z-index:500; text-align:center; width:435px;"><b><img src="textGen.ashx?c=6&s=30&fc=1&t=LOADING" /></b><br/><img src="/images/loader.gif" alt="loading" /></div>';
    $('#' + contentID).html(loadingHtmlDiv).load(url, function() {
        $('#' + contentID).css('display', 'none');

        $('#' + contentID).removeClass();
        $('#' + contentID).addClass('contentColumnLeft');
        $('#' + contentID).addClass('contentBorderBGWhite');

        trackClick(url);

        if (extraClass != "") {
            $('#' + contentID).addClass(extraClass);
        }
        $('#' + contentID).fadeIn(function() {
            try { this.style.removeAttribute("filter"); }
            catch (Err) { }
        });
    });
}

//AJAX Load page
function showEvent(EventID, contentID, extraClass) {
    var loadingHtmlDiv = '<div style="z-index:500; text-align:center; width:435px;"><b><img src="textGen.ashx?c=6&s=30&fc=1&t=LOADING" /></b><br/><img src="/images/loader.gif" alt="loading" /></div>';
    $('#' + contentID).html(loadingHtmlDiv).load("Data/GetEvent.aspx?eID=" + EventID, function() {
        $('#' + contentID).css('display', 'none');

        trackClick("Data/GetEvent.aspx?eID=" + EventID);

        if (extraClass != "") {
            $('#' + contentID).addClass(extraClass);
        }
        $('#' + contentID).fadeIn(function() {
            try { this.style.removeAttribute("filter"); }
            catch (Err) { }
        });
    });
}

function trackClick(link) {
    try { pageTracker._trackPageview(link); }
    catch (err) { }
    try { _gaq.push(['_trackPageview', link]); }
    catch (err) { }

}


/*Alert Popup*/
function showAlert(alertText) {
    if ($.browser.msie && $.browser.version == 6.0)
        $('select').css('visibility', 'hidden');

    $('#alertPopupContainer').css('top', '-50px');
    $('#alertPopupContainer').css('cursor', 'pointer');
    $('#alertPopupContainer').css('display', 'block');
    $('#alertPopupContainer').show();
    $('#alertTitle').html('<img src="/TextGen.ashx?s=34&t=' + alertText + '" alt="" />');

    $('#alertPopupContainer').animate({ top: 200 }, 400, 'easeOutBack');
}

function closeAlert() {
    if ($.browser.msie && $.browser.version == 6.0)
        $('select').css('visibility', 'visible');

    $('#alertPopupContainer').animate({ top: -200 }, 400, 'easeOutBack',
function() {
    $('#alertPopupContainer').css('display', 'none');
});
}

$(document).ready(function() {
    $('#alertPopupContainer').mouseover(function() {
        closeAlert();
    });
});

/*Form*/
function validateEmail(elem) {
    var RegularExpression = new RegExp(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/);
    var field = document.getElementById(elem);
    if (!RegularExpression.test(field.value)) {
        showAlert();
        field.focus();
        return false;
    }
    else {
        return true;
    }
}
function Focus(elem) {
    var txt = document.getElementById(elem);
    txt.style.backgroundColor = '#f2c5cd';
    txt.focus();
}

function clean(elem) {
    var f = document.getElementById(elem);
    f.focus();
    f = f.value.replace(/^\s+|\s+$/g, "");
    return f;
}

//Get Url Variable
function getURLVar(urlVarName) {
    var urlHalves = String(document.location).split('?');
    var urlVarValue = '';
    if (urlHalves[1]) {
        var urlVars = urlHalves[1].split('&');
        for (var i = 0; i <= (urlVars.length); i++) {
            if (urlVars[i]) {
                var urlVarPair = urlVars[i].split('=');
                if (urlVarPair[0] && urlVarPair[0].toLowerCase() == urlVarName.toLowerCase()) {
                    urlVarValue = urlVarPair[1];
                }
            }
        }
    }
    return urlVarValue;
}

function showMenuIntroLoad(ID) {
    $.prettyPhoto.open("/Data/GetNutrition.aspx?ID=" + ID + "&iframe=true&width=470&height=450", "", "");
}

function showMenuIntroLoad2(ID) {
    $.prettyPhoto.open("/Data/GetHeart.aspx?ID=" + ID + "&iframe=true&width=470&height=450", "", "");
}

function getData(ID) {
    $.prettyPhoto.open("/Data/GetData.aspx?ID=" + ID + "&iframe=true&width=470&height=450", "", "");
}

function getSpecial(ID) {
    $.prettyPhoto.open("/Data/GetSpecials.aspx?ID=" + ID + "&iframe=true&width=470&height=450", "", "");
}

function showSpurPeopleUpload() {
    $.prettyPhoto.open("/Data/SpurPeopleUpload.aspx?iframe=true&width=740&height=400", "", "");
}


function showBikeWinners(ID) {
    $.prettyPhoto.open("/Data/bikeWinners.aspx?prov=" + ID + "&iframe=true&width=760&height=400", "", "");
}

function getInfo(Url) {
    $.prettyPhoto.open(Url + "&iframe=true&width=696&height=440", "", "");
}

function getInfoMore(Url) {
    $.prettyPhoto.open(Url + "&iframe=true&width=760&height=440", "", "");
}






//PRELOAD IMAGES-------------------------------------------------------------------------------------------
function MM_preloadImages() { //v3.0
    var d = document; if (d.images) {
        if (!d.MM_p) d.MM_p = new Array();
        var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
            if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; }
    }
}
//preButtons
MM_preloadImages('/images/Buttons/clickMoreH.gif');
MM_preloadImages('/images/Buttons/FullMenuH.gif');
MM_preloadImages('/images/Buttons/FullMenuH.png');
MM_preloadImages('/images/Buttons/menuItemArr.gif');
MM_preloadImages('/images/Buttons/recipe01H.jpg');
MM_preloadImages('/images/Buttons/recipe02H.jpg');
MM_preloadImages('/images/Buttons/recipe03H.jpg');
MM_preloadImages('/images/Buttons/SearchH.jpg');
MM_preloadImages('/images/Buttons/submitH.gif');
MM_preloadImages('/images/Buttons/uploadH.jpg');
MM_preloadImages('/images/Buttons/viewH.jpg');
MM_preloadImages('/images/Buttons/visitWebsiteH.jpg');

//Other
MM_preloadImages('/textGen.ashx?c=6&s=30&fc=1&t=LOADING');


//preAlerts
function preloadAlertMsg() {
    MM_preloadImages('/images/Alert/back.png');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in all form fields and try again.');
    MM_preloadImages('/TextGen.ashx?s=34&t=An error has occured, please try again.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Message has been sent successfully.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Invalid Email-Address supplied, please try again.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your First Name.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your Last Name.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your Email Address.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your Physical Address.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your Postal Address.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your Contact Number.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your Previous Experience.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your Current Occupation.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your Name.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your Surname.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your Comment.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please select a Province and try again.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Sign up was successful, thank you.');
    MM_preloadImages('/TextGen.ashx?s=34&t=Enquiry has been sent successfully.');
}

//preStoreAlerts
function preloadStoreAlertMsg() {
    MM_preloadImages('/images/Alert/back.png');
    MM_preloadImages('/TextGen.ashx?s=34&t=Please fill in your search keywords.');
}

//preMenuItems
function preloadMenuItems() {
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Breakfast');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Starters');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Legendary%20Steaks');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Ribs%20%26%20Sizzling%20Grills');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Burgers');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Chicken,%20Schnitzel%20%26%20Seafood');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20El%20Gran%20Mexicano');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Toasted%20Sandwiches');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Desserts');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Salads');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Kids%20Menu');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Meal%20Vouchers');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Nutrition');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Heart%20Foundation');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Spur%20Sauces');
    MM_preloadImages('/textGen.ashx?c=5&s=17&fc=1&t=%20%20%20Halaal%20Menu');
}

//preStoreAlerts
function preloadVerticalScroller() {
    MM_preloadImages('/images/ScrollerVert/windows_arrow_down.gif');
    MM_preloadImages('/images/ScrollerVert/windows_arrow_up.gif');
    MM_preloadImages('/images/ScrollerVert/windows_drag_bottom.gif');
    MM_preloadImages('/images/ScrollerVert/windows_drag_middle.gif');
    MM_preloadImages('/images/ScrollerVert/windows_track.gif');
    MM_preloadImages('/images/ScrollerVert/windows_drag_top.gif');
    MM_preloadImages('/images/ScrollerVert/windows_drag_top.png');
    MM_preloadImages('/images/ScrollerVert/windows_drag_bottom.png');
    MM_preloadImages('/images/ScrollerVert/windows_drag_middle.png');
}



