function doit () {
Nifty("div#results,div.rpt,div#next,div#news")
Nifty("div#results","transparent")
Nifty("div#download","big")
Nifty("div#userBox","fixed-height")
Nifty("div.home","fixed-height")
}

function checkLinks (ids) {

expx = ids.split(",")

	if (expx.length>20) {
	x = confirm("Do you really want to check over 20 links? this may take some time...")
	} else {
	x = true
	}
	
	if (x) {
		
		for(var i in expx) {
		idd = expx[i]
		
			if (idd) {
			htmlId = "linkz"+idd+""
			$(htmlId).innerHTML = '<img src="img/loading.gif" />'
			new Ajax.Updater(htmlId, '/check.php', { method: 'post', parameters: { id: idd } });
			}
		
		
		}
	
	xx = "checkLinkBox"
	document.getElementById(xx).innerHTML = "<b>Links updating...</b>"
	}

}

function rate(key,rating) {
new Ajax.Updater("rating", '/ajax.php', { method: 'post', parameters: { to: "rate", key: key, rating: rating } });
}

function enlargeImg (url) {
x = new Image()
x.src = url
height = x.height+25
width = x.width+25
window.open(url,"image","status=0,toolbar=0,location=0,height="+height+",width="+width+"")
}