$(function() {
  //var root = 'http://server2003/identitymatters/www/';
  var root = 'http://identity.sc100.info/';

  $('#products div.section').hover(
        function () {
          $(this).find('h1 a').addClass('h1over');
          $(this).find('p a').addClass('pover');
        },
        function () {
          $(this).find('h1 a').removeClass('h1over');
          $(this).find('p a').removeClass('pover');
        }
  );
  $('.thickbox').click(function() {
    $('#TB_window').Draggable({handle:'#TB_ajaxWindowTitle', containment:'document'})
  });

  if ($.href.get({key: 'queryObject', cgi: 'view'}) == 'images') {
        $('a.thickbox').each(function() {
          // display the box for the elements href
          this.href = this.href.replace(/\?[^#]+/, '');
          try {
                TB_show((this.title || this.name || ''), this.href, (this.rel || false));
          } catch(e) {
          }
          try {
                tb_show((this.title || this.name || ''), (this.href || this.alt), (this.rel || false));
          } catch(e) {
          }
        });
  }

 // var header = new SWFObject(root + 'global/flash/strip.swf', null, '960', '100', '9');
  //header.addParam('wmode', 'transparent');
 // header.write('flash-header');

});