
    $(".google-map").gMap({ 
    controls:               ["GSmallMapControl", "GMapTypeControl"],zoom: 15,icon: { image: "http://khyberindianrestaurant.co.uk/new//imgs/build/map-icon.png", 
                              iconsize: [42, 46],
                              iconanchor: [25, 35]},
    markers: [{ latitude: 53.52551,
                                  longitude: -0.820178 }] });
                                  
    $("a[rel=gallery]").fancybox({
    	'titlePosition' 	: 'over',
    	'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
    		return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
    	}
    });
    

    
    

        $(' a[href*=#]').click(function() {
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
            && location.hostname == this.hostname) {
                var $target = $(this.hash);
                $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
                if ($target.length) {
                    var targetOffset = $target.offset().top;
                    $('html,body').animate({scrollTop: targetOffset - 50}, 1000);
                    return false;
                }
            }
        });
        
        $('#nav1').scrollToFixed({
            preFixed: function(el) { $('#nav1').css({'background-color': '#720D17'}),$('#nav1 a').css({'font-weight': 'bold', 'color':'#fff'}); },
            
            postFixed: function(el) { $('#nav1').css({'background-color': 'transparent'}),$('#nav1 a').css({'font-weight': 'normal', 'color':'#000'}); }
        });
      
        $('#nav2').scrollToFixed({
                   preFixed: function(el) { $('#nav2').css({'background-color': '#720D17'}),$('#nav2 a').css({'font-weight': 'bold', 'color':'#fff'}); },
                   
                   postFixed: function(el) { $('#nav2').css({'background-color': 'transparent'}),$('#nav2 a').css({'font-weight': 'normal', 'color':'#000'}); }
               });
        
 
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console) {
    arguments.callee = arguments.callee.caller;
    var newarr = [].slice.call(arguments);
    (typeof console.log === 'object' ? log.apply.call(console.log, console, newarr) : console.log.apply(console, newarr));
  }
};

// make it safe to use console.log always
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try
{console.log();return window.console;}catch(err){return window.console={};}})());


// place any jQuery/helper plugins in here, instead of separate, slower script files.


