var $jq;
if (typeof jQuery!='undefined')
{
    if (typeof $ != 'undefined' && $ != null && $.toString()==jQuery.toString())
        $jq=jQuery;
    else
        $jq=jQuery.noConflict();
}