// Set open day visible or not - 1 = Visible, 0 = Hidden (or anything other than 1 =  hidden, really)

var visibility = 1;

// To make changes to overlay content, edit this text

var content =

"<h1>CMC Open Days – 7th and 8th December 2010</h1>\
<p>Cam Machine is opening its doors for customers and suppliers alike. It will be \"work as per normal\" (give or take!) and we are welcoming everyone to take a look at what we can do for you.</p>\
<p>Our new sliding head machine has pride of place and you will be able to see the amazing capabilities of this. You will also be able to see our extensive range of CNC facilities.</p>\
<p>Please will you give us an indication of morning or afternoon slots (not binding!) so we can get a feel for catering numbers etc. Please email Gervase on <a href=\"mailto:info@cam-machine.co.uk\">info@cam-machine.co.uk</a> to confirm your e.t.a. and on which day.</p>\
<p>If you would like to stay over then we can arrange for hotel bookings at reduced rates in the nearby Walton Park Hotel. You would be more than welcome to join us in the evening for a bite to eat as well.</p>\
<p>We very much look forwards to seeing you in Clevedon. We are just a minute away from Junction 20 on the M5. Full map and directions are on our website <a href=\"http://www.cam-machine.com\">www.cam-machine.com</a> via the Contact tab.</p>";

// Change the link title (the text that shows when hovering over the open day tab)

var title = "Find out about the Cam Machine Components open day!";

// Change width & height of box (just numbers)

var width  = 650;
	height = 400;

// DO NOT MODIFY

$(document).ready(function(){
	if(visibility == 1){
		$("#main").append('<div id="tab"><a href="#TB_inline?height='+height+'&width='+width+'&inlineId=overContent&modal=true" title="'+title+'" class="thickbox"><img src="images/OpenDay.gif" width="65" height="198" alt="" /></a></div>');
		$("body").append('<div id="overContent">'+content+'<input type="submit" onclick="tb_remove()" value="&nbsp;&nbsp;Close&nbsp;&nbsp;" id="close"></div>');
	}
});
