// JavaScript Document
$(document).ready(function(){
	
	$('#s').focus(function() {
	 	//alert(this.id);
		$("#"+this.id).val("");
	});
	
	$('#s').focusout(function() {
	 	//alert(this.id);
		if($("#"+this.id).val() == ""){
			$("#"+this.id).val("Search");
		}
	});
    $('#semail').focus(function() {
	 	//alert(this.id);
		if($("#"+this.id).val() == "enter email address")
			$("#"+this.id).val("");
	});

	$('#semail').focusout(function() {
	 	//alert(this.id);
		if($("#"+this.id).val() == ""){
			$("#"+this.id).val("enter email address");
		}
	});

    if(location.host == "www.canadaprepaidcards.com")
        jQuery("a[href^='http:']").not("[href*='canadaprepaidcards.com']").attr('rel','external nofollow');
    else
        jQuery("a[href^='http:']").not("[href*='canadaprepaidcards.net']").attr('rel','external nofollow');

    //jQuery("a[href^='http:']").equals("[href*='html5designshop.com']").attr('rel','html5 developer');
    $("a[href='http://html5designshop.com']").attr('rel', 'html5 developer')
    $('a[rel="external"]').attr('target', '_blank');
    $('a[rel="nofollow"]').attr('target', '_blank');
    $('a[rel="external nofollow"]').attr('target', '_blank');
    $('a[rel="external no follow"]').attr('target', '_blank');
});


