').addClass('rollover').click(function () { var m = $(this).attr('href'); var t = $(this).attr('title') || $(this).attr('stitle') || ''; tanitimfilmi(m); $('div#JWLayer', document).dialog({ title: t }).dialog('open'); return false; }); tmpW = $('ul#ContentsContainer > li > a > img', document).width(); tmpH = $('ul#ContentsContainer > li > a > img', document).height(); width = tmpW * zoom; height = tmpH * zoom; move = -((width - tmpW) / 2); $('ul#ContentsContainer > li > a > img', document).css({ position: 'relative' }); $('ul#ContentsContainer > li').hover(function () { $('> a > img', this).stop(false, true).animate({ 'width': width, 'height': height, 'top': move, 'left': move }, { duration: 200 }); $('> span', this).stop(false, true).fadeTo('fast', 1); }, function () { $('> a > img', this).stop(false, true).animate({ 'width': tmpW, 'height': tmpH, 'top': '0', 'left': '0' }, { duration: 100 }); $('> span', this).stop(false, true).fadeTo('fast', 0.75); }).mouseout(); //tanitimfilmi(); $('div#TrailerContainer > span:first-child', document).addClass('active').show(); setTimeout(textDrifter, textDelay); }); /* 'client': 'ytapi-youtube-rss-redirect', 'file': 'http://www.youtube.com/v/hDnFHTu74iU?version=3&f=playlists&app=youtube_gdata', */ function tanitimfilmi(m) { jwplayer('JWContainer').setup({ 'id': 'TanitimFilmiPlayer', 'name': 'TanitimFilmiPlayer', 'plugins': '/player/plugins', 'autostart': true, 'flashplayer': '/Player/player.swf', 'client': 'ytapi-youtube-rss-redirect', 'file': m, 'image': m + '.png', 'v': '2', 'playlistsize': '0', 'playlist': 'none', 'controlbar': 'over', 'skin': '/Player/Glow.zip', 'width': '720', 'height': '480' }); } function textDrifter() { var act = $('div#TrailerContainer > span.active', document); act.fadeOut('fast', function () { var nxt = $(this).next(); if (!nxt[0]) nxt = $('div#TrailerContainer > span:first-child', document); $('div#TrailerContainer > span', document).removeClass('active'); nxt.addClass('active'); nxt.fadeIn('fast', function () { setTimeout(textDrifter, textDelay) }); }); }