$(document).ready(function () {

    /*$('#servicesParent').hover(function() {

        $('#servicesDropdown').fadeIn('fast');

          }, function() {

              $('#servicesDropdown').fadeOut('fast');

          });*/

		  

	$('ul.sf-menu').superfish({

            delay:       000,                            // one second delay on mouseout

            speed:       'fast',                          // faster animation speed

            autoArrows:  false,                           // disable generation of arrow mark-up

            dropShadows: true                            // disable drop shadows

        });

        $('#twitterFeed').cycle({

          fx:    'scrollDown',

          timeout: 8000,

          speed: 350,

          next: '#twitterFeed span',

          pause: 1

        });

		

        $('#cycleList').cycle({

          fx:    'fade',

          timeout: 4000,

          speed: 550,

          next: '#cycleList .randomBio .shortBio',

          pause: 1

        });		

		

	/*$('#financialLink').hover(function() {

        $('#financialLink h3 a').stop(true).addClass('servicesLinkHover');

          }, function() {

              $('#financialLink h3 a').stop(true).removeClass('servicesLinkHover');

    });

	

	$('#taxLink').hover(function() {

        $('#taxLink h3 a').stop(true).addClass('servicesLinkHover');

          }, function() {

              $('#taxLink h3 a').stop(true).removeClass('servicesLinkHover');

    });

	

	$('#advisoryLink').hover(function() {

        $('#advisoryLink h3 a').stop(true).addClass('servicesLinkHover');

          }, function() {

              $('#advisoryLink h3 a').stop(true).removeClass('servicesLinkHover');

    });

	

	$('#smallBusinessLink').hover(function() {

        $('#smallBusinessLink h3 a').stop(true).addClass('servicesLinkHover');

          }, function() {

              $('#smallBusinessLink h3 a').stop(true).removeClass('servicesLinkHover');

    });*/

	





            jQuery(function ($) {

                // NOTE: set to an absolute URL path to a local resource that loads quickly (e.g. 1px transparent image)

                var localResource = location.protocol + '//' + location.host + '/favicon.ico',

                    widgetUrl = 'https://secure.netlinksolution.com/repository/ng-widgets/security-questions/1.0.3/embed.html';



                $('#forgottenPasswordLink').click(function () {

                    var $frame = $('<iframe id="trResetPwdFrame" style="background-color:transparent;display:none;position:fixed;top:0;left:0;border:0;height:100%;width:100%;overflow:hidden" allowtransparency="true"></iframe>')

                        .appendTo('body')

                        .load(function () {

                            try {

                                if ($frame[0].contentWindow.name === 'close') {

                                    setTimeout(function () { $frame.remove(); }, 0);

                                }

                            } catch(e) {}

                        })

                        .show()

                        .attr('src', widgetUrl + '#' + localResource);

                    return false;

                });

            });



			

});
