 function formatText(index, panel) {
		  return index + "";
	    }
    
        $(function () {
        
            $('.anythingSlider').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 3000,                    // How long between slide transitions in AutoPlay mode
                startStopped: true,            // If autoPlay is on, this can force it to start stopped
                animationTime: 600,             // How long the slide transition takes
                hashTags: true,                 // Should links change the hashtag in the URL?
                buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        		startText: "Go",             // Start text
		        stopText: "Stop",               // Stop text
		        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
            });
            
       
            $('.slider_thumbnail').anythingSlider( {
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
             autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
               delay: 8000,                    // How long between slide transitions in AutoPlay mode
            startStopped: true,            // If autoPlay is on, this can force it to start stopped
                animationTime: 600,             // How long the slide transition takes
                hashTags: true,                 // Should links change the hashtag in the URL?
                buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        		startText: "Go",             // Start text
		        stopText: "Stop",               // Stop text
		        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
            });
            
      
			$('.thum_hover').click(function(){
				var slider_id = this.id;
				var slideNo = parseInt(slider_id.substr(13));
				 $('.thum_hover').removeClass('thum_selected'); 
				 $(this).addClass('thum_selected'); 
				 $('.anythingSlider').anythingSlider(slideNo);
            });
			$('.thum_hover').mouseover(function(){
				 $(this).addClass('thum_hover_effect'); 
			  });
			  $('.thum_hover').mouseout(function(){
				 $(this).removeClass('thum_hover_effect'); 
			  });
	      
		var so2 = new SWFObject("../flash/video_sat.swf", "video_display", "463", "261", "9", "");
	so2.addParam("allowFullScreen","true");	
	so2.addParam("allowScriptAccess","sameDomain");
	so2.addParam("wmode","transparent");	  
	so2.addParam('FlashVars','var_path=http://www.exacap.com/ad/flash/video_sat.flv');	
	so2.write("video_display");
        });
		
function full_screen() 
{
var newwindow = '';
	if (newwindow.location && !newwindow.closed) 
	{ newwindow.location.href = 'tv/ad/'; newwindow.focus(); } 
	else 
	{ newwindow=window.open('tv/ad/','tv_ad','menubar=0,resizable=0,location=0,status=0,scrollbars=0,width=720,height=576') ; }
	}
