// JavaScript Document


function makerequest(serverPage, ObjId) {
	var xmlHttp = false;

	try {
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		//alert('Your are using Microsoft Internet Explorere.');
	} catch(e) {
		try {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		//	alert("You are using Microsoft Internet Explorer");
		} catch (e) {
			xmlHttp = false;	
		}
	}
	if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
		xmlHttp  = new XMLHttpRequest();
		//alert("You are not using Microsoft Internet Explorer");
	}

	try {				
		var obj = document.getElementById(ObjId);
		xmlHttp.open("GET", serverPage);
	
		xmlHttp.onreadystatechange  = function() {
			if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
				obj.innerHTML = xmlHttp.responseText;	
			}
		}
	
		xmlHttp.send(null);
	} catch (e) {
		alert(e);
	}
	

}

//Page Flip on hover
$(document).ready(function(){

	$("#pageflip").hover(function() {
		$("#pageflip img , .msg_block").stop()
			.animate({
				width: '307px', 
				height: '319px'
			}, 500); 
		} , function() {
		$("#pageflip img").stop() 
			.animate({
				width: '50px', 
				height: '52px'
			}, 220);
		$(".msg_block").stop() 
			.animate({
				width: '50px', 
				height: '50px'
			}, 200);
	});

	
});

//Slider
 
