toolTipText = new Array(1);
toolTipText[0] = "<p>Professionally designed Corporate Logos and Branding from Bagshots in Kent</p>";
toolTipText[1] = "<p>Fully bespoke colour brochures designed for your specific business.  Impress your prospective clients</p>";
toolTipText[2] = "<p>Design of letterheads, compliment slips and business cards with your logo and branding.</p><p>We also offer a high quality printing service.</p>";
toolTipText[3] = "<p>Direct mailing campaigns designed to attract the attention of those more elusive customers!</p>";
toolTipText[4] = "<p>Packed with news, reviews and any special offers your company has to offer.</p><p?Fully bespoke service with your branding.</p>";
toolTipText[5] = "<p>We offer a professional photography service, while we also manage a large stock collection of images.</p>";
toolTipText[6] = "<p>Bagshots offer a variety of advert design services.</p>";
toolTipText[7] = "<p>From start to finish we design your website to fit your requirements with domain name and email addresses.</p>";
toolTipText[8] = "<p>Content management systems allowing you to add, edit and remove pages and images from your website.</p>";
toolTipText[9] = "<p>Databases and web-based access designed for your requirements including stock control, ticket systems and customer relations to mention a few.</p>";
toolTipText[10] = "<p>Get the most from your website! Optimize the position of your website in search engines to increase visits, enquiries and sales!</p>";

function navMouseOver(sender)
{
	navToolTip = $('nav-tool-tip');

	navToolTip.innerHTML = toolTipText[parseInt(sender.id) - 1];
	navToolTip.setStyle({left: ($(sender).viewportOffset()[0] + 202) + 'px'});
	navToolTip.setStyle({top: ($(sender).viewportOffset()[1] + document.viewport.getScrollOffsets()[1]) +  'px'});
	navToolTip.appear({duration:0.5});
}

function navMouseOut(sender)
{
	navToolTip = $('nav-tool-tip');
	navToolTip.setStyle({left: '-10000px'});
	navToolTip.setStyle({top: '-10000px'});
	navToolTip.hide();
}
function browserType ()
{
if (navigator.userAgent.indexOf('Opera')!=-1 && document.getElementById)
return 'OP'; // Opera
if (document.all)
return 'IE'; // Internet Explorer
if (document.layers)
return 'NN'; //Netscape 4
if (!document.all && document.getElementById)
return 'MO'; // Mozilla (Netscape 6+, etc)
}
function setLayerVisibility (pstrID, pstrVisibility)
{
if (bType == "IE")
eval("document.all." + pstrID + ".style.display='" + pstrVisibility + "'"); 
if (bType == "NN")
eval("document." + pstrID + ".display='" + pstrVisibility + "'"); 
if (bType == "MO" || bType == "OP") 
eval("document.getElementById('" + pstrID + "').style.display='" + pstrVisibility + "'"); 
}
var thispage;
thispage = "1";
function pagechange(id)
{
	if(document.getElementById("design_" + id))
		{
		document.getElementById("design_" + thispage).style.display = "none";
		document.getElementById("page_" + thispage).style.color = "#ffffff";
		document.getElementById("design_" + id).style.display = "block";
		document.getElementById("page_" + id).style.color = "#faa61a";
		thispage = id;
		}
}

	/***********************************************
	* Cross browser Marquee II- © 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 delayb4scroll=1000; //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
	var marqueespeed=1; //Specify marquee scroll speed (larger is faster 1-10)
	var pauseit=1; //Pause marquee onMousever (0=no. 1=yes)?
	var tim;
	////NO NEED TO EDIT BELOW THIS LINE////////////
	
	var copyspeed=marqueespeed;
	var pausespeed=(pauseit==0)? copyspeed: 0;
	var actualheight='';
	
	function scrollmarquee(){
		//document.write(parseInt(cross_marquee.style.top));
			//if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) {
		if (document.getElementById('track').value == "") {
			if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) {
				cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px";
				//alert(actualheight);
			}
			else {
				//alert(parseInt(marqueeheight));
				cross_marquee.style.top=parseInt(marqueeheight)-8+"px";
			}
		}
	}
	
	//press down
	function pressdown() {
		document.getElementById('track').value = "yes";
		
			if (parseInt(cross_marquee.style.top)<(actualheight)) {
				cross_marquee.style.top=parseInt(cross_marquee.style.top)+ 10 +"px";
				//alert(parseInt(cross_marquee.style.top) + "---" + actualheight + " marqueeheight: " + parseInt(marqueeheight) );
				//alert(actualheight);
				tim = setTimeout("pressdown()", 150);
			}
			else {
				//alert(parseInt(marqueeheight));
				cross_marquee.style.top=parseInt(marqueeheight)*(-1)+"px";
				tim = setTimeout("pressdown()", 150);
			}
	}
	
	//press up
	function pressup() {
		document.getElementById('track').value = "yes";
		//cross_marquee.style.top=parseInt(cross_marquee.style.top)+10+"px";
		//alert(document.getElementById('track').value);
		
			if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) {
				cross_marquee.style.top=parseInt(cross_marquee.style.top)-10 +"px";
				//alert(parseInt(cross_marquee.style.top) + "---" + actualheight + " marqueeheight: " + parseInt(marqueeheight) );
				//alert(actualheight);
				tim = setTimeout("pressup()", 150);
			}
			else {
				
				cross_marquee.style.top=parseInt(marqueeheight)-8+"px";
				tim = setTimeout("pressup()", 150);
				//alert(cross_marquee.style.top);
			}
	}
	
	//on mouse out
	function mouse_out() {
		document.getElementById('track').value = "";
		clearTimeout(tim);
		//alert(document.getElementById('track').value);
		scrollmarquee;
	}
	
	//init()
	function initializemarquee(){
		cross_marquee=document.getElementById("vmarquee");
		cross_marquee.style.top=0;
		marqueeheight=document.getElementById("marqueecontainer").offsetHeight;
		actualheight=cross_marquee.offsetHeight;
		if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
			cross_marquee.style.height=marqueeheight+"px";
			cross_marquee.style.overflow="scroll";
			return
		}
		setTimeout('lefttime=setInterval("scrollmarquee()",35)', delayb4scroll);
	}