imarray=["09.jpg", "00.jpg", "01.jpg" ,"02.jpg", "03.jpg","04.jpg", "05.jpg", "06.jpg", "07.jpg" ,"08.jpg" ];
$(document).ready(function(){
	//$('#im').hide();
//alert($('#im').attr("src")+Math.round(10*Math.random()));
$('#im').attr("src",'images/0'+Math.round(9*Math.random())+'.jpg');
$('#im').load( function() { $('#im').fadeIn('slow'); } );

	$height=$(window).height();
	$width=$(window).width();
	$("#window").css("top",($height/3)+"px");
	$("#window").css("left",($width/3)+"px");
	$("#window").hide();
	
});

function sendToFriend(tgt){
	document.bac.myid.value=window.location.href;
	//alert(window.location.href);
	$height=$(window).height();
	//alert($height);
	posd=anilMathewM.editEngine.getAbsolutePosition(document.getElementById(tgt));
	$("#window").css('top',(posd.y-250)+"px");
	$("#window").css('left',(posd.x-100)+"px");
	$("#window").show("Slow");
}


function sendConfirm(){
		var $output="";
		c=$('#bac').serializeArray();
		jQuery.each(c, function(i, c){
			  $output+=c.name+'='+ c.value+'&';
		});

		 $.ajax({ 
		  type: "POST", 
		  url: "dim3.php", 
		  data: $output, 
		  success: function(msg){ 
					$("#window").hide();
					
					return false;
		  } 
		});

				 
}


function newsLetter(id){

	$height=$(window).height();
	//alert($height);
	posd=anilMathewM.editEngine.getAbsolutePosition(document.getElementById(id));
	$("#newsl").css('top',(posd.y-5)+"px");
	$("#newsl").css('left',(posd.x-5)+"px");
	$("#newsl").show("Slow");
}

/*

$(document).ready(function(){



	$height=$(window).height();
	$width=$(window).width();
	$("#window").css("top",($height/3)+"px");
	$("#window").css("left",($width/3)+"px");
	$("#window").hide();
		$.ajax({ 
				type: "GET",
				data: "id="+6+"&page="+0,
				url: "load_cats.php", 
					success: function(msg){ 
					//alert(msg);
					$("#msg").html(msg);
					$("#msg").fadeIn("slow");
					},
					error:function(msg){
						$("#msg").html(msg);
						$("#msg").fadeIn("slow");
					}
				});
			

document.bac.myid.value=current_p_id;			

}
);
*/
