function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
/*
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
   alert("jjj");
}

*/
if (document.getElementById){ 
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("div"); 
		if(el.style.display != "block"){ 
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu")
				ar[i].style.display = "none";
							//alert("qw");
			}
			el.style.display = "block";
						//alert("hddfdfdf");
		}else{
			el.style.display = "none";
			//alert("h");
		}
	}
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    // alert("j");
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  // alert("gfgfgf");
  
}

function movein(which,html){
which.style.background='#d0e6f2'

}

function moveout(which){
which.style.background='#EAF1F7'


}

function rightmovein(which,html){
which.style.background='#ffffff'
which.style.bordersize='0'
}

function rightmoveout(which){
which.style.background='#E9E9E9'
}


var swidth=50

var sheight=50


var sbcolor=""


var sspeed=2

 

var wholemessage=''


srcpng1 = new Image();

srcpng1.src = "";

 wholemessage='<div align="center" class=tab> Seasoned billing and collection specialists </div>'+

'<div align="center" class=tab>&nbsp</div>'+

'<div align="center" class=tab>Mednet Systems</div>'+

'<div align="center" class=tab>&nbsp</div>'+

'<div align="center" class=tab>Global consulting xperience in providing wide variety of business and technical soultions</DIV>'+



 '<div align="center" class=tab>&nbsp</div>'+

'<div align="center" class=tab>Proven track recod of delivering on-time every time</div>'+
'<div align="center" class=tab>Time tested processes and methodologiesfor exceeding expectations </div>'+
'<div align="center" class=tab>Mednet Systems</div>'
//-- end Parameters-->

//-- begin: Scroller's Algorithm -->

 

var resumesspeed=sspeed

function start(){

/*if (document.all) iemarquee(slider);

else if (document.getElementById)

ns6marquee(document.getElementById('slider'));

else if(document.layers)

ns4marquee(document.slider1.document.slider2);
*/

    var dns1 = "http://www.emr4md.com"
    var dns2 = "http://www.rx4md.com"
    var dns3 = "http://www.scan4md.com"
    var dns4 = "http://www.fax4md.com"
    var dns5 = "http://www.lab4md.com"
    var dns6 = "http://www.patient4md.com"

    var urlloc = location.href
    var loc = urlloc.toLowerCase()
    //alert(loc);	

    if (loc.indexOf(dns1) != -1)
        location.href="http://www.mednetsystem.com/emr4md.htm"

    if (loc.indexOf(dns2) != -1)
        location.href="http://www.mednetsystem.com/rx4md.htm"

    if (loc.indexOf(dns3) != -1)
        location.href="http://www.mednetsystem.com/scan4md.htm"
  
    if (loc.indexOf(dns4) != -1)
        location.href="http://www.mednetsystem.com/fax4md.htm"

    if (loc.indexOf(dns5) != -1)
        location.href="http://www.mednetsystem.com/lab4md.htm"

    if (loc.indexOf(dns6) != -1)
        location.href="http://www.mednetsystem.com/patient4md.htm"
}

function iemarquee(whichdiv){

iediv=eval(whichdiv)

iediv.innerHTML=wholemessage 

iediv.style.pixelTop=sheight

sizeup=iediv.offsetHeight

ieslide()

}

function ieslide(){

if (iediv.style.pixelTop>=sizeup*(-1)){

iediv.style.pixelTop-=sspeed

setTimeout("ieslide()",100)

}

else{

iediv.style.pixelTop=sheight

ieslide()

}

}

function ns4marquee(whichlayer){

ns4layer=eval(whichlayer)

ns4layer.document.write(wholemessage)

ns4layer.document.close()

sizeup=ns4layer.document.height

ns4layer.top-=sizeup

ns4slide()

}

function ns4slide(){

if (ns4layer.top>=sizeup*(-1)){

ns4layer.top-=sspeed

setTimeout("ns4slide()",100)

}

else{

ns4layer.top=sheight

ns4slide()

}



}

function ns6marquee(whichdiv){

ns6div=eval(whichdiv)

ns6div.innerHTML=wholemessage

ns6div.style.top=sheight

sizeup=ns6div.offsetHeight

ns6slide()

}

function ns6slide(){

if (parseInt(ns6div.style.top)>=sizeup*(-1)){

ns6div.style.top=parseInt(ns6div.style.top)-sspeed

setTimeout("ns6slide()",100)

}

else{

ns6div.style.top=sheight

ns6slide()

}

}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


