

var d=document; 
var flag = 1;
var ext = ".html" //Change the value to the preferred file extension
var links = new Array("home"+ext, "about"+ext, "podiatry"+ext, "services"+ext, "products"+ext, "contact_us"+ext);



function openLink(iden,addr) {
var clickedLink;  
switch (parseInt(addr)) {
case 1: d.title="Multiple Choice Health - YOUR FIRST CHOICE IN HEALTH"; break;
case 2: d.title="Multiple Choice Health - About Us"; break;
case 3: d.title="Multiple Choice Health - Podiatry"; break;
case 4: d.title="Multiple Choice Health - Services"; break;
case 5: d.title="Multiple Choice Health - Products"; break;
case 6: d.title="Multiple Choice Health - Contact"; break;
}

addr=eval(addr)-1;
clickedLink=links[addr]
d.getElementById("buffer").src=clickedLink; //frames["buffer"].location.href=clickedLink;

}



/*************************************************************************
    This code is from dyn-web.com
    free for all uses as long as this notice retained
*************************************************************************/

// called onload of iframe 
// displays body content of iframed doc in div
// checks for and invokes optional functions in both current document and iframed document 
function displayExternal(ifrmId, divId, fp) {
    // defaults for iframe, display div
    //ifrmId = ifrmId || 'buffer'; divId = divId || 'page';
    //ifrmId = 'buffer'; divId = 'page'; 
	ifrmId = 'buffer';
	ldivId = 'logobel';
    rdivId = 'contentr';
	
    var lyr1 = document.getElementById? document.getElementById('logobel'): null;	
    var lyr2 = document.getElementById? document.getElementById('contentr'): null;	
	

	if ( window.frames[ifrmId] && lyr2 ) {
	    //alert(window.frames[ifrmId].document.getElementById('contentr').innerHTML);
		
		if (flag==1) { lyr2.innerHTML = window.frames[ifrmId].document.body.innerHTML; flag=0; }
			
		if (flag==0) {
			try { lyr1.innerHTML = window.frames[ifrmId].document.getElementById('logobel').innerHTML; }
			catch(e) {}
			try{ lyr2.innerHTML = window.frames[ifrmId].document.getElementById('contentr').innerHTML; }
			catch(e) {}
		}
		/*	jQuery(document).ready(
			function(){
			$(document).pngFix();
			}); */
	        lyr1.style.display = 'block';
			lyr2.style.display = 'block';
			
			
		// when using with script, may have some operations to coordinate
        // function in current doc or iframed doc (doOnIframedLoad)
        if ( typeof fp == 'function' ) {
            fp();
        }

                
        // Demonstrated in tooltip demo
        if ( typeof window.frames[ifrmId].doOnIframedLoad == 'function' ) {
            window.frames[ifrmId].doOnIframedLoad();
        }
    }
		
}




