/**
 * @author Mikhail A Kozlov | 315design.com
 */
(function() { var f = document.getElementById('searchbox_004758803539965918103:dyaizujutca'); if (!f) { f = document.getElementById('searchbox_demo'); } if (f && f.q) { var q = f.q; var n = navigator; var l = location; if (n.platform == 'Win32') { q.style.cssText = 'width:50%; border: 1px solid #CCCCCC; padding: 1px;'; } var b = function() { if (q.value == '') { q.style.background = '#FFFFFF url(http:\x2F\x2Fwww.google.com\x2Fcoop\x2Fintl\x2Fen\x2Fimages\x2Fgoogle_custom_search_watermark.gif) left no-repeat'; } }; var f = function() { q.style.background = '#ffffff'; }; q.onfocus = f; q.onblur = b; if (!/[&?]q=[^&]/.test(l.search)) { b(); } } })();

function checkGoogle(f){
	var x=f
	var query=x.q.value
	if(query.length < 3){
		alert("Please enter something to look for!\n\nHint: Two or more charecters will be nice :)\n")
		return false;
	}
	else{
		x.action="http://www.315design.com/search/";
		return true;
	}
}
 
$(document).ready(function(){
	$email = '<a href'+'="mail'+'to:'+'support'+'@315'+'desi'+'gn.com'+'">s'+'uppor'+'t@31'+'5des'+'ign'+'.co'+'m</a>';
	$("span.email").html($email); 
	$("#sidebar dd:last").addClass("last");
	$("input:text, input:password, textarea").focus(function(){
		$(".input div").removeClass("active");
		$(this).parent().addClass("active");
	});
	$("input:text, input:password, textarea").blur(function(){
		$(this).parent().removeClass("active");
	});

 });