// External Links
function externalLinks() {
 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";
 }
}
window.onload = externalLinks;

// Jump Menu
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=1;
}

// Toggle Hide/Show ID
function ReverseContentDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}

//JQuery Setup
jQuery(document).ready(function() {
$("#fancythumbs a.thumbzoom").fancybox({ 'zoomSpeedIn': 500, 'zoomSpeedOut': 500, 'overlayShow': true, 'hideOnContentClick': true });
$('.tooltip').qtip({
   content: false,
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 600 },
   position: {
	  adjust: { x: -8, y: 10 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 150,
      padding: 2,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 2,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});


//Dental Express Sites
$('.dental-site-1').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-dental/site-1-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.dental-site-2').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-dental/site-2-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.dental-site-3').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-dental/site-3-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.dental-site-4').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-dental/site-4-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.dental-site-5').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-dental/site-5-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.dental-site-6').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-dental/site-6-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.dental-site-7').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-dental/site-7-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});


//Ortho Express Sites
$('.ortho-site-1').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-ortho/site-1-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.ortho-site-2').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-ortho/site-2-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.ortho-site-3').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-ortho/site-3-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.ortho-site-4').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-ortho/site-4-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.ortho-site-5').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-ortho/site-5-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.ortho-site-6').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-ortho/site-6-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});

$('.ortho-site-7').qtip({
   content: '<img src="http://sesamecommunications.com/images/express-site-ortho/site-7-thumb.jpg" alt="Express Site" />',
   show: {
	  when: { event: 'mouseover' },
      delay: 0
   },
   hide: { fixed: true, delay: 200 },
   position: {
	  adjust: { x: 0, y: 6 },
      corner: {
         target: 'rightTop',
         tooltip: 'bottomLeft'
      }
   },
   style: { 
      width: 220,
	  height: 130,
      padding: 0,
      background: '#009EC7',
      color: '#fff',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 5,
         color: '#009EC7'
      },
      tip: 'bottomLeft',
      name: 'blue'
   }
});


});//end document.ready