function arataIcons(v,d) {
document.getElementById(d).innerHTML='';
if (v<0) {
var img='
';
for (var i=0;i>v;i--) {
document.getElementById(d).innerHTML+=img;
}
} else {
var img='
';
for (var i=0;i';
continut+=''+titlu+'
';
continut+='
';
continut+=''+continut_f+'
';
div_nou.innerHTML=continut;
var docH=document.body.scrollHeight;
var docW=document.body.scrollWidth;
ById('div_over_window_nr_'+nr_ferestre).style.height=docH+'px';
ById('div_over_window_nr_'+nr_ferestre).style.width=docW+'px';
var de = document.documentElement;
var b = document.body;
var cat_scrool = (de.scrollTop || b.scrollTop) - (de.clientTop || 0);
var cat_sus = cat_scrool + 100;;
var cat_am=(docW-latime)/2;
ById('fereastra_nr_'+nr_ferestre).style.top=cat_sus+'px';
ById('fereastra_nr_'+nr_ferestre).style.left=cat_am+'px';
ById('fereastra_nr_'+nr_ferestre).style.width=latime+'px';
ById('fereastra_nr_'+nr_ferestre).style.height=inaltime+'px';
Drag.init(ById('top_fereastra_nr_'+nr_ferestre), ById('fereastra_nr_'+nr_ferestre),4,docW-latime-10,4,docH-inaltime-10);
}
function SwindowClose(nr_fer_cl) {
ById('div_over_window_nr_'+nr_fer_cl).style.height='0px';
ById('div_over_window_nr_'+nr_fer_cl).style.width='0px';
ById('fereastra_nr_'+nr_fer_cl).style.display='none';
InHtml('fereastra_nr_'+nr_fer_cl,'');
}
function afImagesProd(nume_prod) {
Swindow(OutHtml('divImagini'),nume_prod,550,450);
}
function afProdDiv(div) {
if (document.getElementById(div).style.display=='none') {
document.getElementById(div).style.display='block';
} else {
document.getElementById(div).style.display='none';
}
}
function init() {
if (document.all) {
document.onmousemove = getXY_IE;
}
else {
if (window.Event) {
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = getXY;
}
}
var x_cursor;
var y_cursor;
function getXY(e) {
x_cursor = (window.Event) ? e.pageX : event.clientX;
y_cursor = (window.Event) ? e.pageY : event.clientY;
}
function getXY_IE(){
var de = document.documentElement;
var b = document.body;
x_cursor = event.clientX + (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0);
y_cursor = event.clientY + (de.scrollTop || b.scrollTop) - (de.clientTop || 0);
}
var zIndexuri=100;
function ShowTip(displayDiv){
init();
zIndexuri++;
document.getElementById("mouse_over_"+displayDiv).style.display='block';
document.getElementById("mouse_over_"+displayDiv).style.zIndex=zIndexuri;
document.getElementById("mouse_over_"+displayDiv).style.top=y_cursor+14+'px';
document.getElementById("mouse_over_"+displayDiv).style.left=x_cursor+14+'px';
}
function ShowTip2(displayDiv){
init();
zIndexuri++;
document.getElementById("mouse_over2_"+displayDiv).style.display='block';
document.getElementById("mouse_over2_"+displayDiv).style.zIndex=zIndexuri;
document.getElementById("mouse_over2_"+displayDiv).style.top=y_cursor+14+'px';
document.getElementById("mouse_over2_"+displayDiv).style.left=x_cursor+14+'px';
}
function HiddeTip(displayDiv){
document.getElementById("mouse_over_"+displayDiv).style.display='none';
}
function HiddeTip2(displayDiv){
document.getElementById("mouse_over2_"+displayDiv).style.display='none';
}