/* ================
	jquery.usableicons.js
	jQuery plugin to improve your usability through icons
	v1.0
	http://www.csslab.cl/ejemplos/usableicons/
	Copyright (c) 2007 Jorge Epuņan @ CSSLab.cl
	Tnx to Rodrigo Augosto @ protoboard.cl
	GPL License <http://www.gnu.org/licenses/gpl.txt>
================ */

/*
Modification OrizonMedia.com
*/

jQuery.fn.usableicons = function(options) {
	var obtToStyle = options.split(",");
	for(var i = 0; i<obtToStyle.length; i++){
		
		
	 	$(obtToStyle[i] +" a[@href*=.doc]").addClass("doc");	
		$(obtToStyle[i] +" a[@href*=dfo-mpo.gc.ca]").addClass("interne");
		$(obtToStyle[i] +" a[@href*=osl.gc.ca]").addClass("interne");		
		$(obtToStyle[i] +" a[@href*=marees-tides.gc.ca]").addClass("interne");	
		$(obtToStyle[i] +" a[@href*=cartes.gc.ca]").addClass("interne");			
		$(obtToStyle[i] +" a[@href*=http://]").addClass("externe");
		
			
		
		
		
		$(obtToStyle[i] +" a[@href*=.pdf]").addClass("pdf");
		$(obtToStyle[i] +" a[@href*=.doc]").addClass("doc");
		$(obtToStyle[i] +" a[@href*=.zip]").addClass("zip");
		$(obtToStyle[i] +" a[@href*=.mov]").addClass("mov");
		$(obtToStyle[i] +" a[@href*=.mp3]").addClass("mp3");
		$(obtToStyle[i] +" a[@href*=.psd]").addClass("psd");
		$(obtToStyle[i] +" a[@href*=.swf]").addClass("swf");
		$(obtToStyle[i] +" a[@href*=.txt]").addClass("txt");
		$(obtToStyle[i] +" a[@href*=.wmv]").addClass("wmv");
		$(obtToStyle[i] +" a[@href*=.xls]").addClass("xls");
		$(obtToStyle[i] +" a[@href*=window.print()]").addClass("print");
		$(obtToStyle[i] +" a[@href*=mailto:]").addClass("mailto");
break;
	}

};

