$(document).ready(function(){
	
//  $('#header .logo').flash({ src: '/html/img/logo.swf', width:78, height:55 });
  
  jQuery(document).ready(function($) {
    $('a[rel*=facebox]').facebox()
  });

  $("#header .menu img.roll").hover(
    function(){
      if($(this).attr("src").indexOf("_active") == -1) {
        var newSrc = $(this).attr("src").replace("_up.gif","_active.gif");
        $(this).attr("src",newSrc);
      }
    },
    function(){
      if($(this).attr("src").indexOf("_active.gif") != -1) {
        var oldSrc = $(this).attr("src").replace("_active.gif","_up.gif");
        $(this).attr("src",oldSrc);
      }
    }
  );


  $("div.buttonImg img").hover(
    function(){
      if($(this).attr("src").indexOf("_active") == -1) {
        var newSrc = $(this).attr("src").replace("_up.png","_active.png");
        $(this).attr("src",newSrc);
      }
    },
    function(){
      if($(this).attr("src").indexOf("_active.png") != -1) {
        var oldSrc = $(this).attr("src").replace("_active.png","_up.png");
        $(this).attr("src",oldSrc);
      }
    }
  );


  
});

$(function() {
  $.sifr({
    path: '/html/sifr/',
    save: true
  });
 // $('h1').sifr({ font: 'Helvetica Neue Condensed Bold', textTransform: 'uppercase' });
  $('div.button, div.imgdesc').sifr({ font: 'Helvetica Neue Condensed Bold', height:30 });
});


function medialink1(id) {
	alert('zooming....');
	jQuery.facebox({ image: '/html/facebox/closelabel.gif' });
}

function medialink2(url) {
	document.location.href=url;
}

function medialink3(url) {
	document.location.href=url;
}

function medialink4(id) {
  $.facebox(function() {
    $.get('/sv/_video/'+id, function(data) {
      $.facebox(data)
    })
  });

}

