Размер файла: 3.29Kb
<!--
mes_pr = "Preview"
mes_cpr = "Close Preview"
previewSize = 250;
displayPreview=1;
var ns6=document.getElementById&&!document.all
var ie4=document.all
function Maximize(id, sURL){
var preview;
preview=new String(document.getElementById("idMax" + id).innerHTML);
var i=preview.indexOf("Maximize<");
if(i > 0){
document.getElementById("idFrame" + id).height = 600;
document.getElementById("idMax" + id).innerHTML = '<font color=\"#ff0000\">»</font> <a href="javascript:Maximize(' + id + ', \'' + sURL + '\')" class=\"content\">Minimize</a>';
document.getElementById("idFrame" + id).src = sURL;
}
else{
document.getElementById("idFrame" + id).height = previewSize;
document.getElementById("idMax" + id).innerHTML = '<font color=\"#ff0000\">»</font> <a href="javascript:Maximize(' + id + ', \'' + sURL + '\')" class=\"content\">Maximize</a>';
document.getElementById("idFrame" + id).src = sURL;
}
}
function OnPreview(n, sUrl) {
var prevID = n;
var preview;
if(!ns6){
preview=document.getElementById("id" + prevID).innerText;
}else{
preview=document.getElementById("id" + prevID).childNodes[0].nodeValue;
}
var temp = new String(sUrl);
var temp = new String(sUrl);
if(preview == "Quick View"){
document.getElementById("id" + prevID).innerHTML = "Close Quick View";
document.getElementById("id" + prevID).style.cssText = "COLOR: 'red'; FONT-SIZE: 11px;";
if(!ns6)
document.getElementById("idSpan" + prevID).style.visibility = "visible";
document.getElementById("idMax" + prevID).style.visibility = "visible";
document.getElementById("idShow" + prevID).style.display = "block";
document.getElementById("idFrame" + prevID).src = sUrl;
}
else{
document.getElementById("id" + prevID).innerHTML = "Quick View";
document.getElementById("id" + prevID).style.cssText = "COLOR: 'red'; FONT-SIZE: 11px;";
if(!ns6)
document.getElementById("idSpan" + prevID).style.visibility = "hidden";
document.getElementById("idMax" + prevID).style.visibility = "hidden";
document.getElementById("idShow" + prevID).style.display = "none";
document.getElementById("idFrame" + prevID).src = "";
}
}
function ppreview(url, id) {
var ti = url.replace(/'/g, '\\\'');
ti = ti.replace(/<b>/g, '');
ti = ti.replace(/<\/b>/g, '');
if(is_nav4 == false)
document.write(" <A class=\"content\" href=\""+url+"\" id=id"+id+" onClick=\"OnPreview("+id+",'"+ti+"');return false\">Quick View</A>");
}
function potherfunctions(url, id, title) {
var ti = title.replace(/'/g, '\\\'');
ti = ti.replace(/<b>/g, '');
ti = ti.replace(/<\/b>/g, '');
if(is_nav4 == false)
{
document.write("<span id=\"idMax"+id+"\" STYLE=\"visibility:hidden\"><font color=\"#ff0000\">»</font> <a href=\""+url+"\" onClick=\"javascript:Maximize("+id+",'"+url+"');return false\" class=\"content\">Maximize</a></span> ");
if(!ns6)
document.write("<span id=\"idSpan"+id+"\" STYLE=\"visibility:hidden\"><font color=\"#ff0000\">»</font> <a href=\""+url+"\" onClick=\"javascript:window.external.AddFavorite('"+url+"','"+ti+"');return false\" class=\"content\">Bookmark</a></span>");
document.write("<div id=\"idShow"+id+"\" STYLE=\"display:none\"><iframe ID=\"idFrame"+id+"\" HEIGHT=\"250\" SRC WIDTH=\"100%\"></iframe></div>");
}
}