This JQUERY doesnot work when I use fadeslideshow.js

This JQUERY doesnot work when I use fadeslideshow.js

I am using script (Given below) to center the DIV and it is working fine.

 <script language="javascript"> $(document).ready(function(){ jQuery.fn.center = function () { this.css("position","absolute"); this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px"); this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px"); return this; } $("#loading").center(); }); </script>

refer link http://webvikas.net.in/savarkar/divincenter1.html The Loading div is displayed in center

However when I am using fadeslideshow.js in this page

refer http://webvikas.net.in/savarkar/divincenter.html The Loading div is not displayed in center

How to resolve this ? Please help

Script used to center the div