function imgswap(img_name, img_src) {
   document[img_name].src = img_src;
}
function pvClientWidth () {
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		return window.innerWidth;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		return document.documentElement.clientWidth;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		return document.body.clientWidth;
	}
}
function pvClientHeight () {
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		return window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		return document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		return document.body.clientHeight;
	}
}
function pvVisibleTop () {
	if (self.pageYOffset){	// all except Explorer
		return self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict{
		return document.documentElement.scrollTop;
	} else if (document.body) { // all other Explorers
		return document.body.scrollTop;
	}
}
function pvLinkOutside (url, pageid, activityid, activaddressid) {
	document.write ('<a href="/linkOutside.php?url=' + url + '&amp;width=' + pvClientWidth() + '&amp;height=' + pvClientHeight() + '&amp;pageid=' + pageid
					+ '&amp;activityid=' + activityid + '&amp;activaddressid=' + activaddressid + '" target="_blank">Website<\/a>');
}