<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>{TITLE}</title>
	<meta http-equiv="expires" content="0">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="pragma" content="no-cache">    
    <link rel="stylesheet" type="text/css" href="styles/contenido.css" />
    <script type="text/javascript" src="scripts/rowMark.js"></script>
    <script type="text/javascript" src="scripts/messageBox.js.php?{SESSNAME}={SESSID}"></script>
    <script type="text/javascript" src="scripts/articleObject.js.php?{SESSNAME}={SESSID}"></script>
    <script type="text/javascript">
	<!--
		/* Contenido Session-ID */
		var sid = "{SESSID}";
		
		/* New messageBox instance */
		box = new messageBox("", "", "", 0, 0);
		
		/* Function for deleting articles */
		function deleteArticle(idart, idcat) {
			var url = "main.php?area=con&action=con_deleteart&frame=4&idcat="+idcat+"&idart="+idart+"&{SESSNAME}="+sid;
			window.location.href = url;
		}
        
        {SCRIPT}
	//-->
	</script>

</head>
<body style="margin: 10px;">
    <div style="border: 1px solid #B3B3B3; background: #E2E2E2; margin: 0 0 10px 0; padding: 2px;  vertical-ailgn:middle; line-height:20px;">{TITLE}</div>

    <table width="100%" border="0" cellspacing="0" cellpadding="2" class="bordered">
    <tr>
	    <td width="1%" class="headerbordercell" nowrap="nowrap">{TH_START}</td>
	    <td width="100%" class="headerbordercell" nowrap="nowrap">{TH_TITLE}</td>
	    <td width="1%" class="headerbordercell" nowrap="nowrap">{TH_CHANGED}</td>
	    <td width="1%" class="headerbordercell" nowrap="nowrap">{TH_PUBLISHED}</td>
	    <td width="1%" class="headerbordercell" nowrap="nowrap">{TH_SORTORDER}</td>
	    <td width="1%" class="headerbordercell" nowrap="nowrap">{TH_TEMPLATE}</td>
	    <td width="1%" class="headerbordercell" nowrap="nowrap">{TH_ACTIONS}</td>
    </tr>
    
    <!-- BEGIN:BLOCK -->
    {ROWS}
    <!-- END:BLOCK -->

    </table>
    
    <div id="store_search" style="margin-top: 20px;">
    	<b>{STORESEARCHINFO}</b><br /><br />
    	{STORESEARCHFORM}
    <div>
    
    <div style="margin-top: 20px">{SEARCHSTOREDMESSAGE}</div>
<script type="text/javascript">
<!--
	rcount = 0;
	
    /* Update frame right top for sub navigation */
    {SUBNAVI}
    
    /* Refresh top_left frame to show new saved searches */
    {REFRESH}
    
	/* Create a reference to the Article Object in frame 'right_top' */
	artObj = parent.parent.frames["left"].frames["left_top"].artObj;
	
	/* Reset article object
	   properties. e.g. Some article was edited and we are now back in the
	   overview mask. There is now no marked article, the articleObject data
	   should be reset.  */
	if ( artObj ) {
	    artObj.reset();
	    artObj.enable();
        artObj.setHrefOverview(document.location.href);
	}
	
	/* Timeout to call the function afer 250ms */
	window.setTimeout("createReference()", 250);

	/* Javascript-Error work-around... try to create the reference after
	   250ms again... and hope it works.. */
	function createReference() {
		if( !artObj ) {
			artObj=parent.parent.frames["left"].frames["left_top"].artObj;
	    	if( artObj ) {
				artObj.reset();
				artObj.enable();
                artObj.setHrefOverview(document.location.href);
	    	}
		}
		if( !artObj ) {
			return false;
	  	}
	}
	
	
	/* Extract data from the article grid and send
	   them to the articleObject Instance. The data is stored in the
	   attribute 'id' of the row object. */
	function conArtOverviewExtractData( obj ) {
		if( !artObj ) {
			var rval=createReference();
			if (rval== false) {
				return false;
			}
		}

		var datastring=obj.id; 
		var data=datastring.split( "-" );

		if ( data.length== 6 ) {
		  	/* Send data to articleObject instance:
			     0: idart
			     1: idartlang
			     2: idcat
			     3: idcatlang
			     5: idcatart */
			artObj.setProperties(data[0], data[1], data[2], data[3], data[4], data[5]);
		}
		return true;
	}
	
	/* Function for sorting the articles */
	function artSort(selObj) {
		var url='main.php?area=con&frame=4&idcat=57&{SESSNAME}={SESSID}';
		var i=selObj.selectedIndex;
		var sortkey=selObj.options[i].value;
		window.location.href=url + '&sort=' + sortkey;
	}
	
	/* Mark the first submenu item i.e. 'Overview' */
	if( parent.parent.frames['right'].frames['right_top'].document.getElementById('c_0') ) {
		menuItem=parent.parent.frames['right'].frames['right_top'].document.getElementById('c_0');
		parent.parent.frames['right'].frames['right_top'].sub.click(menuItem);
	}
    
    function initTheOne() {
       var theOne = document.getElementById("{FIRST_ROWID}");
       artRow.reset();
       artRow.over( theOne );
       artRow.click( theOne )
    }
    initTheOne();
//-->
</script>
</body>
</html>
