function refreshPageShims() {
for (var pageImageCount = 0; pageImageCount < document.images.length; pageImageCount++) {
if (document.images[pageImageCount].name == 'm') {
document.images[pageImageCount].src = 'http://www.posersports.com/i/1.gif';
}
}
}
var originalAFSize = 10;
function minusArticleFont() {
for (i = 0; i < document.styleSheets[0].cssRules.length; i++) {
if (document.styleSheets[0].cssRules[i].selectorText == ".articleFont") {
var articleFontSize = parseInt(document.styleSheets[0].cssRules[i].style.fontSize.replace("px","").replace("pt",""));
if (6 < articleFontSize) {
document.styleSheets[0].cssRules[i].style.fontSize = articleFontSize - 2;
}
}
}
}
function plusArticleFont() {
for (i = 0; i < document.styleSheets[0].cssRules.length; i++) {
if (document.styleSheets[0].cssRules[i].selectorText == ".articleFont") {
var articleFontSize = parseInt(document.styleSheets[0].cssRules[i].style.fontSize.replace("px","").replace("pt",""));
if (originalAFSize == articleFontSize) {
document.styleSheets[0].cssRules[i].style.fontSize = 6 + articleFontSize;
} else {
document.styleSheets[0].cssRules[i].style.fontSize = 2 + articleFontSize;
}
}
}
}
function setArticleFont(newValue) {
for (i = 0; i < document.styleSheets[0].cssRules.length; i++) {
if (document.styleSheets[0].cssRules[i].selectorText == ".articleFont") {
document.styleSheets[0].cssRules[i].style.fontSize = newValue;
}
}
}
function getRule(styleSheet, ruleName) {
for (i = 0; i < document.styleSheets[styleSheet].cssRules.length; i++) {
if (document.styleSheets[styleSheet].cssRules[i].selectorText == "." + ruleName) {
return document.styleSheets[styleSheet].cssRules[i];
}
}
return null;
}
function upjs(thisString) {
return thisString.replace(/&quot;/gi, "\"").replace(/&#39;/gi, "'").replace(/&#39/gi, "'");
}
function setYearCookie(name, value) {
setTimedCookieFromNow(name, value, 1, 0, 0, 0, 0, 0)
}
function setTwoHourCookie(name, value) {
setTimedCookieFromNow(name, value, 0, 0, 0, 2, 0, 0)
}
function setTimedCookieFromNow(name, value, year, month, day, hour, minute, second) {
var today = new Date();
var y = year + today.getFullYear();
var m = month + today.getMonth();
var d = day + today.getDate();
var hr = hour + today.getHours();
var min = minute + today.getMinutes();
var s = second + today.getSeconds();
setCookie(name, value, new Date(y, m, d, hr, min, s));
}
function setCookie(name, value, expire) {
document.cookie = name + "=" + escape(value)
+ ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));
}
function deleteCookie(name) {
if (getCookie(name)) document.cookie = name + "=expires=Thu, 01-Jan-1970 00:00:01 GMT";
}
function getCookie(Name) {
var search = Name + "="
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1) end = document.cookie.length
return unescape(document.cookie.substring(offset, end))
}
}
}
var sThisURL = unescape(window.location.pathname);
function doFramesBuster() {
if ( top != self ) {
breakFrames();
}
}
function breakFrames() {
setTimeout( "top.location.href = sThisURL", 0.1*1000 );
}
function breakFrames() {
top.location.replace( sThisURL );
}
if ( "MSIE" == navigator.appName ) {
doFramesBuster();
}
