var oldBgColor;
var defBgColor = "#F5F5F5";
function overThis(iconItem, strColor, scolor) {
	strColor=(!strColor || strColor=="")?defBgColor:strColor;
	oldBgColor=iconItem.style.backgroundColor;
	iconItem.style.backgroundColor=strColor;
	iconItem.style.cursor = 'pointer';
	iconItem.onmouseout = function(){
		outThis(iconItem);
	}
}
//Function to moving off file item
function outThis(iconItem) {
	iconItem.style.backgroundColor=oldBgColor;
}

var oldClassName;
function borderThis(elem, normal, over) {
	oldClassName = elem.className;
	elem.className = over;
	elem.onmouseout = function() {
		elem.className = normal;	
	}
}

function redirect(url){
	if(url && url!="")
		window.location=url;	
}


function toogleThumbail(){
	var os=document.getElementById("rngPhotoThumbail").style;
	var ov=document.getElementById("rngPhotoView");
	var ovs=ov.style;
	if(os.display=="none"){
		os.display="block";
		ov.width="300";
	}else{
		os.display="none";
		ov.width="750";
	}
}

function openWindow(url){
	window.open(url,"_target");
}