var _wow_data_host = 'data7.wowzio.com';    var _wow_getComputedStyle = function(_elem, _style) {
      var computedStyle;
      if (typeof _elem.currentStyle != 'undefined'){
        if (_style == 'borderRightWidth' || _style == 'borderLeftWidth') {
          var _which = (_style=='borderRightWidth')?'Right':'Left';
          return _wow_getBorderWidth(_elem, _which);
        } else {
          computedStyle = _elem.currentStyle;
          return _wow_grabLength(_elem, computedStyle[_style]);
        }
      }else {
        computedStyle = document.defaultView.getComputedStyle(_elem, null); 
        return _wow_grabLength(_elem, computedStyle[_style]);
      }
    };
    
    var _wow_grabLength = function(styleEl, len) {
        if ((typeof len != 'undefined') && len != '0px' && len != '0em' && len != '0pt' && len != '0') {
          var temp = document.createElement("DIV");
          temp.style.width = len;
          styleEl.parentNode.appendChild(temp);
          len = Math.round(temp.offsetWidth);
          styleEl.parentNode.removeChild(temp);
          return len;
        } else {
          return 0;
        }
    };

    var _wow_getBorderWidth = function(styleEl, which) {
        var borderRegex = /thin|medium|thick/i;
        var borderWidth = styleEl.currentStyle["border" + which + "Width"];
        if(styleEl.currentStyle["border" + which + "Style"] != "none" && 
                ((/Top|Bottom/i.test(which) && styleEl.offsetHeight > styleEl.clientHeight) || 
                (/Right|Left/i.test(which) && styleEl.offsetWidth > styleEl.clientWidth))) {
            if(!borderRegex.test(borderWidth)) {
                return _wow_grabLength(borderWidth);
            } else if(borderRegex.test(borderWidth)) {
                var temp = document.createElement("DIV");
                temp.style.width = "10px";
                temp.style.border = borderWidth + " " + styleEl.currentStyle["border" + which + "Style"] + " #000000";
                styleEl.parentNode.appendChild(temp);
                borderWidth = Math.round((temp.offsetWidth-10)/2);
                styleEl.parentNode.removeChild(temp);
                return borderWidth;
            }
        } else {
            return "0";
        }
    };
var _wow_outer_el = document.getElementById('wow_wwrapec73');if (!_wow_outer_el) { _wow_outer_el = document.getElementById('wow_wwrapauto');}var padLeft = _wow_getComputedStyle(_wow_outer_el.parentNode, 'paddingLeft');var padRight = _wow_getComputedStyle(_wow_outer_el.parentNode, 'paddingRight');var borderRight = _wow_getComputedStyle(_wow_outer_el.parentNode, 'borderRightWidth');var borderLeft = _wow_getComputedStyle(_wow_outer_el.parentNode, 'borderLeftWidth');var _wow_par_width = _wow_outer_el.parentNode.offsetWidth-padLeft-padRight-borderLeft-borderRight-2;_wow_par_width = Math.min(_wow_par_width, 350);if (_wow_par_width<=50) {_wow_par_width=200;}      function _wow_getAutoFitHeight(w) {
        return Math.floor(w + 1*(Math.log(w)/Math.log(6)));
      }var _wow_par_height = _wow_getAutoFitHeight(_wow_par_width);    var _wow_getComputedStyle = function(_elem, _style) {
      var computedStyle;
      if (typeof _elem.currentStyle != 'undefined'){
        if (_style == 'borderRightWidth' || _style == 'borderLeftWidth') {
          var _which = (_style=='borderRightWidth')?'Right':'Left';
          return _wow_getBorderWidth(_elem, _which);
        } else {
          computedStyle = _elem.currentStyle;
          return _wow_grabLength(_elem, computedStyle[_style]);
        }
      }else {
        computedStyle = document.defaultView.getComputedStyle(_elem, null); 
        return _wow_grabLength(_elem, computedStyle[_style]);
      }
    };
    
    var _wow_grabLength = function(styleEl, len) {
        if ((typeof len != 'undefined') && len != '0px' && len != '0em' && len != '0pt' && len != '0') {
          var temp = document.createElement("DIV");
          temp.style.width = len;
          styleEl.parentNode.appendChild(temp);
          len = Math.round(temp.offsetWidth);
          styleEl.parentNode.removeChild(temp);
          return len;
        } else {
          return 0;
        }
    };

    var _wow_getBorderWidth = function(styleEl, which) {
        var borderRegex = /thin|medium|thick/i;
        var borderWidth = styleEl.currentStyle["border" + which + "Width"];
        if(styleEl.currentStyle["border" + which + "Style"] != "none" && 
                ((/Top|Bottom/i.test(which) && styleEl.offsetHeight > styleEl.clientHeight) || 
                (/Right|Left/i.test(which) && styleEl.offsetWidth > styleEl.clientWidth))) {
            if(!borderRegex.test(borderWidth)) {
                return _wow_grabLength(borderWidth);
            } else if(borderRegex.test(borderWidth)) {
                var temp = document.createElement("DIV");
                temp.style.width = "10px";
                temp.style.border = borderWidth + " " + styleEl.currentStyle["border" + which + "Style"] + " #000000";
                styleEl.parentNode.appendChild(temp);
                borderWidth = Math.round((temp.offsetWidth-10)/2);
                styleEl.parentNode.removeChild(temp);
                return borderWidth;
            }
        } else {
            return "0";
        }
    };
var _wow_pad = 3;var _wow_padded_width = _wow_par_width - _wow_pad;var _wow_outer_css_extra = '<style>';_wow_outer_css_extra += '#wow_wwrapec73, #wow_wwrapauto {margin: 0;  padding: 0;  width: '+_wow_par_width+'px; clear:both; border: 1px solid #444; line-height: 9px !important; }';_wow_outer_css_extra += '#wow_signec73, #wow_signauto {background: #ccc url(http://static.wowzio.net/images/sigbackgrad2.gif) repeat-x top left; margin: 0; text-align: right; font-size: 10px; width: '+ _wow_par_width +'px; height:14px; padding: 3px 0 0 0;}';_wow_outer_css_extra += '</style>';document.write("<style> #wow_wwrap, #wow_wwrapauto, #wow_wwrapec73 { margin: 0; padding: 0; width: autopx; clear:both; border: 1px solid #444444; background: #ccc url(http://static.wowzio.net/images/ajax_loader2_gray.gif) center center no-repeat; line-height: 9px; } a#wow_sl, a#wow_sr, a#wow_slec73, a#wow_srec73 { font: normal 100% arial,sans-serif; color: #000 !important; text-decoration: none; display: inline !important; } #wow_sl, #wow_slec73 { font-weight: bold !important; } #wow_sl:hover, #wow_sr:hover, #wow_slec73:hover, #wow_srec73:hover { text-decoration: underline; } #wow_sign, #wow_signauto, #wow_signec73 { background: #ccc url(http://static.wowzio.net/images/sigbackgrad2.gif) repeat-x top left; margin: 0 !important; text-align: right !important; font-size: 10px !important; width: autopx; height: 12px; padding: 3px 0 0 0; } .cp_wid_iframe { margin: 0 0 0px; } .wowclear { clear: both; line-height: 0 !important; height: 0 !important; border: 0 !important; font-size: 0 !important; margin: 0 !important; } </style>");
document.write(_wow_outer_css_extra);
var _wow_iframe_url = 'http://' + _wow_data_host + '/widgets/module?wtype=simphoto&ti=Simple+Joys%21&bc=000000&lc=FFFFFF&ap=yes&ps=7&sb=yes&sv=1&cid=0&ef=fade&th=simphoto&ids=18998&isWidgetBuilder=no&csshash=ec73&cb=1'+'&x=2&h='+_wow_par_height+'&w='+_wow_par_width+'&autowidth='+_wow_par_width;document.write("<iframe allowtransparency='true' width='"+_wow_par_width+"' height='"+_wow_par_height+"' margin='0' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='"+_wow_iframe_url+"' name='wowiframeec73' id='wowiframeec73' class='cp_wid_iframe' ></iframe>");
  var wow_ip = '69.181.250.73';
  var wow_ids = '18998';
  var wow_host = 'www.wowzio.com';    var wow_client_host = document.location.host;
    var wow_client_title = "&ti="+escape(document.title); // escape preferred over encodeURIComponent because it encodes single quotes
    if (document.referrer) {
      var wow_client_referrer = "&ref="+encodeURIComponent(document.referrer);
    } else {
      var wow_client_referrer = '';
    }
    
    var wow_blogids = "&blogid="+wow_ids;
    var wow_client_url = document.location.href;
    wow_client_url = wow_client_url.replace(document.location.hash, '');
    wow_client_url = encodeURIComponent(wow_client_url);
    wow_ip = "";
    var wow_beacon_img = "<img style='position:absolute;top:0;left:0;border:0px;display:none;' src='http://data2.wowzio.com/activity/beacon?url=" + wow_client_url + wow_ip + wow_blogids + wow_client_title + wow_client_referrer + "'>";document.write(wow_beacon_img);
  var wow_counter_img = "<img style='position:absolute;top:0;left:0;display:none;' src='http://data2.wowzio.com/widgets/counter'>";
  document.write(wow_counter_img);      window.setTimeout( function () {
        var wow_sl = document.getElementById('wow_slec73');
        if (!wow_sl) {
          wow_sl = document.getElementById('wow_sl');
        }
        if (wow_sl) {
          wow_sl.href = 'http://www.wowzio.com/widgets/designer?wtype=simphoto&w=auto&h=291&ti=Simple+Joys%21&bc=000000&lc=FFFFFF&ap=yes&ps=7&sb=yes&sv=1&cid=0&ef=fade&ids=18998&r=s';
        }

        var wow_sr = document.getElementById('wow_srec73');
        if (!wow_sr) {
          wow_sr = document.getElementById('wow_sr');
        }
        if (wow_sr) {
          wow_sr.href = 'http://www.wowzio.com/?r=s';
        }
      }, 500);