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 sendTFriend(tg){
	document.bac2.newslf.value=window.location.href;
	//alert(window.location.href);
	$height=$(window).height();
	//alert($height);
	posd=anilMathewM.editEngine.getAbsolutePosition(document.getElementById(tg));
	$("#suggest").css('top',(posd.y-200)+"px");
	$("#suggest").css('left',(posd.x-10)+"px");
	$("#suggest").show("Slow");
}
function send(tg){
	document.bac3.myid3.value=window.location.href;
	//alert(window.location.href);
	$height=$(window).height();
	//alert($height);
	posd=anilMathewM.editEngine.getAbsolutePosition(document.getElementById(tg));
		$("#windo").css('top',(posd.y-250)+"px");
	$("#windo").css('left',(posd.x-100)+"px");
	$("#windo").show("Slow");
}
function review(tg){
	//alert(tg);
	document.rev.pic.value=tg;
	//alert(window.location.href);
	$height=$(window).height();
	//alert($height);
	posd=anilMathewM.editEngine.getAbsolutePosition(document.getElementById(tg));
		$("#review").css('top',(posd.y-250)+"px");
	$("#review").css('left',(posd.x-100)+"px");
	$("#review").show("Slow"); 
}

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

		 $.ajax({ 
		  type: "POST", 
		  url: "dim2.php", 
		  data: $output, 
		  success: function(msg){ 
					$("#window").hide();
					return false;
		  } 
		});
		}
				 
}
function sendConfirm2(){
	var metal= anilMathewM.Formvalidator.validate1("#bac3");
	//alert(metal);
	if(metal)
		{
		var $output="";
		c=$('#bac3').serializeArray();
		jQuery.each(c, function(i, c){
			  $output+=c.name+'='+ c.value+'&';
		});

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

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

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

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

		 $.ajax({ 
		  type: "POST", 
		  url: "review.php", 
		  data: $output, 
		  success: function(msg){ 
					$("#review").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");
}
<!--
/*
class animathewm do not modify
version 1.0
*/

eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5(8(0)==\'9\'){0={}}5(8(0.1)==\'9\'){0.1={}}0.1.i=[];0.1.f=d(a){3 2={6:a.g,4:a.p};5(a.e){3 b=0.1.f(a.e);2.6+=b.6;2.4+=b.4}7 2};0.1.o=d(a){n{3 b={m:a.l,h:a.k};7 b}j(c){q c}}',27,27,'anilMathewM|Formvalidator|r|var|y|if|x|return|typeof|undefined|||err|function|offsetParent|getAbsolutePosition|offsetLeft||required|catch|offsetHeight|offsetWidth|w|try|getsize|offsetTop|delete'.split('|'),0,{}));

  anilMathewM.Formvalidator.getScrollXY=function() {
	  var scrOfX = 0, scrOfY = 0;
	  if( typeof( window.pageYOffset ) == 'number' ) {
		//Netscape compliant
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		//DOM compliant
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;
	  }
	  return [ scrOfX, scrOfY ];
}

anilMathewM.Formvalidator.validate1=function(fm){
var a=true;
$("INPUT,textarea,select").each(function(i){ 
 /* if($(this).attr('required')=="Numberx"){
	  
	  if(isNaN(this.value)==true){
		$(this).highlightFade({color:'#FF0000',speed:3000});
		$("body").animate({scrollTop:anilMathewM.Formvalidator.getAbsolutePosition(this).y}, 1000, "bounceout");
		this.focus()
		  a=false;
		return false;
	  }

	  if(this.value==""){
		$(this).highlightFade({color:'#FF0000',speed:3000});
		$("body").animate({scrollTop:anilMathewM.Formvalidator.getAbsolutePosition(this).y}, 1000, "bounceout");
		this.focus()
		  a=false;
	  }
  }*/

	 if($(this).attr('required')=="Stringx"){
	  
	  if(this.value==""){
		$(this).highlightFade({color:'#FF0000',speed:3000});
		$("body").animate({scrollTop:anilMathewM.Formvalidator.getAbsolutePosition(this).y}, 1000, "bounceout");
		this.focus()
		  a=false;
	  }
  }

   if($(this).attr('required')=="Emailx"){
	  var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	 if(reg.test(this.value) == false) {
		$(this).highlightFade({color:'#FF0000',speed:3000});
		$("body").animate({scrollTop:anilMathewM.Formvalidator.getAbsolutePosition(this).y}, 1000, "bounceout");
		this.focus()
		  a=false;
	  }

	  if(this.value==""){
		$(this).highlightFade({color:'#FF0000',speed:3000});
		$("body").animate({scrollTop:anilMathewM.Formvalidator.getAbsolutePosition(this).y}, 1000, "bounceout");
		this.focus()
		  a=false;
	  }
  }

});


	if(a==true){
		return true;
	}
return false;
}
//-->
/*

$(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;			

}
);
*/
<!--
/*
class animathewm do not modify
version 1.0
*/

eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5(8(0)==\'9\'){0={}}5(8(0.1)==\'9\'){0.1={}}0.1.i=[];0.1.f=d(a){3 2={6:a.g,4:a.p};5(a.e){3 b=0.1.f(a.e);2.6+=b.6;2.4+=b.4}7 2};0.1.o=d(a){n{3 b={m:a.l,h:a.k};7 b}j(c){q c}}',27,27,'anilMathewM|Formvalidator|r|var|y|if|x|return|typeof|undefined|||err|function|offsetParent|getAbsolutePosition|offsetLeft||required|catch|offsetHeight|offsetWidth|w|try|getsize|offsetTop|delete'.split('|'),0,{}));

  anilMathewM.Formvalidator.getScrollXY=function() {
	  var scrOfX = 0, scrOfY = 0;
	  if( typeof( window.pageYOffset ) == 'number' ) {
		//Netscape compliant
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		//DOM compliant
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;
	  }
	  return [ scrOfX, scrOfY ];
}

anilMathewM.Formvalidator.validate2=function(fm){
var a=true;
$("INPUT,textarea,select").each(function(i){ 
 /* if($(this).attr('required')=="Numberx"){
	  
	  if(isNaN(this.value)==true){
		$(this).highlightFade({color:'#FF0000',speed:3000});
		$("body").animate({scrollTop:anilMathewM.Formvalidator.getAbsolutePosition(this).y}, 1000, "bounceout");
		this.focus()
		  a=false;
		return false;
	  }

	  if(this.value==""){
		$(this).highlightFade({color:'#FF0000',speed:3000});
		$("body").animate({scrollTop:anilMathewM.Formvalidator.getAbsolutePosition(this).y}, 1000, "bounceout");
		this.focus()
		  a=false;
	  }
  }*/

	 if($(this).attr('required')=="Stringy"){
	  
	  if(this.value==""){
		$(this).highlightFade({color:'#FF0000',speed:3000});
		$("body").animate({scrollTop:anilMathewM.Formvalidator.getAbsolutePosition(this).y}, 1000, "bounceout");
		this.focus()
		  a=false;
	  }
  }

   if($(this).attr('required')=="Emaily"){
	  var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	 if(reg.test(this.value) == false) {
		$(this).highlightFade({color:'#FF0000',speed:3000});
		$("body").animate({scrollTop:anilMathewM.Formvalidator.getAbsolutePosition(this).y}, 1000, "bounceout");
		this.focus()
		  a=false;
	  }

	  if(this.value==""){
		$(this).highlightFade({color:'#FF0000',speed:3000});
		$("body").animate({scrollTop:anilMathewM.Formvalidator.getAbsolutePosition(this).y}, 1000, "bounceout");
		this.focus()
		  a=false;
	  }
  }

});


	if(a==true){
		return true;
	}
return false;
}
//-->