$(document).ready(function() { 
        $('ul.sf-menu').superfish({ 
            delay:       100,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',                          // faster animation speed 
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        }); 
		
						$(".toggle").accordion({li: "a",
						autoHeight: false,
						collapsible: true
						});	
						
						$("ul > li:last-child").addClass("none");						
					
						Cufon.replace('.maintxt', { fontFamily: 'Vegur' });
						Cufon.replace('.text', { fontFamily: 'Tw Cen MT' });
						Cufon.replace('.number', { fontFamily: 'Myriad Pro' });
						Cufon.replace('h1,h2', { fontFamily: 'HelveticaNeueLT Com 57 Cn' });
						Cufon.replace('h2', { textShadow: '0 -1px 1px #27303c' });
						

					
						if($(".banner-img").length > 0)
							{
								$(".banner-img").banner();
							}
   }); 
//Following Script is to solve issues of banner in Firefox 3.6 MAC 
 window.onload = forceBrowserEven;
 window.onresize = forceBrowserEven;

function forceBrowserEven(){
 //Detect Firefox less than 3.6 & Mac
   if (navigator.platform.indexOf("Mac")!=-1 && navigator.userAgent.indexOf("Firefox/3.6")!=-1 && document.width % 2 == 1){
    document.getElementsByTagName('html')[0].style.marginLeft = '-1px';
   }
 };
