function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}

function openwindow(url,w,h)
{
  var winwidth = screen.availWidth;
  var winheight = screen.availHeight;
  var leftt=Math.floor((winwidth/2)-(w/2));
  var topt=Math.floor((winheight/2)-(h/2));
  window.open(url,'popup','left='+leftt+',top='+topt+',width='+w+', height='+h+', toolbar=0,  location=0, directories=0,status=0, titlebar=0, menubar=0, resizable=1, scrollbars=1')
};

function show_video()
{
  document.getElementById('dr_photo').innerHTML = "<img src='/images/bg_home_02_empty.jpg' border='0'>";
	document.getElementById('header_home').style.backgroundImage = "url(/images/bg_home_01_empty.jpg)";
	document.getElementById('video_holder').style.display = "block";
	document.getElementById('video_holder').innerHTML = "<embed src='/f/media/FLVPlayer_Progressive.swf' flashvars='&autoPlay=true&autoRewind=false&skinName=/f/media/Corona_Skin_3&streamName=/f/media/video.flv' quality='high' scale='noscale' width='320px' height='240px' name='FLVPlayer' salign='LT' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'  wmode='transparent'><div align='center' id='video_close_btn'><a href='javascript:close_video();'>close video</div></div>";
}
function close_video(){
  document.getElementById('video_holder').innerHTML = "";
	document.getElementById('video_holder').style.display = "none";
  document.getElementById('dr_photo').innerHTML = "<img src='/images/bg_home_02.jpg' border='0'>";
	document.getElementById('header_home').style.backgroundImage = "url(/images/bg_home_01.jpg)";
}
/*
function changecontent(topic){

  switch(topic)
  {
		case "in_office_whitening":
			document.getElementById('content_title').innerHTML = "Office Whitening";
      document.getElementById('content_text').innerHTML = "<p>In clinical studies, our in office whitening has been able to achieve an average 9 shades whiter. Your results will vary depending on the darkness of your teeth and your circumstances. Ultimately the goal will be to achieve your optimum, natural whiteness. During your consultation, Dr. Viechnicki will go over what you personally can expect for you individual situation.</p><p>\"I was amazed!! My teeth went up to the whitest possible on the dental scale. I would not have believed it possible.\" Gloria Kane</p>";
			document.getElementById('content_img').innerHTML = "<img border=\"0\" align=\"right\" style=\"width: 206px; height: 198px;\" src=\"/images/genserv_whitening.png\" />";
			break;
		
		case "cleaning_and_prevention":
			document.getElementById('content_title').innerHTML = "Cleaning &amp; Prevention";
      document.getElementById('content_text').innerHTML = "<p>Our hygienist performs cleanings using both ultrasonic and hand instruments. A thorough dental evaluation and oral cancer screening, complete with necessary dental x-rays and a decay detecting laser, are performed on every patient. An intra-oral camera allows you to see your teeth on a screen and decide which treatment you would like to have completed.</p>";
			document.getElementById('content_img').innerHTML = "<img border=\"0\" align=\"right\" style=\"width: 206px; height: 198px;\" src=\"/images/genserv_clean.png\" />";
			break; 
    
		case "porcelain_restoration":
			document.getElementById('content_title').innerHTML = "Porcelain Restoration";
      document.getElementById('content_text').innerHTML = "<p>Laminate veneers and crowns are among the most popular and successul ways to change your smile. We provide the finest undetectable, lifelike, aesthetic restorations possible.</p><p>Laminate veneers are porcelain covers that are bonded to the front surface of the tooth. They make a dramatic, immediate difference to your smile and appearance. Common problems which can be successfully treated include discolored teeth, midline spaces (the gap-toothed look of the two front upper teeth), chipped, malformed and improperly positioned teeth.</p><p>Each veneer is custom-designed to naturally and comfortably like a ballet slipper. The durability, beauty and simplicity of application make it easy to see why veneers have become one of the most popular dental treatments available today.</p>";
			document.getElementById('content_img').innerHTML = "<img border=\"0\" align=\"right\" style=\"width: 206px; height: 198px;\" src=\"/images/genserv_porcelain.png\" />";
			break; 
		
		case "invisalign":
			document.getElementById('content_title').innerHTML = "Invisalign";
      document.getElementById('content_text').innerHTML = "<p>The days of metal wires and brackets are gone! Invisalign is the invisible way to straighten your teeth without braces by using a series of clear removable aligners to straighten the teeth without traditional braces. Each set of aligners is worn for 2 weeks and are removed only to eat, drink, brush and floss.</p><p>As each aligner is replaced, your teeth will move, little by little over a course of months, until the teeth have straightened in the desired final position.</p>";
			document.getElementById('content_img').innerHTML = "<img border=\"0\" align=\"right\" style=\"width: 206px; height: 198px;\" src=\"/images/genserv_invisalign.png\" />";
			break; 	
		
		case "t-scan":
			document.getElementById('content_title').innerHTML = "T-Scan";
			document.getElementById('content_img').innerHTML = "";
      document.getElementById('content_text').innerHTML = "<p>In order to evaluate a patients bite, Dr. Viechnicki relies on a computerized device called a T-scan which uses a sensor to scan the entire mouth and measure the amount of force on each tooth. Once determined, she can selectively alter the stronger forces on certain tetwh by recontouring the teeth o equalize the pressure throughout the bite.</p><p>This computer analysis of your mouth is used both before and after restorations are placed to \"dial in\" your bite. It helps detect potential cracks, broken teeth and wear and tear from grinding and clenching.</p><p><img border=\"0\" align=\"left\" style=\"width: 480px; height: 360px;\" src=\"/images/genserv_tscan.jpg\" /></p>";
			break; 
		
		case "laser_recontouring":
			document.getElementById('content_title').innerHTML = "Laser Recontouring";
      document.getElementById('content_text').innerHTML = "<p>Showing excessive or an uneven display of gum tissued can detract from an otherwise beautiful smile. A nice smile is much more than healthey, straight, white teeth. Common problems in an undesirable smile may be either too much display of gum tissue, a \"Gummy Smile\", or asymmetric in the display of the soft tissue.</p><p>The newly developed diode laser enables Dr. Viechnicki to effecctively change the look and shape of the gums. With the laser focused beams of light energy, the changes to the gums take only a few minutes, with little or no discomfort.</p>";
			document.getElementById('content_img').innerHTML = "<img border=\"0\" align=\"right\" style=\"width: 206px; height: 198px;\" src=\"/images/smiledes_laser.png\" />";
			break; 	
		
		case "testimonials":
      document.getElementById('content_title').innerHTML = "Testimonials";
			document.getElementById('content_img').innerHTML = "";
      document.getElementById('content_text').innerHTML = "<p>\"Dr. Viechnicki and her team are totally committed to giving exceptional care.\"<br><span class='ital'>L. Mantelli</span></p><p>\"After looking at several dentistis to do my cosmetic work including my family dentist who has done cosmetic work for me before, I decided to go to Dr. Mary Viechnicki due to her specialization and experience. I am thrilled that I did, since the result was outstanding. She made me feel like her only patient and took the time to do it right. She is clearly a perfectionist when it comes to cosmetic dentistry, and I am reminded of it everyday when I look in the mirror.\"<br><span class='ital'>N.S.</span></p><p>\"During my initial consultation Dr. V and her team provided a very relaxing and educational atmosphere that immediately put me at ease.\"<br><span class='ital'>T. Fretz</span></p><p>\"I have always been self conscious when smilin before visitig Dr. Viecnicki.  The procedure to correct my smile was much less complicated than I originally thought and the results were amazing. Now I can't stop smiling and am proud to show off my new smile. Thank you Dr. V.\"<br><span class='ital'>S. Roseme</span></p><p>\"In my business of sales, first impressions are everything. After years of living with crooked teeth, I finally decided to correct it. Dr. Viechnicki gave me the smile I needed to feel confident to close every sale. My business has directly benefitted from the investment in myself.\"<br><span class='ital'>T.Nichols</span></p><p>\"Dr. Viechnicki\'s expertise in cosmetic dentistry provided me with options I never knew I had. Other dentists had tried to help, but nothing relly worked. She helped me solve a problem with my I had since childhood. Now I smile proudly to show off my teeth, rather than hiding them.\"<br><span class='ital'>J.Armstrong</span></p><p>\"Growing up is tough enough and we all need to work on ourselves from the inside out. But having a clean/glowing smile sure helps! Thank you Dr. Viechnicki.\"<br><span class='ital'>L. Stauffer</span></p>";
			break;

		default:
      break;
	}
}
*/