<!-- Begin

////////////////////////////////////////////////////////////////////////////////////
//	Function Declarations

//	function GetCookie
//	This function returns the value of a cookie by virtue of the cookie's name.
function GetCookie (name)
{  
	var arg = name + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {
	var j = i + alen;    
	if (document.cookie.substring(i, j) == arg)      
	return getCookieVal (j);    
	i = document.cookie.indexOf(" ", i) + 1;    
	if (i == 0) break;   
	}  
	return null;
}
//	End GetCookie

//	function SetCookie
//	This function sets the name/value of a cookie.
function SetCookie (name, value)
{  
	var argv = SetCookie.arguments;  
	var argc = SetCookie.arguments.length; 
	var expires = (argc > 2) ? argv[2] : null;  
	var path = (argc > 3) ? argv[3] : "/"; 
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false; 
	//alert( "name=" + name + ",value=" + value + ", path=" + path + ", domain=" + domain + ", secure=" + secure ); 
	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");
}//	End SetCookie

//	function DeleteCookie
//	This function deletes a cookie.
function DeleteCookie (name)
{  
	var exp = new Date();  
	exp.setTime (exp.getTime() - 1);   
	var cval = GetCookie (name);  
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}//	End DeleteCookie

//	function amt
//	This function returns the 
function ProvidePageVisitCount()
{
	var count = GetCookie('count');
	if(count == null) 
	{
		SetCookie('count','1');
		return 1;
	}
	else
	{
		var newcount = parseInt(count) + 1;
		DeleteCookie('count');
		SetCookie('count',newcount,exp);
		return count;
   }
}//	End ProvidePageVisitCount

//	function getCookieVal
//	This function returns the value of a cookie.
function getCookieVal(offset)
{
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}//	End getCookieVal

//	End Function Declarations
////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////
//	Code

var expDays = 30;		//	This is the number of days until a cookie expires.
var exp = new Date();	//	This will hold a value in milliseconds of 30 days.
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

var swf;				//	This variable will hold the text necessary to write
						//	the flash object into html.

function checkPage()
{
	if (typeof thePage == 'undefined')
		return 'page=default';
	else
		return thePage;
}

//	If the user has visited the page more than once, give them this flash.
if( ProvidePageVisitCount() > 1)
{
	swf = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='755' height='200'>"+
            "<param name='flashvars' value='"+ checkPage() + "'>"+
			"<param name='movie' value='http://www.seotoolset.com/flash-no_intro.swf'>"+
            "<param name=quality value=high>"+
			"<param name=wmode value=transparent>"+
            "<embed src='http://www.seotoolset.com/flash-no_intro.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='755' height='200' wmode='transparent'></embed>"+
          "</object>";

	sswf = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='755' height='200'>"+
            "<param name='flashvars' value='"+ checkPage() + "'>"+
			"<param name='movie' value='https://www.seotoolset.com/flash-no_intro.swf'>"+
            "<param name=quality value=high>"+
			"<param name=wmode value=transparent>"+
            "<embed src='https://www.seotoolset.com/flash-no_intro.swf' quality=high pluginspage='https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='755' height='200' wmode='transparent'></embed>"+
          "</object>";
}
//	Otherwise provide them with this flash.
else
{
	swf = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='755' height='200'>"+
            "<param name='flashvars' value='"+ checkPage() + "'>"+
			"<param name='movie' value='http://www.seotoolset.com/flash.swf'>"+
            "<param name=quality value=high>"+
			"<param name=wmode value=transparent>"+
            "<embed src='http://www.seotoolset.com/flash.swf' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='755' height='200' wmode='transparent'></embed>"+
          "</object>";

	sswf = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='755' height='200'>"+
            "<param name='flashvars' value='"+ checkPage() + "'>"+
			"<param name='movie' value='https://www.seotoolset.com/flash.swf'>"+
            "<param name=quality value=high>"+
			"<param name=wmode value=transparent>"+
            "<embed src='https://www.seotoolset.com/flash.swf' quality=high pluginspage='https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='755' height='200' wmode='transparent'></embed>"+
          "</object>";
}
;

//	End Code
////////////////////////////////////////////////////////////////////////////////////

// End -->