 
    $(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");
						
						if($(".banner-img").length > 0)
						{
   							$(".banner-img").banner();
    					}
		$('.mainnav > ul.sf-menu > li').each(function(index) {
                $(this).addClass('link_'+(index+1));
				
        });
    
	$('.closebt').click(function(){	
		$(".video_screen").remove();
	});
	
	/*-- Code for video --*/
	var base_url 		= $('base').attr('href');
	var video_path 	= base_url + 'files/video/video1.flv'; 
	
	$.ajax({
		url:video_path,
		type:'HEAD',
		error:
			function(){
				$('#video_screen').detach();
			}

	});
	/*-- Code for video --*/
   }); 


//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';
   }
 };
