$(document).ready(function(){
	$('.t .archive').qtip({
		content:$('.archivetip'),
		style:{background:'#DDDDDD',tip:'leftTop',color:'#000000',border:{width:0,radius:5,color:'#DDDDDD'},width:{min:350,max:450}},
		position:{corner:{target:"rightBottom",tooltip:"leftTop"},adjust: {y:-30}},
		hide:{fixed:true,delay:600}
	});
});
$(document).ready(function(){
	$('.entry .archive').qtip({
		content:$('.archivetip'),
		style:{background:'#DDDDDD',tip:'rightBottom',color:'#000000',border:{width:0,radius:5,color:'#DDDDDD'},width:{min:350,max:450}},
		position:{corner:{target:"leftTop",tooltip:"rightBottom"},adjust: {y:10}},
		hide:{fixed:true,delay:600}
	});
});
function addHighSlideAttribute() {
  var isIE = (document.documentElement.getAttribute('style') ==
              document.documentElement.style);
  var anchors = document.getElementById('contents').getElementsByTagName('a');
  for (var i = 0, len = anchors.length; i < len; i++) {
    var anchor = anchors[i];
    if (anchor.getAttribute('href') && anchor.getAttribute('href').match(/jpg$|JPG$|jpeg$|JPEG$|gif$|GIF$|png$|PNG$/)) {
        anchor.className = 'highslide';
      if (!anchors[i].getAttribute('onclick')) {
        isIE ? anchors[i].setAttribute('onclick', new Function('return hs.expand(this)')) :
               anchors[i].setAttribute('onclick','return hs.expand(this)');
        isIE ? anchors[i].setAttribute('onkeypress', new Function('return hs.expand(this)')) :
               anchors[i].setAttribute('onkeypress','return hs.expand(this)');
      }
    }
  }
}

