  function loadIntoNode(data, xhr){
    if(xhr.args.node){
      xhr.args.node.innerHTML = data;
    }
  }

  /*
dojo.xhrGet({
    url: "music_albums.html",
    node: dojo.byId("music_content"),
    load: loadIntoNode,
    handle: function() {
           //Needed to reactivate all cufon on the page 
           //including the new HTML loaded in
            Cufon.refresh();
            dojo.parser.parse();
    }
  });
*/                          
function intoNode(node, url){
    return {
      url: url,
      node: dojo.byId(node),
      load: loadIntoNode,
      handle: function() {
           //Needed to reactivate all cufon on the page 
           //including the new HTML loaded in
            Cufon.refresh();
            dojo.parser.parse();
    }
    };
  }
  
  function photoGallery(photo,title,desc) {
          //put some caching in here
          var container;
          container = dojo.byId("feature_photo_img");
          
          // 2009-10-28 11:11:04 AV
          // SHAKBACK > UAT > Photos > Thumbnail rollover action is not calling the correct asset that displays in the full image box.
          //container.src = '/images/photo_thumbs/feat-'+ photo+'-full.jpg';
          container.src = photo;
          
          imgtitle = dojo.byId("feat_title");
          imgtitle.innerHTML = title;
          imgdesc = dojo.byId("feature_det");
          imgdesc.innerHTML = desc;
         //alert(title);
  }
  
  function buildLogin(url, title) {

		loginDlg = new dijit.Dialog({
			id: 'input-dialog', 
			title: title, 
			href: url,
			preload: true,
			onCancel: function() {
				loginDlg.destroy();
			} 
		});
		loginDlg.show();
	}

