			
/***********************************************
* Pausing up-down scroller- Â© Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
var pausecontent=new Array()
pausecontent[0]='<font size="+1">LIFE IS TOO SHORT FOR AN AVERAGE SMILE</font>'
pausecontent[1]='<font size="+1">Aviva Cosmetic Dentistry | <b>T. 01727 854429</b></font>'
pausecontent[2]='<font size="+1">LIFE IS TOO SHORT FOR AN AVERAGE SMILE</font>'
pausecontent[3]='Try something new in dental treatment<br/><font size="+1"><a href="spa.php">The Aviva Cosmetic Spa Experience</a></font>'

var pausecontent1=new Array()
pausecontent1[0]='<font size="+1">LIFE IS TOO SHORT FOR AN AVERAGE SMILE</font>'
pausecontent1[1]='<font size="+1">Aviva Cosmetic Dentistry | <b>T. 01727 854429</b></font>'
pausecontent1[2]='<font size="+1">LIFE IS TOO SHORT FOR AN AVERAGE SMILE</font>'
pausecontent1[3]='Try something new in dental treatment<br/><font size="+1"><a href="spa.php">The Aviva Cosmetic Spa Experience</a></font>'

var pausecontent2=new Array()
pausecontent2[0]='<p>Your smile is one of the most important ways that you communicate with the rest of the world and we want to ensure that it is the best it can be. </p><p><b>Our philosophy is simple:</b><ul><li>We are dedicated to giving you state-of-the-art-dentistry in a relaxing and friendly environment</li><li>Caring for you</li><li>To listen and understand your wants and needs</li><li>To always strive towards excellence</li><li>To keep updating our knowledge of dentistry to ensure that the treatment we provide is the best treatment possible</li></ul></p>'
pausecontent2[1]='<p>If you are thinking of changing your smile, then call us today to book a free consultation. </p><p><b>This includes</b><ul><li>time with Dr Caplan to discuss how your smile might be changed</li><li>your smile imaged</li><li>an idea on the cost of treatment</li><li>financing options discussed</li></ul></p>'
pausecontent2[2]='<p>We invite you to contact us directly with questions or <a href="contact.php" title="Click here to contact us"><u>click here</u></a> to schedule an appointment. Please include your preferred times. </p><p>Many patients have found their treatment to be a life changing experience, boosting their self-confidence and self-esteem. Please visit the Smile Gallery pages to see the results that could be possible. </p><br/><br/><p><font size="+1">We look forward to seeing your smile.</font></p>'


var pausecontent3=new Array()
pausecontent3[0]='<p><font size="+1">Cerec stands for <b>CER</b>amic <b>REC</b>onstruction. </font></p><p>This is an innovative process that allows Dr Caplan to make porcelain fillings, crowns and veneers in one visit. Computer aided design and manufacture (CAD/CAM) are used to virtually make a restoration on a computer. This is then transferred to a milling machine, which accurately mills the desired restoration from a block of porcelain. </p><p>This is then individually customised by staining and glazing in a furnace. The finished restoration is then fitted on to the tooth, the whole process takes approximately 1.5 hours instead of the usual 2 weeks!!</p>'

pausecontent3[1]='<p><font size="+1">JOINT and BITE problems.</font></p><p>Dr Caplan has had extensive training in the USA on treating complex dental problems involving joint and bite problems. </p><p>Some people experience clicking, grating, locking and pain in their jaw joint. Dr Caplan is one of a few Dentists in the UK who has a JVA unit (joint vibration analysis) in his practice. This allows him to assess the health of the jaw joint and to prescribe appropriate treatment. </p><p>Many tooth and gum problems are intimately related to the biting forces on particular teeth. Dr Caplan is also one of a few dentists in the UK who has a Tekscan in his practice. This is a highly sensitive piece of equipment that allows accurate assessment and treatment of bite problems.</p>'


var pausecontent4=new Array()
pausecontent4[0]='<p>At Aviva Cosmetic Dentistry we believe all dentistry should be viewed in a cosmetic way. With the technology available at our practice we will restore your teeth to look as good as new, treating the whole of the mouth to provide beautiful, long lasting smiles. Examples of this can include whitening, veneers, crowns, bridgework and implants. We can straighten, lighten, reshape and repair teeth. </p><p>People can choose to have cosmetic dentistry carried out for many reasons. It may be as simple as wanting a brighter, whiter smile for work or their personal life. Perhaps they lack self-confidence due to their smile and cosmetic dentistry could create \'a new you\' both physically and psychologically. </p><p>Whatever the reason, Aviva Cosmetic Dentistry can help. You will find below a brief Smile Evaluation Quiz that can help you decide whether cosmetic dentistry is relevant to you.</p>'

pausecontent4[1]='<p><font size="+1">SMILE EVALUATION QUIZ</font></p><p>How happy are you with your smile? Answer the questions below and if you answered YES to any of them, we can help give you a more beautiful smile.</p><ol type="1"><li>Do you have a \'gummy\' smile - gums that are too thick or too much tissue on display?</li><li>Do you ever turn your face when smiling or hold your hand up in front of your mouth when talking to people?</li><li>Are you unhappy with the appearance of your teeth and smile?</li><li>Do you have any old fashioned silver fillings?</li><li>Do you have unsightly spaces between any of your teeth?</li><li>Do you have teeth that are uneven, crooked or stained?</li><li>When having your picture taken, do you tend to smile with your lips closed?</li></ol>'
pausecontent4[2]='<p>At Aviva Cosmetic Dentistry we pride ourselves on the care and time that we take with our patients who are considering cosmetic options. </p><p>Please see the <a href="does.php" title="Click to view the \'What does treatment involve?\' page">\'What does treatment involve?\'</a> page for further information on the process.</p>'


var pausecontent5=new Array()
pausecontent5[0]='<p>On your initial visit to Aviva Cosmetic Dentistry we will assess your smile to ensure that it is suitable for the treatment being considered. We will present all treatment options and answer any questions that you may have.  An image of your possible new smile will be presented to you. Before and after pictures of similar smile problems will be shown to you. Cost of treatment will also be discussed with the financial options available through our practice presented to you.  Many people who think they cannot afford this top of the range treatment find our finance options allow them to have the smile they have always wanted!</p><p>After  a treatment plan has been agreed, we will make a \'diagnostic wax-up\' - this allows us to make a model of your teeth and to produce a \'trial smile\', essential for the proper planning of your smile.</p>'

pausecontent5[1]='<p> On your next visit we carefully shape your teeth and fit beautiful temporaries to duplicate the \'trial smile\'. About 3 days later we will make fine adjustments to these temporaries to ensure that they meet all your desires of shape and colour.  Some people want a \'Hollywood Smile\' whilst others want a more subtle change.  The trial smile allows you to make that important final decision.</p><p>On the final visit the your new smile will be fitted and you can leave with the smile you have always desired!</p><p>As you can see, the process really is straightforward - call us today on <b>01727 854429</b> to book your free consultation, or <a href="contact.php" title="Click here to email us">click to email us</a>.</p>'
function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}

