// JavaScript Document

$(document).ready(function() {

	//$("#FloatingLayerWrapper").show();	
		
	if(window.innerHeight || window.innerWidth){	
				
				height = (window.innerHeight/1.1 )+$(window).scrollTop();
				height1 = (window.innerHeight/4 )+$(window).scrollTop();
				height2 = (window.innerHeight/2.5 )+$(window).scrollTop();
				
				width = window.innerWidth -450;
				width1 = (window.innerWidth/2) -250;
				
				
				//document.getElementById("FloatingLayerWrapper").style.top =height+"px";
				//document.getElementById("FloatingLayerWrapper").style.left =width+"px";
			/***********************basket Pop Up*********************************/
			
			
			    //document.getElementById("FeedBackUserCart").style.top =height1+"px";
				//document.getElementById("FeedBackUserCart").style.left =width1+"px";
				
			/**********************Basket Pop up ends ****************************/
			/**********************Package Layer****************************/
				//document.getElementById("PackageLayerBottomLeft").style.top =height2+"px";
			/**********************Package Layer End***********************/
				//$("#FloatingLayerWrapper").fadeTo("slow",0.1);	
					
		}
		else{
				
				height = document.documentElement.clientHeight/1.1 +$(window).scrollTop();
				height1 = document.documentElement.clientHeight/4 +$(window).scrollTop();
				height2 = document.documentElement.clientHeight/2.5 +$(window).scrollTop();
				
				//alert(height1);
				
				width = document.documentElement.clientWidth -450;
				width1 = (document.documentElement.clientWidth)/2 -250;
				
			//	document.getElementById("FloatingLayerWrapper").style.top =height+"px";
			//	document.getElementById("FloatingLayerWrapper").style.left =width+"px";
			/***********************basket Pop Up*********************************/
			
			    //document.getElementById("FeedBackUserCart").style.top =height1+"px";
				//document.getElementById("FeedBackUserCart").style.left =width1+"px";
			
			/**********************Basket Pop up ends ****************************/
			/**********************Package Layer****************************/
				//document.getElementById("PackageLayerBottomLeft").style.top =height2+"px";
			/**********************Package Layer End***********************/	
			
				//$("#FloatingLayerWrapper").fadeTo("slow",0.1);
				//$("#PackageLayerBottomLeft").fadeTo("slow",0.9);	
		}

		
		
	

	$(window).scroll(function(){
		if(window.innerHeight || window.innerWidth){	
				
				height = (window.innerHeight/1.1 )+$(window).scrollTop();
				height1 = (window.innerHeight/4 )+$(window).scrollTop();
				height2 = (window.innerHeight/2.5)+$(window).scrollTop();
				
				width = window.innerWidth -450;
				width1 = (window.innerWidth/2) -250;
				
				
			//	document.getElementById("FloatingLayerWrapper").style.top =height+"px";
			//	document.getElementById("FloatingLayerWrapper").style.left =width+"px";
			/***********************basket Pop Up*********************************/
			
			    //document.getElementById("FeedBackUserCart").style.top =height1+"px";
				//document.getElementById("FeedBackUserCart").style.left =width1+"px";
			
			/**********************Basket Pop up ends ****************************/
			/**********************Package Layer****************************/
				//document.getElementById("PackageLayerBottomLeft").style.top =height2+"px";
			/**********************Package Layer End***********************/
			
				//$("#FloatingLayerWrapper").fadeTo("slow",0);
				//$("#FloatingLayerWrapper").fadeTo(2000,0.9);

			
		}
		else{
				
				height = (document.documentElement.clientHeight/1.1)+ $(window).scrollTop();
				height1 = (document.documentElement.clientHeight/4)+ $(window).scrollTop();
				height2 = (document.documentElement.clientHeight/2.5)+ $(window).scrollTop();
				
				width = document.documentElement.clientWidth -450;
				width1 = (document.documentElement.clientWidth)/2 -250;
				
			//	document.getElementById("FloatingLayerWrapper").style.top =height+"px";
			//	document.getElementById("FloatingLayerWrapper").style.left =width+"px";
			/***********************basket Pop Up*********************************/
				
				//document.getElementById("FeedBackUserCart").style.top =height1+"px";
				//document.getElementById("FeedBackUserCart").style.left =width1+"px";
			
			/**********************Basket Pop up ends ****************************/
			/**********************Package Layer****************************/
				//document.getElementById("PackageLayerBottomLeft").style.top =height2+"px";
			/**********************Package Layer End***********************/	
			
				//$("#FloatingLayerWrapper").fadeTo("slow",0);
					
				//$("#FloatingLayerWrapper").fadeTo(2000,0.9)	;
  			 		

		}	
	});
	
	$(window).resize(function(){
		if(window.innerHeight || window.innerWidth){	
				
				height = window.innerHeight/1.1;
				height1 = window.innerHeight/4;
				height2 = window.innerHeight/2.5;
				
				
				width = window.innerWidth -450;
				width1 = (window.innerWidth)/2 -250;
		//		document.getElementById("FloatingLayerWrapper").style.top =height+"px";
		//		document.getElementById("FloatingLayerWrapper").style.left =width+"px";
			/***********************basket Pop Up*********************************/
				
			//	document.getElementById("FeedBackUserCart").style.top =height1+"px";
			//	document.getElementById("FeedBackUserCart").style.left =width1+"px";
		
		/**********************Basket Pop up ends ****************************/
			/**********************Package Layer****************************/
			//	document.getElementById("PackageLayerBottomLeft").style.top =height2+"px";
			/**********************Package Layer End***********************/

				
		}
		else{
				
				height = document.documentElement.clientHeight/1.1;
				height1 = document.documentElement.clientHeight/4;
				height2 = document.documentElement.clientHeight/2.5;
				width = document.documentElement.clientWidth -450;
				width1 = (document.documentElement.clientWidth)/2 -250;
		//		document.getElementById("FloatingLayerWrapper").style.top =height+"px";
		//		document.getElementById("FloatingLayerWrapper").style.left =width+"px";
			/***********************basket Pop Up*********************************/
				
				//document.getElementById("FeedBackUserCart").style.top =height1+"px";
				//document.getElementById("FeedBackUserCart").style.left =width1+"px";
		
		/**********************Basket Pop up ends ****************************/
			/**********************Package Layer****************************/
				//document.getElementById("PackageLayerBottomLeft").style.top =height2+"px";
			/**********************Package Layer End***********************/

		
		}				
	});	
	
//	$("#FloatingLayerWrapper").hoverIntent(function(){
//		$("#FloatingLayerWrapper").fadeTo("slow",0.9);												  
//	},function(){
//		$("#FloatingLayerWrapper").fadeTo("slow",0.1);	
//	});


			 
});



function showWebLinks()
{

document.getElementById('v-menu').style.display = '';
}


function hideWebLinks()
{
document.getElementById('v-menu').style.display = 'none';

}

