// JavaScript Document

// will add target to external links
function externalLinks() {
	if (!document.getElementsByTagName){
		return;
	}
	var anchors = document.getElementsByTagName("a"); 
	for (var i=0; i<anchors.length; i++) { 
		var anchor = anchors[i]; 
		if (anchor.getAttribute("href") &&  anchor.getAttribute("rel") == "external"){
			anchor.target = "_blank"; 
		}
	}
}
window.onload = externalLinks;

$(document).ready(function() {
	$('#hotDealWrapper').cycle({
		fx:     'fade',
		speed:  'normal',
		timeout: 10000,
		next:   '#next2',
		prev:   '#prev2'
	
	});
	$('#golfDealWrapper').cycle({
		fx:     'fade',
		speed:  'normal',
		timeout: 10000,
		next:   '#next3',
		prev:   '#prev3'
	
	});
	//Add the google stuff to the url
   $("a[href*='iqrez.com']").click(function() {
		pageTracker._link(this.href);
		return false;
	});
});