var ugly_selectorText_workaround_flag = false;
var allStyleRules;

var tags = new Array( 'div','td','tr', 'a', 'span', 'h1', 'h3', 'h5', 'p', 'li', 'b', 'strong', 'i', 'em');
var sizes = new Array("0px","3px","6px","9px","11px","12px","15px","18px","21px","24px","27px","30px","33px","36px","39px","42px","45px","48px","51px","54px","57px","60px");
var x = '11px';
var x2;
	
function changeTextSize( arr_target,inc ) {
	
  
    for (a = 0; a < arr_target.length; a++){
		target = arr_target[a];
		if (!document.getElementById) return
        
var d = document,cEl = null,i,j,cTags,cssRules;
		
		if ( !( cEl = d.getElementById( target ) ) ) cEl = d.getElementsByTagName( target )[ 0 ];
		
		for ( i = 0 ; i < tags.length ; i++ ) {
			cTags = cEl.getElementsByTagName( tags[ i ] );
			for ( j = 0 ; j < cTags.length ; j++ ) {
		  	for (i2 = 0 ; i2 < sizes.length-1; i2++){
		  		if (sizes[i2] ==  x){
		  			x2 = sizes[i2 + inc];	  			
		  			break;
		  		}
		  	}	
		  	cTags[ j ].style.fontSize = x2;
				}
			}
	}
	x = x2;
}

function goforfait(page){
	var url = new String(parent.location.href);

  siteId = "";
	if (url.match("sympatico.ca") || url.match("/fr/") || url.match("/en/")) {
		siteId = "9710834";
  } else if (url.match("montrealplus.ca")) {
    siteId = "9101546";
  } else if (url.match("quebecplus.ca")) {
    siteId = "9102230";
  } else if (url.match("ottawaplus.ca")) {
    siteId = "9102434";
	} else {
		siteId = "10291093";  //* default siteId
	}
  page = page.replace("putSiteId",siteId);
	window.location.href=page;
}


function changeSize(Size){
	var my_Objects = new Array('bodyd');
	changeTextSize(my_Objects,Size);
}


    

