// Document Ready
 jQuery(function($) {
	// free to use failsafe $ alias here...
	
	jQuery('.p0wned').hide();
	
	jQuery('img.BlackSet').BlackSet();
   
	
	testimonialQuote();	
	
	if(jQuery('body.ie').size() > 0)
	{
		if( jQuery('div#subnavBox').height() < 52 )
		{
			jQuery('div#subnavBox').height(52);
		}
	}
 });
 
/*------------------------------------------------
	Global Functions
------------------------------------------------*/	
var waPreloadedPhotos = [];

function WAPreloadImages()
{
	for (var i = 0; i < arguments.length; i++)
	{
		waPreloadedPhotos[i] = document.createElement('img');
		waPreloadedPhotos[i].setAttribute('src',arguments[i]);
	}
}

function WASwapImage(imgElm, newImageName)
{
	var imgSrc = imgElm.src;
	var newImageSrc = imgSrc;
	var lastSlash = imgSrc.lastIndexOf('/');
	if(lastSlash > 0)
	{
		newImageSrc = imgSrc.substr(0,lastSlash + 1) + newImageName;
	}
	imgElm.src = newImageSrc;
}

/*-----------------------------------------------------------
	Rotating Homepage Testimonial Quotes
------------------------------------------------------------*/	
var testimonialsQuote = new Array();	

testimonialsQuote.push('&quot;Increased our member base from 4 to 600&quot; - Chad Blood');
testimonialsQuote.push('&quot;Our search engine rankings increased on Google&quot; - Chad Blood');
testimonialsQuote.push('&quot;Changing our website is extremely easy&quot; - Chad Blood');
testimonialsQuote.push('&quot;Web Ascender understands my thoughts and ideas&quot; - Chad Blood');
testimonialsQuote.push('&quot;Took my ideas and brought them to life&quot; - Chad Blood');

testimonialsQuote.push('&quot;I can add products in only a few minutes&quot; - Derek Baer');
testimonialsQuote.push('&quot;I can update my news in minutes&quot; - Derek Baer');
testimonialsQuote.push('&quot;Emailing my customers is very easy&quot; - Derek Baer');
testimonialsQuote.push('&quot;We get orders from Google and Yahoo!&quot; - Derek Baer');
testimonialsQuote.push('&quot;Our website has been instrumental in growing our business&quot; - D. Baer');

testimonialsQuote.push('&quot;We have a window to the world now&quot; - Tony Baer');
testimonialsQuote.push('&quot;First class web development&quot; - Tony Baer');

testimonialsQuote.push('&quot;Absolutely recommended to others&quot; - Stacey Morris');
testimonialsQuote.push('&quot;Very knowledgeable and comfortable talking with them&quot; - Stacey Morris');
testimonialsQuote.push('&quot;Designed exactly what we needed&quot; - Stacey Morris');
testimonialsQuote.push('&quot;Definitely talk with Web Ascender&quot; - Stacey Morris');
testimonialsQuote.push('&quot;Kevin and Ryan Rock&quot; - Stacey Morris');

function generateTestimonialQuote( lbound, ubound )
{
	return Math.floor( ( ubound - lbound + 1 ) * Math.random() + lbound );
}
function testimonialQuote()
{
	var elm = document.getElementById('quote');
	if(elm != null)
	{
		elm.innerHTML = testimonialsQuote[generateTestimonialQuote(0,testimonialsQuote.length-1)];
	}
}