var changed;

function SetDataChanged(state) {
  changed=state;
}

function DataChanged() {
  return changed;
}
function addFav(url,title){
  if (window.sidebar) window.sidebar.addPanel(title, url,"");
  else if(window.opera && window.print){
    var mbm = document.createElement('a');
    mbm.setAttribute('rel','sidebar');
    mbm.setAttribute('href',url);
    mbm.setAttribute('title',title);
    mbm.click();
  }
  else if(document.all){
    window.external.AddFavorite(url, title);
  }
}

function setAsHome(url){
  if (document.all){
    document.body.style.behavior='url(#default#homepage)';
    document.body.setHomePage(url);
  }
  else {
    alert('Funcionalidade não disponível no seu browser');
  }
}

if((typeof($) !== 'undefined')){
  $(document).ready(function()
  {
    //init jquery lightbox
    $(function(){
      $('a[rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
    });
    
    //init jquery video
    $(function(){
    	$(".vidbox").jqvideobox();
    });

  });
}