/*************************************************************************
    This code is from Dynamic Web Coding at dyn-web.com
    Copyright 2004-6 by Sharon Paine
    See Terms of Use at www.dyn-web.com/bus/terms.html
    regarding conditions under which you may use this code.
    This notice must be retained in the code as is!
*************************************************************************/

// setDefaults arguments: size unit, default size, minimum, maximum
// optional array of elements or selectors to apply these defaults to
dw_fontSizerDX.setDefaults("px", 11, 6, 24, ['div#printReady td','div#printReady p','div#printReady table','div#printReadya','div#printReady span','div#printReady font'] );

// set arguments: default size, minimum, maximum
// array of elements or selectors to apply these settings to
//dw_fontSizerDX.set(12, 9, 18, ['div.sidebar'] );

dw_fontSizerDX.init();

/*************************************************************************
    Tourism PEI campaign tracking
    Made to work with Google Analytics UTM code / linking
    Dec1,2009
*************************************************************************/

var a=location.href.split('#');
if(typeof a[1] == 'string'){
	var as=a[1].split('&');
	var asl=as.length;
	var i=0;
	for(i;i<asl;i++){
		var asp = as[i].split('=');
		if(asp[0]=='utm_campaign'){
			var ce=new Date();
			ce.setDate(ce.getDate()+365);
			document.cookie = 'TPEIcampaign='+asp[1]+'; expires='+ce.toGMTString()+'; path=/; domain=.tourismpei.com;';
		}
	}
}