<!-- Begin

function init()
{
  // BEG rel="external"
  if (!document.getElementsByTagName) return; 
  var anchors = document.getElementsByTagName("a"); 
  for (var i=0; i<anchors.length; i++) { 
    var anchor = anchors[i]; 
    if (anchor.getAttribute("href") && 
        anchor.getAttribute("rel") == "external") 
      anchor.target = "_blank"; 
  } 
  // END rel="external"
  // BEG add2Favs
  document.getElementById('add2Favs').onclick = function() {
    var titlef = document.title;
    var urlf = location.href;
    if (window.sidebar) { 
      window.sidebar.addPanel(titlef, urlf,""); 
    } 
    else if( document.all ) {
      window.external.AddFavorite( urlf, titlef);
    } 
    else if( window.opera && window.print ) {
      return true;
    }
    return false;
  }
  // END add2Favs
  // BEG add2Favs2
  document.getElementById('add2Favs2').onclick = function() {
    var titlef = document.title;
    var urlf = location.href;
    if (window.sidebar) { 
      window.sidebar.addPanel(titlef, urlf,""); 
    } 
    else if( document.all ) {
      window.external.AddFavorite( urlf, titlef);
    } 
    else if( window.opera && window.print ) {
      return true;
    }
    return false;
  }
  // END add2Favs2
  // BEG add2Social
  document.getElementById('add2Social').onclick = function() {
    var titlef = document.title;
    var urlf = location.href;
    window.location = 'http://www.tagenie.com/submit.php?url='+encodeURIComponent(urlf)+'&amp;title='+encodeURIComponent(titlef)+'';
    return false;
  }
  // END add2Social
  // BEG add2Social2
  document.getElementById('add2Social2').onclick = function() {
    var titlef = document.title;
    var urlf = location.href;
    window.location = 'http://www.tagenie.com/submit.php?url='+encodeURIComponent(urlf)+'&amp;title='+encodeURIComponent(titlef)+'';
    return false;
  }
  // END add2Social2
  // BEG lightboxInit1
  if ( document.getElementById('contact-web-designer') )
  {
     var lightbox1 = document.getElementById('contact-web-designer');   
     lightbox1.onmouseover = function(){ document.getElementById('fade').style.display='block' }
     lightbox1.onmouseout  = function(){ document.getElementById('fade').style.display='none' }
  }
  // END lightboxInit1
  // *** MAIN DISPLAY
  document.getElementById('web-design-miami-florida').style.display='block'
  // *** MAIN DISPLAY
  // BEG formInit 
  if ( document.getElementById('Contact') )
  {
  document.getElementById('Contact').onsubmit = function () {
    return check_it(this)
  }
  document.getElementById('Message_Text').onclick = function () {
    var defaultText = 'Your questions or comments can be entered here...';
    if ( this.value == defaultText ){ this.value = ''; }
  }
  document.forms["Contact"].Contact_Name.focus()
  }
  // END formInit
}
window.onload = init;

// Begin MUSIC ON|OFF
function squirtMusic1()
{
  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=""/></object>\n');
}
// End MUSIC ON|OFF

// Begin SCREENSHOTS
function websiteredesignmiami1()
{
  document.write('<object type="application/x-shockwave-flash" data="c.swf?path=Website_Redesign_Miami.swf" width="200" height="167">\n');
  document.write('<param name="movie" value="c.swf?path=Website_Redesign_Miami.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/Website_Redesign_Miami.jpg" width="200" height="167" alt=""/></object>\n');
}
// End SCREENSHOTS

// Begin HOME FLASH
function miamiwebdesign1()
{
  document.write('<object type="application/x-shockwave-flash" data="c.swf?path=Web_Design_Miami_Web_Designer_7.swf" width="620" height="600">\n');
  document.write('<param name="movie" value="c.swf?path=Web_Design_Miami_Web_Designer_7.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/Web_Design_Miami_Web_Designer_FL_2.jpg" width="620" height="600" alt="Web Design Miami"/></object>\n');
}
// End HOME FLASH

// Begin WEB20 YOUTUBE
function web20summit1()
{
  document.write('<object width="440" height="267">\n');
  document.write('<param name="movie" value="http://www.youtube.com/v/KY5skobffk0&hl=en_US&fs=1&"></param>\n');
  document.write('<param name="allowFullScreen" value="false"></param>\n');
  document.write('<param name="allowscriptaccess" value="always"></param>\n');
  document.write('<embed src="http://www.youtube.com/v/KY5skobffk0&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="440" height="267"></embed></object>\n');
}
// End WEB20 YOUTUBE

// Begin DISABLE-ENTER
function checkCR(evt) {
    var evt  = (evt) ? evt : ((event) ? event : null);
    var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
    if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
}
document.onkeypress = checkCR; // attach the function to the onkeypress event
// End DISABLE-ENTER

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 illegalChars1= /[\(\)\<\>\,\;\:\\\/\"\@\[\]]/
    if (the_form.Contact_Name.value.match(illegalChars1)) {
        alert('Contact name contains illegal characters');
        the_form.Contact_Name.focus();
        return false;    
    }
    var illegalChars2= /[\(\)\<\>\,\;\:\\\/\"\[\]]/
    if (the_form.email.value.match(illegalChars2)) {
        alert('The email address contains illegal characters');
        the_form.email.focus();
        return false;    
    }
    var emailFilter=/^.+@.+\..{2,3}$/;
    if (!(emailFilter.test(the_form.email.value))) { 
        alert('Please enter a valid email address');
        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 illegalChars3= /[\<\>\\\/\[\]]/
    if (the_form.Message_Text.value.match(illegalChars3)) {
        alert('Message text contains illegal characters');
        the_form.Message_Text.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;
}

// Begin POPUP1
function web30design1()
{
  document.write('<iframe src="http://www.youtube.com/watch_popup?v=wadZJyP_UUc" width="600" height="360" marginheight="0" marginwidth="0" scrolling="no"></iframe>\n');
}
// End POPUP1

//  End -->