var IE = document.all?true:false //All fields with id filled in are required fields. function cOn(td, color) { if(document.getElementById||(document.all && !(document.getElementById))) { if(td.style.backgroundColor != '#d5d5d5'){ td.style.backgroundColor= color; td.style.cursor = 'pointer'; } } } function cOut(td,color) { if(document.getElementById||(document.all && !(document.getElementById))) { if(td.style.backgroundColor != '#d5d5d5'){ td.style.backgroundColor= color; } } } function openOverlay(title,url,width,height) { GB_showCenter(title, url, /* optional */ height, width) } function initSIFR() { if(typeof sIFR == "function"){ // header big, grey sIFR.replaceElement(named( { sSelector:"h1.grey", sFlashSrc:"http://www.manwithamission2.com/flash/h1.swf", sColor:"#DFDFDF", sWmode:"transparent", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); // header big, black sIFR.replaceElement(named( { sSelector:"h1", sFlashSrc:"http://www.manwithamission2.com/flash/h1.swf", sColor:"#000000", sWmode:"transparent", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); sIFR.replaceElement(named( { sSelector:"h2", sFlashSrc:"http://www.manwithamission2.com/flash/h1.swf", sColor:"#000000", sWmode:"transparent", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=right&offsetTop=0" } )); }; } //Smooth Resize var timeoutLength = 10; var pixelsPerTick = 20; var originalHeight = 105; function objOpenClose(cont_prefix, id, obj, objCount) { var objContent = document.getElementById(cont_prefix+id); obj.className = (obj.className=="header")?"item":"header"; objContent.style.display = (objContent.style.display=="none" || objContent.style.display==undefined)?"block":"none"; if(!objCount || objCount==undefined || Number(objCount)==0)return; for(var i=0;i0){ if(document.getElementById(stritem+'_title')) document.getElementById(stritem+'_title').className = 'item' smoothResize1(stritem); } } else { obj.style.display = 'block'; var arr = document.getElementById(list).value.split(',') alert(arr) for(var cnt=0;cnt0){ if(document.getElementById(stritem+'_title')) document.getElementById(stritem+'_title').className = 'header' smoothResize2(stritem,originalHeight); //Openklappen } } /**/ } //Dichtklappen function smoothResize1(stritem) { var obj = document.getElementById(stritem) if ( (parseInt(obj.offsetHeight)-pixelsPerTick) <= 0 ) { obj.style.display = 'none'; }else{ obj.style.height = parseInt(obj.offsetHeight-pixelsPerTick) + 'px' ; setTimeout("smoothResize1('"+stritem+"')",timeoutLength); } } //Openklappen function smoothResize2(stritem,max){ var obj = document.getElementById(stritem) if ( (obj.offsetHeight+pixelsPerTick) >= max ) { obj.style.height = max+'px'; }else{ obj.style.height = obj.offsetHeight+pixelsPerTick+'px'; setTimeout("smoothResize2('"+stritem+"',"+max+")",timeoutLength); } } //End smooth Resize function check(v,id,input) { var obj = document.getElementById(input) var rest if(obj.value.indexOf(','+v+',')==-1){ if(obj.value==''){ obj.value=',' } if(obj.value!=''){ obj.value=obj.value+v+','; } document.getElementById(id).src = document.getElementById(id).src.replace('.gif','_o.gif') }else{ obj.value = obj.value.replace(','+v+',',',') if(obj.value.length==1) obj.value='' document.getElementById(id).src = document.getElementById(id).src.replace('_o.gif','.gif') } } function printme() { var objOut = document.getElementById("output"); var out = objOut.innerHTML; var wh = window.open("","wh","width=640px,height=480px,scrollbars=yes"); wh.document.open(); var output = ''; output = ''+output+''+out.replace('','/object-->')+''; output += '<'+'script type="text/javascript">'; output += 'setTimeout("window.print()",2000);'; output += ''; wh.document.writeln(output); wh.document.close(); } function loadYoutube(container, width, height, align, wmode, url) { //clearTimeout(timeoutYoutube); timeoutYoutube = null document.getElementById(container).innerHTML = AC_FL_RunContent_youtube('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0', 'width',width, 'height',height, 'align',align, 'wmode',wmode, 'FlashVars','required_version=8,0,24,0', 'src',url, 'quality','high', 'bgcolor','#ffffff', 'name',url, 'allowscriptaccess','sameDomain', 'pluginspage','http://www.macromedia.com/go/getflashplayer', 'movie',url); return false; } function Show(strobj,objHighlight){ var obj=document.getElementById(strobj) if(obj.style.display=='none'){ obj.style.display="block"; if(objHighlight){objHighlight.style.backgroundColor='#d5d5d5'} }else{ obj.style.display="none"; if(objHighlight){objHighlight.style.backgroundColor=''} } }