/**
 * author:Nina
 */
function $(nId){
	return document.getElementById(nId);
}

function $ce(nElement){
	return document.createElement(nElement);
}

function $ctn(nText){
	return document.createTextNode(nText);
}

function showMore(nDiv){
    sObj = $(nDiv);
    if(sObj)
    {
        sObj.style.display == 'block' ? sObj.style.display = 'none' : sObj.style.display = 'block';
    }
}

function switchActiveCat(nId){
    if($(nId))
    {
        $(nId).className='activeCat';
    }
}

function showSmallMsg(msg){
    $('msg').innerHTML="<div class=\"icone_s info_s\"><div class=\"infotxt_s\">"+msg+"<div></div>";
}

function showMsg(msg){
    $('msg').innerHTML="<div class=\"icone info\"><div class=\"infotxt\">"+msg+"<div></div>";
}

function openDetail(tid){
    window.open('ShowPointsDetails.aspx?tid='+tid,'','height=350, width=480, top=150, left=250, toolbar=no, menubar=no, scrollbars=yes,resizable=no,location=no, status=no');
}

function adclick(param) {
    d = new Date();
    if(document.images) {
        (new Image()).src="/trade/adclick.aspx?id=" + param;
    }
    return true;
}