 jQuery.noConflict();
jQuery(function(){
    jQuery('#warning').remove(); /* REMOVE NON-JS USERS WARNING MESSAGE */
    jQuery('#options li').each(function(){
        jQuery(this).css({paddingTop:0,paddingBottom:0,paddingLeft:0})
        jQuery('#options').css({listStyle: 'none', paddingLeft: 0});
        jQuery(this).wrapInner('<div/>');
        jQuery(this).children('div').children('h5').each(function(){
            var p = this.parentNode.parentNode;
            jQuery(this).clone().prependTo(p);
        });
        jQuery(this).children('div').children('h5').remove();
        jQuery(this).children('div').wrapInner('<div/>')
        jQuery(this).children('h5')
            .css({cursor:'pointer',paddingTop:'6px',paddingBottom:'6px',paddingLeft:'8px'})
            .hover(function(){
                jQuery(this).css({background:'#ccc'});
            },function(){
                jQuery(this).css({background:'#FFF'});
            });
        jQuery(this).children('h5').next('div').hide();
        jQuery(this).children('h5').click(function(){
            jQuery(this).parent().addClass('activeOption')
            jQuery(this).next('div').slideToggle(800,function(){
            });
            
        });
    })
    jQuery('#likethis').click(function(){
       jQuery(this).parent().seekAttention({
        
       });
       return false;
    });
    jQuery('#likethis2').click(function(){
       jQuery(this).parent().seekAttention({
            container: jQuery('#wrap')
       });
       return false;
    });
    jQuery('#button1').click(function(){
        jQuery('#input1').seekAttention();
        return false;
    });

    jQuery('#button11').click(function(){
        jQuery('#input1').seekAttention();
        return false;
    });

    jQuery('#button12').click(function(){
        jQuery('#input1').seekAttention();
        return false;
    });

    jQuery('#button13').click(function(){
        jQuery('#input1').seekAttention();
        return false;
    });

    jQuery('#button14').click(function(){
        jQuery('#input1').seekAttention();
        return false;
    });

    jQuery('#button15').click(function(){
        jQuery('#input1').seekAttention();
        return false;
    });
    jQuery('#button16').click(function(){
        jQuery('#input1').seekAttention();
        return false;
    });
    jQuery('#button17').click(function(){
        jQuery('#input1').seekAttention();
        return false;
    });
    jQuery('#button18').click(function(){
        jQuery('#input1').seekAttention();
        return false;
    });
    jQuery('#button19').click(function(){
        jQuery('#input1').seekAttention();
        return false;
    });
    jQuery('#button20').click(function(){
        jQuery('#input1').seekAttention();
        return false;
    });

    jQuery('#button2').click(function(){
        jQuery(this).parent().seekAttention({container:'#wrap'});
        return false;
    });
    
    
    
    jQuery('#button3').click(function(){
        jQuery('#para').seekAttention({
            paddingTop: 5,
            paddingBottom: 5,
            paddingLeft: 5,
            paddingRight: 5
        });
        return false;
    });
    
    
    
    jQuery('#button4').click(function(){
        jQuery('#my-important-link').seekAttention({
            paddingTop: 5,
            paddingBottom: 5,
            paddingLeft: 5,
            paddingRight: 5,
            opacity: 0.7
        });
        return false;
    });
    jQuery('#button5').click(function(){
        jQuery('#para2').seekAttention({
            pulse: false,
            paddingLeft: 10,
            paddingRight: 10
        });
        return false;
    });
    jQuery('#button6').click(function(){
        var colorS = jQuery('#selectcolor');
        var si = document.getElementById('selectcolor').selectedIndex;
        var color = jQuery('#selectcolor').val() //document.getElementById('selectcolor').childNodes[si].value;
        jQuery('#para3').seekAttention({
            color: color,
            paddingLeft: 10,
            paddingRight: 10
        });
        return false;
    });
    jQuery('#button7').click(function(){
        jQuery('#para4').seekAttention({
            paddingTop: 10,
            paddingBottom: 10,
            paddingLeft: 20,
            paddingRight: 20
        });
        return false;
    });
    jQuery('#button8').click(function(){
        jQuery('#para5').seekAttention({
            paddingLeft: 10,
            paddingRight: 10,
            pulseSpeed: 900
        });
        return false;
    });
    jQuery('#button9').click(function(){
        jQuery(this).next('img:eq(0)').seekAttention({
            container: jQuery(this).parent()
        });
        return false;
    });
    jQuery('#button10').click(function(){
        jQuery('p.important:eq(0)').seekAttention({
            container: '#wrap',
            color: '#0c2340'
        });
        return false;
    });
});
        
jQuery(document).ready(function() {
  function filterPath(string) {
  return string
    .replace(/^\//,'')
    .replace(/(index|default).[a-zA-Z]{3,4}jQuery/,'')
    .replace(/\/jQuery/,'');
  }
  
  var locationPath = filterPath(location.pathname);
  jQuery('a[href*=#]').each(function() {
    var thisPath = filterPath(this.pathname) || locationPath;
    if (  locationPath == thisPath
    && (location.hostname == this.hostname || !this.hostname)
    && this.hash.replace(/#/,'') ) {
      var jQuerytarget = jQuery(this.hash), target = this.hash;
      if (target) {
        var targetOffset = jQuerytarget.offset().top;
        jQuery(this).click(function(event) {
          event.preventDefault();
          jQuery('html, body').animate({scrollTop: targetOffset}, 400, function() {
            location.hash = target;
          });
        });
      }
    }
  });
});


