// copyright Michael Spire Wilson 2008

// More info at www.StealthCapture.com 





// StealthCapture configuration options

//var url = 'http://<?=$dname;?>.makeitus.com/video.html';
//var url = 'http://<?=$dname;?>.abunza.com/video.html';

var defaultname = 'Fellow Entrepeneur';

var expDays = 365;

var defaultpath = ';path=/;';

var stealthcookie = 'stealth1=optin;expires=';



// StealthCapture Code - edit below at your own risk.



cookie_name = "GuestName";



var YouEntered;



function putCookie() {



if(document.cookie != document.cookie)

{index = document.cookie.indexOf(cookie_name);}

else

{ index = -1;}



if (index == -1)

{

YouEntered=document.cf.name.value;

document.cookie=cookie_name+'='+YouEntered+'; expires=' + exp.toGMTString() + defaultpath

}



}





var Name1;



function getName() {

if(document.cookie)

{

index = document.cookie.indexOf(cookie_name);

if (index != -1)

{

namestart = (document.cookie.indexOf("=", index) + 1);

nameend = document.cookie.indexOf(";", index);

if (nameend == -1) {nameend = document.cookie.length;}

Name1 = document.cookie.substring(namestart, nameend);

return Name1;

}

}

}



Name1=getName();

if (Name1 == undefined)

{Name1 = defaultname}

