    function showCommentsfrm(id){
        var obj = document.getElementById(id);
        if(obj){
            if(obj.style.display == 'none' || obj.style.display == ''){
                obj.style.display = 'block';
            }else{
                obj.style.display = 'none';
            }
        }
    }
	function count(objTextArea, objSpan){
		limit = 1000;
		var len = parseInt(objTextArea.value.length);
		if(len>=limit){
			objTextArea.value = objTextArea.value.substring(0,limit);
		}
		var diff = limit-len;
		objSpan.innerHTML = diff;
	}
	function getCookie( name ) {
		var start = document.cookie.indexOf( name + "=" );
		var len = start + name.length + 1;
		if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {
			return null;
		}
		if ( start == -1 ) return null;
		var end = document.cookie.indexOf( ';', len );
		if ( end == -1 ) end = document.cookie.length;
		return unescape( document.cookie.substring( len, end ) );
	}

	function setCookie( name, value, expires, path, domain, secure ) {
		var today = new Date();
		today.setTime( today.getTime() );
		if ( expires ) {
			expires = expires * 1000 * 60 * 60 * 24;
		}
		var expires_date = new Date( today.getTime() + (expires) );
		document.cookie = name+'='+escape( value ) +
			( ( expires ) ? ';expires='+expires_date.toGMTString() : '' ) + //expires.toGMTString()
			( ( path ) ? ';path=' + path : '' ) +
			( ( domain ) ? ';domain=' + domain : '' ) +
			( ( secure ) ? ';secure' : '' );
	}

	function deleteCookie( name, path, domain ) {
		if ( getCookie( name ) ) document.cookie = name + '=' +
				( ( path ) ? ';path=' + path : '') +
				( ( domain ) ? ';domain=' + domain : '' ) +
				';expires=Thu, 01-Jan-1970 00:00:01 GMT';
	}
	function doPage(pageId, action, otherPageId){
			if(action == 'edit' || action == 'view' || action == 'backup'){
				location.href = 'http://www.hotwhathow.com/?act='+action+'&id='+pageId;
			}else if(action == 'delete'){
				var ok = confirm('Are you sure you want to delete the page # '+pageId);
				if(ok){
					location.href = 'http://www.hotwhathow.com/?act='+action+'&id='+pageId;
				}
			}else if(action == 'history'){
				window.open('http://www.hotwhathow.com/?act='+action+'&id='+pageId, action+pageId, 'left=200,top=50,width=600,height=600,scrollbars=yes');
			}else if(action == 'revert' || action == 'revertDefault'){
				window.open('http://www.hotwhathow.com/?act='+action+'&id='+pageId+'&pageId='+otherPageId, action+pageId, 'left=200,top=50,width=600,height=600,scrollbars=yes');
			}else if(action == 'revertConfirm'){
				location.href = 'http://www.hotwhathow.com/?act='+action+'&id='+pageId+'&pageId='+otherPageId;
			}
		}
		function switchMode(){
		window.location.href = '?cmd=switchMode&mode=Basic';
	}
	lastPopedupWindow = null;
	function popupWindow(type){
		if(lastPopedupWindow != null){
			lastPopedupWindow.style.display = 'none';
		}
		//POPUP WINDOW
		var div = document.getElementById('popupWindow');
        if(type=='savePage'){
        	div.innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="3" height="100">    <tr>      <th colspan="2">Save link</th>     </tr>   <tr>     <td colspan="2">&nbsp;</td>   </tr>   <tr>     <td colspan="2"><strong>Press OK to continue, your page will be saved, please wait!</strong></td>   </tr> <tr> <td colspan="2"><input onChange="if(this.checked==true){document.frmEditPage.sendEmail.value=\'yes\';}else{document.frmEditPage.sendEmail.value=\'no\';}" name="sendEmail" type="checkbox" id="sendEmail" value="yes" checked>    &nbsp;<label for="sendEmail">Send email to all on list.</label></td>     </tr>        <tr>        <td colspan="2">&nbsp;</td></tr>  <tr>      <td align="right" width="50%"><input class="button" type="button" value=" OK " onClick="setFlag(true, \''+type+'\');" /></td>      <td width="50%"><input class="button" type="button" value=" Cancel " onClick="setFlag(false, \''+type+'\');" /></td>    </tr>  </table> ';
        }else{
            div.innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="3" height="100">    <tr>      <th colspan="2">Add a new link</th>     </tr>   <tr>     <td colspan="2">Select a parent page</td>   </tr>   <tr>     <td colspan="2"><select name="parentId" id="parentId" ><option name="" value="">------------</option><option value="2814">Home</option><option value="2836">Awards</option><option value="2838">&nbsp;&nbsp;&nbsp;Websites</option><option value="2837">Reviews</option><option value="2839">&nbsp;&nbsp;&nbsp;Gadgets</option><option value="2794">Sports</option><option value="2795">&nbsp;&nbsp;&nbsp;Sports & Fitness</option><option value="2802">&nbsp;&nbsp;&nbsp;Golf</option><option value="2811">&nbsp;&nbsp;&nbsp;Water Sports</option><option value="2766">Accessories</option><option value="2767">&nbsp;&nbsp;&nbsp;Handbags</option><option value="2775">&nbsp;&nbsp;&nbsp;Shoes</option><option value="2781">&nbsp;&nbsp;&nbsp;Jewelery</option><option value="2787">&nbsp;&nbsp;&nbsp;Watches</option><option value="2832">&nbsp;&nbsp;&nbsp;Sunglasses</option><option value="2749">Business</option><option value="2755">&nbsp;&nbsp;&nbsp;Credit Card</option><option value="2835">&nbsp;&nbsp;&nbsp;Links</option><option value="2709">Entertainment</option><option value="2710">&nbsp;&nbsp;&nbsp;Music</option><option value="2715">&nbsp;&nbsp;&nbsp;Art</option><option value="2719">&nbsp;&nbsp;&nbsp;Photo</option><option value="2726">&nbsp;&nbsp;&nbsp;Movies</option><option value="2734">&nbsp;&nbsp;&nbsp;Books</option><option value="2743">&nbsp;&nbsp;&nbsp;Events</option><option value="2746">&nbsp;&nbsp;&nbsp;Party</option><option value="2833">&nbsp;&nbsp;&nbsp;Games</option><option value="2693">Personal</option><option value="2694">&nbsp;&nbsp;&nbsp;Insurance</option><option value="2675">HouseHold</option><option value="2676">&nbsp;&nbsp;&nbsp;Clothing</option><option value="2667">Health</option><option value="2668">&nbsp;&nbsp;&nbsp;Vision</option><option value="2669">&nbsp;&nbsp;&nbsp;Weight Loss</option><option value="2670">&nbsp;&nbsp;&nbsp;Nutritional Supplement</option><option value="2646">Beauty</option><option value="2647">&nbsp;&nbsp;&nbsp;Cosmetic</option><option value="2655">&nbsp;&nbsp;&nbsp;Fragrance</option><option value="2661">&nbsp;&nbsp;&nbsp;Gifts</option><option value="2687">&nbsp;&nbsp;&nbsp;Bath And Body</option><option value="2631">Flowers and Gifts</option><option value="2632">&nbsp;&nbsp;&nbsp;Collectables</option><option value="2636">&nbsp;&nbsp;&nbsp;Flowers</option><option value="2642">&nbsp;&nbsp;&nbsp;Greeting Cards</option><option value="2617">Travel</option><option value="2618">&nbsp;&nbsp;&nbsp;General</option><option value="2625">&nbsp;&nbsp;&nbsp;Vacation</option><option value="2608">Technology</option><option value="2609">&nbsp;&nbsp;&nbsp;Mobile</option><option value="2580">Hardware Tools</option><option value="2581">&nbsp;&nbsp;&nbsp;Power tools</option><option value="2587">&nbsp;&nbsp;&nbsp;Hand tools</option><option value="2593">&nbsp;&nbsp;&nbsp;Air tools</option><option value="2598">&nbsp;&nbsp;&nbsp;Cordless tools</option><option value="2603">&nbsp;&nbsp;&nbsp;Measuring and layout</option><option value="2605">&nbsp;&nbsp;&nbsp;Wood working</option><option value="2557">Computer</option><option value="2558">&nbsp;&nbsp;&nbsp;Computer hardware</option><option value="2568">&nbsp;&nbsp;&nbsp;Computer Software</option><option value="2574">&nbsp;&nbsp;&nbsp;Computer Accessories</option><option value="2831">&nbsp;&nbsp;&nbsp;Internet</option><option value="2533">Home and Garden</option><option value="2534">&nbsp;&nbsp;&nbsp;Furniture</option><option value="2540">&nbsp;&nbsp;&nbsp;Kitchen</option><option value="2547">&nbsp;&nbsp;&nbsp;Home appliances</option><option value="2551">&nbsp;&nbsp;&nbsp;Garden</option><option value="2486">Consumer Electronic</option><option value="2487">&nbsp;&nbsp;&nbsp;Laptops</option><option value="2493">&nbsp;&nbsp;&nbsp;Television</option><option value="2500">&nbsp;&nbsp;&nbsp;DVD Player</option><option value="2507">&nbsp;&nbsp;&nbsp;Blu-Ray Player</option><option value="2513">&nbsp;&nbsp;&nbsp;Cars</option><option value="2519">&nbsp;&nbsp;&nbsp;Refrigerator</option><option value="2525">&nbsp;&nbsp;&nbsp;Digital cameras</option><option value="2528">&nbsp;&nbsp;&nbsp;Ipods</option></select></td>   </tr> <tr> <td colspan="2">Please enter link name to add</td>     </tr>        <tr>      <td colspan="2"><input style="width:300px;" class="input" id="title" type="text" name="title" /></td>    </tr>  <tr>      <td align="right" width="50%"><input class="button" type="button" value=" OK " onclick="setFlag(true, \''+type+'\');" /></td>      <td width="50%"><input class="button" type="button" value=" Cancel " onclick="setFlag(false, \''+type+'\');" /></td>    </tr>  </table> ';
        }
		div.style.display = 'block';
		lastPopedupWindow = div;
	}
	function setFlag(flag, type){
        if(flag==true){
			if(type=='savePage'){
     	       document.frmEditPage.submit();
            }else{
            	var pageTitle = document.getElementById('title').value.replace(/^\s+/g,'');
			var parentId = document.getElementById('parentId').value;
			pageTitle = pageTitle.replace(/\s+$/g,'');
			if(pageTitle == ''){
				alert('Please enter a page name.');
			}else if(!pageTitle.match(/^[a-zA-Z0-9\-\._\s]+$/g)){
				alert('Page name must have alphanumeric characters, dots(.), dashes(-) or underscores(_) only.');
			}/*else if(isNaN(parseInt(parentId)) && parentId != ''){
				alert('Please select a parent link.');
			}*/else{
				var pageLink = 'http://www.hotwhathow.com/?act=add&title='+escape(pageTitle)+'&parentId='+parentId;
				document.getElementById('popupWindow').style.display = 'none';
				location.href = pageLink;
			}
            }
		}else{
			lastPopedupWindow.style.display = 'none';
		}
	}

	function toggle(){
		var toggleMenu = document.getElementById('toggleMenu');
        if(toggleMenu.style.display=='none'){
			toggleMenu.style.display = 'block';
			document.getElementById('toggleMenuText').innerHTML = '&laquo; Hide all editing options';
		}else{
			toggleMenu.style.display = 'none';
			document.getElementById('toggleMenuText').innerHTML = 'Show all editing options &raquo;';
		}
	}
function showAddCommentsForm(id){
    if(document.getElementById(id).style.display=='block'){
        document.getElementById(id).style.display = 'none';
    }else{
        document.getElementById(id).style.display = 'block';
    }
}
/*-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-*/
function getAllChildren(e) {
  // Returns all children of element. Workaround required for IE5/Windows. Ugh.
  return e.all ? e.all : e.getElementsByTagName('*');
}

document.getElementsBySelector = function(selector) {
  // Attempt to fail gracefully in lesser browsers
  if (!document.getElementsByTagName) {
    return new Array();
  }
  // Split selector in to tokens
  var tokens = selector.split(' ');
  var currentContext = new Array(document);
  for (var i = 0; i < tokens.length; i++) {
    token = tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');;
    if (token.indexOf('#') > -1) {
      // Token is an ID selector
      var bits = token.split('#');
      var tagName = bits[0];
      var id = bits[1];
      var element = document.getElementById(id);
      if (tagName && element.nodeName.toLowerCase() != tagName) {
        // tag with that ID not found, return false
        return new Array();
      }
      // Set currentContext to contain just this element
      currentContext = new Array(element);
      continue; // Skip to next token
    }
    if (token.indexOf('.') > -1) {
      // Token contains a class selector
      var bits = token.split('.');
      var tagName = bits[0];
      var className = bits[1];
      if (!tagName) {
        tagName = '*';
      }
      // Get elements matching tag, filter them for class selector
      var found = new Array;
      var foundCount = 0;
      for (var h = 0; h < currentContext.length; h++) {
        var elements;
        if (tagName == '*') {
            elements = getAllChildren(currentContext[h]);
        } else {
            elements = currentContext[h].getElementsByTagName(tagName);
        }
        for (var j = 0; j < elements.length; j++) {
          found[foundCount++] = elements[j];
        }
      }
      currentContext = new Array;
      var currentContextIndex = 0;
      for (var k = 0; k < found.length; k++) {
        if (found[k].className && found[k].className.match(new RegExp('\\b'+className+'\\b'))) {
          currentContext[currentContextIndex++] = found[k];
        }
      }
      continue; // Skip to next token
    }
    // Code to deal with attribute selectors
    if (token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)) {
      var tagName = RegExp.$1;
      var attrName = RegExp.$2;
      var attrOperator = RegExp.$3;
      var attrValue = RegExp.$4;
      if (!tagName) {
        tagName = '*';
      }
      // Grab all of the tagName elements within current context
      var found = new Array;
      var foundCount = 0;
      for (var h = 0; h < currentContext.length; h++) {
        var elements;
        if (tagName == '*') {
            elements = getAllChildren(currentContext[h]);
        } else {
            elements = currentContext[h].getElementsByTagName(tagName);
        }
        for (var j = 0; j < elements.length; j++) {
          found[foundCount++] = elements[j];
        }
      }
      currentContext = new Array;
      var currentContextIndex = 0;
      var checkFunction; // This function will be used to filter the elements
      switch (attrOperator) {
        case '=': // Equality
          checkFunction = function(e) { return (e.getAttribute(attrName) == attrValue); };
          break;
        case '~': // Match one of space seperated words
          checkFunction = function(e) { return (e.getAttribute(attrName).match(new RegExp('\\b'+attrValue+'\\b'))); };
          break;
        case '|': // Match start with value followed by optional hyphen
          checkFunction = function(e) { return (e.getAttribute(attrName).match(new RegExp('^'+attrValue+'-?'))); };
          break;
        case '^': // Match starts with value
          checkFunction = function(e) { return (e.getAttribute(attrName).indexOf(attrValue) == 0); };
          break;
        case '$': // Match ends with value - fails with "Warning" in Opera 7
          checkFunction = function(e) { return (e.getAttribute(attrName).lastIndexOf(attrValue) == e.getAttribute(attrName).length - attrValue.length); };
          break;
        case '*': // Match ends with value
          checkFunction = function(e) { return (e.getAttribute(attrName).indexOf(attrValue) > -1); };
          break;
        default :
          // Just test for existence of attribute
          checkFunction = function(e) { return e.getAttribute(attrName); };
      }
      currentContext = new Array;
      var currentContextIndex = 0;
      for (var k = 0; k < found.length; k++) {
        if (checkFunction(found[k])) {
          currentContext[currentContextIndex++] = found[k];
        }
      }
      // alert('Attribute Selector: '+tagName+' '+attrName+' '+attrOperator+' '+attrValue);
      continue; // Skip to next token
    }

    if (!currentContext[0]){
    	return;
    }

    // If we get here, token is JUST an element (not a class or ID selector)
    tagName = token;
    var found = new Array;
    var foundCount = 0;
    for (var h = 0; h < currentContext.length; h++) {
      var elements = currentContext[h].getElementsByTagName(tagName);
      for (var j = 0; j < elements.length; j++) {
        found[foundCount++] = elements[j];
      }
    }
    currentContext = found;
  }
  return currentContext;
}

var xmlhttp
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	  try {
	  xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
	 } catch (e) {
	  try {
	    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
	  } catch (E) {
	   xmlhttp=false
	  }
	 }
	@else
	 xmlhttp=false
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	 try {
	  xmlhttp = new XMLHttpRequest();
	 } catch (e) {
	  xmlhttp=false
	 }
	}
	function myXMLHttpRequest() {
	  var xmlhttplocal;
	  try {
	    xmlhttplocal= new ActiveXObject("Msxml2.XMLHTTP")
	 } catch (e) {
	  try {
	    xmlhttplocal= new ActiveXObject("Microsoft.XMLHTTP")
	  } catch (E) {
	    xmlhttplocal=false;
	  }
	 }

	if (!xmlhttplocal && typeof XMLHttpRequest!='undefined') {
	 try {
	  var xmlhttplocal = new XMLHttpRequest();
	 } catch (e) {
	  var xmlhttplocal=false;
	  alert('couldn\'t create xmlhttp object');
	 }
	}
	return(xmlhttplocal);
}

function sndReq(vote,id_num,ip_num,units) {
	var theUL = document.getElementById('unit_ul'+id_num); // the UL

	// switch UL with a loading div
	//theUL.innerHTML = '<div class="loading"></div>';
    xmlhttp.open('get', 'http://www.hotwhathow.com/sitegen/generic/includes/ajax/rpc.php?j='+vote+'&q='+id_num+'&t='+ip_num+'&c='+units);
    xmlhttp.onreadystatechange = handleResponse;
    xmlhttp.send(null);
}

function handleResponse() {
  if(xmlhttp.readyState == 4){
		if (xmlhttp.status == 200){

        var response = xmlhttp.responseText;
        var update = new Array();

        if(response.indexOf('|') != -1) {
            update = response.split('|');
            changeText(update[0], update[1]);
        }
		}
    }
}
function getComments(pageId, start){
    document.getElementById('comments').innerHTML = '<div class="loading"></div>';
    xmlhttp = myXMLHttpRequest();
    xmlhttp.open('get', 'http://www.hotwhathow.com/sitegen/generic/includes/ajax/comments.php?id='+pageId+'&s='+start);
    xmlhttp.onreadystatechange = getCommentsResponse;
    xmlhttp.send(null);
}
function getCommentsResponse(){
  if(xmlhttp.readyState == 4){
		if (xmlhttp.status == 200){
            var siteUrl = 'http://www.hotwhathow.com/';
            var data = xmlhttp.responseText.replace('__SITE__', siteUrl);
            document.getElementById('comments').innerHTML = data;
		}
    }
}

http = '';
function rateComments(params, id){
    document.getElementById(id).innerHTML = '<div class="loading"></div>';
    http = myXMLHttpRequest();
    http.open('get', 'http://www.hotwhathow.com/sitegen/generic/includes/ajax/'+params);
    http.onreadystatechange = rateCommentsResponse;
    http.send(null);
}
function rateCommentsResponse(){
  if(http.readyState == 4){
		if (http.status == 200){
            var t = http.responseText.split('|');
            document.getElementById(t[0]).innerHTML = t[1];
		}
    }
}
function changeText( div2show, text ) {
    // Detect Browser
    var IE = (document.all) ? 1 : 0;
    var DOM = 0;
    if (parseInt(navigator.appVersion) >=5) {DOM=1};

    // Grab the content from the requested "div" and show it in the "container"
    if (DOM) {
        var viewer = document.getElementById(div2show);
        viewer.innerHTML = text;
    }  else if(IE) {
        document.all[div2show].innerHTML = text;
    }
}

/* =============================================================== */
var ratingAction = {
		'a.rater' : function(element){
			element.onclick = function(){

			var parameterString = this.href.replace(/.*\?(.*)/, "$1"); // onclick="sndReq('j=1&q=2&t=127.0.0.1&c=5');
			var parameterTokens = parameterString.split("&"); // onclick="sndReq('j=1,q=2,t=127.0.0.1,c=5');
			var parameterList = new Array();

			for (j = 0; j < parameterTokens.length; j++) {
				var parameterName = parameterTokens[j].replace(/(.*)=.*/, "$1"); // j
				var parameterValue = parameterTokens[j].replace(/.*=(.*)/, "$1"); // 1
				parameterList[parameterName] = parameterValue;
			}
			var theratingID = parameterList['q'];
			var theVote = parameterList['j'];
			var theuserIP = parameterList['t'];
			var theunits = parameterList['c'];

			//for testing	alert('sndReq('+theVote+','+theratingID+','+theuserIP+','+theunits+')'); return false;
			sndReq(theVote,theratingID,theuserIP,theunits); return false;
			}
		}

	};
/*END RATING SYSTEM*/
var rssNews = new Array();
function getRSS(){
		//alert("5 = http://feeds.nytimes.com/nyt/rss/Europe");
			rssNews[0] = '<a href="http://feeds.nytimes.com/click.phdo?i=f4f56d0f5e1fb9cb39216cc4b1a3d92b" target="_blank" title="Italian Cities Plan to Shut Roma Camps">Italian Cities Plan to Shut Roma Camps</a>';
				rssNews[1] = '<a href="http://feeds.nytimes.com/click.phdo?i=8e6f8b9f56c82a897d269bf42431af81" target="_blank" title="Six Convicted of Sexual Crimes at Portuguese Children\'s Home">Six Convicted of Sexual Crimes at Portuguese Children\'</a>';
				rssNews[2] = '<a href="http://feeds.nytimes.com/click.phdo?i=b8e4cb95cf860d1c7a659319ec0e732e" target="_blank" title="European Trade Chief Accused of Anti-Semitism">European Trade Chief Accused of Anti-Semitism</a>';
				rssNews[3] = '<a href="http://feeds.nytimes.com/click.phdo?i=0b3bd6e2b8f121d7c7b97039ebc302d5" target="_blank" title="Turkey May Let U.S. Equipment Pass">Turkey May Let U.S. Equipment Pass</a>';
				rssNews[4] = '<a href="http://feeds.nytimes.com/click.phdo?i=5fd9388b7d52db2c4bcafd304a12ab33" target="_blank" title="Basque Separatists Declare Cease-Fire">Basque Separatists Declare Cease-Fire</a>';
				rssNews[5] = '<a href="http://feeds.nytimes.com/click.phdo?i=a34e29919a5202f349775fbca250e37b" target="_blank" title="Putin Extends Ban on Russian Grain Exports">Putin Extends Ban on Russian Grain Exports</a>';
				rssNews[6] = '<a href="http://feeds.nytimes.com/click.phdo?i=fa7b14356b43ff726c78bd25b9b9851c" target="_blank" title="A Greener Champagne Bottle">A Greener Champagne Bottle</a>';
				rssNews[7] = '<a href="http://feeds.nytimes.com/click.phdo?i=66cba466405df117b48441396f6859fb" target="_blank" title="A Physician Examines His Novels">A Physician Examines His Novels</a>';
				rssNews[8] = '<a href="http://feeds.nytimes.com/click.phdo?i=c80a802e15b95e69566585d93538fdd6" target="_blank" title="In Denying a Sex Scandal, a British Minister Focuses Attention on the Issue">In Denying a Sex Scandal, a British Minister Focuses At</a>';
				rssNews[9] = '<a href="http://feeds.nytimes.com/click.phdo?i=1366d4d85bd60806056dcf7c5df037cf" target="_blank" title="World Briefing | Europe: Turkey: U.N. Panel Gets Report on Flotilla Raid">World Briefing | Europe: Turkey: U.N. Panel Gets Report</a>';
				rssNews[10] = '<a href="http://feeds.nytimes.com/click.phdo?i=d4ffbb2a55d4de08b09d1ab1e4053ef3" target="_blank" title="World Briefing | Europe: France: Minister Admits Lending Support on Award">World Briefing | Europe: France: Minister Admits Lendin</a>';
				rssNews[11] = '<a href="http://feeds.nytimes.com/click.phdo?i=9958343bb8ebd89b291b281f62af3af6" target="_blank" title="Turkish Action Film Depicts Israeli Raid">Turkish Action Film Depicts Israeli Raid</a>';
				rssNews[12] = '<a href="http://feeds.nytimes.com/click.phdo?i=3ca5790b2b8845288a3ff053d5dce768" target="_blank" title="Killing Spree in Slovakia Taps Into a Troubled Vein">Killing Spree in Slovakia Taps Into a Troubled Vein</a>';
				rssNews[13] = '<a href="http://feeds.nytimes.com/click.phdo?i=d0882a31438ae7a2f2667787af003b03" target="_blank" title="Blair\'s Book Reveals \'Tears\' but No Regrets on Iraq">Blair\'s Book Reveals \'Tears\' but No Regrets on Iraq</a>';
				rssNews[14] = '<a href="http://feeds.nytimes.com/click.phdo?i=6376939e5c0a5fecf9220c5764a10cca" target="_blank" title="Sweden Reopens Rape Investigation of WikiLeaks Founder">Sweden Reopens Rape Investigation of WikiLeaks Founder</a>';
				rssNews[15] = '<a href="http://feeds.nytimes.com/click.phdo?i=ddf22bab9c355110b77dc9fa20522636" target="_blank" title="Cardinal, Who Mediated in Belgian Abuse Case, Says He Was Misled">Cardinal, Who Mediated in Belgian Abuse Case, Says He W</a>';
				rssNews[16] = '<a href="http://feeds.nytimes.com/click.phdo?i=c12c59424ecc72de00b07592a0458b75" target="_blank" title="E.U. Casts Legal Doubt on French Roma Expulsion">E.U. Casts Legal Doubt on French Roma Expulsion</a>';
				rssNews[17] = '<a href="http://feeds.nytimes.com/click.phdo?i=b8898b1ae7f494f3803b24d1103a9f7b" target="_blank" title="World Briefing | Europe: Britain: Inquest Into Spy\'s Death">World Briefing | Europe: Britain: Inquest Into Spy\'s D</a>';
				rssNews[18] = '<a href="http://feeds.nytimes.com/click.phdo?i=c06eabc7e9ed49d9a6d6712bc7f648cd" target="_blank" title="World Briefing | Europe: Poland: Afghan Costs Crimping Force Modernization, Leader Says">World Briefing | Europe: Poland: Afghan Costs Crimping </a>';
				rssNews[19] = '<a href="http://feeds.nytimes.com/click.phdo?i=d9ff926b70d302ebd4dd6d02b68fe22d" target="_blank" title="World Briefing | Europe: The Netherlands: 2 Yemenis Freed">World Briefing | Europe: The Netherlands: 2 Yemenis Fre</a>';
				rssNews[20] = '<a href="http://feeds.nytimes.com/click.phdo?i=693015d711891fea2e44057e91a5d9b6" target="_blank" title="World Briefing | Europe: Germany: Citizen Held by U.S. Is Suspected of Ties to Terrorism">World Briefing | Europe: Germany: Citizen Held by U.S. </a>';
				rssNews[21] = '<a href="http://feeds.nytimes.com/click.phdo?i=81a0f77e93abe4ece3164a576d9df2c4" target="_blank" title="Scantily Clad Dancers Are Nowhere to Be Found When Turkey Plays">Scantily Clad Dancers Are Nowhere to Be Found When Turk</a>';
				rssNews[22] = '<a href="http://feeds.nytimes.com/click.phdo?i=a31a0da194067310c00f79c9dbdf7d4e" target="_blank" title="Terrorist Ties Doubted in Amsterdam Arrests">Terrorist Ties Doubted in Amsterdam Arrests</a>';
				rssNews[23] = '<a href="http://feeds.nytimes.com/click.phdo?i=05d4eac3f96f71e74783841ea66fe4af" target="_blank" title="France Mounts Defense of Its Deportation of Roma">France Mounts Defense of Its Deportation of Roma</a>';
				rssNews[24] = '<a href="http://feeds.nytimes.com/click.phdo?i=3d6686945a755486b9af48e9ac6e54e8" target="_blank" title="Florence Journal: Who Owns Michelangelo\'s \'David\'\'">Florence Journal: Who Owns Michelangelo\'s \'David\'\'</a>';
				rssNews[25] = '<a href="http://feeds.nytimes.com/click.phdo?i=9f3d275c4d23498e8cdeb41d0710f268" target="_blank" title="World Briefing | Europe: Germany: New Guides for Reporting Clergy Sex Abuse">World Briefing | Europe: Germany: New Guides for Report</a>';
				rssNews[26] = '<a href="http://feeds.nytimes.com/click.phdo?i=bc22b50491867ddfe177727aac5d812e" target="_blank" title="World Briefing | Europe: Russia: Monthly Protest Goes On, but With Arrests">World Briefing | Europe: Russia: Monthly Protest Goes O</a>';
				rssNews[27] = '<a href="http://feeds.nytimes.com/click.phdo?i=85d90ba5d16e69f4785e0f9613e0e3da" target="_blank" title="World Briefing | Europe: Greece: Tougher Smoking Ban Takes Effect Wednesday">World Briefing | Europe: Greece: Tougher Smoking Ban Ta</a>';
				rssNews[28] = '<a href="http://feeds.nytimes.com/click.phdo?i=5e3d47841c388d7887e5cab38abfa6ca" target="_blank" title="Spain Breaks Up a Trafficking Ring for Male Prostitution">Spain Breaks Up a Trafficking Ring for Male Prostitutio</a>';
				rssNews[29] = '<a href="http://feeds.nytimes.com/click.phdo?i=2e260993d5833b2b3ad42350dbd24af6" target="_blank" title="Qaddafi Sets Up Camp Again in Rome">Qaddafi Sets Up Camp Again in Rome</a>';
				rssNews[30] = '<a href="http://feeds.nytimes.com/click.phdo?i=a0b36c0d780a9cfd7fc4e50ba487cc33" target="_blank" title="Slovakia Stunned by Rampaging Gunman">Slovakia Stunned by Rampaging Gunman</a>';
				rssNews[31] = '<a href="http://feeds.nytimes.com/click.phdo?i=1e5e4ac3c3998a053dd9f0dee61b3b86" target="_blank" title="Memo From Berlin: As Past Recedes, Germans Reconsider the Draft">Memo From Berlin: As Past Recedes, Germans Reconsider t</a>';
				rssNews[32] = '<a href="http://feeds.nytimes.com/click.phdo?i=546b0cb93fe32c4bbab7cd0cecde2a2b" target="_blank" title="World Briefing | Europe: Belgium: Cardinal Apologizes for Suggesting Temporary Cover-Up of Bishop\'s Abuse">World Briefing | Europe: Belgium: Cardinal Apologizes f</a>';
				rssNews[33] = '<a href="http://feeds.nytimes.com/click.phdo?i=aaed28dd6982a2b7b5b2184cf8a0c15d" target="_blank" title="World Briefing | Europe: Germany: Bank Board Member Will Not Quit Over Remarks About Minorities">World Briefing | Europe: Germany: Bank Board Member Wil</a>';
				rssNews[34] = '<a href="http://feeds.nytimes.com/click.phdo?i=9ebe6d5175b74f0ad943e0fa3f40809c" target="_blank" title="Russia: Putin Defends Crackdowns">Russia: Putin Defends Crackdowns</a>';
				rssNews[35] = '<a href="http://feeds.nytimes.com/click.phdo?i=a1c0eac994f5409a37245752998883e0" target="_blank" title="German Official Defends Comments on Race">German Official Defends Comments on Race</a>';
				rssNews[36] = '<a href="http://feeds.nytimes.com/click.phdo?i=30686d1d25f305eea850fb40f7a67bb6" target="_blank" title="Fossil Hunters in Romania Find a 2-Clawed Relative of Velociraptor">Fossil Hunters in Romania Find a 2-Clawed Relative of V</a>';
				rssNews[37] = '<a href="http://feeds.nytimes.com/click.phdo?i=424bb7e613fb5b4fecc04357ffdf4291" target="_blank" title="Pakistan\'s Cricket Conspiracy Theory">Pakistan\'s Cricket Conspiracy Theory</a>';
				rssNews[38] = '<a href="http://feeds.nytimes.com/click.phdo?i=05b1be3365cc79a8e443ccb5f2feb041" target="_blank" title="WikiLeaks Chief Decries \'Legal Circus\'">WikiLeaks Chief Decries \'Legal Circus\'</a>';
				rssNews[39] = '<a href="http://feeds.nytimes.com/click.phdo?i=30e607c402723c28938e3ee6989cb2cd" target="_blank" title="Video of British Labour Party Debate">Video of British Labour Party Debate</a>';
				rssNews[40] = '<a href="http://feeds.nytimes.com/click.phdo?i=e1f63e8daa4d3c9593d9a6a668d5ba40" target="_blank" title="Books of The Times: Simon Wiesenthal, the Man Who Refused to Forget">Books of The Times: Simon Wiesenthal, the Man Who Refus</a>';
				rssNews[41] = '<a href="http://feeds.nytimes.com/click.phdo?i=7c3744bc663a44815eba43a40083538f" target="_blank" title="Book Sets Off Immigration Debate in Germany">Book Sets Off Immigration Debate in Germany</a>';
				rssNews[42] = '<a href="http://feeds.nytimes.com/click.phdo?i=eed77f0af5a8fce7955d6ccb097644c7" target="_blank" title="Mick Lally, Irish Actor and Founder of the Druid Theater, Dies at 64">Mick Lally, Irish Actor and Founder of the Druid Theate</a>';
				rssNews[43] = '<a href="http://feeds.nytimes.com/click.phdo?i=d803ad9688546cdb6d943f571f0e2718" target="_blank" title="Raimon Panikkar, Catholic Theologian, Is Dead at 91">Raimon Panikkar, Catholic Theologian, Is Dead at 91</a>';
				rssNews[44] = '<a href="http://feeds.nytimes.com/click.phdo?i=2c4f7be4ae505753463f678610e290cd" target="_blank" title="Letter from Europe: In Poland, a Memorial Becomes a Battleground">Letter from Europe: In Poland, a Memorial Becomes a Bat</a>';
			showRSS();
}
function showRSS(){
	var rssFeed = document.getElementById("rssFeed");
	rssFeed.innerHTML = "rss will be shows here";
	total_rss = rssNews.length;
	rss_id =  Math.round((Math.random()*total_rss));
	if(rss_id>=total_rss){
		rss_id = 0;
	}
	rssFeed.innerHTML = rssNews[rss_id];
	//var t = setTimeout("showRSS()", 4000);
}
