// JavaScript Document
var currentPage = "patient";

function setPos()

{

var clientWidth = document.body.clientWidth;

clientWidth = ((clientWidth - 380)/2);

document.getElementById("left_bg").style.width = clientWidth + "px";

document.getElementById("right_bg").style.width = (clientWidth -1)+ "px";

}



function ftimg(obj)

{

//	alert('img');

	document.getElementById(obj).style.cursor='pointer';

	document.getElementById(obj).style.backgroundImage = "url('images/" + obj + "_over.png')";

}

function ftreset(obj)

{

	document.getElementById(obj).style.backgroundImage = "url('images/" + obj + "_back.png')";

}



function setImg(obj)

{

	

	obj.style.cursor=  "Pointer";

	obj.style.backgroundImage = "url('images/" + obj.id + "_over.jpg')";

	obj.className = "hover";

}



function resetImg(obj)

{

	

	obj.style.backgroundImage = "url('images/" + obj.id + "_back.jpg')";

	obj.className = "menu";

}





function setImage(obj)

{

	

	obj.style.cursor=  "Pointer";

	obj.style.backgroundImage = "url('images/" + obj.id + "_over.jpg')";

	

}



function resetImage(obj)

{

	

	if (currentPage != obj.id)

	obj.style.backgroundImage = "url('images/" + obj.id + "_back.jpg')";

	

}



function openLink(sreeni)

{

	window.open(sreeni + ".html","_self");

}

function openLink1(sreeni)

{

	window.open(sreeni + ".php","_self");

}


				

function setText(obj)

{

//alert(obj);

document.getElementById(obj + "_text").className = "hover1";

document.getElementById(obj + "_text").style.cursor = "pointer";

}





function resetText(sreeni)

{

document.getElementById(sreeni + "_text").className = "noeffect";

}			





function showTip(obj)

 {

	// alert('comin');

	

	

	var x = 0;

var y = 0;

theElem = document.getElementById(obj);

while(theElem){

    x += theElem.offsetLeft;

    y += theElem.offsetTop;

    theElem = theElem.offsetParent;

  } 

 

	document.getElementById('patinfodrop').style.visibility ="visible";

document.getElementById("patinfodrop").style.left = (x-70)+ "px";

document.getElementById("patinfodrop").style.top = (y+46) + "px";







 }

 



 function setTip(obj)

 {

	// alert('comin');

	

	

	//cltWidth=((cltWidth-)/2);

	//document.getElementById("patinfo1").style.marginLeft =cltWidth + "px";

	var x = 0;

var y = 0;

theElem = document.getElementById(obj);

while(theElem){

    x += theElem.offsetLeft;

    y += theElem.offsetTop;

    theElem = theElem.offsetParent;

  } 

 

	//document.getElementById('patinfo').style.visibility ="visible";

document.getElementById("patinfo1").style.left = (x+50)+ "px";

document.getElementById("patinfo1").style.top = (y+150) + "px";

//document.getElementById("patinfo1").style.marginLeft =cltWidth + "px";





 }

 

 function hideTip(obj)

 {

	

	document.getElementById('patinfodrop').style.visibility ="hidden";

	

 }

 

 

 

 function setImg1(obj)

{

	

	

		//alert(currentPage = obj.id);

	obj.style.textShadow = "2px 0 4px #fff, -2px 0 4px #fff,2px 0 8px #fff, -2px 0 8px #fff,2px 0 12px #fff, -2px 0 12px #fff,2px 0 24px #fff, -2px 0 24px #fff,2px 0 2px #fff";

}



function resetImg1(obj)

{

	//if (currentPage != obj.id)

	obj.style.textShadow = "none";

	

}





function openDownload()

{

    window.open("pdfdownload.php", "_self");

}





function openHtml(sreeni)

{

	//alert(currentPage);

//	if(cbs == 'account')

//	{



		currentPage= sreeni;

		document.getElementById('testimonialcontent').innerHTML = eval(sreeni + "_text");

		//document.getElementById('serviceleft').style.backgroundImage = "url('images/" + currentPage + ".gif')";

		resetImage(document.getElementById("employee"));

		resetImage(document.getElementById("patient"));

		



document.getElementById(sreeni).style.backgroundImage = "url('images/" + sreeni + "_over.jpg')";

		



}





/*$(document).ready(function(){	

			$("#slider").easySlider({

				auto: false, 

				continuous: true

			});

			

			//$("#slider1").easySlider({

				//auto: false, 

				//continuous: true

			//});

		});	

*/





var patient_text="<div id=\"slider\" style=\"width: 480px; height: 480px;\"><ul><li><img src=\"images/01.jpg\" /></li><li><img src=\"images/02.jpg\"/></li><li><img src=\"images/03.jpg\"/></li><li><img src=\"images/04.jpg\"/></li><li><img src=\"images/05.jpg\"  /></li><li><img src=\"images/06.jpg\" /></li><li><img src=\"images/07.jpg\" /></li><li><img src=\"images/08.jpg\" /></li><li><img src=\"images/09.jpg\" /></li><li><img src=\"images/10.jpg\"  /></li><li><img src=\"images/11.jpg\"  /></li><li><img src=\"images/12.jpg\"  /></li><li><img src=\"images/13.jpg\" /></li><li><img src=\"images/14.jpg\" /></li>	<li><img src=\"images/15.jpg\"  /></li>	</ul> </div>";









var employee_text="<div style=\"width: 30px; height: 560px;\" class=\"tddiv\"></div>                                        <div style=\"width: 580px; height: 560px;\" class=\"tddiv\">                                        	<div style=\"width: 580px; height: 40px;\">                	<div style=\"width: 182px; height: 24px; background-image: url('images/Dr-Sreeni-testi-pat-title.jpg'); background-repeat:no-repeat;\">                    </div>                </div>                                   <div style=\"width: 580px; height:20px; line-height:20px;\">&nbsp;</div>                                <div style=\"width: 580px; height: 480px;\" class=\"content\">       					<div style=\"width: 30px; height: 480px;\" class=\"tddiv\">     </div>                    <div style=\"width: 10px; height: 480px;\" class=\"tddiv\"></div>                	<div id=\"slider\" style=\"width: 480px; height: 480px;\" class=\"tddiv\">                    	<ul>					<li><img src=\"images/01.jpg\" /></a></li>				<li><img src=\"images/02.jpg\"/></a></li>				<li><img src=\"images/03.jpg\"/></a></li>				<li><img src=\"images/04.jpg\"/></a></li>				<li><img src=\"images/05.jpg\"  /></a></li>                <li><img src=\"images/06.jpg\" /></a></li>				<li><img src=\"images/07.jpg\" /></a></li>				<li><img src=\"images/08.jpg\" /></a></li>				<li><img src=\"images/09.jpg\" /></a></li>				<li><img src=\"images/10.jpg\"  /></a></li>	                <li><img src=\"images/11.jpg\"  /></a></li>				<li><img src=\"images/12.jpg\"  /></a></li>				<li><img src=\"images/13.jpg\" /></a></li>				<li><img src=\"images/14.jpg\" /></a></li>				<li><img src=\"images/15.jpg\"  /></a></li>					</ul>                    </div><div style=\"width: 10px; height:480px;\" class=\"tddiv\"></div><div style=\"width: 30px; height: 480px;\" class=\"tddiv\"></div></div></div>  </div>";
