$(document).ready(function(){
	$("a[rel='colorbox']").colorbox();
});	

function changeSize(k){ // k=1 (increase) | k=-1 (decrease)
var cssR='font-size';
var step=1;
var allE=document.getElementsByTagName('*'), i=0, e, f;
while(e=allE[i++]) {
	if(e.firstChild&&e.firstChild.nodeType==3) { //if tags have a textNode
		if(e.style.fontSize) 
			{f=parseInt(e.style.fontSize,10)
		}//local style
		else if(document.defaultView && document.defaultView.getComputedStyle) {// DOM embeded/external CSS
			f= document.defaultView.getComputedStyle(e,'').getPropertyValue(cssR);
			if(f.length>0) {
				f=parseInt(f,10)
			}
		}
		else if(e.currentStyle) { //IE embeded/external CSS
				cssR = cssR.replace(/\-(\w)/g, function (strMatch, p1) {
					return p1.toUpperCase();
				});
				f=e.currentStyle[cssR];
				if(f.length>0) {
					f=parseInt(f,10)
				}
			}
			e.style.fontSize=(f+k*step)+'px';
		}
	}
}
