$jQ = jQuery.noConflict();//Avoids conflict with mooTools

//$jQ(document).ready(function(){ 
//	$jQ("h4.xfpi_feature_heading").remove(":contains('Garage')");
//});





/////////////////////////////////
//      FADE IMAGE LINKS       //
/////////////////////////////////

// Add class of fade to images contained within a link, remove any eternal link background
$jQ(document).ready(function() {
   $jQ("a:has(img)").addClass("fade").removeClass("new_win");
});

// Fade images with a class of fade on mouseover
$jQ(document).ready(function() {
// make sure the image is at full opacity on load
$jQ("a.fade img").css("opacity", "1.0");

	// Change speed/opactity of mouseover state
	$jQ('a.fade img').mouseover(function() {
		$jQ(this).stop().fadeTo(400, 0.5);
	});

	// Change speed/opactity of mouseout state
	$jQ('a.fade img').mouseout(function() {
		$jQ(this).stop().fadeTo(500, 1.0);
	});
});

//$jQ(document).ready(function() {	
  // $jQ(".sstc_property").css("border","3px solid red");
  //$jQ(".sstc_property img").each(function() {
      //  var iWidth = $(this).width();
       // var iHeight = $(this).height();
      //  var letimg = '<img src="http://www.beebysproperties.co.uk/tl_files/images/sstc.jpg" style="position: absolute; top: 50%; left: 50%; margin-top: -' + Math.ceil(iHeight/2) + 'px; margin-left: -' + Math.ceil(iWidth/2) + 'px;" />';
      //  var wrapper = $('<span style="position: relative; display: inline-block;"></span>');
      //  $(this).wrap(wrapper).after(letimg);
    //});
//});

jQuery(function($) {
    $("#Main_Left #properties-reader .sstc_property .image img:first").each(function() {
        var iWidth = $(this).width();
        var iHeight = $(this).height();
        var letimg = '<img src="http://www.beebysproperties.co.uk/tl_files/images/sstc.jpg" style="position:absolute; right:0px; width:135px; height:135px;" />';
        var wrapper = $('<span style="position: relative; display: inline-block;"></span>');
        $(this).wrap(wrapper).after(letimg);
    });
});
jQuery(function($) {
    $("#Main_Right .mod_catalogrelated .sstc_property .image img").each(function() {
        var iWidth = $(this).width();
        var iHeight = $(this).height();
        var letimg = '<img src="http://www.beebysproperties.co.uk/tl_files/images/sstc.jpg" width="50" height="50" style="position:absolute; right:0px; width:50px; height:50px;" />';
        var wrapper = $('<span style="position: relative;"></span>');
        $(this).wrap(wrapper).after(letimg);
    });
});
jQuery(function($) {
    $("#Main_Left .mod_cataloglist .sstc_property .image img").each(function() {
        var iWidth = $(this).width();
        var iHeight = $(this).height();
        var letimg = '<img src="http://www.beebysproperties.co.uk/tl_files/images/sstc.jpg" width="50" height="50" style="position:absolute; right:0px; width:50px; height:50px;" />';
        var wrapper = $('<span style="position: relative;"></span>');
        $(this).wrap(wrapper).after(letimg);
    });
});




