$().ready(function() {
  $('#whoWePublish').jqm({
      trigger:'#publishTrigger',
      overlay: 50,
      onShow: function(h) {
        /* callback executed when a trigger click. Show notice */
        h.w.css('opacity',1).fadeIn('slow'); 
        },
		
      onHide: function(h) {
        /* callback executed on window hide. Hide notice, overlay. */
        h.w.fadeOut('slow',function() { if(h.o) h.o.remove() }); } 
      });
	  
	    $('#whatNext').jqm({
      trigger:'#whatNextTrigger',
	  overlay: 50,
      onShow: function(h) {
        /* callback executed when a trigger click. Show notice */
        h.w.css('opacity',1).fadeIn('slow'); 
        },
      onHide: function(h) {
        /* callback executed on window hide. Hide notice, overlay. */
        h.w.fadeOut('slow',function() { if(h.o) h.o.remove() }); } 
      });
	  
	  	    $('#background').jqm({
      trigger:'#backgroundTrigger',
	  overlay: 50,
      onShow: function(h) {
        /* callback executed when a trigger click. Show notice */
        h.w.css('opacity',1).fadeIn('slow'); 
        },
      onHide: function(h) {
        /* callback executed on window hide. Hide notice, overlay. */
        h.w.fadeOut('slow',function() { if(h.o) h.o.remove() }); } 
      });
	  
	  	  	    $('#title').jqm({
      trigger:'#titleTrigger',
	  overlay: 50,
      onShow: function(h) {
        /* callback executed when a trigger click. Show notice */
        h.w.css('opacity',1).fadeIn('slow'); 
        },
      onHide: function(h) {
        /* callback executed on window hide. Hide notice, overlay. */
        h.w.fadeOut('slow',function() { if(h.o) h.o.remove() }); } 
      });
	  
	  	  	    $('#aims').jqm({
      trigger:'#aimsTrigger',
	  overlay: 50,
      onShow: function(h) {
        /* callback executed when a trigger click. Show notice */
        h.w.css('opacity',1).fadeIn('slow'); 
        },
      onHide: function(h) {
        /* callback executed on window hide. Hide notice, overlay. */
        h.w.fadeOut('slow',function() { if(h.o) h.o.remove() }); } 
      });
	  
	  	  	    $('#rationale').jqm({
      trigger:'#rationaleTrigger',
	  overlay: 50,
      onShow: function(h) {
        /* callback executed when a trigger click. Show notice */
        h.w.css('opacity',1).fadeIn('slow'); 
        },
      onHide: function(h) {
        /* callback executed on window hide. Hide notice, overlay. */
        h.w.fadeOut('slow',function() { if(h.o) h.o.remove() }); } 
      });
	  
	  	  	    $('#structure').jqm({
      trigger:'#structureTrigger',
	  overlay: 50,
      onShow: function(h) {
        /* callback executed when a trigger click. Show notice */
        h.w.css('opacity',1).fadeIn('slow'); 
        },
      onHide: function(h) {
        /* callback executed on window hide. Hide notice, overlay. */
        h.w.fadeOut('slow',function() { if(h.o) h.o.remove() }); } 
      });
	  
	  	  	  	    $('#journalContent').jqm({
      trigger:'#journalContentTrigger',
	  overlay: 50,
      onShow: function(h) {
        /* callback executed when a trigger click. Show notice */
        h.w.css('opacity',1).fadeIn('slow'); 
        },
      onHide: function(h) {
        /* callback executed on window hide. Hide notice, overlay. */
        h.w.fadeOut('slow',function() { if(h.o) h.o.remove() }); } 
      });
	  

	  
	  	  	    $('#market').jqm({
      trigger:'#marketTrigger',
	  overlay: 50,
      onShow: function(h) {
        /* callback executed when a trigger click. Show notice */
        h.w.css('opacity',1).fadeIn('slow'); 
        },
      onHide: function(h) {
        /* callback executed on window hide. Hide notice, overlay. */
        h.w.fadeOut('slow',function() { if(h.o) h.o.remove() }); } 
      });
	  
	  	  	    $('#publication').jqm({
      trigger:'#publicationTrigger',
	  overlay: 50,
      onShow: function(h) {
        /* callback executed when a trigger click. Show notice */
        h.w.css('opacity',1).fadeIn('slow'); 
        },
      onHide: function(h) {
        /* callback executed on window hide. Hide notice, overlay. */
        h.w.fadeOut('slow',function() { if(h.o) h.o.remove() }); } 
      });
	  
	  	  	    $('#review').jqm({
      trigger:'#reviewTrigger',
	  overlay: 50,
      onShow: function(h) {
        /* callback executed when a trigger click. Show notice */
        h.w.css('opacity',1).fadeIn('slow'); 
        },
      onHide: function(h) {
        /* callback executed on window hide. Hide notice, overlay. */
        h.w.fadeOut('slow',function() { if(h.o) h.o.remove() }); } 
      });
	  
	  
	    // Close Button Highlighting. IE doesn't support :hover. Surprise?
  $('input.jqmdX')
  .hover(
    function(){ $(this).addClass('jqmdXFocus'); }, 
    function(){ $(this).removeClass('jqmdXFocus'); })
  .focus( 
    function(){ this.hideFocus=true; $(this).addClass('jqmdXFocus'); })
  .blur( 
    function(){ $(this).removeClass('jqmdXFocus'); });

	   // Work around for IE's lack of :focus CSS selector
  if($.browser.msie)
    $('input')
      .focus(function(){$(this).addClass('iefocus');})
      .blur(function(){$(this).removeClass('iefocus');});
  


});
