$(document).ready(function () {
    // Expand Panel
    $("#open").click(function () {
        $("div#panel").slideDown("slow");

    });

    // Collapse Panel
    $("#close").click(function () {
        $("div#panel").slideUp("slow");
    });



    $('div.wpsc_checkout_table div:odd').css({
        'marginRight': '13px'
    });

    $('.custom_meta').each(function () {
        if ($(this).hasClass("features_list")) {
		// list items
		$(".theme_features ul").prepend($(this).html());
		$(this).remove();

}
 

    });
    $('.custom_meta:even').css({
        marginRight: "0px"
    });
    $('.theme_features li:odd').css({
        marginLeft: "0px"
    });
    
    $("#infinite").scrollable({
        size: 6,
        clickable: false
    });
    $('.scrollable a img,#header_home .right a .wrapper img:eq(1)').css({
        opacity: 0.75
    });
    $('.scrollable a img').hover(function () {
        $(this).animate({
            opacity: 1
        },
        {
            duration: 200
        })
    },
    function () {
        $(this).animate({
            opacity: 0.75
        },
        {
            duration: 200
        })
    });
    $('a.right').hover(function () {
        $(this).css({
            backgroundPosition: "bottom right"
        })
    },
    function () {
        $(this).css({
            backgroundPosition: "top right"
        })
    });
    $('a.left').hover(function () {
        $(this).css({
            backgroundPosition: "bottom left"
        })
    },
    function () {
        $(this).css({
            backgroundPosition: "top left"
        })
    });
    $('div.right a').hover(function () {
        $(this).find('.txt').animate({
            top: '0px'
        },
        {
            duration: 500
        })
    },
    function () {
        $(this).find('.txt').animate({
            top: '22px'
        },
        {
            duration: 500
        })
    })
});
function externalLinks() {
    if (!document.getElementsByTagName) return;
    var anchors = document.getElementsByTagName("a");
    for (var i = 0; i < anchors.length; i++) {
        var anchor = anchors[i];
        if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank";
    }
}

			//checkbox
				
            	$('input').checkBox();
				
				// faq accordion

$(".faq").accordion({ autoHeight: false });
				
		


window.onload = externalLinks;