<!--

var myPlatform=navigator.platform.substr(0,3);
if (myPlatform=="Mac") {
     document.write("<link rel=\"stylesheet\" href=\"js_bin/dentalcentermn_mac.css\" type=\"text/css\">");
}
else {
     document.write("<link rel=\"stylesheet\" href=\"js_bin/dentalcentermn_win.css\" type=\"text/css\">");
}

var object=new Array();

object['welcome']= new objectdata(160,30,"imgs/welcome_o.gif","imgs/welcome.gif","Dental Health Center of Minnesota");
object['meetdr']= new objectdata(160,30,"imgs/meetdr_o.gif","imgs/meetdr.gif","Dr. Solongo Purev");
object['services']= new objectdata(160,30,"imgs/services_o.gif","imgs/services.gif","Smile Services");
object['gallery']= new objectdata(160,30,"imgs/gallery_o.gif","imgs/gallery.gif","Smile Gallery");
object['testimonials']= new objectdata(160,30,"imgs/testimonials_o.gif","imgs/testimonials.gif","Testimonials");
object['contact']= new objectdata(160,29,"imgs/contact_o.gif","imgs/contact.gif","Contact Us");
object['credits']= new objectdata(160,17,"imgs/credits_o.gif","imgs/credits.gif","http://www.webstrim.com/");


function objectdata(hsize,vsize,imgovr,imgout,msg) {
		this.img_ovr=new Image(hsize,vsize);
		this.img_ovr.src=imgovr;
		this.img_out=new Image(hsize,vsize);
		this.img_out.src=imgout;
		this.msg=msg;
}

function m_ovr(name) {
		window.status=object[name].msg;
		document.getElementById(name).src=object[name].img_ovr.src;
//		document[name].src=object[name].img_ovr.src;
//      and change "id" for "name" in the <img src> tag of the source file
}

function m_out(name) {
		window.status="";
        document.getElementById(name).src=object[name].img_out.src;
//		document[name].src=object[name].img_out.src;
}

function whichImg() {
         randomNum=Math.floor((Math.random()*5))%5;                              // 5 - number of pictures
		 document.getElementById("slice0").src="imgs/"+randomNum+"_0.jpg";
		 document.getElementById("slice1").src="imgs/"+randomNum+"_1.jpg";
		 document.getElementById("slice2").src="imgs/"+randomNum+"_2.jpg";
		 document.getElementById("slice3").src="imgs/"+randomNum+"_3.jpg";
}

function doResize() {
        location.reload();
}

// -->

