/* PENTIME JS v1 */
$(document).ready(function(){
        function formatText(index, panel) {
		  return index + "";
	    }
        $(function () {
            $('.slidermain').featpanel({
                easing: "easeInOutExpo",      
                autoPlay: true,              
                delay: 5000,                  
                startStopped: false,            
                animationTime: 1000,           
                hashTags: false,            
                buildNavigation: true,        
        		pauseOnHover: false,         
        		startText: "",     
		        stopText: "",      
		        navigationFormatter: formatText      
            });
        });
});
$(document).ready(function () {
	$('a.basic, a#secondregister').click(function (e) {
		e.preventDefault();
		//$('#userregister').modal();
		$('#emailform').modal();
	});
});
$(document).ready(function(){
$("ul#specialofferscontent").liScroll({travelocity: 0.05});
});
jQuery(document).ready(function($) {
    $('a[rel*=box]').facebox({
        loading_image : 'loading.gif',
    	close_image   : 'closelabel.gif'
	}) 
})
$(document).ready(function(){
	$("a[rel='gallery']").colorbox();
	$(".example6").colorbox({iframe:true, innerWidth:425, innerHeight:344});
});
<!--//--><![CDATA[//><!--

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>
//    function countChecked() {
//     $("input:checked").length;
//      $("div#count").css({'display' : 'none'});
//    }
//$('#tester:checked'),each(
//	function() {
//		$("div#count").addClass("show");
//  }
//);
$(document).ready(function(){
if ($('#tester').attr('checked')) {
		$("#tester").css({'display' : 'block'});
}
});
$(document).ready(function(){
	$('a#showall').click(function(){
		$(this).css({'display' : 'none'});
	});
});
$(document).ready(function(){
	var str = $("div.item2").text();
	$("p#testerpara").html(str);
});

//$(document).ready(function(){
//	var boxes = $('input:checked');

//	$('input').each(function(){
//	$(this).next().css({'display' : 'none'});
//});
//});

//$(document).ready(function(){
//	var boxes = $('input:checked');
//	$(boxes).each(function(){
//		var str = $(this).next().text();
//		$("p#testerpara").html(str);
//	});
//});

//function updateTextArea() {         
//     var allVals = [];
//     $('input:checked').each(function() {
//       allVals.push($(this).next().text());
//     });
//     $('p#testerpara').html(allVals)
//  }
// $(function() {
//   $('#c_b input').click(updateTextArea);
//   updateTextArea();
// });
$(function() {
    $('input[type="checkbox"]:checked').each(function() { 
        var str = $(this).next().text();
        $('div#wishlistedpens ul').append('<li class="'+str+'">'+str+'</li>');
    });
});
$(document).ready(function(){
	$('a#showallcats').click(function(){
		$('div#wishlistcontain').slideToggle("slow");
	});
});
$(document).ready(function()
{
    if(window.opera)
    {
        if ($("a.bookmark").attr("rel") != "")
        {
            $("a.bookmark").attr("rel","sidebar");
        }
    }
    $("a.bookmark").click(function(event)
    {
        event.preventDefault();
        if (window.sidebar)
        {
            window.sidebar.addPanel(this.title, this.href, "");
        }
        else if(window.external)
        {
            window.external.AddFavorite(this.href, this.title);
        }
        else if(window.opera)
        {
            return false;
        }
        else
        {
            alert('Please bookmark this page manually.');
        }
    });
});


