/* Moebelmarkt JS App */ $j = jQuery.noConflict(); jQuery(document).ready(function(){ var morelink = jQuery('#sidebar .news-latest-morelink a'); if(morelink.html()) morelink.html(morelink.html().replace('Mehr', '[ mehr ]')); dateTime(); // tt_news firstPageFix var myurl = document.URL; // Open Polsterfashion and Kueche Bad at moebelmarkt.de with blank-attribute if(myurl.indexOf('moebelmarkt.de') > 0) { jQuery('a[href*="http://www.polsterfashion"]').attr('target', '_blank'); jQuery('a[href*="http://www.kuecheundbadforum"]').attr('target', '_blank'); } // Open Moebelmarkt Links at polsterfashion.de with blank-attribute if(myurl.indexOf('polsterfashion.de') > 0) jQuery('a[href*="http://www.moebelmarkt"]').attr('target', '_blank'); // Open Kueche Bad Links at polsterfashion.de with blank-attribute if(myurl.indexOf('kuecheundbadforum.de') > 0) jQuery('a[href*="http://www.moebelmarkt"]').attr('target', '_blank'); // fix on news pages except news search page if(myurl.indexOf("moebelmarkt.de/nachrichten") > 0) { jQuery('div.news-list-container p.browseLinksWrap a').eq(0).attr('href','http://www.moebelmarkt.de/nachrichten.html'); } if(myurl=="http://www.moebelmarkt.de/nachrichten/moebelmarkt.html") { jQuery('p.browseLinksWrap span.disabled').eq(0).attr('class','inactive').html('<< erste'); jQuery('p.browseLinksWrap span.disabled').eq(0).attr('class','inactive').html('< vorherige'); } if(myurl=="http://www.moebelmarkt.de/nachrichten/alle-nachrichten/page1.html") { jQuery('p.browseLinksWrap a').eq(1).attr('href','http://www.moebelmarkt.de/nachrichten.html'); jQuery('p.browseLinksWrap a').eq(2).attr('href','http://www.moebelmarkt.de/nachrichten.html'); } // tt_news Keine Anmerkung + Border ausblenden for(i=0;i').cycle({ fx: 'fade', pause: true, pager: '#newsFaderNav', pagerAnchorBuilder: function(idx, slide) { var title = jQuery('h2 a',slide).text(); return '
  • ' + title + '
  • '; } }); // Presse-PDF in neuem Fenster jQuery('.prNewsFiles a').attr('target','_blank'); jQuery('.news-single-additional-info a').attr('target','_blank'); /* Meist gelesen und kommentiert Tabs */ jQuery("#sidebar .menu > li").click(function(e){ switch(e.target.id){ case "mostread": //change status & style menu jQuery("#mostread").addClass("active"); jQuery("#latestcomment").removeClass("active"); //display selected division, hide others jQuery("div#c1741").fadeIn(); jQuery("div.latest_comment_box").css("display", "none"); break; case "latestcomment": //change status & style menu jQuery("#mostread").removeClass("active"); jQuery("#latestcomment").addClass("active"); //display selected division, hide others jQuery("div.latest_comment_box").fadeIn(); jQuery("div#c1741").css("display", "none"); break; } //alert(e.target.id); return false; }); // Ambiente, Tendence partner page jQuery('.imageslider').append('prevnext'); jQuery('.imageslider ul').simplecarousel({ width: 125, height: 75, visible: 4, next: jQuery('.imageslider .next'), prev: jQuery('.imageslider .prev') }); jQuery('.videoslider').append('prevnext'); jQuery('.videoslider ul').simplecarousel({ width: 125, height: 75, visible: 4, next: jQuery('.videoslider .next'), prev: jQuery('.videoslider .prev') }); jQuery(".tabnavigation li").click(function(e){ switch(e.target.id){ case "images": jQuery("#images").addClass("active"); jQuery("#movies").removeClass("active"); jQuery(".imageslider").fadeIn(); jQuery(".videoslider").css("display", "none"); break; case "movies": jQuery("#movies").addClass("active"); jQuery("#images").removeClass("active"); jQuery(".videoslider").fadeIn(); jQuery(".imageslider").css("display", "none"); break; } return false; }); }); function initRoundabout() { $j('.mmtv_roundabout ul').roundabout({ clickToFocus: false, minOpacity: 0.3, minScale: 0.3 }); setInterval(function() { $j('.mmtv_roundabout ul').roundabout_animateToNextChild(); }, 2500); $j('.mmtv_roundabout ul li').blur(function(e) { $j('.mmtv_roundabout li a.play_btn').fadeOut(); }); $j('.mmtv_roundabout ul li').focus(function(e) { $j('.mm_tv_box .mmtv_infobox .content').fadeOut('fast', function(){ $j('.mm_tv_box .mmtv_infobox .content').fadeIn(); $j('.mmtv_roundabout li.roundabout-in-focus a.play_btn').fadeIn(); $j('.mm_tv_box .mmtv_infobox .content').html($j('.mmtv_roundabout li.roundabout-in-focus a').attr('title')); }); }); } function newsletter_signup() { window.open("http://ea.ce-intern.com/_s.php?&fid=3160&fpw=6de9aeaafb8a125f0adb256da52297de","newwindow","width=535,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes,top=5,left=5"); } function goTo(n) { // alert(n); // Overview if(n=='uebersicht') document.location.href='/kooperationspartner.html'; // Partner internal Content if(n=='heimtextil') document.location.href='/kooperationspartner/heimtextil.html'; if(n=='fena') document.location.href='/kooperationspartner/fena.html'; if(n=='hms') document.location.href='/kooperationspartner/hausmesse-sued.html'; // Only external linking if(n=='ambiente') window.open('http://www.ambiente.messefrankfurt.com/'); if(n=='tendence') window.open('http://www.tendence.messefrankfurt.com/'); if(n=='lga') window.open('http://www.lga.de/tuv/de/produkte/index_produkte.shtml'); if(n=='hmo') window.open('http://www.moebelmarkt.de/images/kooperationen/HMO_2008.jpg'); if(n=='domotex') window.open('http://www.domotex.de/'); if(n=='matratzen') window.open('http://www.matratzenverband.de/'); if(n=='iafp') window.open('http://www.iafpalliance.com/'); if(n=='lifestyle') window.open('http://www.forum-lifestyle.de/'); if(n=='gfk') window.open('http://www.gfk-living.de/'); if(n=='mow') window.open('http://www.mow.de/'); if(n=='dgm') window.open('http://www.dgm-moebel.de/'); if(n=='highlight') window.open('http://www.highlight-verlag.de/'); if(n=='amoe') window.open('http://www.amoe.de/'); } function dateTime () { now = new Date(); var timeStr, dateStr; // time h = now.getHours(); m = now.getMinutes(); s = now.getSeconds(); timeStr = "" + h; timeStr += ((m < 10) ? ":0" : ":") + m; timeStr += ((s < 10) ? ":0" : ":") + s; // date d= now.getDate(); m= now.getMonth()+1; y= now.getYear(); if ((y > 99) && (y < 1900)) y += 1900; dateStr= ((d<10) ? "0" : "") + d; // added 0 if d<10 : 2010-01-08 11:50 tom dateStr+= ((m<10) ? ".0" : ".") + m; dateStr+= "." + y; // set jQuery("#dateTime").text(dateStr + " - " + timeStr); Timer = setTimeout("dateTime()",1000); }