

$(document).ready(function(){
						   
						
						  
						  /* $('head').append('<link rel="stylesheet" href="http://www.annyee.com.my/facebook/styelsheet.css" type="text/css" />');
						   $("#DiveLoginCaintainer").hide('slow').remove();
						   var winwidth=$(window).width()
						   var winheight=$(window).height()
							var mywinheight=(winheight-300)/2;
							var pathname = document.location.href;
							var val=pathname.split("?");
							
							if((val[1]!="app=member&act=register")&&($("#MyloginuserId").length==0))
							{
								var pathname = document.location.href;
								var val=pathname.split("?");
								if(val[1]!="app=member&act=login")
								{
									//document.location.href="index.php?app=member&act=login";
								}
							}*/
							
							
							$(".facebookshare").click(function(){
															
															if($(this).length>0)
															{
																var pathname = document.location.href;
																var mytitle=$(this).attr('title');
																var description=$(this).attr('description');
																var myimage=$(this).attr('name');
																
																var val=myimage.split("http://");
																if(val.length>2)
																{
																	myimage=myimage.replace(/http:\/\/www.annyee.com.my\//g, "");
																}
																//alert(mytitle);
																/*$("title").remove();
																$('meta[name=description]').attr('content', description);
																$('head').append('<meta property="og:title" content="title" /><meta property="og:description" content="description" /><meta property="og:image" content="thumbnail_image" />');*/
																//mywindow = window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(pathname)+"&t="+encodeURIComponent(mytitle), "mywindow", "location=1,status=1,scrollbars=1,width=600,height=400");
																window.open('http://www.facebook.com/sharer.php?s=100&p[title]='+encodeURIComponent(mytitle)+'&p[summary]='+encodeURIComponent(description)+'&p[url]='+encodeURIComponent(pathname)+'&&p[images][0]='+encodeURIComponent(myimage)+'', 'sharer', 'toolbar=0,status=0,width=700,height=340');
		mywindow.moveTo(300, 200);
															}
														 
															   
															   });
							
							
						 });


