// Tom J Nowell
$(document).ready(function() {
	jQuery.fn.exists = function(){return jQuery(this).length>0;}
   // do stuff when DOM is ready
   $('a[title=About Me]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p><b>About Me page</b></p> <p></p><p>Who am I, what I do, and where I'm from!</p>"});
   $('a[title=Blog]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p><b>My Blog</b></p> <p></p><p>Project updates, interesting things I find on the net, and announcements/news, amongst other things</p>"});
   $('a[title=Forums]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p><b>Forums</b></p> <p></p><p>My forums here at darkstars, they're too active, but one forum is full of concepts and sketches</p>"});
   $('a[title=Links]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p><b>Links</b></p> <p></p><p>Affiliated websites and blogs</p>"});
   $('a[title=Projects]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p><b>My Projects</b></p> <p></p><p>Here you can find all my projects, my portfolio as such. Note that it's current under construction!</p>"});
   $('a[title=Stamper]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p><b>Stamper Tool</b></p> <p></p><p>A mini website, you can upload images here and have them stamped with spring logos.</p>"});
   $('a.rss').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p><b>Subscribe</b></p> <p></p><p>Click here to subscribe to my blogpost RSS feed!</p>"});
   $('a[title=rss]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p><b>Subscribe</b></p> <p></p><p>Click here to subscribe to my blogpost RSS feed!</p>"});
   $('a[title=my facebook]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p>Add me on Facebook!</p>"});
   $('a[title=my gmail]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p>Email me!</p>"});
   $('a[title=my last.fm]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p>See what I've been listening to</p>"});
   $('a[title=my youtube]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p>My youtube profile</p>"});
   $('a[title=my linkedin]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p>View my linkedIn profile</p>"});
   $('a[title=my twitter]').tipsy({fade: true, gravity: 'n', title: '',fallback: "<p>Follow me on twitter</p>"});
   
	/*if($("#stamper").exists()){
		$("#placement-lower-left").click( function(){
			$("input[@name='logoplacement']").val("placement-lower-left");
			$("#radio-lower-left").attr("checked", "checked");
			$("#radio-lower-left").addClass("selected-option");
			$("#radio-middle-center").removeClass("selected-option");
		});
		$("form #placement-middle-center").click( function(){
			$("input[@name='logoplacement']").val("placement-middle-center");
			$("#radio-middle-center").attr("checked", "checked");
			$("#radio-lower-left").removeClass("selected-option");
			$("#radio-middle-center").addClass("selected-option");
		});
	}*/
});
