/*

	Somer 2000
	http://www.somer2000.co.uk/
	
	Designed and Developed by Systemagic
	http://www.systemagic.co.uk/

*/

$(document).bind('ready', function(){
	
	$('body').addClass('javascript');
	
	$('.clickable').bind('click', function(){
		href = $(this).find('a:first').attr('href');
		window.location = href;
	});

	$('div.services div.section').hover(function(){
		$(this).find('div.border').stop().animate({ 'width':'5px' }, 200);		
	}, function(){
		$(this).find('div.border').stop().animate({ 'width':'0px' }, 200);
	});
	
	/*
	$('div.section').each(function(){
		$(this).bind("click", function(){				   
			html	= $(this).html();
			height	= $(this).height();
			width	= $(this).width();
			
			$(this).html("<iframe id=\"magicFrame\" style=\"width:"+width+"px;height:"+height+"px;\"></iframe>");
			
			magicFrame.document.designMode = 'On';
			$("body", window.frames['magicFrame'].document).html(html);
			
			$("head", window.frames['magicFrame'].document).html("<style type=\"text/css\">body { padding: 0px; margin: 0px; } p { color: #787878; font-family: Tahoma, Geneva, sans-serif; font-size: 13px; margin: 10px 0px; }</style>");
			
			height	= $("body", window.frames['magicFrame'].document).height()+20;
			$("#magicFrame").css("height", height+"px");
			
			$(this).unbind("click");
		});
	});
	*/
	
});
