document.write("<style>#master{LEFT:-100px;POSITION:absolute;}#menu{LEFT:100px;POSITION:absolute; TOP:200px; Z-INDEX:5}#screen{POSITION:absolute; TOP:165px; Z-INDEX:5}#screenlinks{POSITION:absolute; TOP:165px; VISIBILITY:visible; Z-INDEX:5}</style>")
document.write('<style>#screen{filter:Alpha(Opacity=100)</style>')



var master = new Object("element")
master.curLeft = -100;
master.curTop = 10;

function moveAlong(layerName, paceLeft, paceTop, fromLeft, fromTop){
clearTimeout(eval(layerName).timer)
if(eval(layerName).curLeft != fromLeft){
     if((Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft)) < paceLeft){eval(layerName).curLeft = fromLeft}
else if(eval(layerName).curLeft < fromLeft){eval(layerName).curLeft = eval(layerName).curLeft + paceLeft}
else if(eval(layerName).curLeft > fromLeft){eval(layerName).curLeft = eval(layerName).curLeft - paceLeft}
document.all[layerName].style.left = eval(layerName).curLeft
}
if(eval(layerName).curTop != fromTop){
     if((Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop)) < paceTop){eval(layerName).curTop = fromTop}
else if(eval(layerName).curTop < fromTop){eval(layerName).curTop = eval(layerName).curTop + paceTop}
else if(eval(layerName).curTop > fromTop){eval(layerName).curTop = eval(layerName).curTop - paceTop}
document.all[layerName].style.top = eval(layerName).curTop
}
eval(layerName).timer=setTimeout('moveAlong("'+layerName+'",'+paceLeft+','+paceTop+','+fromLeft+','+fromTop+')',30)
}

function setPace(layerName, fromLeft, fromTop, motionSpeed){
eval(layerName).gapLeft = (Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft))/motionSpeed
eval(layerName).gapTop = (Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop))/motionSpeed
moveAlong(layerName, eval(layerName).gapLeft, eval(layerName).gapTop, fromLeft, fromTop)
}

var expandState = 0
function expand(){
if(expandState == 0){setPace("master", 0, 10, 10);
document.menutop.src = "Assets/image/logo.gif"; expandState = 1;}
else{
setPace("master", -100, 10, 10); 
document.menutop.src = "Assets/image/logo2.gif"; expandState = 0;}
}
document.write("<div id=master><div id=menu onmouseover=javascript:expand()><table border=0 cellpadding=0 cellspacing=0 width=18><tbody><tr><td width=100%><img name=menutop src=Assets/image/logo2.gif></td></tr></tbody></table></div><div id=top><table border=0 cellpadding=0 cellspacing=0 width=100><tbody><tr><td width=100%></td></tr></tbody></table></div><div id=screen onmouseout=javascript:expand()><table border=0 cellpadding=5 cellspacing=0 width=100><tbody><tr><td bgcolor=99CC00 width=100% height=230><table bgcolor=99CC00 border=0 cellpadding=0 cellspacing=0 width=100%><tbody><tr><td width=100%><table border=0 cellpadding=5 cellspacing=1 width=100%><tbody><tr> <td bgcolor=99CC00 width=100%><br><br><br><br><br></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div><div id=screenlinks ><table border=0 cellpadding=6 cellspacing=0 width=100><tbody><tr><td width=100%><table bgcolor=99CC00 border=0 cellpadding=0 cellspacing=0 width=100% ><tbody> <tr><td width=100%><table border=0 cellpadding=6 cellspacing=1 width=100%><tbody><tr><td bgcolor=EBFFAE width=100% align=center><img src=Assets/image/icon_print.gif><br><A href=javascript:window.print()>Print This Page</A><br><br><img src=Assets/image/icon_add.gif><br><a href=# onClick=bookmarkit()>Add to Favorite</a><br><br><img src=Assets/image/icon_friend.gif><br><A href=http://www.happypawsinc.com/tellfriend.asp>Tell to Friend</A><font color=99CC00><br><br><img src=Assets/image/icon_contact.gif><br><A href=http://www.happypawsinc.com/contact.asp>Contact Us</A></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div>");
var sidemenu = document.all.master;

function yuzi(){
sidemenu.style.top = document.body.scrollTop+10
}
setInterval("yuzi()",100);

function bookmarkit(){window.external.addFavorite('http://www.happypawsinc.com','happypaws inc.')}


