			jQuery(document).ready(function($) {
                                $('.boxcontainer>img').each(function(){
                                        var src = $(this).attr('src');
                                        if(src=='') {
                                              $(this).remove();
                                        }
                                });
                                $('#Slides>img').each(function(){
                                        var src = $(this).attr('src');
                                        if(src=='') {
                                              $(this).remove();
                                        }
                                });
                                if ($('#Slides').length > 0) {
					$('#Slides').cycle({ 
						fx: 'fade',
						speed: 750,
						timeout: 4000, 
						randomizeEffects: false, 
						easing: 'easeOutCubic',
						next:   '.slideNext', 
						prev:   '.slidePrev',
						pager:  '#SlidePager',
						before: function() {
							// reset the overlay for the next slide
							jQuery('#SlideShow').css('cursor','default').unbind('click'); },
						after: function() {
							// get the link and apply it to the overlay
							var theLink = jQuery(this);
							var linkURL = (theLink) ? theLink.attr('href') : false;
							if (linkURL) {
								jQuery('#SlideShow').css('cursor','pointer').click( function() {
									document.location.href = linkURL;
								});
							}
						}
					});
				}
			});
