var baseUrl = (window.location.host == 'www.pyrblu.com') ? document.location.protocol+'//www.pyrblu.com/':document.location.protocol+'//localhost/pyrblu.com/';

$(document).ready( function(){

	/* Rounded Corners*/
		
		/* All Around */
		$('.rounded, #overview, #outline, #cos, #blog-content, #white-box, #cos ul, #blog-content p.postmetadata, p.warning, div.price-box').corner("7px");
		
		/* Top */
		$('.round-top, #sidebar li.email-subscribe').corner("7px top");
		
		/* Right */
		$('.round-right, #cos ul li.detriment').corner("7px right");
		
		/* Left */
		$('.round-left, #cos ul li.feature').corner("7px left");
		
		/* Top Left */
		$('.round-top-left').corner("7px top-left");
		
		/* Top Right*/
		$('.round-top-right').corner("7px top right");
		
		/* Bottom */
		$('.round-bottom, ul.sf-menu li ul li:last-child, #searchform').corner("7px bottom");		
		


	/* Menu */
	
		$(".sf-menu").superfish({
			delay:		500,               
            animation:	{height:'show'},  	
            speed:		200,               
            autoArrows:	false,             
            dropShadows:false,
            disableHI:	true
		});
		
		
	/* Forms Custom Validation Methods */
		if($.validator)
		{
			$.validator.addMethod('phone', function (value) { 
			    return /\(\d{3}\) \d{3}-\d{4}/.test(value); 
			}, 'Please enter a valid phone number.');
					
			$.validator.addMethod('yes', function (value) { 
			    return /Yes/.test(value); 
			}, 'You need to read the COS page.');
		
			$.validator.addMethod('alphanumeric', function (value) { 
			    return /^([a-zA-Z0-9_-]+)$/.test(value); 
			},'Alphanumeric values only please');
			
			$.validator.addMethod('alpha', function (value) { 
			    return /^([a-zA-Z\s]+)$/.test(value); 
			},'Letters only please');
		}
				
	/* Plugings */
		
		
		
		
	/* Page Functionaility */
	
		/* Blog */
		$("#sidebar ul.category li.categories ul li").hover(
			function () {
				$(this).css('background-color','#fff');
			}, 
			function () {
				$(this).css('background-color','#f8f8f8');
			}
	    );
			
	
});
