    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=c86c86709c6fd223fdc15654bbe9e36c" target="_blank" title="Greek Workers Strike Against New Round of Austerity">Greek Workers Strike Against New Round of Austerity</a>';
				rssNews[1] = '<a href="http://feeds.nytimes.com/click.phdo?i=0585d627faa2a4a7b80bd32563580689" target="_blank" title="Emil Boc, Romanian Prime Minister, Resigns Amid Protests">Emil Boc, Romanian Prime Minister, Resigns Amid Protest</a>';
				rssNews[2] = '<a href="http://feeds.nytimes.com/click.phdo?i=8991817cc8f47e360c1388e1511889ba" target="_blank" title="Merkel and Sarkozy Address Syria, Greece and French Election">Merkel and Sarkozy Address Syria, Greece and French Ele</a>';
				rssNews[3] = '<a href="http://feeds.nytimes.com/click.phdo?i=5623495027c4d4c5ec07bd5d6ebb8dea" target="_blank" title="Roman Catholics Convene to Discuss Sexual Abuse Prevention">Roman Catholics Convene to Discuss Sexual Abuse Prevent</a>';
				rssNews[4] = '<a href="http://feeds.nytimes.com/click.phdo?i=38f26ace729aa4a2d7617beac58bca08" target="_blank" title="Contador, Three-Time Tour de France Champion, Is Found Guilty of Doping">Contador, Three-Time Tour de France Champion, Is Found </a>';
				rssNews[5] = '<a href="http://feeds.nytimes.com/click.phdo?i=f520988f2b84ea3aaff3f1f23a4e6434" target="_blank" title="Conservative Wins Runoff for Presidency in Finland">Conservative Wins Runoff for Presidency in Finland</a>';
				rssNews[6] = '<a href="http://feeds.nytimes.com/click.phdo?i=201bdffe17462ca0a66da3ac3e0b7741" target="_blank" title="Russia Rejects Criticism of Its U.N. Veto on Syria">Russia Rejects Criticism of Its U.N. Veto on Syria</a>';
				rssNews[7] = '<a href="http://feeds.nytimes.com/click.phdo?i=11d47088112cd83b9051f449ac379cf9" target="_blank" title="Greece to Build Fence on Turkish Border to Curb Illegal Immigrants">Greece to Build Fence on Turkish Border to Curb Illegal</a>';
				rssNews[8] = '<a href="http://feeds.nytimes.com/click.phdo?i=1d30d6e99f3623442f6329ec330764e6" target="_blank" title="E.U. Rebuffs China\'s Challenge to Airline Emission System">E.U. Rebuffs China\'s Challenge to Airline Emission Sys</a>';
				rssNews[9] = '<a href="http://feeds.nytimes.com/click.phdo?i=0e70e5df8e7893cba1efb0b03c8dcf0a" target="_blank" title="In the Margaret Thatcher Style">In the Margaret Thatcher Style</a>';
				rssNews[10] = '<a href="http://feeds.nytimes.com/click.phdo?i=5eba77b27922f642080d12589fbe632f" target="_blank" title="Letter from Europe: U.S. Sees Europe as Not Pulling Its Weight Militarily">Letter from Europe: U.S. Sees Europe as Not Pulling Its</a>';
				rssNews[11] = '<a href="http://feeds.nytimes.com/click.phdo?i=2176cc0adcd18defe8aaf26c040d9baa" target="_blank" title="World Briefing | Europe: Britain: Judge Orders Release on Bail of Militant Accused of Qaeda Role">World Briefing | Europe: Britain: Judge Orders Release </a>';
				rssNews[12] = '<a href="http://feeds.nytimes.com/click.phdo?i=e54ede8fc57ef72f311871054b23e51b" target="_blank" title="World Briefing | Europe: Italy: Court Reverses Conviction of Former Guantįnamo Prisoner">World Briefing | Europe: Italy: Court Reverses Convicti</a>';
				rssNews[13] = '<a href="http://feeds.nytimes.com/click.phdo?i=5a6d83ec587028e1e32680cdd3067732" target="_blank" title="World Briefing | Europe: Britain: Quiet Anniversary for Queen Elizabeth II">World Briefing | Europe: Britain: Quiet Anniversary for</a>';
				rssNews[14] = '<a href="http://feeds.nytimes.com/click.phdo?i=65782d11e50ecb3e267bd02995b3871f" target="_blank" title="Hundreds of Deaths as Europe Struggles With Snow Amid an Intense Cold Snap">Hundreds of Deaths as Europe Struggles With Snow Amid a</a>';
				rssNews[15] = '<a href="http://feeds.nytimes.com/click.phdo?i=e2176d1b3110244c0ab78e0464be53f7" target="_blank" title="Greece Agrees to Harsh New Spending Cuts">Greece Agrees to Harsh New Spending Cuts</a>';
				rssNews[16] = '<a href="http://feeds.nytimes.com/click.phdo?i=a7299f6253b045b08bf6518b9de89a7d" target="_blank" title="With Focus on Economy, National Front Makes Gains in Northern France">With Focus on Economy, National Front Makes Gains in No</a>';
				rssNews[17] = '<a href="http://feeds.nytimes.com/click.phdo?i=b3279bb87af4d8a539e4870343e88133" target="_blank" title="Briefly: Education: Collaboration Brings Google to French Business School">Briefly: Education: Collaboration Brings Google to Fren</a>';
				rssNews[18] = '<a href="http://feeds.nytimes.com/click.phdo?i=a305e23a02661b63b34f8e7e524f9dc0" target="_blank" title="Protesters Throng Frozen Moscow in Anti-Putin March">Protesters Throng Frozen Moscow in Anti-Putin March</a>';
				rssNews[19] = '<a href="http://feeds.nytimes.com/click.phdo?i=bcb261bc2882a4f483e6ea7b5fb9efcd" target="_blank" title="Panetta and Clinton Reassure Europe on Defense">Panetta and Clinton Reassure Europe on Defense</a>';
				rssNews[20] = '<a href="http://feeds.nytimes.com/click.phdo?i=563dc8b187d34bf1e3870d7161a6e12a" target="_blank" title="Greek Talks at a Delicate Point, Official Says">Greek Talks at a Delicate Point, Official Says</a>';
				rssNews[21] = '<a href="http://feeds.nytimes.com/click.phdo?i=02db0344264f13dc02eaf606d2e48313" target="_blank" title="Tempers Rise Over Gas Supply to West From Russia">Tempers Rise Over Gas Supply to West From Russia</a>';
				rssNews[22] = '<a href="http://feeds.nytimes.com/click.phdo?i=4b4a6f779ff7202cfebe0215e5276664" target="_blank" title="Chris Huhne Resignation in Britain Shakes Cameron\'s Coalition">Chris Huhne Resignation in Britain Shakes Cameron\'s Co</a>';
				rssNews[23] = '<a href="http://feeds.nytimes.com/click.phdo?i=dfecc2da3e5e0737e50c69196b9b90b1" target="_blank" title="Greek Premier Is Tested in Impasse Over Pay Cuts">Greek Premier Is Tested in Impasse Over Pay Cuts</a>';
				rssNews[24] = '<a href="http://feeds.nytimes.com/click.phdo?i=feef7af90059161128216eef687ccf8f" target="_blank" title="Putin Aide Says Foreign Hands Are Behind Protests">Putin Aide Says Foreign Hands Are Behind Protests</a>';
				rssNews[25] = '<a href="http://feeds.nytimes.com/click.phdo?i=ac265eae8a50ff2ea1e3290cbd3dba7c" target="_blank" title="World Briefing | Europe: U.N. Court Upholds German Immunity From Suits by Victims of Nazi Atrocities">World Briefing | Europe: U.N. Court Upholds German Immu</a>';
				rssNews[26] = '<a href="http://feeds.nytimes.com/click.phdo?i=d9d4946a57085e1401275cdeeff16b3e" target="_blank" title="E.U. Presses Google to Delay Privacy Policy Changes">E.U. Presses Google to Delay Privacy Policy Changes</a>';
				rssNews[27] = '<a href="http://feeds.nytimes.com/click.phdo?i=209fa14a120669291175f603d92b5dbc" target="_blank" title="Open Borders and Wealth Lure Thieves to Geneva">Open Borders and Wealth Lure Thieves to Geneva</a>';
				rssNews[28] = '<a href="http://feeds.nytimes.com/click.phdo?i=03ab19198f7373c275c939fda2ff7cd2" target="_blank" title="Anti-Putin Protesters Challenged by Russia\'s Subzero Forecast">Anti-Putin Protesters Challenged by Russia\'s Subzero F</a>';
				rssNews[29] = '<a href="http://feeds.nytimes.com/click.phdo?i=71c6cce4cf3095e022d378e9dbfa5dab" target="_blank" title="World Briefing | Europe: Britain: Assange Hearing Ends">World Briefing | Europe: Britain: Assange Hearing Ends</a>';
				rssNews[30] = '<a href="http://feeds.nytimes.com/click.phdo?i=f064c3deeed968cfce218dcbd1896e61" target="_blank" title="Hacking Questions at Times of London">Hacking Questions at Times of London</a>';
				rssNews[31] = '<a href="http://feeds.nytimes.com/click.phdo?i=363ccb3e7261b7a40e382ed403c6ab25" target="_blank" title="The Powerful Resist Change to Greek Tax System">The Powerful Resist Change to Greek Tax System</a>';
				rssNews[32] = '<a href="http://feeds.nytimes.com/click.phdo?i=7ffb07270e1d042d5a3615380631b4fb" target="_blank" title="Fessenheim Journal: Wishing Upon an Atom in a Tiny French Village">Fessenheim Journal: Wishing Upon an Atom in a Tiny Fren</a>';
				rssNews[33] = '<a href="http://feeds.nytimes.com/click.phdo?i=ba9b68260694e8d51bfe0c73d937a0dc" target="_blank" title="World Briefing | Europe: Turkey: Ex-Chief of Military Is Charged">World Briefing | Europe: Turkey: Ex-Chief of Military I</a>';
				rssNews[34] = '<a href="http://feeds.nytimes.com/click.phdo?i=edfdf3cb97a5a3fde3c9519aa5c0f564" target="_blank" title="Greek Debt Talks Progress, but Budget Fight Threatens Bailout">Greek Debt Talks Progress, but Budget Fight Threatens B</a>';
				rssNews[35] = '<a href="http://feeds.nytimes.com/click.phdo?i=7eb98093dd547f18fb6d069fa0732c3f" target="_blank" title="An Olympic Plethora of London Homes">An Olympic Plethora of London Homes</a>';
				rssNews[36] = '<a href="http://feeds.nytimes.com/click.phdo?i=f78c18021d7ee5712caf9241efb09454" target="_blank" title="Putin Concedes He May Not Win 1st Round of Russian Elections">Putin Concedes He May Not Win 1st Round of Russian Elec</a>';
				rssNews[37] = '<a href="http://feeds.nytimes.com/click.phdo?i=5b3f11b15711800f15f742e21fefce1a" target="_blank" title="Soldier Says Syrian Atrocities Forced Him to Defect">Soldier Says Syrian Atrocities Forced Him to Defect</a>';
				rssNews[38] = '<a href="http://feeds.nytimes.com/click.phdo?i=778c8ebe685bb57eaded181878563e35" target="_blank" title="France Knew of Breast Implant Problems in 1996">France Knew of Breast Implant Problems in 1996</a>';
				rssNews[39] = '<a href="http://feeds.nytimes.com/click.phdo?i=abd85b2e791f4808315f4561dfc3591d" target="_blank" title="WORLD: An Interview with Jelle Visser">WORLD: An Interview with Jelle Visser</a>';
				rssNews[40] = '<a href="http://feeds.nytimes.com/click.phdo?i=cea7174e3754cc3bff53e16a36e1cf91" target="_blank" title="Cold Weather Grips Europe">Cold Weather Grips Europe</a>';
				rssNews[41] = '<a href="http://feeds.nytimes.com/click.phdo?i=fe19db5f1905e0e3770ab9fb0a2bbfbe" target="_blank" title="WORLD: Assange Fights Extradition">WORLD: Assange Fights Extradition</a>';
				rssNews[42] = '<a href="http://feeds.nytimes.com/click.phdo?i=1f4ec863a79b0c3551050ebc4b58e9ac" target="_blank" title="St. Moritz Journal: With Leaning Tower of Pisa Straighter, Other Contenders">St. Moritz Journal: With Leaning Tower of Pisa Straight</a>';
				rssNews[43] = '<a href="http://feeds.nytimes.com/click.phdo?i=76a59703c02ed6125df5cc165c6d9b31" target="_blank" title="The Lede Blog: Russian Diplomat Blocking U.N. Action in Syria Facilitated It in Bosnia">The Lede Blog: Russian Diplomat Blocking U.N. Action in</a>';
				rssNews[44] = '<a href="http://feeds.nytimes.com/click.phdo?i=ad703252d282bbf4053cd85e545aa639" target="_blank" title="The Lede Blog: Travelers Say They Were Denied Entry to U.S. for Twitter Jokes">The Lede Blog: Travelers Say They Were Denied Entry to </a>';
				rssNews[45] = '<a href="http://feeds.nytimes.com/click.phdo?i=0ee0b476fe5363fd0632c94605ad7b70" target="_blank" title="The Lede Blog: Paratroopers\' Anti-Putin Song Stirs the Opposition">The Lede Blog: Paratroopers\' Anti-Putin Song Stirs the</a>';
				rssNews[46] = '<a href="http://feeds.nytimes.com/click.phdo?i=e46c2dea2c600d45817a25a8f80e5f2c" target="_blank" title="Antoni Tąpies, Spanish Abstract Painter, Dies at 88">Antoni Tąpies, Spanish Abstract Painter, Dies at 88</a>';
				rssNews[47] = '<a href="http://feeds.nytimes.com/click.phdo?i=e06cc2a2ec5d5f776f8f465e215f4c0e" target="_blank" title="Op-Ed Columnist: Java and Justice">Op-Ed Columnist: Java and Justice</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);
}

