var marqueetWidth='1000px';                  // width (in pixels)
var marqueetHeight='20px';                  // height (in pixels)
var marqueetcolour='#ffffff';               // background colour:
var moStop=true;                     // pause on mouseover (true or false)
var fontfamily = ''; // font for content
var marqueetSpeed=3;                        // scroll speed (1 = slow, 5 = fast)

var con='<strong><img src="images/ar.jpg" />Paving, landscaping, decking and fencing ... Whatever you need, at Parker Building Supplies ...  we&#39;ve got it in one&nbsp;&nbsp;&nbsp;&nbsp; <img src="images/ar.jpg" />Bricks, blocks, aggregates and cements ... Whatever you need, at Parker Building Supplies ...  we&#39;ve got it in one&nbsp;&nbsp;&nbsp;&nbsp; <img src="images/ar.jpg" />Plaster, plasterboard, insulation and ventilation ... Whatever you need, at Parker Building Supplies ...  we&#39;ve got it in one &nbsp;&nbsp;&nbsp;&nbsp; <img src="images/ar.jpg" />Timber, mouldings, sheet materials and boards ... Whatever you need, at Parker Building Supplies ...  we&#39;ve got it in one&nbsp;&nbsp;&nbsp;&nbsp; <img src="images/ar.jpg" />Ironmongery, tools, lintels and metalwork ... Whatever you need, at Parker Building Supplies ...  we&#39;ve got it in one&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/ar.jpg" />Joinery, windows, doors and staircases ... Whatever you need, at Parker Building Supplies ...  we&#39;ve got it in one&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/ar.jpg" />Winter essentials, rock salt and snow shovels ... Whatever you need, at Parker Building Supplies ...  we&#39;ve got it in one&nbsp;&nbsp;&nbsp;&nbsp;';


var cps=marqueetSpeed; var aw, mqa; var fsz = parseInt(marqueetHeight) - 4; function startticker(){if (document.getElementById) {var tick = '<div style="position:relative;width:'+marqueetWidth+';height:'+marqueetHeight+';overflow:visible;background-color:'+marqueetcolour+'"'; if (moStop) tick += ' onmouseover="cps=0" onmouseout="cps=marqueetSpeed"'; tick +='><div id="mqa" style="position:absolute;left:0px;top:0px;font-size:'+fsz+'px;white-space:nowrap;"><\/div><\/div>'; document.getElementById('marquee').innerHTML = tick; mqa = document.getElementById("mqa"); mqa.style.left=(parseInt(marqueetWidth)+10)+"px"; mqa.innerHTML='<span id="tx">'+con+'<\/span>'; aw = document.getElementById("tx").offsetWidth; lefttime=setInterval("scrollticker()",50);}} function scrollticker(){mqa.style.left = (parseInt(mqa.style.left)>(-10 - aw)) ?parseInt(mqa.style.left)-cps+"px" : parseInt(marqueetWidth)+10+"px";} window.onload=startticker;




$(document).ready(function(){
    $(".rollover").css({'opacity':'0'});
	$('.img_list a').hover(
		function() {
			$(this).find('.rollover').stop().fadeTo(500, 1);
		},
		function() {
			$(this).find('.rollover').stop().fadeTo(500, 0);
		}
	)
});		



            $(function() {
                $('#sdt_menu > li').bind('mouseenter',function(){
					var $elem = $(this);
					$elem.find('img')
						 .stop(true)
						 .animate({
							'width':'107px',
							'height':'96px',
							'left':'0px'
						 },500,'easeOutBack')
						 .andSelf()
						 .find('.sdt_active')
					     .stop(true)
						 .animate({'height':'85px'},300,function(){
						var $sub_menu = $elem.find('.sdt_box');
						if($sub_menu.length){
							var left = '170px';
							if($elem.parent().children().length == $elem.index()+1)
								left = '-170px';
							$sub_menu.show().animate({'left':left},200);
						}	
					});
				}).bind('mouseleave',function(){
					var $elem = $(this);
					var $sub_menu = $elem.find('.sdt_box');
					if($sub_menu.length)
						$sub_menu.hide().css('left','0px');
					
					$elem.find('.sdt_active')
						 .stop(true)
						 .animate({'height':'0px'},300)
						 .andSelf().find('img')
						 .stop(true)
						 .animate({
							'width':'0px',
							'height':'0px',
							'left':'85px'},400)
						 .andSelf()
						 .find('.sdt_wrap')
						 .stop(true)
						 .animate({'top':'14px'},500);
				});
$('#relatedPosts').toggle(
					function(){
						$('#rp_list').animate({'bottom':'10px'},500);
					},
					function(){
						$('#rp_list').animate({'bottom':'-50px'},500);
					}
				);
				$('#rp_list a').tipsy({gravity: 's'});
            });

