File size: 3,330 Bytes
e26fba6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
function slideSwitch() {
    var $active = $('#slideshow IMG.active');
 
    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
 
    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');
 
    $active.addClass('last-active');
 
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

function slideCritique() {
    var $active = $('#quotes li.active');
 
    if ( $active.length == 0 ) $active = $('#quotes li:first');
 
    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#quotes li:first');
 
    $active.addClass('last-active');
 
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            // $active.removeClass('active last-active');
        });
        
    $active.animate({opacity: 0.0}, 1000, function() {
            $active.removeClass('active last-active');
    });
}


//Scroll to
$(function() {
  $('a[href=#_overview]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
      if (target.length) {
        $('html,body').animate({
          scrollTop: target.offset().top
        }, 1000);
        return false;
      }
    }
  });
});


//Annotations
			$(window).load(function() {
				$("#toAnnotate").annotateImage({
					editable: false,
					useAjax: false,
					notes: [
                                                {
                                                           "top": 286,
							   "left": 161,
							   "width": 30,
							   "height": 30,
							   "text": "A world of videos at your finger tips",
							   "id": "e69213d0-2eef-40fa-a04b-0ed998f9f1f5",
							   "editable": false },
							 
                                                         {
                                                           "top": 628,
							   "left": 297,
							   "width": 30,
							   "height": 30,
							   "text": "Simple, Easy to use controls",
							   "id": "e7f44ac5-bcf2-412d-b440-6dbb8b19ffbe",
							   "editable": false },
							   {
                                                           "top": 159,
							   "left": 829,
							   "width": 30,
							   "height": 30,
							   "text": "Intelligent search engine",
							   "id": "7pwy5h9q",
							   "editable": false },
							    {
                                                           "top": 159,
							   "left": 529,
							   "width": 30,
							   "height": 30,
							   "text": "Save and easily manage all your favorites",
							   "id": "0-yie8-9w9a",
							   "editable": false },
							   {
                                                           "top": 740,
							   "left": 870,
							   "width": 30,
							   "height": 30,
							   "text": "More watching, less searching. With carefully selected related videos",
							   "id": "5-ov29w",
							   "editable": false }]
				});
			});