
function webFont()

{
//<![CDATA[
	 var h1_font = {
		src: '../websitefontdata/fonts/LetterPress___Headline.swf'
	};
	 var h2_font = {
		src: '../websitefontdata/fonts/LetterPress___Headline.swf'
	};
	 var h3_font = {
		src: '../websitefontdata/fonts/LetterPress___BrushStroke26.swf'
	};
	 var h4_font = {
		src: '../websitefontdata/fonts/JOEBOB_graphics___Vinc_Hand[regular].swf'
	};
	 var h5_font = {
		src: '../websitefontdata/fonts/LetterPress___Headline.swf'
	};
	 var h6_font = {
		src: '../websitefontdata/fonts/LetterPress___Headline.swf'
	};
	sIFR.useStyleCheck = false;
	sIFR.fixHover = true;
	sIFR.fitExactly = true;
	sIFR.repaintOnResize = true;
	sIFR.preserveSingleWhitespace = false;
	sIFR.fromLocal = true;
	sIFR.activate(h1_font, h2_font, h3_font, h4_font, h5_font, h6_font);
	sIFR.replace(h1_font, {selector: 'h1',
		css: [
			'.sIFR-root { line-height: 1em; font-size: 26px; color: #0000A0; background-color: #FFFFFF; text-align: left; font-weight: normal; font-style: normal; text-decoration: none; visibility: hidden; }',
			'a { text-decoration: none; }',
			'a:link { color: #0000FF; }',
			'a:hover { color: #FF0000; }'
		],
		filters: {
			DropShadow: { quality: 3, angle: 20, knockout: false, distance: 5.000000, color: '#A2A2A2', strength: 1.000000 }
		},
		wmode: 'transparent'
	});
	sIFR.replace(h2_font, {selector: 'h2',
		css: [
			'.sIFR-root { line-height: 1em; font-size: 20px; color: #0000A0; background-color: #FFFFFF; text-align: left; font-weight: normal; font-style: normal; text-decoration: none; visibility: hidden; }',
			'a { text-decoration: none; }',
			'a:link { color: #0000FF; }',
			'a:hover { color: #FF0000; }'
		],
		filters: {
		},
		wmode: 'transparent'
	});
	sIFR.replace(h3_font, {selector: 'h3',
		css: [
			'.sIFR-root { line-height: 1em; font-size: 14px; color: #0000A0; background-color: #FFFFFF; text-align: left; font-weight: normal; font-style: normal; text-decoration: none; visibility: hidden; }',
			'a { text-decoration: none; }',
			'a:link { color: #0000FF; }',
			'a:hover { color: #FF0000; }'
		],
		filters: {
		},
		wmode: 'transparent'
	});
	sIFR.replace(h4_font, {selector: 'h4',
		css: [
			'.sIFR-root { line-height: 1em; font-size: 18px; color: #0000A0; background-color: #FFFFFF; text-align: left; font-weight: normal; font-style: normal; text-decoration: none; visibility: hidden; }',
			'a { text-decoration: none; }',
			'a:link { color: #0000FF; }',
			'a:hover { color: #FF0000; }'
		],
		filters: {
		},
		wmode: 'transparent'
	});
	sIFR.replace(h5_font, {selector: 'h5',
		css: [
			'.sIFR-root { line-height: 1em; font-size: 10px; color: #0000A0; background-color: #FFFFFF; text-align: left; font-weight: normal; font-style: normal; text-decoration: none; visibility: hidden; }',
			'a { text-decoration: none; }',
			'a:link { color: #0000FF; }',
			'a:hover { color: #FF0000; }'
		],
		filters: {
		},
		wmode: 'transparent'
	});
	sIFR.replace(h6_font, {selector: 'h6',
		css: [
			'.sIFR-root { line-height: 1em; font-size: 8px; color: #0000A0; background-color: #FFFFFF; text-align: left; font-weight: normal; font-style: normal; text-decoration: none; visibility: hidden; }',
			'a { text-decoration: none; }',
			'a:link { color: #0000FF; }',
			'a:hover { color: #FF0000; }'
		],
		filters: {
		},
		wmode: 'transparent'
	});
	//]]>
}


function rose_greeting()

{
    var currTime = new Date();
    var hours = currTime.getHours();
    if(hours <12)
    {
        document.write ("Good Morning .. we're open from 7:30am weekdays, call us on (01482) 227009 ..");
    }
    else if(hours <=16)
    {
        document.write ("Good Afternoon .. you can call us now (01482) 227009, we're here until at least 5:00pm weekdays, ~ Friday's 12:30pm ..");
    }
    else
    {
        document.write ("Good Evening .. sorry we're closed right now, Visit the 'Contact Us' page after hours to send your enquiry ..");
    }
}


function dateString(date,string) {

		var months = ['January','February','March','April','May',
									'June','July','August','September',
									'October','November','December'];
		var days = ['Sunday','Monday','Tuesday','Wednesday',
								'Thursday','Friday','Saturday'];
		var day=date.getDay();
		var year=date.getFullYear();
		var month=date.getMonth();
		var realMonth=month+1;
		var fillMonth = (realMonth<10) ? '0' + realMonth : realMonth;
		var date=date.getDate();
		var fillDate = (date<10) ? '0' + date : date;
		var sfx = ["th","st","nd","rd"];
		var val = date%100;
	  var ordDate = date + (sfx[(val-20)%10] || sfx[val] || sfx[0]);
		//year
		string = string.replace(/%Y/g,year); // 2008
		string = string.replace(/%y/g,year.toString().slice(-2)); //08
		//month
		string = string.replace(/%M/g,months[month]); //January
		string = string.replace(/%m/g,months[month].slice(0,3)); //Jan
		string = string.replace(/%N/g,fillMonth); // 01
		string = string.replace(/%n/g,realMonth); // 1
		//day of week
		string = string.replace(/%W/g,days[day]); //Monday
		string = string.replace(/%w/g,days[day].slice(0,3)); //Mon
		//day of month
		string = string.replace(/%D/g,fillDate); //05
		string = string.replace(/%d/g,date); // 5
		//ordinal (1st) to day
		string = string.replace(/%O/ig,ordDate);
		return string;
	}

function ordDate()
{
var today = new Date();
	var message = dateString(today,'%W, %M %O, %Y');
	document.write(message);
}

function rose_postit_greet()

{
    var currTime = new Date();
    var hours = currTime.getHours();
    if(hours <12)
    {
        document.write ("Good Morning, My name is Rose, ~");
    }
    else if(hours <=17)
    {
        document.write ("Good Afternoon, My name is Rose, ~ ");
    }
    else
    {
        document.write ("Good Evening, My name is Rose ~");
    }
}



function rose_calendar()
{
    Style = 3;
    /*--------------------------------
    Style 1: March 17, 2000
    Style 2: Mar 17, 2000
    Style 3: Saturday March 17, 2000
    Style 4: Sat Mar 17, 2000
    Style 5: Sat March 17, 2000
    Style 6: 17 March 2000
    Style 7: 17 Mar 2000
    Style 8: 17 Mar 00
    Style 9: 3/17/00
    Style 10: 3-17-00
    Style 11: Saturday March 17
    -----------------------------------*/
    months = new Array();
    months[1] = "January";  months[7] = "July";
    months[2] = "February"; months[8] = "August";
    months[3] = "March";    months[9] = "September";
    months[4] = "April";    months[10] = "October";
    months[5] = "May";      months[11] = "November";
    months[6] = "June";     months[12] = "December";

    months2 = new Array();
    months2[1] = "Jan"; months2[7] = "Jul";
    months2[2] = "Feb"; months2[8] = "Aug";
    months2[3] = "Mar"; months2[9] = "Sep";
    months2[4] = "Apr"; months2[10] = "Oct";
    months2[5] = "May"; months2[11] = "Nov";
    months2[6] = "Jun"; months2[12] = "Dec";

    days = new Array();
    days[1] = "Sunday";    days[5] = "Thursday";
    days[2] = "Monday";    days[6] = "Friday";
    days[3] = "Tuesday";   days[7] = "Saturday";
    days[4] = "Wednesday";

    days2 = new Array();
    days2[1] = "Sun"; days2[5] = "Thu";
    days2[2] = "Mon"; days2[6] = "Fri";
    days2[3] = "Tue"; days2[7] = "Sat";
    days2[4] = "Wed";

    todaysdate = new Date();
    date  = todaysdate.getDate();
    day  = todaysdate.getDay() + 1;
    month = todaysdate.getMonth() + 1;
    yy = todaysdate.getYear();
    year = (yy < 1000) ? yy + 1900 : yy;
    year2 = 2000 - year; year2 = (year2 < 10) ? "0" + year2 : year2;

    dateline = new Array();
    dateline[1] = months[month] + " " + date + ", " + year;
    dateline[2] = months2[month] + " " + date + ", " + year;
    dateline[3] = days[day] + " " + months[month] + " " + date + ", " + year;
    dateline[4] = days2[day] + " " + months2[month] + " " + date + ", " + year;
    dateline[5] = days2[day] + " " + months[month] + " " + date + ", " + year;
    dateline[6] = date + " " + months[month] + " " + year;
    dateline[7] = date + " " + months2[month] + " " + year;
    dateline[8] = date + " " + months2[month] + " " + year2;
    dateline[9] = month + "/" + date + "/" + year2;
    dateline[10] = month + "-" + date + "-" + year2;
    dateline[11] = days[day] + " " + months[month] + " " + date;

    document.write(dateline[Style]);
}



function showClock() {
var clock=new Date();
var hours=clock.getHours();
var minutes=clock.getMinutes();
var seconds=clock.getSeconds();
// add a zero in front of numbers<10
if (hours<10){
hours="0" + hours;
}
if (minutes<10){
minutes="0" + minutes;
}
if (seconds<10){
seconds="0" + seconds;
}
document.getElementById('pendule').innerHTML=hours+":"+minutes+":"+seconds;
t=setTimeout('showClock()',500);
/* setTimeout() JavaScript method is used to call the showClock() function every 1000*/
}

function showTime()
{
var clock=new Date();
var hours=clock.getHours();
var minutes=clock.getMinutes();
var seconds=clock.getSeconds();
// add a zero in front of numbers<10
if (hours<10){
hours="0" + hours;
}
if (minutes<10){
minutes="0" + minutes;
}
if (seconds<10){
seconds="0" + seconds;
}
document.getElementById('time').innerHTML=hours+":"+minutes+":"+seconds;
}

function copyrightYear()
{
var d=new Date(); 
yr=d.getFullYear();
if (yr!=2003)
document.write("- "+yr);
}

function snow()
{

var snowmax=35

// Set the colors for the snow. Add as many colors as you like
var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD")

// Set the fonts, that create the snowflakes. Add as many fonts as you like
var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS")

// Set the letter that creates your snowflake (recommended:*)
var snowletter="*"

// Set the speed of sinking (recommended values range from 0.3 to 2)
var sinkspeed=1

// Set the maximal-size of your snowflaxes
var snowmaxsize=22

// Set the minimal-size of your snowflaxes
var snowminsize=8

// Set the snowing-zone
// Set 1 for all-over-snowing, set 2 for left-side-snowing 
// Set 3 for center-snowing, set 4 for right-side-snowing
var snowingzone=1

// Do not edit below this line
var snow=new Array()
var marginbottom
var marginright
var timer
var i_snow=0
var x_mv=new Array();
var crds=new Array();
var lftrght=new Array();
var browserinfos=navigator.userAgent 
var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
var ns6=document.getElementById&&!document.all
var opera=browserinfos.match(/Opera/)  
var browserok=ie5||ns6||opera

function randommaker(range) {		
	rand=Math.floor(range*Math.random())
    return rand
}

function initsnow() {
	if (ie5 || opera) {
		marginbottom = document.body.clientHeight
		marginright = document.body.clientWidth
	}
	else if (ns6) {
		marginbottom = window.innerHeight
		marginright = window.innerWidth
	}
	var snowsizerange=snowmaxsize-snowminsize
	for (i=0;i<=snowmax;i++) {
		crds[i] = 0;                      
    	lftrght[i] = Math.random()*15;         
    	x_mv[i] = 0.03 + Math.random()/10;
		snow[i]=document.getElementById("s"+i)
		snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]
		snow[i].size=randommaker(snowsizerange)+snowminsize
		snow[i].style.fontSize=snow[i].size
		snow[i].style.color=snowcolor[randommaker(snowcolor.length)]
		snow[i].sink=sinkspeed*snow[i].size/5
		if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
		if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
		if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
		if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
		snow[i].posy=randommaker(6*marginbottom-marginbottom-6*snow[i].size)
		snow[i].style.left=snow[i].posx
		snow[i].style.top=snow[i].posy
	}
	movesnow()
}

function movesnow() {
	for (i=0;i<=snowmax;i++) {
		crds[i] += x_mv[i];
		snow[i].posy+=snow[i].sink
		snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]);
		snow[i].style.top=snow[i].posy
		
		if (snow[i].posy>=marginbottom-6*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
			if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
			if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
			if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
			if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
			snow[i].posy=0
		}
	}
	var timer=setTimeout("movesnow()",50)
}

for (i=0;i<=snowmax;i++) {
	document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>")
}
if (browserok) {
	window.onload=initsnow
}
}


