var chatWin;

$(function() {

	 $('#curConvPopup').live("click",function(){
		var width=450;
		var height=190;
		var LeftPosition = ($(window).width()-width)/2;
		var TopPosition = ($(window).height-height)/2;
		settings ='height=' +height+ ',width=' +width+ ',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable';
		win = window.open($(this).attr('href'),'curPopUp',settings);
	
		return false;
	});
	 $('#IguanaBottomLogo , .prettyPhoto , .LiveSupport img').hoverEffect();
		$('.sitemap img,.thumbLight img').hoverEffect({over:1,out:.5,first:.5});
	$('.thumbLight a').lightBox();
        $('.prettyPhoto').prettyPhoto({
              showTitle:false ,
              allowresize: true 
              });
        $('#RussiaLink').append(unescape("%u0432%u0435%u0440%u0441%u0438%u044F") );
        $('#liveChat').click(function(){
              if (chatWin != null)  {	
                 chatWin.close();
                 chatWin = null;
              }
              chatWin=window.open('http://condo-for-sale-in-pattaya.com/chat/index.php','chatWindow','menubar=no,scrollbars=no,resizable=no,width=800,height=500,left=0,top=20') ;
                     chatWin.focus();
                     return false;
              });

});
	
	