var bAdMode = true; var theight = 24, transtime = 2000, borderw = 0, pad_top = 0, pad_top2 = 0, pad_left = 0, pad_left2 = 0, borderd = '', text_alignt = 'left', text_alignh = 'center', text_decort = 'none', text_decorh = 'none', fstylet = 'normal', fstyleh = 'normal', fweightt = 'normal', fweighth = 'bold', fontn = 'Tahoma', bgcol = '', bgcolh = '#990000', txtcol = 'blue', txthicol = '#FF3030', txtcolh = '#E9E9E9', border_color_str = '#000000', nstheight = 0, nst2width = 0; var text = new Array(), header = new Array(), linka = new Array(), targa = new Array(), adsIDs = new Array(); text[0] = 'Watch the video'; header[0] = ''; linka[0] = 'http://www.carenetwork.org.uk/about-us/dvd-video.html'; targa[0] = '_blank'; adsIDs[0] = 17; text[1] = 'Contact Us'; header[1] = ''; linka[1] = 'http://www.carenetwork.org.uk/about-us/contact-us.html'; targa[1] = '_blank'; adsIDs[1] = 16; text[2] = 'Get our newsletter'; header[2] = ''; linka[2] = 'http://www.carenetwork.org.uk/subscribe.html'; targa[2] = '_blank'; adsIDs[2] = 15; text[3] = 'Cleaning'; header[3] = ''; linka[3] = 'http://www.carenetwork.org.uk/services/cleaning.html'; targa[3] = '_blank'; adsIDs[3] = 14; text[4] = 'Decorating'; header[4] = ''; linka[4] = 'http://www.carenetwork.org.uk/services/decorating.html'; targa[4] = '_blank'; adsIDs[4] = 12; text[5] = 'Gardening'; header[5] = ''; linka[5] = 'http://www.carenetwork.org.uk/services/gardening.html'; targa[5] = '_blank'; adsIDs[5] = 11; text[6] = 'Hairdressing'; header[6] = ''; linka[6] = 'http://www.carenetwork.org.uk/services/mobile-hairdressing.html'; targa[6] = '_blank'; adsIDs[6] = 13; text[7] = 'Home Maintenance'; header[7] = ''; linka[7] = 'http://www.carenetwork.org.uk/services/home-maintenance.html'; targa[7] = '_blank'; adsIDs[7] = 10; var divtext = new Array(), divh = new Array(), objst = new Array(), objs = new Array(), objsh = new Array(), IE4B = false, NS4B=false, NS6B=false, OP5B=false, NS4B = ((document.layers) ? true : false); IE4B = ((document.all) ? true : false); NS6B = ((document.getElementById) && (!IE4B)) ? true : false; uagent = window.navigator.userAgent.toLowerCase(); IE5=false; IE4=false; IEold=false; IE5=(uagent.indexOf('msie 5.0') != -1)?true:false; IE4=(uagent.indexOf('msie 4') != -1)?true:false; if (IE5 || IE4){ IEold=true; } OP5B = (uagent.indexOf('opera') != -1) ? true : false; if (OP5B == true) { IE4B=false; NS6B=true; } if (NS6B == true) { IE4B=false; } var ns6obj = null, headlineTimer = 0, str2 = '', msgw, msgh, mc=0, say = 0, onceki = 0; msgw = 750-0; mc = text.length; onceki = mc - 1; strpos = ''; strvis = ''; strpadding = ''; strpadding2 =''; nsdiv=''; nstheight = theight-borderw-borderw; nst2width = 750-borderw-borderw; pad_top = pad_top-borderw + 1; if (pad_top < 0) { pad_top=0; } pad_top2 = pad_top2-borderw; if (pad_top2 < 0) { pad_top2 = 0; } if (IE4B) { strpos = 'position:absolute;'; strvis = ''; strpadding = 'padding-top:' + pad_top + 'px;padding-left:' + pad_left + 'px;'; strpadding2 = 'padding-top:' + pad_top2 + 'px;padding-left:' + pad_left2 + 'px;'; } else if (NS6B) { strpos = 'position:absolute;'; strvis = 'visibility:hidden;'; strpadding = 'padding-top:' + pad_top + 'px;padding-left:' + pad_left + 'px;'; strpadding2 = 'padding-top:' + pad_top2 + 'px;padding-left:' + pad_left2 + 'px;'; } divtev1 = ' onmouseover="mdivmo('; divtev2 = ')" onmouseout ="restime('; divtev3 = ')" onclick="butclick('; divtev4 = ')"'; for (i = 0; i < mc; i++) { if(IE4B) { divtext[i] = '
'; } else if(NS6B) { divtext[i] = '
'; } } function mdivmo(gnum) { if (NS6B) { if (linka[gnum] != '') { objs[onceki].style.color = txthicol; objs[onceki].style.cursor = 'pointer'; window.status = '' + linka[gnum]; } } } function restime(gnum2) { if (IE4B) { objd = eval('d' + gnum2); objd.style.color = txtcol; window.status = ''; } else if(NS6B) { objs[onceki].style.color = txtcol; window.status = ''; } } function butclick(gnum3) { if (targa[gnum3] == '') { targa[gnum3] = '_self'; } if (IE4B || NS6B) { window.location = linka[gnum3]; } } if (IE4B) { } else if (NS6B) { str2=''; for(i = 0; i < mc; i++) { if (bAdMode) { str2 = str2 + divtext[i] + '' + text[i] + '
'; } else { str2 = str2 + divtext[i] + '' + text[i] + '
'; } } } else if(NS4B) { document.write(''); } function dotrans() { if (IE4B) { if (IEold != true) { spage.filters[0].apply(); } if (bAdMode) { spage.innerHTML = '' + divtext[say] + '' + text[say] + ''; } else { spage.innerHTML = '' + divtext[say] + ''+ text[say] + ''; } //spage.innerHTML = '' + divtext[say] + ''+ text[say] + ''; if (IEold != true) { spage.filters[0].play(); } headlineTimer = setTimeout('dotrans()', 3000 + transtime); } else if (NS6B) { objs[say].style.color = txtcol; objs[say].style.visibility = 'visible'; objs[onceki].style.visibility = 'hidden'; onceki=say; headlineTimer = setTimeout('dotrans()', 3000); } say++; if(say>=mc) { say=0; } } function dofirst() { var i=0, str=""; try { for (i = 0; i < mc; i++) { objs[i] = document.getElementById("d" + i); } objs[0].style.visibility = "visible"; dotrans(); } catch (e) { } } function initte() { if (IE4B) { spage.style.borderStyle = "solid"; spage.style.borderWidth = "" + borderw + "px"; spage.style.borderColor = border_color_str; if (bAdMode) { spage.innerHTML = '' + divtext[say] + '' + text[say] + ''; } else { spage.innerHTML = '' + divtext[say] + '' + text[say] + ''; } say=1; headlineTimer = setTimeout('dotrans()', 3000); } else if (NS6B) { say = 0; ns6obj = document.getElementById('spage'); ns6obj.innerHTML = str2; headlineTimer = setTimeout('dofirst()', 500); } } window.onload = initte;