// JavaScript Document
$(document).ready(function() {

	document.getElementById("lpMinWrapper").style.zIndex = 9999;
		
	if(window.innerHeight || window.innerWidth){	
				
				heightLpMax =  (window.innerHeight/3 )  + $(window).scrollTop();
				heightLpMin =  (window.innerHeight/1.08 )  + $(window).scrollTop();
				
				
				WidthLpMax = $("#Wrapper").innerWidth()-204 +( ($(window).innerWidth()-$("#Wrapper").innerWidth())/2 );
				//alert($("#Wrapper").innerWidth());
			
			/**********************Live Person***********************/	
				document.getElementById("lpMaxWrapper").style.top =heightLpMax+"px";
				document.getElementById("lpMinWrapper").style.left =WidthLpMax+"px";
				document.getElementById("lpMinWrapper").style.top =heightLpMin+"px";
			/*************************************************************/	
	
					
		}
		else{
				
				
				heightLpMax =  document.documentElement.clientHeight/3  + $(window).scrollTop();
				heightLpMin =  ( document.documentElement.clientHeight/1.08 )  + $(window).scrollTop();
				
				WidthLpMax = $("#Wrapper").innerWidth()-192 +( ($(window).innerWidth()-$("#Wrapper").innerWidth())/2 );
				
				
			/**********************Live Person***********************/	
				document.getElementById("lpMaxWrapper").style.top =heightLpMax+"px";
				document.getElementById("lpMinWrapper").style.left =WidthLpMax+"px";
				document.getElementById("lpMinWrapper").style.top =heightLpMin+"px";
			
			/*************************************************************/	

		}

		
		
	

	$(window).scroll(function(){
		if(window.innerHeight || window.innerWidth){	
				
				
				heightLpMax =  (window.innerHeight/3 )  + $(window).scrollTop();
				heightLpMin =  (window.innerHeight/1.08 )  + $(window).scrollTop();
				
				WidthLpMax = $("#Wrapper").innerWidth()-204+( ($(window).innerWidth()-$("#Wrapper").innerWidth())/2 );
				
				
				/**********************Live Person***********************/	
				document.getElementById("lpMaxWrapper").style.top =heightLpMax+"px";
				document.getElementById("lpMinWrapper").style.left =WidthLpMax+"px";
				document.getElementById("lpMinWrapper").style.top =heightLpMin+"px";
			
			/*************************************************************/	
			
				//$("#FloatingLayerWrapper").fadeTo("slow",0);
				//$("#FloatingLayerWrapper").fadeTo(2000,0.9);

			
		}
		else{
				
				
				heightLpMax =  document.documentElement.clientHeight/3  + $(window).scrollTop();
				heightLpMin =  ( document.documentElement.clientHeight/1.08 )  + $(window).scrollTop();
				
				
				WidthLpMax = $("#Wrapper").innerWidth()-192+( ($(window).innerWidth()-$("#Wrapper").innerWidth())/2 );
				
				
			/**********************Live Person***********************/	
				document.getElementById("lpMaxWrapper").style.top =heightLpMax+"px";
				document.getElementById("lpMinWrapper").style.left =WidthLpMax+"px";
				document.getElementById("lpMinWrapper").style.top =heightLpMin+"px";
			
			/*************************************************************/			
		
				//$("#FloatingLayerWrapper").fadeTo("slow",0);
					
				//$("#FloatingLayerWrapper").fadeTo(2000,0.9)	;
  			 		

		}	
	});
	$(window).resize(function(){
				if(window.innerHeight || window.innerWidth){	
				
				
				heightLpMax =  (window.innerHeight/3 )  + $(window).scrollTop();
				heightLpMin =  (window.innerHeight/1.08 )  + $(window).scrollTop();
				
				WidthLpMax = $("#Wrapper").innerWidth()-204+( ($(window).innerWidth()-$("#Wrapper").innerWidth())/2 );
				
				
				/**********************Live Person***********************/	
				document.getElementById("lpMaxWrapper").style.top =heightLpMax+"px";
				document.getElementById("lpMinWrapper").style.left =WidthLpMax+"px";
				document.getElementById("lpMinWrapper").style.top =heightLpMin+"px";
			
			/*************************************************************/	
			
				//$("#FloatingLayerWrapper").fadeTo("slow",0);
				//$("#FloatingLayerWrapper").fadeTo(2000,0.9);

			
		}
		else{
				
				
				heightLpMax =  document.documentElement.clientHeight/3  + $(window).scrollTop();
				heightLpMin =  ( document.documentElement.clientHeight/1.08 )  + $(window).scrollTop();
				
				
				WidthLpMax = $("#Wrapper").innerWidth()-192+( ($(window).innerWidth()-$("#Wrapper").innerWidth())/2 );
				
				
			/**********************Live Person***********************/	
				document.getElementById("lpMaxWrapper").style.top =heightLpMax+"px";
				document.getElementById("lpMinWrapper").style.left =WidthLpMax+"px";
				document.getElementById("lpMinWrapper").style.top =heightLpMin+"px";
			
			/*************************************************************/			
		
				//$("#FloatingLayerWrapper").fadeTo("slow",0);
					
				//$("#FloatingLayerWrapper").fadeTo(2000,0.9)	;
  			 		

		}	

	
	});
	
	
	


	
				 
});