
 
/*
Cufon.replace('h1, h2, h4, h5', { fontFamily: 'Imprint MT Shadow' });
  */
	$(document).ready(function(){
  $(".footer-untility ul li:last-child").addClass("last-item");
  $(".listProducts ul li:last-child").addClass("list-last-item");
  $(".listProducts img").each(
        function(i) {
            $(this).wrap('<span class="border" style="width: '+$(this).width()+'px;"></span>');
            var w = $(this).width()-24;
            var h = $(this).height()-24;
            $(this).after('<span style="width: '+w+'px; height: '+h+'px;"></span><em class="plus"></em>');
        }
    );
    $(".detail-picture img").each(
        function(i) {
            $(this).wrap('<span class="border" style="width: '+$(this).width()+'px;"></span>');
            var w = $(this).width()-24;
            var h = $(this).height()-24;
            $(this).after('<span style="width: '+w+'px; height: '+h+'px;"></span><em class="plus2"></em>');
        }
    );
    $(".pageMain #mainContent img").each(
        function(i) {
            $(this).wrap('<span class="border2" style="width: '+$(this).width()+'px;"></span>');
            var w = $(this).width()-24;
            var h = $(this).height()-24;
            $(this).after('<span style="width: '+w+'px; height: '+h+'px;"></span><em class="plus2"></em>');
        }
    );
    $(".listProducts span.border span").css('opacity', '0.4');
    $(".detail-picture span.border span").css('opacity', '0.4');
    $(".pageMain #mainContent span.border2 span").css('opacity', '0.3');
    
		$('li.headlink').hover(
			function() { $('ul', this).css('display', 'block'); },
			function() { $('ul', this).css('display', 'none'); });
	});

function initLinks() {
  for (i in document.links) {
    link = document.links[i];
    if (link.rel && link.rel.indexOf('external')!=-1) {
      link.onclick = onExternalLinkActivate;
      link.onkeypress = onExternalLinkActivate;
    }
  }
}

function onExternalLinkActivate() {
  window.open(this.href);
  return false;
}

window.onload = initLinks;
	
