if ((navigator.appVersion.indexOf('Mac')!= -1)){ // Mac adjust menu
	document.write('<link href="../../tncmac.css" rel="stylesheet" type="text/css">');
	document.write('<link href="../tncmac.css" rel="stylesheet" type="text/css">');
	document.write('<link href="tncmac.css" rel="stylesheet" type="text/css">');
}
function changeImages() {

     if (document.images && (preloadFlag == true)) {

          for (var i=0; i<changeImages.arguments.length; i+=2) {

               document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
          }
     }
}

function newImage(ovrSrc) {

     if (document.images) {
          img = new Image();
          img.src = ovrSrc;
          return img;
     }
}

var preloadFlag = false;

function preloadImages() {

     if (document.images) {
		ab_coach_o = "images/ab_coach_o.gif"; 
		ab_coach_whatis_o = "about-coaching/images/whatis_o.gif"; 
		ab_coach_isnot_o = "about-coaching/images/is_not_o.gif"; 
		ab_coach_coactive_o = "about-coaching/images/co-active_o.gif"; 
		ab_coach_iscoaching_o = "about-coaching/images/iscoaching_o.gif";
		ab_coach_howtohire_o = "about-coaching/images/howtohire_o.gif"; 
		ab_coach_history_o = "about-coaching/images/history_o.gif"; 
		ab_coach_federation_o = "about-coaching/images/federation_o.gif"; 
		ab_coach_media_o = "about-coaching/images/media_o.gif";
		
		ab_laura_o = "images/about_laura_o.gif"; 
		ab_laura_bio_o = "about-laura/images/bio_o.gif"; 
		ab_laura_testimonials_o = "about-laura/images/testimonials_o.gif"; 
		ab_laura_what_o = "about-laura/images/what_name_o.gif"; 
		ab_laura_links_o = "about-laura/images/links_o.gif";
		
		personal_o = "images/personal_o.gif";
		personal_howitworks_o = "personal/images/howitworks_o.gif";
		personal_comp_o = "personal/images/comp_o.gif"; 
		personal_progfees_o = "personal/images/programs_o.gif";
		corporate_workshops_o = "images/workshops_o.gif";
		
		associate_o = "images/associate_o.gif";
		nichols_o = "associates/images/nichols_o.gif";
		mckenzie_o = "associates/images/mckenzie_o.gif";
		flichel_o = "associates/images/flichel_o.gif";
		swanston_o = "associates/images/swanston_o.gif";
		
		resources_o = "images/resources_o.gif";
		
		contact_o = "images/contact_o.gif"; 
		home_o = "images/home_o.gif"; 
				
		preloadFlag = true;
	}
}

var newWindow = null;

function closeWin() {
	if (newWindow != null) {
		if(!newWindow.closed)
			newWindow.close();
	}
}

function newWin(url, type, strWidth, strHeight) {
	
	closeWin();
	
	if (type == "fullScreen") {
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}
	
	var tools="";
	if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
	if (type == "menu") tools = "resizable=yes,toolbar=no,location=no,menubar=yes,scrollbars=yes,width="+strWidth+",height="+strHeight+",left=0,top=0";
	if (type == "console") tools = "resizable=no,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
	if (type == "console2") tools = "resizable=no,toolbar=no,location=no,scrollbars=yes,width="+strWidth+",height="+strHeight+",left=0,top=0";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
}

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;


function printArticle() {
	if (window.print) {
		setTimeout('window.print();',200);
	}
	else if (agt.indexOf("mac") != -1) {
		alert("Press 'Cmd+p' on your keyboard to print article.");
	}
	else {
		alert("Press 'Ctrl+p' on your keyboard to print article.")
	}
}

function nifty(){
if(!NiftyCheck())
    return;
Rounded("div.boxline","all","#fff","#fff","border #0066cc");
Rounded("div.round","all","#fff","#003499","smooth");
}

