// alias to jQuery library, function noConflict release control of the $ variable 
// to whichever library first implemented it
var $j = jQuery.noConflict();

/***************************************
    BLOG CUFON SETTINGS
****************************************/

function setupAdditionalCufonFontReplacement()
{
    Cufon.replace(".articlesLastTitle", {fontWeight: 700});
    Cufon.replace(".articlesItemWrapper .title", {fontWeight: 400});

} // end of function setupAdditionalCufonFontReplacement



function gup(name) {

    name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");

    var regexS = "[\\?&]" + name + "=([^&#]*)";

    var regex = new RegExp(regexS);

    var results = regex.exec(window.location.href);

    if (results == null)

        return "";

    else

        return results[1];

}



function toggleThis(show, subShow) {

    if (show != "#Collaborations") {

        $j('#Collaborations').hide(500);

    }



    if (show != "#Product") {

        $j('#Product').hide(500);

    }



    if (show != "#Media") {

        $j('#Media').hide(500);

    }



    if (show != "#Upcoming") {

        $j('#Upcoming').hide(500);

    }

    if (show != "#About") {

        $j('#About').hide(500);

    }



    $j(subShow).show(500);

    //$j(show).show(500);

    $j('#showAll').show(500);
}

/***************************************
    MAIN CODE - CALL THEN PAGE LOADED
****************************************/
       
// binding action to event onload page

$j(document).ready(

    function() {

        // common.js

        setupGlobal();

        setupCommunityButtons();

        setupToolTipText();

        setupSearchBox();

        setupCufonFontReplacement();

        setupSideBarMiniSlider();

        setupMultiImageLightBox();

        setupSidebarTabsPanel();

        setupLoadingAsynchronousImages();

        setupToolTipImagePreview();

        setupTextLabelImagePreview();

        // this file

        setupAdditionalCufonFontReplacement();

				$j("area[rel^='prettyPhoto']").prettyPhoto();
				
				


    }

);
