$(document).ready(function() {
	/*//temp link check
	if($('td').is(".dnnRibbonBarCol1")){
	$('a[href=""]').css('font-size','20px');
	$('a[href="#"]').css('font-size','20px');
	}else{
		$('a[href=""]').css('font-size','20px');
		$('a[href="#"]').css('font-size','20px');
		if($('a').is("[href='#']")){
		alert("hash link : "+$('a[href="#"]:first').html());
		}
		if($('a').is("[href='']")){
		alert("null link: "+$('a[href=""]:first').html());
		}
		if($('a').is("[href|='dnnstaging']")){
		alert("link is relative to dnnstaging : "+ $('a[href|="dnnstaging"]:first').html());
		}
	}*/
//skype killer
window.setTimeout(function() {
			$('.skype_pnh_container').html('');
			$('.skype_pnh_print_container').removeClass('skype_pnh_print_container');
		}, 800);
// Selects active tab per page
function switchNav() {
    var id="";
    if ($("div").is(".pageTitle")) {
    id = ($(".pageTitle a").html().replace(/(&[^;]+;)|(\s)/g, '').replace(/-/g, '').toLowerCase());
    
    if (document.getElementById(id)) {
        document.getElementById(id).id = 'selected';
    } else {
        document.getElementById('productspricing').id = 'selected';
    }
    }
}
switchNav();
$('input[type="text"],textarea').each(function() {
   var HasTitleTag = $(this).attr('title');
   
   if(typeof HasTitleTag === "undefined")
   {
   $(this).attr('title','');
   
   }
   else
   {
   this.value = $(this).attr('title');
   }
   
    $(this).addClass('text-label');
    $(this).focus(function(){
        if(this.value == $(this).attr('title')) {
            this.value = '';
            $(this).removeClass('text-label');
        }
    });
    $(this).blur(function(){
        if(this.value == '') {
            this.value = $(this).attr('title');
            $(this).addClass('text-label');
        }
	
	
    });
});
//hover button fade
if($("*").is(".hov_btn")){
$(".hov_btn").addClass('jqueryhover');
$(".hov_btn a").append('<span></span>');
$(".hov_btn a").each(function () {
$("> span", this).css('background-image', $(this).css('background-image'));
var $span = $('> span', this);
$(this).hover(function () {
$span.stop().fadeTo(500, 1);
}, function () {
$span.stop().fadeTo(500, 0);
});
 }); 
 }
});
