jQuery.noConflict();



// Put all your code in your document ready area

jQuery(document).ready(function($){

	// Do jQuery stuff using $

	$("q").prepend("&ldquo;").append("&rdquo;");

	$("q q").prepend("&lsquo;").append("&rsquo;");

	// Add classes to input pseudotypes

	$("input[type='text'], input[type='password']").addClass("text");

	$("input[type='button'], input[type='submit'], input[type='checkbox'], input[type='image'], input[type='radio'], input[type='reset'], button").addClass("nontext");

	$("input[type='button'], input[type='submit'], input[type='reset'], button").addClass("button");

	// Add classes to link pseudotypes

	$("a[href^='mailto:']").addClass("mailto");

	$("a[href$='.pdf']").addClass("docpdf");

	$("a[href$='.swf']", "a[href$='.fla']", "a[href$='.swd']").addClass("docflash");

	$("a[href$='.xls']", "a[href$='.csv']", "a[href$='.xlt']", "a[href$='.xlw']").addClass("docexcel");

	$("a[href$='.ppt']", "a[href$='.pps']").addClass("docppoint");

	$("a[href$='.doc']", "a[href$='.rtf']", "a[href$='.txt']", "a[href$='.wps']").addClass("docword");

	$("a[href$='.zip']", "a[href$='.gzip']", "a[href$='.rar']").addClass("doczip");

	// External link popper

	$('a[href^=http://]').not('[href*='+window.location.host+']').attr('target','_blank').addClass("external");

		/* 

		checks href against current domain. If not matching and href contains http://, target blank it and add class external

		*/

	

	// Remove classes from a link containing an image

	$("a img").parent().removeClass();

	$("#wrapper").prepend('<input type="text" id="focus-stealer" type="hidden" />');

	$("#focus-stealer").focus();

	

	$(".tabs").tabs();

	

	$('.slideshow, .page-template-home-specials-php .entry-content dd a').cycle({

		fx: 'fade'

	});

	

	// Resize "wrapper" when the window resizes

	//$(window).resize(function() {

		//var wHeight = $(this).height();

		//var wWidth = $(this).width();

		//$('#wrapper').css("height",wHeight).css("width",wWidth);  // Set wrapper height and width to window height and width

	//});

});



// IE6 fixes

// make sure IE has the abbr and acronym tag

if(document.all){

	document.createElement("abbr");

	document.createElement("acronym");

}

