﻿/// <reference path="jquery-1.3.2-vsdoc2.js" />

/*  --------------------------------------------------  -----------------------------------*/

    /*
    When hover over the left side bar video link then brighten accompanying light bulb 
    */
    
    $(document).ready(function() {
        $("a[id*='demoColLinkMainPage']").hover(function() {
            $(this).children('img').attr("src", "images/VidBul_1.png");
        }, function() {
            $(this).children('img').attr("src", "images/VidBul_0.png");
        });
})
/*  --------------------------------------------------  -----------------------------------*/

/*  ------------------------TABS----------------  -----------------------------------*/

$(document).ready(function() {
// Tabs
$('#tabs').tabs();
})
/*  --------------------------------------------------  -----------------------------------*/




/*
When hover over the main text link then 
update images (light blue bulb) and border around video shot
*/
$(document).ready(function() {
    $("a[id*='demoLink']").hover(function() {
    $(this).parent().children('a').children('img').attr("src", "images/VidBul_1.png");
    /*$(this).parent().siblings().children('a').children('img').addClass("imgGreenHilite");*/
        /*$(this).addClass("demoLinkDown");*/
    }, function() {
    $(this).parent().children('a').children('img').attr("src", "images/VidBul_0.png");
    /*$(this).parent().siblings().children('a').children('img').removeClass("imgGreenHilite");*/
    /*$(this).removeClass("demoLinkDown");*/
    });
})
/*  --------------------------------------------------  -----------------------------------*/

    /*
    When hover over the vid scrn shot then 
    (1) img border
    (2) underline text link 
    (3) lightbulb
    */
    $(document).ready(function() {
        $("a[id*='demoScrnShotLink']").hover(function() {
            $(this).parent().siblings().children('a').children('img').attr("src", "images/VidBul_1.png");
            $(this).parent().siblings().children('a').removeClass("demoLink");
            $(this).parent().siblings().children('a').addClass("demoLinkDown");
        }, function() {
            $(this).parent().siblings().children('a').children('img').attr("src", "images/VidBul_0.png");
            $(this).parent().siblings().children('a').removeClass("demoLinkDown");
            $(this).parent().siblings().children('a').addClass("demoLink");
        });

    })

    $(function() {
        var tabContainers = $('div.tabs > div');

        $('div.tabs ul.tabNavigation a').click(function() {
            tabContainers.hide().filter(this.hash).show();

            $('div.tabs ul.tabNavigation a').removeClass('selected');
            $(this).addClass('selected');

            return false;
        }).filter(':first').click();
    });

/*

        $("div[id*='vidTitle']").hover(
            function() {
                $(this).children('span').show("fast");
            }
            , function() {
                $(this).children('span').hide();
            })
    });
*/

    /*
    Junk for hover on main page?
    */
  /*
    $("div[id*='vidTitle']").hover(
            function() {
                $(this).children('span').show("fast");
                }
            , function() {
                $(this).children('span').hide();
            })
        });

*/

/*


$(document).ready(function() {
            $("a[id*='demoLink']").hover(function() {
                $(this).parent().children('img').attr("src", "images/VidBul_1.png");
                //$(this).parent().children('img').addClass("imgGreenHilite");
                $(this).parent().siblings().children('img').addClass("imgGreenHilite");
                $(this).addClass("demoLinkDown");
            }, function() {
                $(this).parent().children('img').attr("src", "images/VidBul_0.png");
                //$(this).parent().children('img').removeClass("imgGreenHilite");
                $(this).parent().siblings().children('img').removeClass("imgGreenHilite");
                $(this).removeClass("demoLinkDown");
            });

            //$("span[id='vidDesc1']").css("background-color", "#FF00FF");

            $("div[id*='vidTitle']").hover(
            function() {
                $(this).children('span').show("fast");
            }
            , function() {
                $(this).children('span').hide();
            })
        });

*/


//$(document).ready(function() {
//$(function() {
//    $("div[id='vidTitle2').hover(function() {
//        $(this).css('background-color', '#F00');
//    },
//    function() {
//        $(this).css('background-color', '#000');
//    });
//});
//})

//    $("div[id*='vidTitle']").hover(function() {
//        alert("hidden");
//        if($(this).next('span').is(":hidden"))
//        {
//        //$(this).next('div').attr("width","500px");
//        $(this).next('span').slideDown("slow");
//        }
//    else 
//    {
//        $(this).next('span').hide();
//    }
//    }
    
//  $(document).ready(function(){
//    $("img").hover(
//      function() {
//      alert("test");
//      }, function () {
//      ;
//      })
    

   
