// 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;

// IE hover fix ================>
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

// Game Room Window Popup ===============>
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


$(document).ready(function(){
	
//smile gallery
$('#flash-gallery').flash(
		{ 
		  src: 'flash/gallery.swf',
		  width: 500,
		  height: 500,
		  wmode: 'transparent',
		  flashvars: { 
		  	autoPlay: 'false',
		  	thisColor: '0x' + '06559A',
		  	caption01: 'Phase I (Crowding)',
			caption02: 'Phase I (Openbite/Thumb Sucker)',
			caption03: 'Phase I (Crowding)',
			caption04: 'Invisalign (Spacing)',
			caption05: 'Braces (Crowding)',
			caption06: 'Braces (Deepbite/Crowding)',
			caption07: 'Braces (Underbite)',
			caption08: 'Braces (Severe Crowding)',
			caption09: 'Braces (Overbite)',
		  }
		},
		{ version: 8 }
	);



});//end document.ready
