function addHighSlideAttributeCo() {
  var isIE = (document.documentElement.getAttribute('style') ==
              document.documentElement.style);
  var anchors = document.getElementById('c').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, config1 )')) :
               anchors[i].setAttribute('onclick','return hs.expand(this, config1 )');
        isIE ? anchors[i].setAttribute('onkeypress', new Function('return hs.expand(this, config1 )')) :
               anchors[i].setAttribute('onkeypress','return hs.expand(this, config1 )');
      }
    }
  }
}

function addHighSlideAttributeMa() {
  var isIE = (document.documentElement.getAttribute('style') ==
              document.documentElement.style);
  var anchors = document.getElementById('c').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, config1 )')) :
               anchors[i].setAttribute('onclick','return hs.expand(this, config1 )');
        isIE ? anchors[i].setAttribute('onkeypress', new Function('return hs.expand(this, config1 )')) :
               anchors[i].setAttribute('onkeypress','return hs.expand(this, config1 )');
      }
    }
  }
}

$(document).ready(function(){
	$('.arch').qtip({
		content:$('.archtip'),
		style:{background:'#000000',tip:'bottomMiddle',color:'#ffffff',border:{width:5,radius:0,color:'#000000'},width:{min:100,max:450}},
		position:{corner:{target:"topMiddle",tooltip:"bottomMiddle"},adjust: {y:0}},
		hide:{fixed:true,delay:100}
	});
});