/*
 * jQuery Internal Nav Links plug-in 1.0
 * (c) 2008 Richard Chiriboga
 * BETA created on 2009-03-09
 *
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * 
 * HOW TO USE
 	
	- Just add the plugin to the page and tada!
	- NOTE: The file assumes that your favicon actually exists, and thats its a .ico. If you use png, just change the file itself from the ico to png. and your done.
 *
 *
 *
*/
$.fn.internalFavLinks = function(){

	// GETS THE SITES ACTUAL HOST
	var siteURL = "http://"+top.location.host.toString();
	//alert(siteURL);
	// FUNCTION TO GO THROUGH THE ANCHOR TAGS THAT HAVE AN HREF WITH YOUR HOST
	$("a[href^='"+siteURL+"']").each(function(){
		// JUST TRYING TO BE MORE NEAT WITH IT AND PUT THE FAVICON LINK TOGETHER		
		var favURL = "http://"+top.location.host+"/favicon.ico";
		// PREPENDS THE FAVICON ICON TO ANY LINK THATS INTERNAL
		$(this).prepend('<img src="'+favURL+' "height="12" border="0" />&nbsp;');
	});

};
