

var ie = (document.getElementById) ? true:false
var ns = (document.layers) ? true:false
var ns6=(document.getElementById) ? true:false
var period=""

function init(){

if(ie || ns6){

visible = "visible"
hidden="hidden"

 }
 
 if(ns){
 
 hide="hidden"
 show="visible"
 
 
 }

}
function currentTime(){


var now = new Date()
var myhours=now.getHours()
var myminutes=now.getMinutes()
var myseconds=now.getSeconds()
var mydate=now.getDate()
var mymonth=now.getMonth()+1
var myyear=now.getYear()


if(myhours<=9){

myhours="0"+myhours
}

if(myminutes<=9){

myminutes="0"+myminutes

}

if(myseconds<=9){

myseconds="0"+myseconds

   }




switch (mymonth){

case 1:
mymonth="January"
break;
case 2:
mymonth="February"
break;
case 3:
mymonth="March"
break;
case 4:
mymonth="April"
break;
case 5:
mymonth="May"
break;
case 6:
mymonth="June"
break;
case 7:
mymonth="July"
break;
case 8:
mymonth="August"
break;
case 9:
mymonth="September"
break;
case 10:
mymonth="October"
break;
case 11:
mymonth="November"
break;
case 12:
mymonth="December"

  }



if(ie){

thetime.innerHTML=mydate+" "+mymonth+" "+myyear+" "+myhours+":"+myminutes+":"+myseconds+period


}

setTimeout("currentTime()",1000)

  }

function myball(){


if(ie){

//alert(theball.style.left)

theball.style.left=parseInt(theball.style.left)+5


if(parseInt(theball.style.left)>eval(screen.width)){

theball.style.left=eval(-180)

  
 }

setTimeout("myball()",50)


  }
}


function nogo(){

if(ie){

if(event.button==2){

 alert("Right mouse button not in use")
 
   }
   
   }

  }

function playSound(){

if(ie){
document.all['mysound'].src='sound/pop.wav'

  }
  
 }
 
 
 function stopSound(){
 
 if(ie){
 
 document.all['mysound'].src=''
 
     }
 
 
   }

function winOpen(winName){

window.open(winName,"window1","menubar=no,height=400,width=320,toolbar=no,status=no")


   }


function showAddressDetails(){

var spacer = "_______________________________________________"
var ourdetails = "OUR DETAILS ARE AS FOLLOWS: \n\n"

var address = "ADDRESS:\n"
address += "Positive Recovery & Mediation Services Limited\n"
address += "PO Box 39311\n"
address += "London\n"
address += "SE13 7WA\n"

var tel = "\n" + spacer + "\n" + "Telephone: 0208 291 1177" + "\n" + spacer

var fax = "\n" + "Fax: 0870 160 6748" + "\n" + spacer

var email = "\n" + "Email: info@prmsltd.co.uk"

alert(ourdetails + address + tel + fax + email)

  }
  
function togglePolicies(){

var equalOpps = document.getElementById('idEqual')
var health = document.getElementById('idHealth')
var quality = document.getElementById('idQuality')
 
if(equalOpps.style.display == 'none' && health.style.display == 'none' && quality.style.display == 'none'){

equalOpps.style.display = 'inline';
health.style.display = 'inline';
quality.style.display = 'inline';

     }
	 
	 else{
	 
equalOpps.style.display = 'none';
health.style.display = 'none';
quality.style.display = 'none';
	 
	    }

  }
  
//-----------------  BBC News Ticker Functions Below -----------------------//


    

