/*   IGOR Standard Javascript f. Netscrape 3.x - 6.x und alle IE ab Version 3
Revision: 3.6.123-A
Datum: 07.01.2009
Copyright (c) 1996-2009 ecw - electronic commerce & web: http://ecw.at/  office@ecw.at
*/
var initdone = false;
var myziel='omc2main'; var mydomain='our-music.com';
if (window.name==myziel) parent.document.title=document.title;
var timerID=0;var locStr2=">    ";var locStr1=" "; var move=0;
var t0='<TABLE WIDTH=130 STYLE=\"border: 3px solid #ff0000; background-color:#ffff00\"><TR><TD CLASS=\"tabl\">';
var t1='</TD></TR></TABLE>';
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 isIe=(ie5 || ie55 || ie4 || ie7) ? 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;
if (ns4) {
t0='<TABLE WIDTH=130 BGCOLOR=\"#ff0000\" CELLSPACING=0 CELLPADDING=3 BORDER=0><TR><TD><TABLE BGCOLOR=\"#ffff00\" CELLSPACING=0 CELLPADDING=2 BORDER=0 WIDTH=\"100%\"><TR><TD CLASS=\"tabl\">';
t1+=t1;
}
function igorinit() {
if (!mac) {
if ( ie4 ) hilfe=document.all.igorhilfe;
if (ie5 || ns6) hilfe = document.getElementById('igorhilfe');
if (ns4) hilfe = document.igorhilfe;
}
if (ie5 && !mac) {
if (!ie55) hilfe.style.filter='revealTrans(Duration=0.5,Transition=12)';
else hilfe.style.filter='progid:DXImageTransform.Microsoft.Fade()';
}
setTd();
initdone = true;
return true;
}
function hitFlash(Mess,Dhtm) {
if (!initdone) return;
doFlash(Mess);
if ( Dhtm!=null && Dhtm!='' ) {
move=1;
bewegeLogo;
if ( ie4 || ie5 ) {
hilfe.filters[0].Apply();
hilfe.innerHTML = t0 + Dhtm + t1;
hilfe.style.visibility = 'visible';
hilfe.filters[0].Play();
}
if ( ns6 ) {
hilfe.innerHTML = t0 + Dhtm + t1;
MozFade(0);
}
if ( ns4 ) {
hilfe.document.write(t0 + Dhtm + t1);
hilfe.document.close();
hilfe.visibility = 'show';
}
}
}
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 bewegeLogo(e) {
if (!initdone) return;
if ( move==1) {
if ( ns4 || ns6 ) {
var x = ( e.pageX>(window.innerWidth-50) ) ? (e.pageX - 40) : (e.pageX + 10) ;
var y = ( e.pageY>(window.innerHeight-55) ) ? (e.pageY - 65) : (e.pageY + 5) ;
if (ns4) hilfe.moveTo(x,y);
else {
var x1=x+'px';
var y1=y+'px';
hilfe.style.left = x1;
hilfe.style.top = y1;
}
}
else if ( ie4 || ie5 ) {
var x = window.event.clientX+document.body.scrollLeft+5;
var y = window.event.clientY+document.body.scrollTop+5;
if ( x-document.body.scrollLeft>document.body.clientWidth-40 ) x -= 55;
if ( y-document.body.scrollTop>document.body.clientHeight-50 ) y -= 60;
hilfe.style.pixelLeft = x;
hilfe.style.pixelTop = y;
}
}
}
function hF(m) {
doFlash(m);
}
function doFlash(mess) {
return;
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) ? document.title : 'our-music.com OG online';
}
function hFS() {
hitFlashStop();
}
function hitFlashStop() {
clearTimeout(timerID);
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, parent.frames[myziel].document.title);
} 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='mailto:?subject=Interesting URL at www.'+mydomain+'&body='+parent.frames[myziel].document.title+' -> '+parent.frames[myziel].location.href;
else location='mailto:?subject=Interessanter URL bei www.'+mydomain+'&body='+escape(parent.frames[myziel].document.title)+' -> '+parent.frames[myziel].location.href;
}
function sMW() {
myloc=escape(top.frames[myziel].document.title)+'\n-> '+escape(top.frames[myziel].location.href);
location='mailto:webmaster@top-com.com?subject=www.'+mydomain+'&body='+myloc;
}
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 = '';
}
if (document.images) {
nav0 = new Image(10,8);
nav0.src = '/_pic/nav0.gif';
nav1 = new Image(10,8);
nav1.src = '/_pic/pr.gif';
nav2 = new Image(9,9);
nav2.src = '/_pic/nav0.gif';
nav3 = new Image(9,9);
nav3.src = '/_pic/pr.gif';
}
function mausaus(i) {
if (document.all) document.all['p'+i].src = nav0.src;
else document['p'+i].src = nav0.src;
hitFlashStop();
}
function mausein(m,i) {
if (document.all) document.all['p'+i].src = nav1.src;
else document['p'+i].src = nav1.src;
hitFlash(m,'');
}
function mausaus2(i) {
if (document.all) document.all['p'+i].src = nav2.src;
else document['p'+i].src = nav2.src;
hitFlashStop();
}
function mausein2(m,i) {
if (document.all) document.all['p'+i].src = nav3.src;
else document['p'+i].src = nav3.src;
hitFlash(m,'');
}
function intern() {
winPar='left=0,top=0,resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width='+(screen.width-24);
winPar+=',height='+(screen.height-60);
intWindow = window.open('/intern/login.asp','magIntern',winPar);
}
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 zeigAntwort(i) {
winPar='resizable=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=350,height=300';
ridWindow = window.open('/ridsolv.asp?id='+i,'ridWin',winPar);
}
function ecwF(w,h,l) {
if (w>0) winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width='+w;
else 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';
ecwIntern = window.open(l,'ecwWindow',winPar);
ecwIntern.focus();
return false;
}
function ecwF2(w,h,l) {
if (w>0) winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width='+w;
else 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 ecwFpos(w,h,l,x,y) {
if (w>0) winPar='resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,width='+w;
else 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=' + x + ',top=' + y;
var ecwIntern3 = window.open(l,'ecwWindow3',winPar);
ecwIntern3.focus();
return false;
}
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('order_print_pdf.asp?' + p,'ecwWindow3',winPar);
ecwPdf1.focus();
return false;
}
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 mnmausaus(i) {
document.getElementById('ms_'+i).style.background = '#f3f3f3';
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 ax0(para) {
if (para == 'x') {
document.getElementById('axinfo').style.display = 'none';
parent.frames[0].chkSB(1);
}
else {
if (para != '') para = '?' + para + '&tm=' + Date();
else para = '?tm=' + Date();
parent.frames[0].ecwAjax('_ax.asp' + para,'axinfo');
}
return false;
}
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;
}
}
}
var x1bc = '';
function x1over(evt) {
x1bc = this.style.backgroundColor;
this.style.backgroundColor = '#ff0';
this.style.cursor = 'pointer';
}
function x1out(evt) {
this.style.backgroundColor = x1bc;
this.style.cursor = 'default';
}
function axPop(p) {
parent.frames[0].ecwAjax(p,'axinfo');
}
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_ajaxuri = '';
var ecw_axZiel = '';
var ecw_axQs = '';
var ecw_axTimer = null;
var ecw_reqruns = false;
function ecw_ax(d,z) {
if (!ecw_reqruns) {
if (ecw_req) {
var ecw_dat = new Date();
ecw_axZiel = z;
ecw_axQs = d;
ecw_req.open('GET', ecw_ajaxuri + d + '&rnd=' + ecw_dat.valueOf(), true);
ecw_req.onreadystatechange = ecw_ax_parse;
ecw_reqruns = true;
ecw_req.send(null);
}
else alert('Fehler: ihr Browser unterstützt diese Applikation leider nicht.\nBitte verwenden Sie einen aktuellen Browser.');
}
}
function ecw_ax_parse() {
if ( ecw_req.readyState == 4 ) {
if ( ecw_req.responseText.indexOf('invalid') == -1 ) {
if ( ecw_req.status == 200) {
document.getElementById(ecw_axZiel).innerHTML = ecw_req.responseText;
ecw_reqruns = false;
setTd();
if (window.ecw_postAx) ecw_postAx(ecw_axQs,ecw_axZiel);
}
else {
document.getElementById(ecw_axZiel).innerHTML = 'Fehler bei der Kommunikation mit dem Server (' + ecw_req.status + ')';
ecw_reqruns = false;
}
}
}
}
function $(o) {
return document.getElementById(o);
}
