jQuery(document).ready(function(){jQuery("#left_list").sortable({connectWith:["#right_list"],placeholder:"small_ui-selected",helper:'clone',revert:true,containment:jQuery("#widget_container"),receive:function(){jQuery("#left_list").css("height","auto")},remove:function(){if(jQuery("#left_list").find("li").size()==1){jQuery("#left_list").css("height","200px")}},update:function(){set_cookies()}});jQuery("#right_list").sortable({connectWith:["#left_list"],placeholder:"small_ui-selected",helper:'clone',containment:jQuery("#widget_container"),revert:true,receive:function(){jQuery("#right_list").css("height","auto")},remove:function(){if(jQuery("#right_list").find("li").size()==1){jQuery("#right_list").css("height","200px")}},update:function(){set_cookies()}});jQuery("div#button li").hover(function(){var elid=jQuery(this).attr('id');jQuery("div#toprightimages div").hide();jQuery("div#toprightimages div#"+elid+"").fadeIn("slow")})});

function set_cookies(){jQuery.cookie('left_list',jQuery("#left_list").sortable('serialize'),{expires:365});jQuery.cookie('right_list',jQuery("#right_list").sortable('serialize'),{expires:365})}

window.addEvent('domready',function noob(){var info6=$('box6').getNext().set('opacity',0.5);
																		
																		var sampleObjectItems=[{title:'New life, new beginnings: Italy',link:'http://www.overseasliving.co.uk/news/italy/article5783.html'},
																								{title:'Top property tips from Jasmine Harman',link:'http://www.overseasliving.co.uk/news/home/getting-started/article5716.html'},
																								{title:'Our guide to buying in France',link:'http://www.overseasliving.co.uk/news/buying-guides/article5601.html'},
																								{title:'Top property in the US',link:'http://www.overseasliving.co.uk/news/usa/'},
																								{title:'What the Caribbean has to offer ',link:'http://www.overseasliving.co.uk/news/caribbean/'}];
																		var nS6=new noobSlide({mode:'horizontal',box:$('box6'),autoPlay:true,items:sampleObjectItems,size:658,handles:$$('#handles6_1 div').extend($$('#handles6_2 div')),handle_event:'mouseenter',addButtons:{play:$('play6'),stop:$('stop6')},button_event:'click',
																																																																										   fxOptions:{duration:1000,transition:Fx.Transitions.Back.easeOut,wait:false},
																																																																										   
																																																																										   
																																																																										   onWalk:function(currentItem,currentHandle){info6.empty();new Element('h4').set('html','<a href="'+currentItem.link+'">Click here to read more</a>'+currentItem.title).inject(info6);this.handles.set('opacity',0.4);currentHandle.set('opacity',1)}
																																																																										   });
																		nS6.next()
																		$('play6').addEvent('click', function() {
																		$('stop6').set('opacity',0.5);
																		$('play6').set('opacity',1);
																		$$('#handles6_1 div').extend($$('#handles6_2 div')).addEvents('mouseenter');
																		nS6.addHandleButtons(nS6.handles)
																		
																		
																		});
																		
																		$('stop6').addEvent('click', function() {
																		$('play6').set('opacity',0.5);									  
																		$('stop6').set('opacity',1);
																		
																		$$('#handles6_1 div').extend($$('#handles6_2 div')).removeEvents('mouseenter');
																		
																		
															   });
																		
																		});

window.addEvent('domready',function(){
																		
																		
																		
																		});