<!-- hide from old browsers

var days = new Array();
days[0] = "Sunday";
days[1] = "Monday";
days[2] = "Tuesday";
days[3] = "Wednesday";
days[4] = "Thursday";
days[5] = "Friday";
days[6] = "Saturday";

var months = new Array();
months[0] = "January";
months[1] = "February";
months[2] = "March";
months[3] = "April";
months[4] = "May";
months[5] = "June";
months[6] = "July";
months[7] = "August";
months[8] = "September";
months[9] = "October";
months[10] = "November";
months[11] = "December";

function printPage(){window.print()}

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
}
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

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;

function formVal(thefields) {
	thereturn = true;
	fparts = thefields.split(",");
	for (i = 0; i < fparts.length; i++) {
		if (document.getElementById(fparts[i]).value=='' || document.getElementById(fparts[i]).value=='http://') {
			document.getElementById(fparts[i]).style.background='#ff0000';
			thereturn = false;
		}else{
			document.getElementById(fparts[i]).style.background='#ffffff';
		}
	}
	if (thereturn==false) { alert('You must complete all required fields'); }
	return thereturn;
}

$(function(){
	
	$(".voucher-inner").click(function(e) {
		theHREF = $(".voucher-link a",this).attr("href");
		new_win = window.open(theHREF,'_blank','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
		// new_win.blur();
		// alert("voucherinner click");
		return false;
	});

	$(".voucher-link a").click(function(e) {
		theHREF = $(this).attr("href");		
		new_win = window.open(theHREF,'_blank','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
		e.stopPropagation();
		e.preventDefault();
		return false;
	});
});

// - end hiding -->
