function tellafriend1()
{
  document.write('<a href="mailto:?subject=Check%20Out%20PervasivePersuasion.com&body=Here%20is%20a%20link:%0D%0A%0D%0A'+document.location+'">Recommend</a>'); 
}
function squirtMusic1()
{
var browserName=navigator.appName; 
if (browserName=="Microsoft Internet Explorer")
  {
  document.write('<object type="application/x-shockwave-flash" data="c.swf?path=Staraja_Ladoga.swf" width="80" height="12">\n');
  document.write('<param name="movie" value="c.swf?path=Staraja_Ladoga.swf">\n');
  document.write('<param name="quality" value="high">\n');
  document.write('<param name="bgcolor" value="#FFFFFF">\n');
  document.write('<param name="wmode" value="transparent">\n');
  document.write('<img src="./images/clear.gif" width="80" height="12" alt="" border="0"></object>\n');
  }
  else
  {
  document.write('<object type="application/x-shockwave-flash" data="c.swf?path=Staraja_Ladoga.swf" width="80" height="12">\n');
  document.write('<param name="movie" value="c.swf?path=Staraja_Ladoga.swf">\n');
  document.write('<param name="quality" value="high">\n');
  document.write('<param name="bgcolor" value="#FFFFFF">\n');
  document.write('<param name="wmode" value="transparent">\n');
  document.write('<img src="./images/clear.gif" width="80" height="12" alt="" border="0"></object>\n');
  }
}
function squirtMusic2()
{
var browserName=navigator.appName; 
if (browserName=="Microsoft Internet Explorer")
  {
  document.write('<object type="application/x-shockwave-flash" data="http://www.pervasivepersuasion.com/c.swf?path=http://www.pervasivepersuasion.com/music/Player020-White.swf" width="60" height="15">\n');
  document.write('<param name="movie" value="http://www.pervasivepersuasion.com/c.swf?path=http://www.pervasivepersuasion.com/music/Player020-White.swf">\n');
  document.write('<param name="quality" value="high">\n');
  document.write('<param name="bgcolor" value="#FFFFFF">\n');
  document.write('<param name="wmode" value="transparent">\n');
  document.write('<img src="http://pervasivepersuasion.com/images/clear.gif" width="60" height="15" alt="" border="0"></object>\n');
  }
  else
  {
  document.write('<object type="application/x-shockwave-flash" data="http://www.pervasivepersuasion.com/c.swf?path=http://www.pervasivepersuasion.com/music/Player020-White.swf" width="60" height="15">\n');
  document.write('<param name="movie" value="http://www.pervasivepersuasion.com/c.swf?path=http://www.pervasivepersuasion.com/music/Player020-White.swf">\n');
  document.write('<param name="quality" value="high">\n');
  document.write('<param name="bgcolor" value="#FFFFFF">\n');
  document.write('<param name="wmode" value="transparent">\n');
  document.write('<img src="http://pervasivepersuasion.com/images/clear.gif" width="60" height="15" alt="" border="0"></object>\n');
  }
}
function disp_overlay1()
{
  var browserName=navigator.appName; 
  if (browserName=="Microsoft Internet Explorer")
  {
    document.getElementById('overlay1').style.display = 'block';
  }
}
function squirtOverlay1()
{
var browserName=navigator.appName; 
if (browserName=="Microsoft Internet Explorer")
  {
  document.write('<object type="application/x-shockwave-flash" data="c.swf?path=web_page_overlay1.swf" width="760" height="500">\n');
  document.write('<param name="movie" value="c.swf?path=web_page_overlay1.swf">\n');
  document.write('<param name="quality" value="high">\n');
  document.write('<param name="bgcolor" value="#FFFFFF">\n');
  document.write('<param name="wmode" value="transparent">\n');
  document.write('<img src="http://pervasivepersuasion.com/images/clear.gif" width="760" height="500" alt="" border="0"></object>\n');
  }
else
  {
  document.getElementById('overlay1').style.display = 'none';
  }
}
function squirtFlash()
{
document.write('<object type="application/x-shockwave-flash" data="c.swf?path=web_design_website_designer.swf" width="220" height="5">\n');
document.write('<param name="movie" value="c.swf?path=web_design_website_designer.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#FFFFFF">\n');
document.write('<img src="./images/south_florida.gif" width="220" height="5" alt="" border="0"></object>\n');
}
function squirtFlash2()
{
document.write('<object type="application/x-shockwave-flash" data="c.swf?path=Web_Design_Miami.swf" width="155" height="105">\n');
document.write('<param name="movie" value="c.swf?path=Web_Design_Miami.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#FFFFFF">\n');
document.write('<img src="./images/web_design_miami.gif" width="155" height="105" alt="" border="0"></object>\n');
}
function squirtKudos101()
{
document.write('<object type="application/x-shockwave-flash" data="c.swf?path=./web_design_miami/Miami_Web_Design_101.swf" width="200" height="250">\n');
document.write('<param name="movie" value="c.swf?path=./web_design_miami/Miami_Web_Design_101.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#FFFFFF">\n');
document.write('<img src="./images/miami_web_design.jpg" width="200" height="250" alt="Web Design Miami" border="0"></object>\n');
}
function squirtKudos102()
{
document.write('<object type="application/x-shockwave-flash" data="c.swf?path=./web_design_miami/Miami_Web_Design_102.swf" width="200" height="250">\n');
document.write('<param name="movie" value="c.swf?path=./web_design_miami/Miami_Web_Design_102.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#FFFFFF">\n');
document.write('<img src="./images/miami_web_design.jpg" width="200" height="250" alt="Web Design Miami" border="0"></object>\n');
}
function squirtKudos103()
{
document.write('<object type="application/x-shockwave-flash" data="c.swf?path=./web_design_miami/Miami_Web_Design_103.swf" width="200" height="250">\n');
document.write('<param name="movie" value="c.swf?path=./web_design_miami/Miami_Web_Design_103.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#FFFFFF">\n');
document.write('<img src="./images/miami_web_design.jpg" width="200" height="250" alt="Web Design Miami" border="0"></object>\n');
}
function squirtKudos104()
{
document.write('<object type="application/x-shockwave-flash" data="c.swf?path=./web_design_miami/Miami_Web_Design_104.swf" width="200" height="250">\n');
document.write('<param name="movie" value="c.swf?path=./web_design_miami/Miami_Web_Design_104.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#FFFFFF">\n');
document.write('<img src="./images/miami_web_design.jpg" width="200" height="250" alt="Web Design Miami" border="0"></object>\n');
}
function squirtKudos105()
{
document.write('<object type="application/x-shockwave-flash" data="c.swf?path=./web_design_miami/Miami_Web_Design_105.swf" width="200" height="250">\n');
document.write('<param name="movie" value="c.swf?path=./web_design_miami/Miami_Web_Design_105.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#FFFFFF">\n');
document.write('<img src="./images/miami_web_design.jpg" width="200" height="250" alt="Web Design Miami" border="0"></object>\n');
}
function squirtKudos106()
{
document.write('<object type="application/x-shockwave-flash" data="c.swf?path=./web_design_miami/Miami_Web_Design_106.swf" width="200" height="250">\n');
document.write('<param name="movie" value="c.swf?path=./web_design_miami/Miami_Web_Design_106.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#FFFFFF">\n');
document.write('<img src="./images/miami_web_design.jpg" width="200" height="250" alt="Web Design Miami" border="0"></object>\n');
}
function squirtKudos107()
{
document.write('<object type="application/x-shockwave-flash" data="c.swf?path=./web_design_miami/Miami_Web_Design_107.swf" width="200" height="250">\n');
document.write('<param name="movie" value="c.swf?path=./web_design_miami/Miami_Web_Design_107.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#FFFFFF">\n');
document.write('<img src="./images/miami_web_design.jpg" width="200" height="250" alt="Web Design Miami" border="0"></object>\n');
}
function squirtKudos108()
{
document.write('<object type="application/x-shockwave-flash" data="c.swf?path=./web_design_miami/Miami_Web_Design_108.swf" width="200" height="250">\n');
document.write('<param name="movie" value="c.swf?path=./web_design_miami/Miami_Web_Design_108.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#FFFFFF">\n');
document.write('<img src="./images/miami_web_design.jpg" width="200" height="250" alt="Web Design Miami" border="0"></object>\n');
}
function squirtKudos109()
{
document.write('<object type="application/x-shockwave-flash" data="c.swf?path=./web_design_miami/Miami_Web_Design_109.swf" width="200" height="250">\n');
document.write('<param name="movie" value="c.swf?path=./web_design_miami/Miami_Web_Design_109.swf">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="bgcolor" value="#FFFFFF">\n');
document.write('<img src="./images/miami_web_design.jpg" width="200" height="250" alt="Web Design Miami" border="0"></object>\n');
}
sfFocus = function() { 
  var sfEls1 = document.getElementsByTagName("input"); 
  for (var i=0; i<sfEls1.length; i++) { 
    if(sfEls1[i].getAttribute("type") != "checkbox") {
      sfEls1[i].onfocus=function() { this.className="sfFocus"; } 
      sfEls1[i].onblur=function() { this.className="formbox"; } 
    } 
  } 
  var sfEls2 = document.getElementsByTagName("select"); 
  for (var i=0; i<sfEls2.length; i++) { 
    sfEls2[i].onfocus=function() { this.className="sfFocus"; } 
    sfEls2[i].onblur=function() { this.className="formbox"; } 
  } 
  var sfEls3 = document.getElementsByTagName("textarea"); 
  for (var i=0; i<sfEls3.length; i++) { 
    sfEls3[i].onfocus=function() { this.className="sfFocus"; } 
    sfEls3[i].onblur=function() { this.className="formbox"; } 
  } 
} 
if (window.attachEvent) window.attachEvent("onload", sfFocus); 
function check_it(the_form){
    var emailFilter=/^.+@.+\..{2,3}$/;
    if (!(emailFilter.test(the_form.email.value))) { 
        alert('Please enter a valid email address');
        the_form.email.focus();
        return false;    
    }
    var illegalChars= /[\(\)\<\>\,\;\:\\\/\"\[\]]/
    if (the_form.email.value.match(illegalChars)) {
        alert('The email address contains illegal characters');
        the_form.email.focus();
        return false;    
    }
    if(the_form.email.value != the_form.Email_Confirm.value){
        alert('Email address does not match Email Confirm.');
        the_form.email.focus();
        return false;
    }
    var checkdigit4 = parseInt(the_form.checkdigit1.value)+ parseInt(the_form.checkdigit2.value);
    if(parseInt(the_form.checkdigit3.value) != checkdigit4 ){
        alert('Invalid Spam Check Digit.');
        the_form.checkdigit3.focus();
        return false;
   }
   return true;
}
function toggle(divid){
    if(document.getElementById(divid).style.display == 'none'){
      document.getElementById(divid).style.display = 'block';
    }else{
      document.getElementById(divid).style.display = 'none';
    }
    return true;
}

function resize_iframe()
{
	var height=window.innerHeight;//Firefox
	if (document.body.scrollHeight)
	{
		height=document.body.scrollHeight;//IE
	}
	//resize the iframe according to the size of the
	//window (all these should be on the same line)
	document.getElementById("ibar").style.height=parseInt(height-document.getElementById("ibar").offsetTop-476)+"px";
}
// this will resize the iframe every
// time you change the size of the window.

function init()
{
    // BEG writePhpTACookie
	date=new Date;
	date.setMonth(date.getMonth()+1);
	var name = "phpTA_resolution";
	var value = screen.width +"x"+ screen.height;
	var domain = "webredesignmiami.com";
	var path= "/";
	document.cookie=name+"="+escape(value)+"; expires="+date.toGMTString()+"; path="+path+"; domain="+domain;
    // END writePhpTACookie	var height=window.innerHeight;//Firefox
    resize_iframe();
    window.onresize = resize_iframe;
}
window.onload = init;

