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