$(document).ready(function(){

			$("#form").hide();
			$("#more").hide().css({
				opacity: "0",
				height: "0",
				overflow: "hidden"
			});

			$('a.form').click(function() {
				$('#form').toggle(400);
			});

			$("a.more").click(function(){
				$("a.more").remove();
				$("p#tooltip").remove();
				$("div#more").animate({ 
							opacity: 1.0,
							height: "350px"
							}, 1500 );
			});

			/*colorboxes*/
			$("a[rel='carpet-images']").colorbox();
			$("a[rel='custom-bike']").colorbox();
			$("a[rel='ie']").colorbox({transition:"none", width:"75%", height:"75%"});
			$("a.areas").colorbox({width:"50%", inline:true, href:"#areas"});
			/*end colorboxes*/

});



/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll,resize){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable='+resize+' '
win = window.open(mypage,myname,settings)
}


//the end



//=====================================================================
//  DOM Image Rollover v3 (hover)
//
//  Demo: http://chrispoole.com/scripts/dom_image_rollover_hover
//  Script featured on: Dynamic Drive (http://www.dynamicdrive.com)
//=====================================================================
//  copyright Chris Poole
//  http://chrispoole.com
//  This software is licensed under the MIT License 
//  <http://opensource.org/licenses/mit-license.php>
//=====================================================================

function domRollover() {
	if (navigator.userAgent.match(/Opera (\S+)/)) {
		var operaVersion = parseInt(navigator.userAgent.match(/Opera (\S+)/)[1]);
	}
	if (!document.getElementById||operaVersion <7) return;
	var imgarr=document.getElementsByTagName('img');
	var imgPreload=new Array();
	var imgSrc=new Array();
	var imgClass=new Array();
	for (i=0;i<imgarr.length;i++){
		if (imgarr[i].className.indexOf('hover')!=-1){
			imgSrc[i]=imgarr[i].getAttribute('src');
			imgClass[i]=imgarr[i].className;
			imgPreload[i]=new Image();
			if (imgClass[i].match(/hover (\S+)/)) {
				imgPreload[i].src = imgClass[i].match(/hover (\S+)/)[1]
			}
			imgarr[i].setAttribute('xsrc', imgSrc[i]);
			imgarr[i].onmouseover=function(){
				this.setAttribute('src',this.className.match(/hover (\S+)/)[1])
			}
			imgarr[i].onmouseout=function(){
				this.setAttribute('src',this.getAttribute('xsrc'))
			}
		}
	}
}
domRollover();





// bookmark sites link for IE, plus messages in firefox and opera
// href="javascript:bookmarksite('company','http://www.domain.co.uk')"

function bookmarksite(title,url){
	if (document.all)
	window.external.AddFavorite(title,url);
	else if (window.sidebar)
		  alert('This feature only works for Internet Explorer, use Control+D to bookmark This website');
	else if( window.opera && window.print )
		alert('This feature only works for Internet Explorer, use Control+T to bookmark This website');
}