

jQuery(document).ready(function() {

  

 if(mycarousel_itemList != undefined && mycarousel_itemList.length > 0)
  {
        $('#mycarousel').jcarousel({
            visible: 2,
			scroll: 2,
			size: mycarousel_itemList.length,
            itemLoadCallback: {onBeforeAnimation: mycarousel_itemLoadCallback}
        });
   }
   else
   {
        $("#mycarousel").append('<li>Please refer to the <a href="' + window.location + '/reader">published document</a><br/>to view relevant drawings.</li>');
		$("#patent_drawing_container").css({"width": "300px", "margin-left": "30px"});
        $("#drawingInstructions").hide();
   }
    
	$('#indexedcitations table.citations tr:not([th]):even').addClass('alternateRow');
	$('table.outsideCitations tr:not([th]):even').addClass('alternateRow');
	$('table.nplCitations tr:not([th]):even').addClass('alternateRow');
	$('#referencedbylist table tr:not([th]):even').addClass('alternateRow');
	$('table.products tr:not([th]):even').addClass('alternateRow');
    

  $('a.tips').cluetip({
    showTitle: false,
    width: 550,
    topOffset: 10,
    leftOffset: 50,
    arrows: true,
    positionBy: 'mouse',
    showTitle: false,
    ajaxCache: false,
    attribute: 'clue',
    mouseOutClose: true,
    sticky: true,
    clickThrough: true,
    fx: { open: 'fadeIn', close: 'fadeOut', openSpeed: 'fast'}, 
    hoverIntent: {    
                      sensitivity:  1,
                      interval:     150,
                      timeout:      0
    }   
  });
  
  
   $('a.classTips').cluetip({
    showTitle: false,
    width: 550,
    height: 'auto',
    topOffset: 25,
    arrows: true,
    dropShadowSteps: 7,
    positionBy: 'auto',
    showTitle: false,
    ajaxCache: false,
    attribute: 'clue',
    mouseOutClose: true,
    sticky: true,
    clickThrough: true,
    fx: { open: 'fadeIn', close: 'fadeOut', openSpeed: 'fast'}, 
    hoverIntent: {    
                      sensitivity:  1,
                      interval:     150,
                      timeout:      0
    }   
  }); 
  
    $('a.personTips').cluetip({
    showTitle: false,
    width: 400,
    height: 'auto',
    topOffset: 25,
    arrows: true,
    dropShadowSteps: 7,
    positionBy: 'auto',
    showTitle: false,
    attribute: 'clue',
    mouseOutClose: true,
    sticky: true,
    clickThrough: true,
    fx: { open: 'fadeIn', close: 'fadeOut', openSpeed: 'fast'}, 
    hoverIntent: {    
                      sensitivity:  1,
                      interval:     150,
                      timeout:      0
    },
    onShow: function() {tb_init('a.thickbox');return true}
  });

	$("#expDateLink").cluetip({
            showTitle: false,
            width: 300,
            height: 150,
            arrows: true,
            dropShadowSteps: 7,
            topOffset: 80,
            leftOffset: 20,    
            local: true,
            activation: 'hover',
            sticky: false
        });


	//dealing with a bug in the tabs that hides a portion of the left column that's longer than the right
	if($("#columnLeft").height() > $("#columnRight").height())
	{
		$("#columnRight").height($("#columnLeft").height());
	}

	$("#claim_work_link").tooltip({showURL: false, left: -80, top: 30});

});


