function myInit() {	
	
	//$("a[href^='http:']").not("[href*='bisqit.co.uk']").attr('target','_blank');
	$('#navigation ul li:has(li.selected)').addClass('selected');
	$('#navigation ul li:first').css('width','135px');
	$('#navigation ul li:nth-child(3) ul').append('<li><a href="http://vimeo.com/bisqit" target="_blank">Vimeo</a></li><li><a href="http://twitter.com/#!/Bisqit_Branding" target="_blank">Twitter</a></li>');	
	
	$('#archive > li > a').click( function() {		
		$(this).parent().find("ul:first").toggleClass("closed"); 
		return false;
		});
	$('#archive > li > ul > li > a').click( function() {		
		$(this).parent().find("ul:first").toggleClass("closed"); 
		return false;
		});

	$('.top a').click( function() {
		scroll(0,0);
		return false;
		});
	
	$('ul.clients li a img').hover(
		function () {
			src = $(this).attr('src');
			newsrc = src.replace('gs_','');
			$(this).attr('src',newsrc);			
			}, 
		function () {			
			$(this).attr('src',src);		
			}
		);
	
	$('img.top').hover(
		function () {
			src = $(this).attr('src');
			$(this).attr('src','/img/top_on.png');			
			}, 
		function () {			
			$(this).attr('src',src);		
			}
		);
	
	
	$('#content div.caseStudyPromo').click( function() {
		document.location.href = $(this).find("a").attr('href');
		});
	
	$('#content div.caseStudyPromo').hover( 
		function () {
			$(this).find("a").show();
			$(this).find("div.overlay").show();
			}, 
		function () {			
			$(this).find("a").hide();	
			$(this).find("div.overlay").hide();	
			}
		);


	$('#content div.caseStudyItem').click( function() {
		document.location.href = $(this).find("a:first").attr('href');
		});
	$('#content div.caseStudyItem').hover( 
		function () {
			$(this).find("div.image a").show();
			$(this).find("div.overlay").show();
			}, 
		function () {			
			$(this).find("div.image a").hide();
			$(this).find("div.overlay").hide();		
			}
		);

	$("#commentForm").submit(function() {		
		$('#commentForm').attr('method','post');
		errors = '';	
		if (!$('#cf_comment').val()) {
			errors += "Comment\n";
			}
		if (!$('#cf_name').val()) {
			errors += "Name\n";
			}
		if (!$('#cf_email').val()) {
			errors += "Email\n";
			}
		if (errors) {			
			alert("The following fields are required:\n\n"+errors);
			return false;
			} 	
		});
	
	$('#content ul#blogPosts > li:last').css('border','none');
	$('#content.listAlt ul.list li:last').css('border','none');
	}



