I needed a simple function to load a media-specific stylesheet on-the-fly and came up with this jQuery function. You feed it two parameters, the stylesheet name and the media type, and jQuery takes it from there.

// load stylesheet(name,media)
loadStylesheet :function(e,m) {
  $('head').append('
    <link rel="stylesheet" href="'+e+'.css" type="text/css" media="'+m+' />');
}
 
$(document).ready(function(){
  loadStylesheet('test','screen');
}