$(document).ready(function(){

	// remove nav titles from nav to avoid flicker
	removeNavTitles();

	// three functions to auto focus clear input boxes
	$('input.focus-clear').each(function(){
		if ($(this).val() == '') {
			$(this).val($(this).attr('rel'));
		}
	});
	$('input.focus-clear').focus(function(){
		if ($(this).val() == $(this).attr('rel')) {
			$(this).val('');
		}
	});
	$('input.focus-clear').blur(function(){
		if ($(this).val() == '') {
			$(this).val($(this).attr('rel'));
		}
	});

    getTwitters('twitter-feed', {
        id: 'ClairesStores', 
        clearContents: true, // leave the original message in place
        count: 3, 
        withFriends: true,
        ignoreReplies: false,
        newwindow: true
    });

});


// remove title attribute from links to stop flickering on appearance of title
function removeNavTitles ()
{

    $('#nav-primary a').attr('title', '');

}


//CHECK FOR IE6
function is_ie6(){
     return ((window.XMLHttpRequest == undefined) && (ActiveXObject != undefined));
}

