﻿
this.textSize = 11;
this.textHeight = 16;

function afterPrint() {
	var el = document.getElementById('contentClip');
	var cl = document.getElementById('content');
	
	if(el) {
		el.style.position = this.tmp_position;
		cl.style.position = this.tmp_position;
		el.style.top = this.tmp_top;
		el.style.left = this.tmp_left;
		cl.style.width = this.tmp_width;
	}
}

function c_size_up() {
	if(this.textSize < 23) {
		this.textSize += 4;
		this.textHeight += 4;
		
		var el = document.getElementById("bloc_texte");
		if(el) {
			el.style.fontSize = this.textSize + "px";
			el.style.lineHeight = this.textHeight + "px";
		}
		document.getElementById("drag").style.fontSize = "12px";
		document.getElementById("drag").style.lineHeight = "12px";
		document.getElementById("ruler").style.fontSize = "12px";
		document.getElementById("ruler").style.lineHeight = "12px";
		document.getElementById("up").style.fontSize = "12px";
		document.getElementById("up").style.lineHeight = "12px";
		document.getElementById("down").style.fontSize = "12px";
		document.getElementById("down").style.lineHeight = "12px";
	}
	detect();
}

function c_size_down() {
	if(this.textSize > 11) {
		this.textSize -= 4;
		this.textHeight -= 4;
		
		var el = document.getElementById("bloc_texte");
		if(el) {
			el.style.fontSize = this.textSize + "px";
			el.style.lineHeight = this.textHeight + "px";
		}
		document.getElementById("drag").style.fontSize = "12px";
		document.getElementById("drag").style.lineHeight = "12px";
		document.getElementById("ruler").style.fontSize = "12px";
		document.getElementById("ruler").style.lineHeight = "12px";
		document.getElementById("up").style.fontSize = "12px";
		document.getElementById("up").style.lineHeight = "12px";
		document.getElementById("down").style.fontSize = "12px";
		document.getElementById("down").style.lineHeight = "12px";
	}
	detect();
}

function c_mail(id_page) {
	window.open('?envoyer-a-un-ami&id=' + id_page,'pp_friend','directories=no,menubar=no,scrollbars=no,resizable=no,toolbar=no,width=600,height=400');
}

function coverflow_over() {
	var el = document.getElementById('coverflow');
	if(el) {
		el.SetVariable('MouseOn',true);
	}
}

function coverflow_out() {
	var el = document.getElementById('coverflow');
	if(el) {
		el.SetVariable('MouseOn',false);
	}
}