/*   IGOR Standard Javascript f. Netscrape 3.x - 6.x und alle IE ab Version 3
Revision: 3.4.231-S
Datum: 10.12.2009
Copyright (c) 1996-2009 ecw - electronic commerce & web: http://ecw.at/
*/
var initdone = false;
var myziel='blumain'; var mydomain='blumen.at';
var tit = document.title;
if (window.name==myziel || window.name=='blunav') {
var f = location.href;
if (f.indexOf('/pl/') > -1 || f.indexOf('/plen/') > -1) {
mydomain='kwiaty.com';
if (tit.indexOf('blumen.at') == 0) tit = mydomain + tit.slice(9);
}
parent.document.title=tit;
}
var timerID=0;var locStr2=">    ";var locStr1=" "; var move=0;
var ie5=(document.all && document.getElementById) ? true : false;
var ie55=(document.all && document.getElementById && navigator.appVersion.indexOf('MSIE 5.0')==-1) ? true : false;
var ie4=(document.all && !document.getElementById) ? true : false;
var ie7=(document.all && window.XMLHttpRequest) ? true : false;
var ns4=(document.layers) ? true : false;
var ns6=(!document.all && document.getElementById) ? true : false;
var mac=(navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
var ok=(document.getElementById) ? true : false;
function igorinit() {
window.status = (window.name==myziel) ? tit : mydomain + ' online';
setTd();
initdone = true;
return true;
}
function hM(t) {
if (isNull(t) || t=='') t = 'blumen.at online';
window.status = t;
return true;
}
function hF(t) {
if (!initdone) return;
doFlash(t);
}
function hFS() {
if (!initdone) return;
hitFlashStop();
}
function hitFlash(Mess,Dhtm) {
if (!initdone) return;
doFlash(Mess);
}
function MozFade(i) {
if (i<100) {
hilfe.style.MozOpacity = i+'%';
if (i==0) hilfe.style.visibility = 'visible';
i+=8;
setTimeout('MozFade('+i+')',80);
}
else hilfe.style.MozOpacity = '100%';
}
function doFlash(mess) {
if (mess!='') { locStr1 = locStr2.substring(4)+locStr2.substring(0,4); locStr2 = locStr1; locStr1 = mess;
window.status=locStr2+" "+mess+" "+locStr2; timerID=setTimeout('doFlash(locStr1)', 100);}
else window.status=(window.name==myziel) ? tit : mydomain + ' online';
}
function hitFlashStop() {
if (!initdone) return;
clearTimeout(timerID);
window.status = (window.name==myziel) ? tit : mydomain + ' online';
if (move==1) {
move=0;
if ( ns4 ) hilfe.visibility = 'hide';
else if ( ie4 || ie5 || ns6 ) hilfe.style.visibility = 'hidden';
}
}
function ein(bild,obje) {
if (ie5) {
mypic = document.getElementById(obje);
if (!mac) {
if (ie55) mypic.style.filter='progid:DXImageTransform.Microsoft.Fade()';
else mypic.style.filter='blendTrans(Duration=1)';
}
}
else mypic = document.all[obje];
if (!mac) mypic.filters[0].Apply();
mypic.src = bild;
if (!mac) mypic.filters[0].Play();
}
function zufav() {
if (window.external) {
window.external.AddFavorite(parent.frames[myziel].location.href, tit);
} else alert('Ihr Browser unterstützt diese Funktion nicht.\n\nBitte benutzen Sie die Bookmark Funktion ihres Browsers direkt\n(zB. [Strg]-[D] für Netscape).');
}
function sendpage(l) {
if (l=='e') location.href='mailto:?subject=Interesting URL at www.'+mydomain+'&body='+tit+' -> '+parent.frames[myziel].location.href;
else location.href='mailto:?subject=Interessante URL bei www.'+mydomain+'&body='+escape(tit)+' -> '+parent.frames[myziel].location.href;
}
function ecShowHelp(hid) {
window.open('/intern/_helpshow.asp?id='+hid,'winEcHelp','scrollbars=1,toolbar=0,location=0,directories=0,status=0,resizable=0,width=400,height=460')
}
function druck() {
if (window.print) print(this.document);
else if ((navigator.appName == "Microsoft Internet Explorer")) druckie4(this.document); //IE4 ?
}
function druckie4() {
var WebBrowser = '<OBJECT ID=\"WebBrowser1\" WIDTH=0 HEIGHT=0 CLASSID=\"CLSID:8856F961-340A-11D0-A96B-00C04FD705A2\"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(6,1);
WebBrowser1.outerHTML = '';
}
function intern() {
var isiPad = (navigator.userAgent.match(/iPad/i) != null) ? 1 : 0;
if (isiPad==1) location.href='/intern/login.asp?ip=1';
else window.open('/intern/login.asp?ip=0','bluIntern','top=0,left=0,resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width='+(screen.width)+',height='+(screen.height-60));
}
function chkS0() {
var x = document.such0.s.value;
if (x=='') {
alert('Geben Sie einen Suchbegriff ein.');
document.such0.s.focus();
return false;
}
if (x.length<3) {
alert('Der Suchbegriff muss mind. 3 Zeichen lang sein.');
document.such0.s.focus();
return false;
}
else return true;
}
function ecwFormat(z) {
var voko = parseInt(z);
if (isNaN(voko)) return '0,00';
var nako = String(Math.round(z*100));
nako = ',' + nako.substr(nako.length - 2,2);
var counter = parseInt((String(voko).length - 1) / 3);
if (counter) {
var e = '';
var a = String(voko).length - (3 * counter);
for (var i=counter; i > 0; i--) e = '.' + String(voko).substring(a+(i-1)*3, a+(i-1)*3+3) + e;
voko = String(voko).substring(0, a) + e;
}
return voko + nako;
}
function ecwC(z,w) {
ecwF(600,500,'/ecw_currency.asp?e='+z+'&w='+w);
return false;
}
function ov(o,i) {
if (ok) {
o.style.background='#ffff99';
document.getElementById('p_'+i).src='/_pic/pr.gif';
}
}
function ot(o,i) {
if (ok) {
o.style.background='#eeeeee';
document.getElementById('p_'+i).src='/_pic/nav0.gif';
}
}
function aufzu(objMenu,objImage) {
if (objMenu.style.display == "none") {
objMenu.style.display = "";
objImage.src = '/_pic/_minus.gif';
}
else {
objMenu.style.display = "none";
objImage.src = '/_pic/_plus.gif';
}
}
function agb(i) {
winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width=520,height=570';
if (i==0) ecwWin = window.open('/d/order_print0.asp?n=3','spwin',winPar);
if (i==1) ecwWin = window.open('/e/order_print0.asp?n=3','spwin',winPar);
if (i==4) ecwWin = window.open('order_print0.asp?n=4','spwin',winPar);
if (i==5) ecwWin = window.open('order_print0.asp?n=3','spwin',winPar);
}
if (document.images) {
nav0 = new Image(10,8);
nav0.src = '/_pic/nav0.gif';
nav1 = new Image(10,8);
nav1.src = '/_pic/nav1.gif';
}
function mausan(o,m) {
hitFlash(m,'');
mausein(''+o,1);
return true;
}
function mausaus(o) {
hitFlashStop();
mausein(''+o,0)
}
function mausein(o,a) {
if (document.all) document.all['p'+o].src = (a==1) ? nav1.src : nav0.src;
else document['p'+o].src = (a==1) ? nav1.src : nav0.src;
var myback = (a==1) ? '#ffffaa' : 'none';
if (document.getElementById) {
document.getElementById(o).style.background = myback;
}
else if (document.all) {
document.all[o].style.background = myback;
}
}
function ma(i) {
if (document.all) document.all['p'+i].src = nav0.src;
else document['p'+i].src = nav0.src;
}
function me(i) {
if (document.all) document.all['p'+i].src = nav1.src;
else document['p'+i].src = nav1.src;
}
function ecwAZ(objMenu,objImage) {
if (objMenu.style.display == "none") {
objMenu.style.display = "";
objImage.src = '/_pic/_minus.gif';
}
else {
objMenu.style.display = "none";
objImage.src = '/_pic/_plus.gif';
}
}
function zpic(i,n) {
window.open('/_pic.asp?w=1&id=' + i,'bluwin','resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width=500,height=580,top=0,left=0');
}
function zpic2(i,n) {
window.open('/_pic.asp?w=1&id=' + i,'bluwin','resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width=500,height=580,top=0,left=0');
}
function zord(i,n) {
pdf('id='+i+'&n='+n);
}
function pdf(p) {
var winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,left=0,top=0,width=850,height=' + screen.availHeight;
var ecwPdf1 = window.open('pdf.asp?' + p,'ecwWindowx3',winPar);
return false;
}
function zAR(p,n,l) {
var winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,left=0,top=0,width=850,height=' + screen.availHeight;
var ecwPdf6 = window.open('order_print.asp?a=' + p + '&n=' + n + '&lang=' + l,'ecwWindowx6',winPar);
return false;
}
function ptn() {
ecwF2(0,0,'/partner/login.asp');
}
function ecwF(w,h,l) {
if (w>0) var winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,top=0,left=0,width='+w;
else var winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,top=0,left=0,width='+(screen.width-24);
if (h>0) winPar+=',height='+h;
else winPar+=',height='+(screen.height-60);
var ecwIntern = window.open(l,'ecwWindow',winPar);
return false;
}
function ecwF2(w,h,l) {
if (w>0) var winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width='+w;
else var winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width=' + screen.availWidth;
if (h>0) winPar += ',height='+h;
else winPar+=',height=' + screen.availHeight;
if (w>0 && h>0) winPar += ',left=' + parseInt(( document.body.clientWidth / 2 ) - (w / 2) ) + ',top=10';
else if (w>0) winPar += ',left=' + parseInt(( document.body.clientWidth / 2 ) - (w / 2) ) + ',top=0';
else winPar += ',left=0,top=0';
window.open(l,'ecwWindow2',winPar);
return false;
}
function mx1(elem,n) {
if (n==1) elem.style.background = '#f3f3f3';
else elem.style.background = '#ffff44';
}
function mnmausaus(i) {
document.getElementById('ms_'+i).style.background = '#f3f3f3';
hFS();
return true;
}
function mnmausein(i) {
document.getElementById('ms_'+i).style.background = '#ffff44';
return true;
}
function setMenu(m) {
if (m != '') {
if (document.getElementById) document.getElementById('ms_'+m).style.background = '#ffff22';
}
}
function setTd() {
var tds,i;
tds = document.getElementsByTagName('td');
for(i=0; i<tds.length; i++) {
if ( tds[i].id == 'xtd' || tds[i].id == 'xtdg' || tds[i].className.indexOf('xtd') != -1) {
tds[i].onmouseover = x1over;
tds[i].onmouseout = x1out;
}
}
tds = document.getElementsByTagName('tr');
for(i=0; i<tds.length; i++) {
if (tds[i].className.indexOf('xtd') != -1) {
tds[i].onmouseover = x1over;
tds[i].onmouseout = x1out;
}
}
tds = document.getElementsByTagName('div');
for(i=0; i<tds.length; i++) {
if ( tds[i].className.indexOf('xtd') != -1 || tds[i].className=='but30') {
tds[i].onmouseover = x1over;
tds[i].onmouseout = x1out;
}
}
}
var xtdBg = null;
function x1over(evt) {
xtdBg = this.style.backgroundColor;
this.style.backgroundColor = '#ff0';
this.style.cursor = 'pointer';
}
function x1out(evt) {
this.style.backgroundColor = xtdBg;
this.style.cursor = 'default';
}
function ax0(para) {
if (para == 'x') {
document.getElementById('axinfo').style.display = 'none';
parent.frames[0].chkSB(1);
}
else {
if (para != '') para = '?' + para
parent.frames[0].ecwAjax('_ax.asp' + para,'axinfo');
}
return false;
}
var ecw_ajaxuri = '/';
var ecw_reqruns = false;
if (window.XMLHttpRequest) var ecw_req = new XMLHttpRequest();
else if (window.ActiveXObject) var ecw_req = new ActiveXObject("Microsoft.XMLHTTP");
else var ecw_req = false;
var ecw_axZiel = '';
var ecw_axQS = '';
function ecw_Ax(d,z) {
if (!ecw_reqruns && ecw_req) {
var ecw_dat = new Date();
ecw_reqruns = true;
ecw_axZiel = z;
ecw_axQS = d;
ecw_req.open('GET', ecw_ajaxuri + d + '&rnd=' + ecw_dat.valueOf(), true);
ecw_req.onreadystatechange = ecw_ecwAjaxParse;
ecw_req.send(null);
}
}
function ecw_AxForm(d,p,z) {
if (!ecw_reqruns && ecw_req) {
ecw_reqruns = true;
ecw_axZiel = z;
ecw_QS = d + "?" + p.substr(0,20);
ecw_req.onreadystatechange = ecw_ecwAjaxParse;
ecw_req.open("POST", d, true);
ecw_req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
ecw_req.setRequestHeader("Content-length", p.length);
ecw_req.setRequestHeader("Connection", "close");
ecw_req.send(p);
}
}
function ecw_ecwAjaxParse() {
if ( ecw_req.readyState == 4 ) {
if ( ecw_req.responseText.indexOf('invalid') == -1 ) {
if ( ecw_req.status == 200) {
if (ecw_axZiel !='')
document.getElementById(ecw_axZiel).innerHTML = ecw_req.responseText;
}
else {
if (ecw_axZiel !='')
document.getElementById(ecw_axZiel).innerHTML = '(Fehler bei asynchroner Kommunikation mit dem Server (' + ecw_req.status + ')';
}
if (window.ecw_postAx) ecw_postAx(ecw_axQS,ecw_axZiel);
}
ecw_reqruns = false;
}
}
function hideSB(n) {
if (document.all && !ie7 && document.kForm.grt) {
var wie = (n==1) ? 'visible' : 'hidden';
document.kForm.grt.style.visibility = wie;
document.kForm.kar.style.visibility = wie;
}
}
var last_pic = '';
var last_obj = null;
function bP(o,n,w,h) {
var t = '<img src=\"' + n + '\" width=' + w + ' height=' + h + ' border=0><br>';
if (w==0) t = '<img src=\"' + n + '\" border=0><br>';
if (o.innerHTML.indexOf(' title=') != -1) {
if (last_pic!='') last_obj.innerHTML = last_pic;
last_pic = o.innerHTML;
last_obj = o;
o.innerHTML = t;
}
else o.innerHTML = last_pic;
return false;
}
function $(o) {
return document.getElementById(o);
}
function gz(h) {
document.location.href = h;
}
function gm(h) {
parent.frames.ftop.hdAll();
document.location.href = h;
}
function axPop(p) {
parent.frames[0].ecwAjax(p,'axinfo');
}
function doMess() {
$('ht').style.left = parseInt(( document.body.clientWidth / 2 ) - 150);
$('ht').style.visibility = "visible";
if (document.body.filters && $("ht").filters[0]) window.setTimeout('$("ht").filters[0].Play()',2000);
window.setTimeout('$("ht").style.visibility="hidden"',3000);
}
function hasClass(obj,cn) {
return obj.className.indexOf(cn) != -1;
}

