function VeriSignSecure()
{
	var url='https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.LOGOWORKS.COM&lang=en';
	window.open(url, "VeriSign", "width=550,height=450,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes");
}

function focusForm()
{	
	//this form is located on all of the gallery pages
	if(document.galleryMoreIdeas != null)
	{
		document.galleryMoreIdeas.email.focus();
	}
	
	//this form is located on the promo products page
	if(document.promoNewsForm != null)
	{
		document.promoNewsForm.name.focus();
	}
}

function setOmnitureNews(linkID)
{
	s_linkTrackVars='s_eVar6,s_eVar1,s_eVar2';
	s_linkTrackEvents='None';
	s_linkType='o';
	s_linkName=linkID;
	s_eVar1='Article';
	s_eVar2='Article';
	s_eVar6=linkID;
	s_lnk=s_co(this);
	s_gs('logoworkscom');
}


function flashMoviePop(destination)
{
	url = destination;
	window.open(url, "flashMovie", "width=640,height=240,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes");
}

function captureRef()
{
  var docref = document.referrer.substring(0,100);
  var longenterpage = document.location;
  a = docref.indexOf('//');
  b = docref.indexOf('/', a + 2);

  // e1 = longenterpage.lastIndexOf('/')
  
  // e2 = longenterpage.lastIndexOf('.')

  //var enterpage = longenterpage.substring(e1 + 1, e2) 
  

 
  var cook = document.cookie;
  document.cookie="session_referrer=" + docref + ";path=/;domain=.logoworks.com";
  
  if (cook.indexOf("initial_referrer") == -1)
  {
    var today = new Date();
    var year = today.getFullYear();
    var month = today.getMonth();
    var day = today.getDate();
    day = day + 30;
    if (day > 28)
    {
      day = day - 28;
      month = month + 1;
    }
    if (month > 11)
    {
      month = 0;
      year = year + 1;
    }
    var expdate = new Date(year, month, day);
    document.cookie="initial_referrer=" + docref + ">>" + longenterpage + "; expires=" + expdate.toGMTString() + ";path=/;domain=.logoworks.com";
  }
}


function setOmnitureVars(linkID)
{
	s_linkTrackVars='s_eVar1,s_eVar2,s_prop2';
	s_linkTrackEvents='None';
	s_linkType='o';
	s_linkName=linkID;
	s_eVar1='Gallery Pages';
	s_eVar2='Gallery Pages';
	s_prop2=linkID;
	s_lnk=s_co(this);
	s_gs('logoworkscom');
}

