<?xml version="1.0" encoding="UTF-8" ?> 
<Module>
  <ModulePrefs title="Artist a Day: New Art...Everyday - Artistaday.com" description="New Art. Everyday. Artistaday.com’s goal is simple. We feel artists and their art are under-valued, under-exposed, and generally under-appreciated. We want to bring attention to artists that otherwise don’t get the attention they deserve." author="Artistaday.com" author_email="submissions@artistaday.com" screenshot="http://www.artistaday.com/gadget/gadget_screen3.png" thumbnail="http://www.artistaday.com/gadget/gadget_thumb.png" author_location="Charlotte, NC" title_url="http://www.artistaday.com" category="lifestyle" directory_title="Artist a Day: Featured Art"> 
	<Require feature="dynamic-height"/>
	<Require feature="settitle" />
	<Require feature="minimessage"/>
	<Require feature="analytics"/>
  </ModulePrefs>
	<Content type="html" view="home">
  <![CDATA[ 
  	<style>
	.mmlib_table {width: 100%; font: bold 12px arial,sans-serif; color: #ffffff; background-color: #000000; border-collapse: separate; border-spacing: 0px; padding: 5px;}
	a:link, a:visited, a:active, a:hover {color: #ffffff; text-decoration: underline;}  
	.mmlib_xlink {font: normal 1.1em arial,sans-serif; font-weight: bold; color: #ffffff; cursor: pointer;}
	input {border:1px solid #E3E3E3;}
	input.btn{background-color:#E3E3E3;color:#666; border: none;}
   </style>
   	<div id="header" style="float: left; width: 100%; margin-right: -200px;"><div style="margin-right: 200px;"><a href='http://www.artistaday.com' target='_parent'><img src='http://www.artistaday.com/gadget/logo_gadget.gif' width='274' height='25' border='0' /></a></div></div>
   	<div style="float: right; width: 32px; padding-top: 5px;"><a href="http://www.facebook.com/artistadaydotcom" target="_blank"><img src="http://www.artistaday.com/wp-content/plugins/sociable/images/facebook.png" width="16" height="16" alt="" border="0" /></a><a href="http://twitter.com/artistaday" target="_blank"><img src="http://www.artistaday.com/wp-content/plugins/sociable/images/twitter.png" width="16" height="16" alt="" border="0" /></a></div>
   	<br clear="all" />
   <div id="content_div"></div>
   <div style="font: bold 12px arial,sans-serif; color: #666;"><div style="float: left; width: 40%; padding-top: 5px;" id="todays"></div><div style="float: left; width: 60%; text-align: right;"><form action="http://artistaday.com" method="get" target="_blank" style="padding-bottom: 5px; margin: 0px;"><img src="http://www.artistaday.com/wp-content/themes/aad2010/images/search.png" width="12" height="12" alt="" /><input type="text" size="15" name="s" /><input type="submit" value="Search" class="btn" /></form></div><br clear="all" /></div>  
    <div id="footer"><a href='http://www.facebook.com/artistadaydotcom' target='_blank' style='text-decoration: none;'>'Like' us on Facebook&nbsp;&raquo;</a></div>
   	
    <script type="text/javascript">
    _IG_Analytics("UA-31089-28", "/gadget");
    
    function makeDOMRequest() {    
        var params = {};  
        params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.DOM;  
        var url = "http://www.artistaday.com/wp-rss4.php";  
        gadgets.io.makeRequest(url, response, params);
      };

	function response(obj) { 
    // obj.data contains the feed data
   	var domdata = obj.data;
   	var itemList = domdata.getElementsByTagName("item");
   	var nodeList = itemList.item(0).childNodes;


	// Loop through child nodes.
    for (var j = 0; j < nodeList.length ; j++) {
    	var node = nodeList.item(j);
        if (node.nodeName == "title") {
           var title = node.firstChild.nodeValue;
        }
        if (node.nodeName == "guid") {
           var guid = node.firstChild.nodeValue; 
        }
        if (node.nodeName == "image1") {
           var image1 = node.firstChild.nodeValue; 
        }
        if (node.nodeName == "location1") {
           var location1 = node.firstChild.nodeValue; 
        }
		if (node.nodeName == "artnum1") {
           var artnum1 = node.firstChild.nodeValue; 
        }
    } 
    
    var html = "<a href='" + guid + "' target='_parent'><img src='" + image1 + "' width='100%' style='padding: 5px 0px; margin-bottom: 2px;' onload='gadgets.window.adjustHeight();' /></a>";  
    
    //old method
    //var html = "<a href='" + guid + "' target='_parent'><img src='" + image1 + "' width='100%' style='padding: 5px 0px; margin-bottom: 2px;' onload='_IG_AdjustIFrameHeight()' /></a>";          
      
    document.getElementById('content_div').innerHTML = html;
    document.getElementById('todays').innerHTML = title;
    gadgets.window.adjustHeight();
  };
	gadgets.util.registerOnLoadHandler(makeDOMRequest);
	
	//create mini message
	var msg = new gadgets.MiniMessage(__MODULE_ID__);
	msg.createDismissibleMessage(document.getElementById("footer"));
    </script>
  ]]>
  </Content>
  <Content type="html" view="canvas">
   <![CDATA[ 
  	<style>
	.mmlib_table {
	  width: 100%;
	  font: bold 12px arial,sans-serif;
	  color: #ffffff;
	  background-color: #000000;
	  border-collapse: separate;
	  border-spacing: 0px;
	  padding: 5px;
	  }
	a:link, a:visited, a:active, a:hover {
	  color: #6699cc;
	  text-decoration:none;
	}
	
	strong {
		color: black;
	}
	.mmlib_xlink {
	  font: normal 1.1em arial,sans-serif;
	  font-weight: bold;
	  color: #ffffff;
	  cursor: pointer;
	  }
   </style>
   
   <div id="header"><a href='http://www.artistaday.com' target='_parent'><img src='http://www.artistaday.com/wp-content/themes/aad_raw/images/logo_gadget.gif' width='274' height='25' border='0' /></a></div>
   <div id="content_div"></div> 
   <div id="footer"></div>   	
   	
    <script type="text/javascript">
    _IG_Analytics("UA-31089-28", "/gadget");
    
    //grab alert preferences
    var prefs = new gadgets.Prefs();
    var alert_pref = prefs.getBool("show_alerts");
    //var details_pref = prefs.getBool("show_det");
    var entries = 1;
    
    if(alert_pref == 1){
		//create mini message
		var msg = new gadgets.MiniMessage(__MODULE_ID__,document.getElementById("footer"));
		msg.createDismissibleMessage("<div id='footer'>Hint: Click the image to learn more&nbsp;&raquo;</div>");
	}  
    var entries = 1;

    function makeDOMRequest() {    
        var params = {};  
        params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.DOM;  
        var url = "http://www.artistaday.com/wp-rss4.php";  
        gadgets.io.makeRequest(url, response, params);
      };


function response(obj) { 
    // obj.data contains the feed data
   	var domdata = obj.data;
   	var itemList = domdata.getElementsByTagName("item");
   	var nodeList = itemList.item(0).childNodes;


		// Loop through child nodes. Extract data from the text nodes that are
             // the children of the associated name, price, and calories element nodes.
             for (var j = 0; j < nodeList.length ; j++) {
                var node = nodeList.item(j);
                if (node.nodeName == "title") {
                   var title = node.firstChild.nodeValue;
                }
                if (node.nodeName == "guid") {
                   var guid = node.firstChild.nodeValue; 
                }
                if (node.nodeName == "image1") {
                   var image1 = node.firstChild.nodeValue; 
                }
                if (node.nodeName == "location1") {
                   var location1 = node.firstChild.nodeValue; 
                }
                if (node.nodeName == "content:encoded") {
                   var description = node.firstChild.nodeValue; 
                }
             } 
    
    var html = "<table cellpadding='5' cellspacing='0' border='0'><tr valign='top'><td><a href='" + guid + "' target='_parent'><img src='" + image1 + "' width='425px' style='border: 1px solid #666666; padding: 5px; margin-bottom: 2px;' onload='_IG_AdjustIFrameHeight()' /></a></td><td><h1 style='color: black; font-size: 22px; margin: 0px;'>" + title + "</h1><h2 style='color: #666; font-size: 18px; margin: 0px;'>" + location1 + "</h2><span style='font-size: 12px; color: #666;'>" + description + "</span><h3><a href='" + guid + "' target='_parent'>Continue on to see more work, rate and comment&nbsp;&raquo;</a></h3></td></tr></table>";         
    
    document.getElementById('content_div').innerHTML = html;
    gadgets.window.adjustHeight();
  };
gadgets.util.registerOnLoadHandler(makeDOMRequest);
    </script>
  ]]>
  </Content>
</Module>