<!--
	popupTimeout = 1000;	// Number Of Seconds To Display Popup
	popupProbability = 1;	// Probability Of Ad Being Shown (1 = Everytime)
	
	var ns = (document.layers);
	var ie = (document.all);
	var w3 = (document.getElementById && !ie);
	popupCount = 0;
	
	function initPopup()
	{
		if (!ns && !ie && !w3)
			return;
			
		if (ie)
			popupDiv = eval('document.all.imsurePopup.style');
		else if (ns)
			popupDiv = eval('document.layers["imsurePopup"]');
		else if (w3)
			popupDiv = eval('document.getElementById("imsurePopup").style');
			
		randomPopup = Math.ceil(Math.random() * popupProbability);
		
		if (ie || w3)
			popupDiv.visibility = "visible";
		else
			popupDiv.visibility = "show";
			
		if (randomPopup == 1)
			showPopup();
	}
	
	function showPopup()
	{
		if (popupCount < popupTimeout * 10)
		{
			popupCount++;
			
			if (ie)
			{
				documentWidth = document.body.offsetWidth / 2 + document.body.scrollLeft - 20;
				documentHeight = document.body.offsetHeight / 2 + document.body.scrollTop - 20;
			}
			else if (ns)
			{
				documentWidth = window.innerWidth / 2 + window.pageXOffset - 20;
				documentHeight = window.innerHeight / 2 + window.pageYOffset - 20;
			}
			else if (w3)
			{
				documentWidth = self.innerWidth / 2 + window.pageXOffset - 20;
				documentHeight = self.innerHeight / 2 + window.pageYOffset - 20;
			}
			
			popupDiv.left = documentWidth - 200;
			popupDiv.top = documentHeight - 200;
			setTimeout("showPopup()", 100);
		}
		else
			closePopup();
	}
	
	function closePopup()
	{
		if (ie || w3)
			popupDiv.visibility = "hidden";
		else
			popupDiv.visibility = "hide";
			
		popupCount = 0;
	}
	
	function redirectUser()
	{
		closePopup();
			
		window.location.href = "http://www.intershipper.com/";
	}
//-->