 // Removes leading whitespaces
function LTrim( value ) {
        
        var re = /\s*((\S+\s*)*)/;
        return value.replace(re, "$1");
        
}

// Removes ending whitespaces
function RTrim( value ) {
        
        var re = /((\s*\S+)*)\s*/;
        return value.replace(re, "$1");
        
}

// Removes leading and ending whitespaces
function trim( value ) {
        
        return LTrim(RTrim(value));
        
}




function regenerate(){
window.location.reload()
}

function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}


function changetext(whichcontent,show){
if(show == '1'){
//alert("show");
if (document.getElementById("paging")){document.getElementById("paging").style.display = "none";}
}else{
if (document.getElementById("paging")){document.getElementById("paging").style.display = "block";}
}

if (document.all||document.getElementById){

var textP = whichcontent.split("||");

cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions

cross_el.innerHTML=' <div class="s_con1"><img src="'+ trim(textP [0])+'" style="border:0px" alt="" ></div> <div class="s_con"><div class="left"><div class="footer_text">'+ trim(textP [1])+'</div></div></div>	';
	}
}


function appear(){
document.d1.visibility='show'
}


