
/* the next line is an example of how you can override default options globally (currently commented out) ... */
 // $.fn.cluetip.defaults.tracking = true;
// $.fn.cluetip.defaults.debug = true;
$(document).ready(function() {

 // $.cluetip.setup({insertionType: 'insertBefore', insertionElement: 'div:first'});


 // HOVER BOXES:
   $('a.hoverBox').cluetip({
    cluetipClass: 'hoverBox',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 448,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });
    
    /*sekhar*/
    
    // ASSET HOVER BOXES - CASE 1:
   $('a.horizontalAssetHoverWithRelated').cluetip({
    cluetipClass: 'horizontalAssetHoverWithRelated',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 360,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });
    
    
    

// ASSET HOVER BOXES - CASE 2:
   $('a.horizontalAssetHoverNoRelated').cluetip({
    cluetipClass: 'horizontalAssetHoverNoRelated',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 290,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });
    
    
    
// ASSET HOVER BOXES - CASE 3:
   $('a.verticalAssetHoverWithRelated').cluetip({
    cluetipClass: 'verticalAssetHoverWithRelated',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 423,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });
    
    

// ASSET HOVER BOXES - CASE 4:
   $('a.verticalAssetHoverNoRelated').cluetip({
    cluetipClass: 'verticalAssetHoverNoRelated',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 300,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });


 // VIDEO BOXES:
   $('a.videoBox').cluetip({
    cluetipClass: 'videoBox',
    arrows: true,
    dropShadow: false,
	sticky: true,
	showTitle: false,
	titleAttribute:	'name',
	height: 298,
	width: 211, //183 width + .cluetip-videoBox #cluetip-outer {left margin value }
	positionBy: 'bottomTop',
	topOffset: '10px',
	leftOffset: '0px',
	closeText: '',
	cursor: 'pointer',
	activation: 'click',
	clickThrough: true,
	onShow: function(e){
        $(".vidHovPlaylist").click(function(){
                var $this = $(this);
                if( $this.is('.hovplaylist_add') ) {
                        $this.removeClass('hovplaylist_add');
                        $this.addClass('hovplaylist_remove');
                }
                else if( $this.is('.hovplaylist_remove') ) {
                        $this.removeClass('hovplaylist_remove');
                        $this.addClass('hovplaylist_add');
                }
        });
		}
	});


    $('a.videoBox2').cluetip({
    cluetipClass: 'videoBox2',
    arrows: true,
    dropShadow: false,
	sticky: true,
	showTitle: false,
	titleAttribute:	'name',
	height: 298,
	width: 231, //183 width + .cluetip-videoBox2 #cluetip-outer {left margin value }
	positionBy: 'bottomTop',
	topOffset: '10px',
	leftOffset: '0px',
	closeText: '',
	cursor: 'pointer',
	activation: 'click',
	clickThrough: true,
	onShow: function(e){
        $(".vidHovPlaylist").click(function(){
                var $this = $(this);
                if( $this.is('.hovplaylist_add') ) {
                        $this.removeClass('hovplaylist_add');
                        $this.addClass('hovplaylist_remove');
                }
                else if( $this.is('.hovplaylist_remove') ) {
                        $this.removeClass('hovplaylist_remove');
                        $this.addClass('hovplaylist_add');
                }
        });
		}
	});

    $('a.videoBox3').cluetip({
    cluetipClass: 'videoBox3',
    arrows: false,
    dropShadow: false,
	sticky: true,
	showTitle: false,
	titleAttribute:	'name',
	height: 298,
	width: 183,
	positionBy: 'fixed',
	topOffset: '-320px',
	leftOffset: '-30px',
	closeText: '',
	cursor: 'pointer',
	activation: 'click',
	clickThrough: true,
	onShow: function(e){
        $(".vidHovPlaylist").click(function(){
                var $this = $(this);
                if( $this.is('.hovplaylist_add') ) {
                        $this.removeClass('hovplaylist_add');
                        $this.addClass('hovplaylist_remove');
                }
                else if( $this.is('.hovplaylist_remove') ) {
                        $this.removeClass('hovplaylist_remove');
                        $this.addClass('hovplaylist_add');
                }
        });
		}
	});
	
// SMART SEARCH
   $('a.smartSearch').cluetip({
    cluetipClass: 'smartSearch',
	closeText: '',
    arrows: false,
    dropShadow: false,
    sticky: true,
	showTitle: false,
	width: 258,
	positionBy: 'fixed',
	topOffset: '22px',
	leftOffset: '-258px',
	cursor: 'pointer',
	activation: 'click',
	clickThrough: true
    });


});


function funSetHoverforAssets()
{
 $('a.hoverBox').cluetip({
    cluetipClass: 'hoverBox',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 448,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });
    // ASSET HOVER BOXES - CASE 1:
   $('a.horizontalAssetHoverWithRelated').cluetip({
    cluetipClass: 'horizontalAssetHoverWithRelated',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 360,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });
    
    
    

// ASSET HOVER BOXES - CASE 2:
   $('a.horizontalAssetHoverNoRelated').cluetip({
    cluetipClass: 'horizontalAssetHoverNoRelated',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 290,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });
    
    
    
// ASSET HOVER BOXES - CASE 3:
   $('a.verticalAssetHoverWithRelated').cluetip({
    cluetipClass: 'verticalAssetHoverWithRelated',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 423,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });
    
    

// ASSET HOVER BOXES - CASE 4:
   $('a.verticalAssetHoverNoRelated').cluetip({
    cluetipClass: 'verticalAssetHoverNoRelated',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 300,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });
    
}
function funSetHoverforTitles()
{
 $('a.hoverBox').cluetip({
    cluetipClass: 'hoverBox',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 448,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });
    
    SetFavoritesYN();
    SetAddtoCartYN();
    funBuildTreeView();
    //Added by Anil on 06.Jann For Video Box dialog.
    funSetVideoBoxDialog();
    // Styles all checkboxes
	$().cssFilterCheckbox();
	
	//$(document).ready(function(){ 
        $('div.toggler-sidebar').toggleElements( 
            { fxAnimation:'slide', fxSpeed:'fast', className:'togglerSide' } ); 
    //}); 
}

function funSetHoverforTitles1()
{
 $('a.hoverBox').cluetip({
    cluetipClass: 'hoverBox',
    arrows: false,
    dropShadow: false,
    sticky: false,
    mouseOutClose: false,
	showTitle: false,
	height: 448,
	width: 414,
	positionBy: 'auto',
	topOffset: 5,
	leftOffset: 5,
	cursor: 'pointer',
	clickThrough: true,
	fx: { open: 'fadeIn', openSpeed: 'fast' },
	hoverIntent: {
		sensitivity:  3,
		interval:     150,
		timeout:      0
	}
    });
}

function funSetCheckBoxesforCartTitles()
{
     $().cssCartCheckbox();
}
//Added by Anil on 06.Jann For Video Box dialog.
function funSetVideoBoxDialog()
{
    $('a.videoBox').cluetip({
    cluetipClass: 'videoBox',
    arrows: true,
    dropShadow: false,
	sticky: true,
	showTitle: false,
	titleAttribute:	'name',
	height: 298,
	width: 211, //183 width + .cluetip-videoBox #cluetip-outer {left margin value }
	positionBy: 'bottomTop',
	topOffset: '10px',
	leftOffset: '0px',
	closeText: '',
	cursor: 'pointer',
	activation: 'click',
	clickThrough: true,
	onShow: function(e){
        $(".vidHovPlaylist").click(function(){
                var $this = $(this);
                if( $this.is('.hovplaylist_add') ) {
                        $this.removeClass('hovplaylist_add');
                        $this.addClass('hovplaylist_remove');
                }
                else if( $this.is('.hovplaylist_remove') ) {
                        $this.removeClass('hovplaylist_remove');
                        $this.addClass('hovplaylist_add');
                }
        });
		}
	});
	
	$('a.videoBox2').cluetip({
    cluetipClass: 'videoBox2',
    arrows: true,
    dropShadow: false,
	sticky: true,
	showTitle: false,
	titleAttribute:	'name',
	height: 298,
	width: 231, //183 width + .cluetip-videoBox2 #cluetip-outer {left margin value }
	positionBy: 'bottomTop',
	topOffset: '10px',
	leftOffset: '0px',
	closeText: '',
	cursor: 'pointer',
	activation: 'click',
	clickThrough: true,
	onShow: function(e){
        $(".vidHovPlaylist").click(function(){
                var $this = $(this);
                if( $this.is('.hovplaylist_add') ) {
                        $this.removeClass('hovplaylist_add');
                        $this.addClass('hovplaylist_remove');
                }
                else if( $this.is('.hovplaylist_remove') ) {
                        $this.removeClass('hovplaylist_remove');
                        $this.addClass('hovplaylist_add');
                }
        });
		}
	});
}




