function autoRoll(autoLink,autoPic){

	var pracDisplay = document.getElementById('practice-area-view');

	pracDisplay.innerHTML = '<a href="' + autoLink + '"><img src="images/' + autoPic + '" border="0"></a>';

}



function bookmark(){

    var title="Indiana Personal Injury Lawyers - Sevenish Law Firm"

    var url="http://www.sevenishlaw.com/"

    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);



}



jQuery().ready(function(){

		// simple accordion

		jQuery('#help').accordion({event: 'mouseover', header: '.head'});



		// bind to change event of select to control first and seconds accordion

		// similar to tab's plugin triggerTab(), without an extra method

		var accordions = jQuery('#help');

		

		jQuery('#switch select').change(function() {

			accordions.accordion("activate", this.selectedIndex-1 );

		});

		jQuery('#close').click(function() {

			accordions.accordion("activate", -1);

		});

		jQuery('#switch2').change(function() {

			accordions.accordion("activate", this.value);

		});

		jQuery('#enable').click(function() {

			accordions.accordion("enable");

		});

		jQuery('#disable').click(function() {

			accordions.accordion("disable");

		});

		jQuery('#remove').click(function() {

			accordions.accordion("destroy");

		});

	});



$(document).ready(function(){

		//To switch directions up/down and left/right just place a "-" in front of the top/left attribute

		//Caption Sliding (Partially Hidden to Visible)

		$('.boxgrid.caption').hover(function(){

			$(".cover", this).stop().animate({top:'180px'},{queue:false,duration:160});

		}, function() {

			$(".cover", this).stop().animate({top:'215px'},{queue:false,duration:160});

		});

	});



function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



preload = function() {

	MM_preloadImages('http://www.sevenishlaw.com/images/comparative-fault.jpg','http://www.sevenishlaw.com/images/traumatic-brain-injury.jpg','http://www.sevenishlaw.com/images/catastrophic-injury.jpg','http://www.sevenishlaw.com/images/drunk-driver-accident.jpg','http://www.sevenishlaw.com/images/pedestrian-bicycle-accident.jpg','http://www.sevenishlaw.com/images/truck-accident.jpg','http://www.sevenishlaw.com/images/auto-accident.jpg','http://www.sevenishlaw.com/images/motorcycle-accident.jpg','http://www.sevenishlaw.com/images/personal-injury-claim.jpg','http://www.sevenishlaw.com/images/wrongful-death.jpg','http://www.sevenishlaw.com/images/t-wd-o.jpg','http://www.sevenishlaw.com/images/t-wd.jpg','http://www.sevenishlaw.com/images/t-ic-o.jpg','http://www.sevenishlaw.com/images/t-ic.jpg','http://www.sevenishlaw.com/images/t-pa-o.jpg','http://www.sevenishlaw.com/images/t-pa.jpg','http://www.sevenishlaw.com/images/t-cf-o.jpg','http://www.sevenishlaw.com/images/t-cf.jpg','http://www.sevenishlaw.com/images/t-aa-o.jpg','http://www.sevenishlaw.com/images/t-aa.jpg','http://www.sevenishlaw.com/images/t-ta-o.jpg','http://www.sevenishlaw.com/images/t-ta.jpg','http://www.sevenishlaw.com/images/t-ci-o.jpg','http://www.sevenishlaw.com/images/t-ci.jpg','http://www.sevenishlaw.com/images/t-dd-o.jpg','http://www.sevenishlaw.com/images/t-dd.jpg','http://www.sevenishlaw.com/images/t-bi-o.jpg','http://www.sevenishlaw.com/images/t-bi.jpg','http://www.sevenishlaw.com/images/t-ma-o.jpg','http://www.sevenishlaw.com/images/t-ma.jpg')

}



if (window.attachEvent) window.attachEvent("onload", preload);



    <!--



    // wrap as a jQuery plugin and pass jQuery in to our anoymous function

    (function ($) {

        $.fn.cross = function (options) {

            return this.each(function (i) { 

                // cache the copy of jQuery(this) - the start image

                var $$ = $(this);

                

                // get the target from the backgroundImage + regexp

                var target = $$.css('backgroundImage').replace(/^url|[\(\)'"]/g, '');



                // nice long chain: wrap img element in span

                $$.wrap('<span style="position: relative;"></span>')

                    // change selector to parent - i.e. newly created span

                    .parent()

                    // prepend a new image inside the span

                    .prepend('<img>')

                    // change the selector to the newly created image

                    .find(':first-child')

                    // set the image to the target

                    .attr('src', target);



                // the CSS styling of the start image needs to be handled

                // differently for different browsers

                if ($.browser.msie || $.browser.mozilla) {

                    $$.css({

                        'position' : 'absolute', 

                        'left' : 0,

                        'background' : '',

                        'top' : this.offsetTop

                    });

                } else if ($.browser.opera && $.browser.version < 9.5) {

                    // Browser sniffing is bad - however opera < 9.5 has a render bug 

                    // so this is required to get around it we can't apply the 'top' : 0 

                    // separately because Mozilla strips the style set originally somehow...                    

                    $$.css({

                        'position' : 'absolute', 

                        'left' : 0,

                        'background' : '',

                        'top' : "0"

                    });

                } else { // Safari

                    $$.css({

                        'position' : 'absolute', 

                        'left' : 0,

                        'background' : ''

                    });

                }



                // similar effect as single image technique, except using .animate 

                // which will handle the fading up from the right opacity for us

                $$.hover(function () {

                    $$.stop().animate({

                        opacity: 0

                    }, 250);

                }, function () {

                    $$.stop().animate({

                        opacity: 1

                    }, 250);

                });

            });

        };

        

    })(jQuery);

    

    // note that this uses the .bind('load') on the window object, rather than $(document).ready() 

    // because .ready() fires before the images have loaded, but we need to fire *after* because

    // our code relies on the dimensions of the images already in place.

    $(window).bind('load', function () {

        $('img.fade').cross();

    });

    

    //-->
