﻿//Glider Settings
        featuredcontentglider.init({
	    gliderid: "fhmvideos", //ID of main glider container
	    contentclass: "glidecontent", //Shared CSS class name of each glider content
	    togglerid: "p-select", //ID of toggler container
	    remotecontent: "", //Get gliding contents from external file on server? "filename" or "" to disable
	    selected: 0, //Default selected content index (0=1st)
	    persiststate: false, //Remember last content shown within browser session (true/false)?
	    speed: 500, //Glide animation duration (in milliseconds)
	    direction: "rightleft", //set direction of glide: "updown", "downup", "leftright", or "rightleft"
	    autorotate: false, //Auto rotate contents (true/false)?
	    autorotateconfig: [3000, 10] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
        })
    
       
        /***********************************************
        * Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
        * This notice MUST stay intact for legal use
        * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
        ***********************************************/
        var TO;        

        var offsetxpoint=0 //Customize x offset of tooltip
        var offsetypoint=0 //Customize y offset of tooltip
        var ie=document.all
        var ns6=document.getElementById && !document.all
        var enabletip=false
        if (ie||ns6)
        var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

        function ietruebody(){
        return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
        }

        function ddrivetip(thetext, thecolor, thewidth){
        clearTimeout(TO);
        if (ns6||ie){
        if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
        //if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundImage.src='/site/videoChannel/images/boxFade.jpg'
        tipobj.innerHTML='<div style="position:relative; height: 90px;" class="hoverWindow"><div class="divArrow"></div>' + thetext + '</div>'
        //tipobj.style.backgroundImage.src=''
        //tipobj.style.backgroundPosition=''
        enabletip=true
        return false
        }
        }

        function positiontip(e){
        if (enabletip){
        var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
        var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
        //Find out how close the mouse is to the corner of the window
        var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
        var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20

        var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000

        //if the horizontal distance isn't enough to accomodate the width of the context menu
        if (1==0)
        //if (rightedge<tipobj.offsetWidth)
        //move the horizontal position of the menu to the left by it's width
        tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
        else if (curX<leftedge)
        tipobj.style.left="5px"
        else
        //position the horizontal position of the menu where the mouse is positioned
        tipobj.style.left=curX+offsetxpoint+"px"

        //same concept with the vertical position
        if (1==1)
        //if (bottomedge<tipobj.offsetHeight)
        tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
        else
        tipobj.style.top=curY+offsetypoint+"px"
        tipobj.style.visibility="visible"
        }
        }

        function hideddrivetip(){
        if (ns6||ie){
        TO = setTimeout('hideit()',1)
        }
        }
        
        function hideit()
        {
            enabletip=false
            tipobj.style.visibility="hidden"
            tipobj.style.left="-1000px"
            tipobj.style.backgroundColor=''
            tipobj.style.width=''
        }

        document.onmousemove=positiontip
        
        function refreshIt()
        {
            //dcsMultiTrack('DCS.dcsuri', '/site/videochannel/default2.aspx?categoryid=51');
            
            var banner;
            var mpu;
                
            banner = document.getElementById('ADTECH_AdContainer_1632675');
            if(banner)
            {
                //alert('here!');
                banner.innerHTML = '<iframe id="ADTECH_IFRAME_1632675" style="width: 2px; height: 3px;" src="/adtech/stubfile.html" frameborder="0"></iframe>';
                banner.src = '/adtech/stubfile.html';
            }
            
            mpu = document.getElementById('ADTECH_AdContainer_1601005');
            if(mpu)
            {
                mpu.innerHTML = '<IFRAME ID="ADTECH_IFRAME_1601005" FRAMEBORDER="0" STYLE="width: 0px; height: 0px;" SRC="/adtech/stubfile.html"></IFRAME>';
                mpu.src = '/adtech/stubfile.html';
            }
        }
        
        function refreshIt2()
        {
            //dcsMultiTrack('DCS.dcsuri', '/site/videochannel/channelindex.aspx?categoryid=51');
            
            var banner;
            var mpu;
                
            banner = document.getElementById('ADTECH_AdContainer_1632675');
            if(banner)
            {
                banner.innerHTML = '<iframe id="ADTECH_IFRAME_1632675" style="width: 2px; height: 3px;" src="/adtech/stubfile.html" frameborder="0"></iframe>';
                banner.src = '/adtech/stubfile.html';
            }
            
            mpu = document.getElementById('ADTECH_AdContainer_1601005');
            if(mpu)
            {
                mpu.innerHTML = '<IFRAME ID="ADTECH_IFRAME_1601005" FRAMEBORDER="0" STYLE="width: 0px; height: 0px;" SRC="/adtech/stubfile.html"></IFRAME>';
                mpu.src = '/adtech/stubfile.html';
            }
        }


