﻿// JScript File
	var varSiteCapture_Interval, varSiteCapture_h;
	var varSiteCapture_Height;
	var varSiteCapture_obj;
	
	
	function hideSiteCapture() {
		var varSiteCapture_obj = document.getElementById("divSiteCapture");
		varSiteCapture_Height = varSiteCapture_obj.style.height;
		varSiteCapture_h = parseInt(varSiteCapture_Height.substring(0,varSiteCapture_Height.length-2));
		varSiteCapture_Interval = setInterval("scresize()",1);		
	}
			
	function scresize() {
		var varSiteCapture_obj = document.getElementById("divSiteCapture");
		var varSiteCapture_ra;
		varSiteCapture_ra = varSiteCapture_h / 5;
		varSiteCapture_h -= varSiteCapture_ra;
		varSiteCapture_obj.style.height = varSiteCapture_h + "px";
		if(varSiteCapture_h <= 1) {
			clearInterval(varSiteCapture_Interval);
			varSiteCapture_obj.style.display = "none";
		}
	}
	
	function sitecookie(c_name,value,expiredays)
	{
		 var exdate=new Date();
		 c_start=document.cookie.indexOf(c_name+ "=");
		 if(c_start==-1) 
		{
			
			document.getElementById("divSiteCapture").style.display = "block";
			exdate.setDate(exdate.getDate()+1);
			document.cookie= c_name+ "=" +escape(value)+
	((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
	      setTimeout("hideSiteCapture()", 15000);
		}
		else
		{
			document.getElementById("divSiteCapture").style.display = "none";
		}
	}

