/*
 *
*/
$(function () {
//  if ($.browser.msie && $.browser.version < 7){ return;
  $('#content div.tip a')
  .hover(function () {
    $(this).find('img').stop().fadeTo(700,1.0);
    $('#content div.tip a').not(this)
    .stop()
    .fadeTo(700,0.3);
  }, function () {
    $(this).find('img').stop().fadeTo(700,0); //.fadeOut(700);
    $('#content div.tip a').not(this)
    .stop()
    .fadeTo(700,1.0);
  }).find('img'); //.css({'opacity' : '0','display' : 'block'});
});


$(function () {

var myOpen=function(hash){ hash.w.fadeIn(700) };

  var detailsHide=function(hash) { 
    hash.w.hide();
    $('#details p').html('');
    hash.o.remove(); 
  };

  $("#details").jqm({onShow:myOpen,onHide:detailsHide});

  $('div.tip a').click(function(){
    var v=$(this).attr('href').split('#')[1];
    $('#details').jqmShow(); 
    $('#details p').flash({   
      // test_flashvars.swf is the flash document
      swf: turl+'/player.swf',  
      // these arguments will be passed into the flash document
      flashvars: {  
        flvAddress: turl+'/vids/'+v+'.flv'
      },
      height: 400,   
      width: 470 
    });
    return false;
  });

  $('a.close').click(function(){
    $('#details').jqmHide(); 
    return false;
  });
});

