/* all independent javascript functions */

/* global ksdomain definition */
var jsdomain = '62.50.40.234';

/* used in global_header.php */
function rnd() {	
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

/* used in global_header.php */
function rand(number) {	
        return Math.ceil(rnd()*number);
};

rnd.today=new Date();
rnd.seed=rnd.today.getTime();

/* used in global_header.php */
function guidedtour_head(url,height) {	
win2=window.open(url,"pathwin","width=640,height="+height+",scrollbars=no,status");
win2.focus();
}

/* used in home.php */
function guidedtour(url,height) {
win2=window.open(url,"pathwin","width=640,height="+height+",scrollbars=no,status");
win2.focus();
}

/* used in global_header.php */
function launch(newURL, newName, newFeatures, orgName) {	
var remote = open(newURL, newName, newFeatures);
if (remote.opener == null)
remote.opener = window;
remote.opener.name = orgName;
return remote;
}

/* used in global_header.php 
function launchRemote(poppler,host) {

myPrice=open("","myPrice","width=250,height=250,resizable=yes,scrollbars=no,status=yes,toolbar=no,menubar=no,location=no");

if (myPrice.opener == null)
myPrice.opener = window;
myPrice.opener.name = "headerbox";

myPrice.document.open("text/html","replace");
myPrice.document.write("<html>\n<head>\n");
myPrice.document.write("<title>www.dooyoo.fr</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"http://img.dooyoo.com/DE_DE/css/popup.css\">\n</head>\n<body>\n<div class=\"msgbox\">\n");


if (poppler == 1) {
myPrice.document.write("<b style=\"color:#3cb93f\">El mejor producto</b><br><br>\n");
myPrice.document.write("Aqu&iacute; encontrar&aacute;s el mejor producto de forma r&aacute;pida, f&aacute;cil y fiable.<br>Listas con los mejores productos y los m&aacute;s vendidos. Ve sobre seguro, lee las opiniones de consumidores que tienen el producto<br><br>\nEncuentra el producto que buscas aqu&iacute;:<br>\n<b>BUSCAR PRODUCTO</b><br>\n");
myPrice.document.write("<form action=\""+host+"/search\" method=\"get\" target=\"headerbox\" onsubmit=\"setTimeout(\'window.self.close()\',3000)\" style=\"display:inline;\">\n");
myPrice.document.write("<input type=\"text\" name=\"term\" value=\"\" size=\"14\" style=\"width:146px\">\n<input type=\"image\" src=\"http://img.dooyoo.fr/aurora_pix/go.gif\" border=\"0\">\n<input type=\"hidden\" name=\"rest\" value=\"\">\n</form>");
}
if (poppler == 2) {
myPrice.document.write("<b style=\"color:#3cb93f\">Der beste Preis</b><br><br>\n");
myPrice.document.write("Sie finden den besten Preis.<br>\nAuf einen Klick.<br>Preise der wichtigsten und vertrauensw&uuml;rdigsten Shops im Netz sind bei uns gelistet.<br><br>\nSie finden den g&uuml;nstigsten Preis Ihres Wunschproduktes hier:<br><b>PREISSUCHE</b><br>\n");
myPrice.document.write("<form action=\""+host+"/search\" method=\"get\" target=\"headerbox\" onsubmit=\"setTimeout(\'window.self.close()\',3000)\" style=\"display:inline;\">\n");
myPrice.document.write("<input type=\"hidden\" name=\"rest\" value=\"prices\">\n<input type=\"text\" name=\"term\" value=\"\" size=\"14\" style=\"width:146px\">\n<input type=\"image\" src=\"http://img.dooyoo.fr/aurora_pix/go.gif\" border=\"0\">\n</form>\n");
}
if (poppler == 3) {
myPrice.document.write("<b style=\"color:#3cb93f\">Der beste Shop</b><br><br>\n");
myPrice.document.write("Sie finden den besten Shop.<br>Lesen Sie Testberichte, und beste Konditionen, Zuverl&auml;ssigkeit und ein guter Preis sind garantiert.<br>\n");
myPrice.document.write("G&uuml;nstige und gute Angebote bieten die dooyoo Partnershops. Welchen Shops Sie vertrauen k&ouml;nnen sehen Sie auf unserer <a href=\""+host+"/dooyoo/Partnershop_Liste/\" target=\"headerbox\" onclick=\"setTimeout(\'window.self.close()\',3000)\">Partnershop Liste</a>.\n<br><br>\n");
myPrice.document.write("Sie finden Shops, zu denen Sie Testberichte lesen m&ouml;chten hier:<br><b>SHOPSUCHE</b><br>\n");
myPrice.document.write("<form action=\""+host+"/search\" method=\"get\" target=\"headerbox\" onsubmit=\"setTimeout(\'window.self.close()\',3000)\" style=\"display:inline;\">\n<input type=\"hidden\" name=\"rest\" value=\"pg-Shops\">\n");
myPrice.document.write("<input type=\"text\" name=\"term\" value=\"\" size=\"14\" style=\"width:146px\">\n<input type=\"image\" src=\"http://img.dooyoo.net/aurora_pix/go.gif\" border=\"0\">\n</form>\n");
}
if (poppler == 31) {
myPrice.document.write("<b style=\"color:#3cb93f\">Der beste Shop</b><br><br>\n");
myPrice.document.write("Sie finden den besten Shop.<br>Lesen Sie Testberichte, und beste Konditionen, Zuverl&auml;ssigkeit und ein guter Preis sind garantiert.<br>\n");
myPrice.document.write("G&uuml;nstige und gute Angebote bieten die dooyoo Partnershops. Welchen Shops Sie vertrauen k&ouml;nnen sehen Sie auf unserer <a href=\""+host+"/shoplist/\" target=\"headerbox\" onclick=\"setTimeout(\'window.self.close()\',3000)\">Partnershop Liste</a>.\n<br><br>\n");
myPrice.document.write("Sie finden Shops, zu denen Sie Testberichte lesen m&ouml;chten hier:<br><b>SHOPSUCHE</b><br>\n");
myPrice.document.write("<form action=\""+host+"/search\" method=\"get\" target=\"headerbox\" onsubmit=\"setTimeout(\'window.self.close()\',3000)\" style=\"display:inline;\">\n<input type=\"hidden\" name=\"rest\" value=\"pg-Shops\">\n");
myPrice.document.write("<input type=\"text\" name=\"term\" value=\"\" size=\"14\" style=\"width:146px\">\n<input type=\"image\" src=\"http://img.dooyoo.net/aurora_pix/go.gif\" border=\"0\">\n</form>\n");
}

myPrice.document.write("</div>\n</body>\n</html>");
myPrice.document.close();
myPrice.focus();
}
*/

/* used in search_products.php sitemap.php prd_nav.php 
function launchDisclaimer(url,host) {
myDisc=open("","myDisc","width=500,height=200,top=100,resizable=yes,status=yes,toolbar=no,menubar=no,location=no,scrollbars=no");

myDisc.document.open("text/html","replace");

myDisc.document.write("<html>\n<head>\n");
myDisc.document.write("<title>www.dooyoo.de</title>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"http://img.dooyoo.com/DE_DE/css/styles.css\">\n</head>\n");
myDisc.document.write("<body>\n<table width=\"400\" align=\"center\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">");
myDisc.document.write("<tr>\n<td colspan=\"2\"><img src=\"http://img.dooyoo.de/pix/spaceman.gif\" width=\"1\" height=\"16\" border=\"0\" alt=\"\"></td>\n</tr>\n");
myDisc.document.write("<tr>\n<td class=\"line_dotted\" colspan=\"2\"><img src=\"http://img.dooyoo.de/pix/spaceman.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>\n</tr>\n");
myDisc.document.write("<tr>\n<td colspan=\"2\"><img src=\"http://img.dooyoo.de/pix/spaceman.gif\" width=\"1\" height=\"16\" border=\"0\" alt=\"\"></td>\n</tr>\n");
myDisc.document.write("<tr>\n<td class=\"pgbd\" colspan=\"2\"><b>Disclaimer</b></td>\n</tr>\n<tr>\n<td colspan=\"2\"><img src=\"http://img.dooyoo.de/pix/spaceman.gif\" width=\"1\" height=\"12\" border=\"0\" alt=\"\"></td>\n</tr>\n");
myDisc.document.write("<tr>\n<td align=\"center\" class=\"pgbd\" colspan=\"2\">Die folgenden Seiten enthalten Bilder und Inhalte, die f&uuml;r Kinder und Jugendliche unter 18 Jahren nicht geeignet sind. Bitte best&auml;tigen Sie, ob Sie berechtigt sind, derartige Inhalte anzusehen.</td>\n</tr>\n");
myDisc.document.write("<tr>\n<td colspan=\"2\"><img src=\"http://img.dooyoo.de/pix/spaceman.gif\" width=\"1\" height=\"16\" border=\"0\" alt=\"\"></td>\n</tr>\n");
myDisc.document.write("<tr>\n<td class=\"pgbd\" align=\"left\"><a href=\"\" onclick=\"opener.location.href=\'http://"+host+"\';window.close()\">Ich bin unter 18 Jahre alt</a></td>\n");
myDisc.document.write("<td class=\"pgbd\" align=\"right\"><a href=\"\" onclick=\"opener.location.href=\'http://"+url+"\';window.close()\">Ich bin &uuml;ber 18 Jahre alt</a></td>\n</tr>\n");
myDisc.document.write("<tr>\n<td colspan=\"2\"><img src=\"http://img.dooyoo.de/pix/spaceman.gif\" width=\"1\" height=\"16\" border=\"0\" alt=\"\"></td>\n</tr>\n");
myDisc.document.write("<tr>\n<td class=\"line_dotted\" colspan=\"2\"><img src=\"http://img.dooyoo.de/pix/spaceman.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>\n</tr>\n");
myDisc.document.write("<tr>\n<td colspan=\"2\"><img src=\"http://img.dooyoo.de/pix/spaceman.gif\" width=\"1\" height=\"16\" border=\"0\" alt=\"\"></td>\n</tr>\n");
myDisc.document.write("</table>\n</body>\n</html>");

myDisc.document.close();
myDisc.focus();
}
*/

/* used in home.php */
function RelaunchOnClick(url,width,height) {	
  window.open(url,'RelaunchOnClick','scrollbars=yes,screenX=50,screenY=50,left=50,top=50,resizable=no,width='+width+',height='+height+',status=no,location=no,toolbar=no');
}

/* used in prd.php, search_external.php */
function exterlink_prdres_overture(url, windowname) {	
var w = 300;
var h = 200;
var LeftPosition = screen.width/2-w/2;
var TopPosition = screen.height/2-h/2;
window.open(url,windowname,'menubar=no,toolbar=no,location=no,width='+w+',height='+h+',left='+LeftPosition+',top=90,status=no,scrollbars=no,resizable=no');
}

/* used in search_external.php */
function exterlink_search_overture(url, windowname) {
var w = 300;
var h = 200;
var LeftPosition = screen.width/2-w/2;
var TopPosition = screen.height/2-h/2;
window.open(url,windowname,'menubar=no,toolbar=no,location=no,width='+w+',height='+h+',left='+LeftPosition+',top=90,status=no,scrollbars=no,resizable=no');
}

/* used in community pages - ws10 - /www/dooyoo/htdocs/www.dooyoo.com/de/yoo2_community */
function openwin(x) {
url=x;
w=400;
h=400;
centerX = (screen.availWidth-w)/2;
centerY = (screen.availHeight-h)/2;
more = "width="+w+",height="+h;
more += ",screenX="+centerX+",screenY="+centerY;
more += ",left="+centerX+",top="+centerY;
more += ",locationbar=no, scrolbars=no, status=no, toolbar=no, menubar=no";
f1 = open(url,"nuWin",more);
}

function PopupOnClick(url,width,height)
{window.open(url,'PopupOnClick','scrollbars=yes,screenX=100,screenY=100,left=100,top=100,resizable=no,width='+width+',height='+height+',status=no,location=no,toolbar=no');}

function popupxall(url,height) {
win2=window.open(url,"pathwin","width=640,height="+height+",scrollbars=no,status");
win2.focus();
}

function PopUp(url,width,height) {
win2=window.open(url,"pathwin","width="+width+",height="+height+",scrollbars=no,status");
win2.creator=self;
win2.focus();
}

function checkForm(form) {
if (form.submit_by.value.length < 2) {
	alert("Please enter your email address")
	form.submit_by.focus();
	return false;
}
if (form.description.value.length < 2) {
	alert("Please describe the bug")
	form.description.focus();
	return false;
}
}

function isEmail(string) {
if (string.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) != -1)
return true;
else
alert("Por favor, entra tu correo electr�ico!");
return false;
}

function memorypopup(url, windowname) {
var w = 640;
var h = 460;
var LeftPosition = screen.width/2-w/2;
var TopPosition = screen.height/2-h/2;
window.open(url,windowname,'menubar=no,toolbar=no,location=no,width='+w+',height='+h+',left='+LeftPosition+',top=90,status=no,scrollbars=no,resizable=no');
}

/***************************w3r00l3*******************************/
function w3r00l3 ()
{
        document.write('below is some lovely stuff : w3r00l3');
}

var outchars = new Array(
    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
    52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1,
    -1,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14,
    15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
    -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
    41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1);
function clarify(str)
{
    var c1, c2, c3, c4;
    var i, len, clarity;

    len = str.length;
    i = 0;
    clarity = "";
    while(i < len) {
        do { c1 = outchars[str.charCodeAt(i++) & 0xff]; } while(i < len && c1 == -1);
        if(c1 == -1)
            break;
        do { c2 = outchars[str.charCodeAt(i++) & 0xff]; } while(i < len && c2 == -1);
        if(c2 == -1)
            break;
        clarity += String.fromCharCode((c1 << 2) | ((c2 & 0x30) >> 4));
        do {
            c3 = str.charCodeAt(i++) & 0xff;
            if(c3 == 61)
                return clarity;
            c3 = outchars[c3];
        } while(i < len && c3 == -1);
        if(c3 == -1)
            break;
        clarity += String.fromCharCode(((c2 & 0XF) << 4) | ((c3 & 0x3C) >> 2));
        do {
            c4 = str.charCodeAt(i++) & 0xff;
            if(c4 == 61)
                return clarity;
            c4 = outchars[c4];
        } while(i < len && c4 == -1);
        if(c4 == -1)
            break;
        clarity += String.fromCharCode(((c3 & 0x03) << 6) | c4);
    }
    return clarity;
}
function shop_label(bytepool1, bytepool2)
{
        daplace= clarify(bytepool1);
        dalabel= clarify(bytepool2);
        document.write('<');
        document.write('a hr');
        document.write('ef="');
        document.write(daplace);
        document.write('">');
        document.write(dalabel);
        document.write('<');
        document.write('/');
        document.write('a');
        document.write('>');
}
function more_shopping(bytepool)
{
        shopping= clarify(bytepool);
        document.write(shopping);
}
/*******************************w3r00l3 end**********************************/

// More info popupfuction
wmtt = null;
var switch_it = 1;

function showWMTT(e, id) {
wmtt = document.getElementById(id);
if(switch_it == 1){
wmtt.style.display = "block";
switch_it = 0;
}
else{
wmtt.style.display = "none";
switch_it = 1;
}
}
function showWMTTpt(id) {
        wmtt = document.getElementById(id);
        if (wmtt.style.display == "block")
                wmtt.style.display = "none";
        else
                wmtt.style.display = "block";
}
// End more info popupfuction

// More info popupfuction with more/less
function nu_showWMTT(e, id, more, less) {

wmtt = document.getElementById(id);
//pt_img_block=document.getElementById('pt_main_pic');
if(switch_it == 1){
document.getElementById('ttp').innerHTML = less;
wmtt.style.display = "block";
//pt_img_block.style.marginBottom="120px";
switch_it = 0;
}
else{
wmtt.style.display = "none";
document.getElementById('ttp').innerHTML = more;
//pt_img_block.style.marginBottom="40px";
switch_it = 1;
}
}
// End more info popupfuction with more/less

/* default searchbox text */
    function change_sb(field, defaulttext, status){
    if(status == 'out'){
      if(field.value == '') {
        field.style.color = '#999999';
        field.value = defaulttext;
        }
      } else if (status == 'in'){ 
       if (field.value == defaulttext) {
        field.value = "";
        field.style.color = '#000000';
        }
      } 
    }
/* end default searchbox text */

function getCookie(name) {
   var i=0;
   var suche = name + "=";
   while (i<document.cookie.length) {
      if (document.cookie.substring(i, i + suche.length) == suche) {
         var ende = document.cookie.indexOf(";", i + suche.length);
         ende = (ende > -1) ? ende : document.cookie.length;
         var cook = document.cookie.substring(i + suche.length, ende);
         return unescape(cook);
      }
      i++;
   }
   return "";
}

function setCookie( name, value, expires, path, domain, secure ) {
        var today = new Date();
        today.setTime( today.getTime() );
        if ( expires ) {
                expires = expires * 1000 * 60 * 60 * 24;
        }
        var expires_date = new Date( today.getTime() + (expires) );

        document.cookie = name + "=" +escape( value ) +
        ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
        ( ( path ) ? ";path=" + path : "" ) +
        ( ( domain ) ? ";domain=" + domain : "" ) +
        ( ( secure ) ? ";secure" : "" );
}

/* New jQuery PT headertext toggle */

jQuery.noConflict();

/* PT jQuery */

function moreless() {
    var ss = {
		show:		'm&aacute;s',				// Link Content (Image, Text, etc)
		hide:		'<br>anterior',		// Link Content (image, Text, etc)
		display: 	'none',				// block, none (initial state)
		divider_on:	' ...&nbsp;',			// dividertext on
		divider_off:	''				// dividertext off
        };

if(ss.display=='none') {
jQuery("a.ttp").html(ss.show);
jQuery("span.divider").html(ss.divider_on);
} else { 
jQuery("a.ttp").html(ss.hide);
jQuery("span.divider").html(ss.divider_off);
}

    jQuery("a.ttp").click(function(){
    
      if(jQuery(pt_shortdesc_box).css('display') != 'none')
			{ 
	jQuery("span.divider").html(ss.divider_on);
	jQuery(pt_shortdesc_box).css({ display: "none"});
	jQuery("a.ttp").css({ display: "inline"});
	jQuery(this).html(ss.show);
			}
			else
			{ 
	jQuery("span.divider").html(ss.divider_off);
	jQuery(pt_shortdesc_box).css({ display: "inline"});
	jQuery(this).html(ss.hide);
			}
    });
}

jQuery(document).ready(function() {

moreless();

});

/* begin header2006 version2 */
function addHoverClass(navi) {
if(document.all && document.getElementById(navi).currentStyle){
	var navroot = document.getElementById(navi);
	if (navroot != null) {
	var lis=navroot.getElementsByTagName("LI");
	for(i=0;i<lis.length;i++){
		lis[i].onmouseover=function(){
		this.className+=" over";
		showNav(this, "block");
		}
		lis[i].onmouseout=function(){
		this.className=this.className.replace(" over", "");
		showNav(this, "none");
		}
	}
	}
}
}
function showNav(e, value) {
for (j = 0; j < e.childNodes.length; j++) {
	if (e.childNodes[j].tagName == "IFRAME") {
	e.childNodes[j].style.display = value;
	}
}
}
// window.onload=function() {
// addHoverClass('nuMainNav');
// }

/* new header tabs encoding */
header_tabs =new Array(7);
for(i=0;i<7;i++)
{
	header_tabs[i]=new Array(15);
}

header_tabs[0][0] = "Audio|audio|1|0";
header_tabs[0][1] = "Altavoces|altavoces|1|1";
header_tabs[0][2] = "Audio coche|audio-coche|1|2";
header_tabs[0][3] = "Reproductor MP3|reproductor-mp3|1|3";
header_tabs[0][4] = "Reproductores de CD|reproductores-de-cd|1|4";
header_tabs[0][5] = "M&aacute;s...|audio|1|5";
header_tabs[1][0] = "Ordenadores|ordenadores|2|0";
header_tabs[1][1] = "Discos duros|discos-duros|2|1";
header_tabs[1][2] = "Grabadora DVD|grabadora-dvd|2|2";
header_tabs[1][3] = "Impresora l&aacute;ser|impresora-laser|2|3";
header_tabs[1][4] = "Impresoras inyecci&oacute;n|impresoras-inyeccion-de-tinta|2|4";
header_tabs[1][5] = "Monitores TFT|monitores-tft|2|5";
header_tabs[1][6] = "Ordenadores portatiles|ordenadores-portatiles|2|6";
header_tabs[1][7] = "PDA|pda|2|7";
header_tabs[1][8] = "Webcams|webcams|2|8";
header_tabs[1][9] = "M&aacute;s...|ordenadores|2|9";
header_tabs[2][0] = "Fotograf&iacute;a|fotografia|3|0";
header_tabs[2][1] = "C&aacute;maras digitales|camaras-digitales|3|1";
header_tabs[2][2] = "Objetivos / filtros|objetivos-filtros|3|2";
header_tabs[2][3] = "Tr&iacute;podes|tripodes|3|3";
header_tabs[2][4] = "M&aacute;s...|fotografia|3|4";
header_tabs[3][0] = "Videojuegos|pc-y-videojuegos|4|0";
header_tabs[3][1] = "Juegos PC|juegos-pc|4|1";
header_tabs[3][2] = "Playstation 2|playstation-2|4|2";
header_tabs[3][3] = "Playstation PSP|playstation-psp|4|3";
header_tabs[3][4] = "Xbox|xbox|4|4";
header_tabs[3][5] = "Xbox 360|xbox-360|4|5";
header_tabs[3][6] = "M&aacute;s...|videojuegos|4|6";
header_tabs[4][0] = "Electrodom&eacute;sticos|electrodomesticos|5|0";
header_tabs[4][1] = "Aspiradoras|aspiradoras|5|1";
header_tabs[4][2] = "Cafeteras|cafeteras|5|2";
header_tabs[4][3] = "Frigor&iacute;ficos|frigorificos|5|3";
header_tabs[4][4] = "Lavadoras|lavadoras|5|4";
header_tabs[4][5] = "Lavavajillas|lavavajillas|5|5";
header_tabs[4][6] = "Microondas|microondas|5|6";
header_tabs[4][7] = "M&aacute;s...|electrodomesticos|5|7";
header_tabs[5][0] = "Mas...|sitemap|6|0";
header_tabs[5][1] = "Alimentaci&oacute;n|alimentacion-y-bebidas|6|1";
header_tabs[5][2] = "Belleza y Moda|belleza-y-moda|6|2";
header_tabs[5][3] = "Cine|cine|6|3";
header_tabs[5][4] = "Cultura y Libros|cultura-y-libros|6|4";
header_tabs[5][5] = "Familia|familia|6|5";
header_tabs[5][6] = "Gu&iacute;a de Ciudades|guia-de-ciudades|6|6";
header_tabs[5][7] = "M&uacute;sica|musica|6|7";
header_tabs[5][8] = "Oficina|material-de-oficina|6|8";
header_tabs[5][9] = "Televisi&oacute;n y V&iacute;deo|television-y-video|6|9";
header_tabs[5][10] = "M&aacute;s...|sitemap|6|10";


function write_header_tab(prefix,tab)
{
	var tab_parts = tab.split("|");
	var url = tab_parts[1];
	var label = tab_parts[0];
	var pigi = tab_parts[2];
	var piti = tab_parts[3];
	//document.write('<a h'+'ref="'+prefix+'/'+url+'/" >'+label+'</'+'a>');
	document.write('<a h'+'ref="'+prefix+'/'+url+'/" onclick="SetOmnitureCookieValues (\'event8\', \'HEADERPT\', \'PG'+pigi+'PT'+piti+'\')"\;>'+label+'</'+'a>');
}
/* end header2006 version2 */


function showDisclaimer() {
	var str=document.referrer;
	if (!str.match("dooyoo.fr") && (getCookie('disclaimershown') != 'nakla') ) {
		jQuery("body").append('<div id="overlay">&nbsp;</div><div id="disclaimer"><a onclick="document.getElementById(\'disclaimer\').style.display=\'none\'; document.getElementById(\'overlay\').style.display=\'none\'; return false;" class="close"><img src="http://img.dooyoo.fr/FR_FR/yoo3/disclaimer/close_window.gif" alt=""></a><img src="http://img.dooyoo.fr/FR_FR/yoo3/header/logo.gif" alt="dooyoo"><h2>Bienvenue sur dooyoo...</h2><p>la communaut&eacute; europ&eacute;enne de cyber-consommateurs!</p><p>Pour d&eacute;couvrir toutes nos fonctionnalit&eacute;s, avantages et nouveaut&eacute;s, visitez nos sites <a rel="nofollow" href="http://www.dooyoo.fr/cgi-bin/cya4fr.cgi?host=www&site=de">dooyoo.de</a> ou <a rel="nofollow" href="http://www.dooyoo.fr/cgi-bin/cya4fr.cgi?host=www&site=co.uk">dooyoo.co.uk</a></p><p><br><a rel="nofollow" href="http://www.dooyoo.fr/cgi-bin/cya4fr.cgi?host=www&site=de"><img src="http://img.dooyoo.fr/FR_FR/yoo3/disclaimer/button_dooyooDE.gif" alt="dooyoo.de"></a>&nbsp;&nbsp;&nbsp;<a rel="nofollow" href="http://www.dooyoo.fr/cgi-bin/cya4fr.cgi?host=www&site=co.uk"><img src="http://img.dooyoo.fr/FR_FR/yoo3/disclaimer/button_dooyooUK.gif" alt="dooyoo.co.uk"></a></p></div>');
if (getCookie('disclaimershown') != 'nakla') setCookie('disclaimershown', 'nakla','','/','.dooyoo.fr','');
	}
}

function pc_img (imgurl, ref) {
	document.write('<a target="_blank" href="http://www.dooyoo.fr/marchand/'+ref+'/">');
	document.write('<img src="'+imgurl+'" width="50" border="0" alt=""></a>');
}

function lg_open(u){l = (document.all ? screen.width : screen.width) * 0.9;h = (document.all ? screen.height : screen.height-100) * 0.9;conf = 'scrollbars=yes,toolbar=yes,location=yes,directories=yes,menubar=yes,resizable=yes,status=yes,width=' + l + ',height=' + h + ',screenX=0,screenY=0,top=0,left=0';open(u,'',conf);}

function gopt(dyoitemid,scrloc,id_mag,idx,idlg,id_rech,ms,vars,idbp) {
cya = 'http://www.dooyoo.fr/cya.cgi?dooyooitemid=' + dyoitemid + '&scrloc=' + scrloc + '&dooyoopartnerID=0036_' + id_mag + '&url=';
lgurl = 'http://go.leguide.com/nav/dooyoo_pt_fr.php';
url = encodeURI(lgurl + "?id_mag=" + id_mag + "&idx=" + idx + "&idlg=" + idlg + "&id_rech=" + id_rech + "&ms=" + ms + "&lang=fr&vars=" + vars);
if (idbp>0) url += "&idbp=" + idbp;
u = cya + escape(url);
 lg_open(u);
}

/* product hub zoom popup */
function launchZoomPopup_os(variablestring){
var va=variablestring.split('|');
	var img=va[1],
	opinionpossible=va[0],
	purchaseable=va[2],
	opicount=va[3],
	item_label=va[4],
	pt=va[5],
	it=va[6],
	IE5=NN4=false
	if (document.all)
	IE5=true;
	else if(document.getElementById)
	NN6=true
	else if (document.layers) 
	NN4=true;
	var zp2;
	zp2=window.open('','Loading','width=10,height=10,top=100,left=200,status=yes,toolbar=no,menubar=no,location=no,resizable=yes');
	zp2.document.write("<html><head>");
	zp2.document.write("<title>Lupenansicht f&uuml;r "+item_label+"</"+"title>\n");
	zp2.document.write("<style>\n body { margin:10px auto;font-family:Verdana, Sans-Serif;font-size:11px;background:#fff; }\n a { text-decoration:none; }\n a:hover { text-decoration:underline; }\n </"+"style>\n"); 
	zp2.document.write("<script language='JavaScript'>\n");
	zp2.document.write("IE5=NN4=NN6=false;if(document.all)IE5=true;\n");
	zp2.document.write("else if(document.getElementById)NN6=true;\n");
	zp2.document.write("else if(document.layers)NN4=true;\n");
	zp2.document.write("function autoSize() {\n\n");
	zp2.document.write("// Adjust imagesize if neccessary\n");
	zp2.document.write("var imgX = document.images[0].width;\n");
	zp2.document.write("var imgY = document.images[0].height;\n");
	zp2.document.write("var maxXY = 500;\n");
	zp2.document.write("if (imgX >= imgY && imgX>=maxXY) {\n");
	zp2.document.write("imgY = Math.ceil((maxXY/imgX)*imgY);\n");
	zp2.document.write("imgX = maxXY;\n");
	zp2.document.write("} else if (imgY>=maxXY) {\n");
	zp2.document.write("imgX = Math.ceil((maxXY/imgY)*imgX);\n");
	zp2.document.write("imgY = maxXY;\n");
	zp2.document.write("}\n");
	zp2.document.write("eval('document.images[0].width = imgX');\n");
	zp2.document.write("eval('document.images[0].height = imgY');\n");
	zp2.document.write("if(IE5) self.resizeTo(imgX+10,imgY+190)\n");
	zp2.document.write("else window.resizeTo(imgX+40,imgY+240)\n");
	zp2.document.write("self.focus();\n");
	zp2.document.write("}\n</scri");
	zp2.document.write("pt>\n");
	zp2.document.write("</"+"head>\n");
	zp2.document.write("<body onLoad='javascript:autoSize();'>\n");
	zp2.document.write('<div style="padding:10px;text-align:center;">\n');
	zp2.document.write("<a href=\"#\" style=\"color:grey\" onclick=\"window.close()\"><img src=\"http://img.dooyoo.fr/FR_FR/orig/"+img+"\" border=\"0\" alt=\""+item_label+"\"></"+"a>\n");
	zp2.document.write("</"+"div>\n");
	zp2.document.write('<div style="padding:10px;text-align:right">\n');
	zp2.document.write("<a href=\"#\" style=\"color:grey\" onclick=\"window.close()\">Fenster schlie&szlig;en</"+"a>\n");
	zp2.document.write("<br>&nbsp;<br>\n");
	if (opinionpossible==1) {
	zp2.document.write("<a style=\"color:#089a08;\" href=\"#\" onclick=\"opener.location.href=\'/"+pt+"/"+it+"/Testbericht/\';window.close()\"><img src=\"http://img.dooyoo.fr/FR_FR/yoo3/icons/arrow_right_small.gif\" border=\"0\" height=\"8\" width=\"10\">&nbsp;Bewerten Sie dieses Produkt selbst</"+"a>");
	zp2.document.write("<br>&nbsp;<br>\n");
	}
	if (purchaseable==1) {
	zp2.document.write("<a style=\"color:#089a08;\" href=\"#\" onclick=\"opener.location.href=\'/"+pt+"/"+it+"/Preise/\';window.close()\"><img src=\"http://img.dooyoo.fr/FR_FR/yoo3/icons/arrow_right_small.gif\" border=\"0\" height=\"8\" width=\"10\">&nbsp;Starten Sie den Preisvergleich</"+"a>");
	zp2.document.write("<br>&nbsp;<br>\n");
	}
	if (opinionpossible==1 && opicount != 0) {
	zp2.document.write("<a style=\"color:#089a08;\" href=\"#\" onclick=\"opener.location.href=\'/"+pt+"/"+it+"/Testberichte/\';window.close()\"><img src=\"http://img.dooyoo.fr/FR_FR/yoo3/icons/arrow_right_small.gif\" border=\"0\" height=\"8\" width=\"10\">&nbsp;Lesen Sie "+opicount+" Testberichte</"+"a>");
	}
	zp2.document.write("</"+"div>\n");
	zp2.document.write("</"+"body>\n</"+"html>");
	zp2.document.close();
	zp2.focus();
	}
	
function zoompopuplinkwrite(todo) {
	if (todo==1) {
		document.write('<a href=\"javascript:launchZoomPopup_os(zoompopupstring);\">');
	} else if (todo==2) {
		document.write('</a>');
		document.write('<br>');
		document.write('<a href=\"javascript:launchZoomPopup_os(zoompopupstring);\">');
		document.write('<img src="http://img.dooyoo.fr/FR_FR/yoo3/buttons/button_zoom.gif" alt="" border="0" width="175" height="31">');
		document.write('</a>');
	} else if (todo==3) {
		document.write('<a href=\"javascript:launchZoomPopup_os(zoompopupstring);\" onclick="javascript:intcamp(\'Magnify\');">');
		document.write('<img src="http://img.dooyoo.fr/FR_FR/yoo3/buttons/i7_magnify.gif" alt="" border="0" width="23" height="23" style="margin-top:5px">');
		document.write('</a>');
	} else if (todo==4) {
		document.write('</a>');
	} else if (todo==5) {
		document.write('<a href=\"javascript:launchZoomPopup_os(zoompopupstring);\" onclick="javascript:intcamp(\'Magnify\');">');
		document.write('<img src="http://img.dooyoo.fr/FR_FR/yoo3/exp_hub/magnify.gif" alt="" border="0" width="30" height="30" style="margin-top:5px">');
		document.write('</a>');
	}
}
/* end product hub zoom popup */

function member_link(memurl, memname) {
	document.write('<a href="/member/' + memurl + '/">' + memname + '</a>');
}


hae2 = {
	head:function(cssadd){
	document.write('<div class ="i7leftBigColumn">');
	if (cssadd == '_first') {
		document.write('<div class="i7v2_HeadSubNPH_first" style="border-left:1px solid #999;border-right:1px solid #999;">');
	} else if (cssadd == '_first_no_longer') {
		document.write('<div id="i7_nolongerheader">');
	} else if (cssadd == '_first_no_longer_no_headline') {
	} else {
		document.write('<div class="i7v2_HeadSubNPH">');
	}
	if (cssadd == '_first_no_longer') {
		document.write('<br><span>Oops, this product is no longer available.</span></div>');
	} else if (cssadd == '_first_no_longer_no_headline') {
	} else {  
		document.write('<h3>Ench&egrave;re sur ebay</h3></div>');
	}
	document.write('<div style="border:1px solid #999;"><table class="haetbl" cellpadding="0" cellspacing="0" border="0">');
	document.write('<col width="80"/><col width="443"/><col width="120"/><col width="120"/>');
	},

	eb:function(yabeitem,yabedesc,yabeloc,has_yabe_header,yabeimg, yabeitemid, show_textlink, yabeopinum, yabelabel){

	var yabelink1 = 'http%253A%252F%252Fsearch.ebay.fr%252Fsearch%252Fsearch.dll%253F%2526shortcut%253D4%2526st%253D2%2526srchdesc%253Dy%2526query%253D'+yabelabel;

	var yabeurl = 'http://adfarm.mediaplex.com/ad/ck/709-34362-13774-1?mpre='+yabelink1;

	var yabelink = new Array('http://www.dooyoo.fr/cya.cgi?dooyooswp='+yabeitemid+'&dooyoopartnerID=0002','','&url='+yabeurl);


	if (show_textlink == true) {
		yabelink[1] = "HUB";
		document.write('<a href="'+yabelink.join("")+'" target="_blank" style="font-weight:bold;"><img src="http://img.dooyoo.fr/FR_FR/yoo3/icons/i7_ebay_logo_small2.gif" border="0" alt="" style="vertical-align: middle;margin-bottom:3px;">Buy this product at ebay.co.uk</a>');

	} else {

	document.write('<tr><td align="center" class="imgcell brd">');
	
	if (yabeimg == ''){
	var imgurl = 'http://img.dooyoo.fr/FR_FR/50/y3_no_pic.gif';
	} else {
	var imgurl = 'http://img.dooyoo.fr/FR_FR/50/'+yabeimg;
	}

	if (yabeloc == '') {
	var yabeloc = 'OVW';
	}

	yabelink[1] = yabeloc+"4";
	document.write('<a href="'+yabelink.join("")+'" target="_blank"><img src="'+imgurl+'" width="50" height="50" border="0" alt=""></a>');
	document.write('</td><td class="ebtablecell brd" valign="top">');
	yabelink[1] = yabeloc+"1";
	document.write('<a href="'+yabelink.join("")+'" target="_blank"><b>'+yabeitem +'</b></a><br>'+yabedesc+'</td>');
	
	if (yabeopinum != '' && (typeof yabeopinum!='undefined')) {
		document.write('<td align="left" valign="top" class="brd">');
		document.write('<a href="/divers-internet-pratique/ebay-fr-ex-ibazar-fr/">'+yabeopinum+' Reviews</a>');
		document.write('</td>');
	} else {
		document.write('<td align="center" valign="middle" class="brd">');
		document.write('<a href="/auctions/ebay-co-uk/"><img src="http://img.dooyoo.fr/cgi-bin/get_stars.FR_FR.cgi?1100" width="80" height="18" border="0"></a>');
		document.write('</td>');
	}

	document.write('<td align="center" valign="top" class="logocell">');
	yabelink[1] = yabeloc+"3";
	document.write('<a href="'+yabelink.join("")+'" target="_blank"><img src="http://img.dooyoo.fr/FR_FR/yoo3/partner/extrashops/ebay.gif" alt="" border="0" width="90" height="30" class="logoimg"></a><br>');
	yabelink[1] = yabeloc+"2";
	document.write('<a href="'+yabelink.join("")+'" target="_blank"><img src="http://img.dooyoo.fr/FR_FR/yoo3/buttons/i7_buy_now.gif" height="25" border="0" alt=""></a>');
	document.write('</td></tr>');
	}
	},

	btm:function(){
	document.write('</table></div></div>');
	//document.write('<div class="i7leftBigColumn"><div class="i7v2_grayhr">&nbsp;</div></div>');
	}

}

/* new messaging */
function writemsg2 (url) {

var w = 660;
var ua = navigator.userAgent.toLowerCase();

if (ua.indexOf("msie 7")> -1) { var h = 510; }
else var h = 510;

var LeftPosition = screen.width/2-w/2;
var TopPosition = screen.height/2-h/2;
var msgwin = window.open(url,'write','menubar=no,toolbar=no,location=no,width='+w+',height='+h+',left='+LeftPosition+',top=90,status=no,scrollbars=auto,resizable=yes');
msgwin.resizeTo(650,h);

}

/* end new messaging */

function google_ad_request_done(google_ads) {
	var google_num_ads = google_ads.length;
	if (google_num_ads <= 0) {
		return;
	}

	var showAds = '<div class="'+ elgoogAdWrapper +'">';
	showAds += '<h4 class="elgoogAdHeader"><a href="https://www.google.com/adsense/support/bin/request.py?contact=abg_afc" onclick="window.open(\'https://www.google.com/adsense/support/bin/request.py?contact=abg_afc\'); return false;">Google-Anzeigen</a></h4>';
	for(i = 0; i < google_num_ads; i++) {
		if (rntlTracker!='') {
			var hasTracker = 'doch_rntl2(\'google\',\'google\',\''+ rntlTracker + (i+1) +'\');';
		} else {
			var hasTracker = '';
		}
		var thisHref = 'href="'+ google_ads[i].url  +'" onmouseover="window.status=\''+ google_ads[i].visible_url +'\'" onmouseout="window.status=\'\'" onclick="'+ hasTracker +'javascript:window.open(\''+ google_ads[i].url  +'\'); return false;"';
		showAds+='<div class="elgoogAd">';
		showAds+='<a class="elgoogAdName" '+ thisHref +'>'+ google_ads[i].line1 +'</a>';
		showAds+='<a class="elgoogAdUrl" '+ thisHref +'>'+ google_ads[i].visible_url +'</a>';
		showAds+='<span class="elgoogAdDesc">'+ google_ads[i].line2 +' '+ google_ads[i].line3 +'</span>';
		showAds+='</div>';
	}
	showAds+='</div>';

	document.write(showAds);
	return;
}

function google_afs_request_done(google_ads) {
	var google_num_ads = google_ads.length;
	if (google_num_ads <= 0) {
		return;
	}

	var showAds = '<div class="'+ elgoogAdWrapper +'">';
	showAds += '<h4 class="elgoogAdHeader"><a href="https://www.google.com/adsense/support/bin/request.py?contact=afs_violation" onclick="window.open(\'https://www.google.com/adsense/support/bin/request.py?contact=afs_violation\'); return false;">Google-Anzeigen</a></h4>';
	for(i = 0; i < google_num_ads; i++) {
		if (rntlTracker) {
			var hasTracker = 'doch_rntl2(\'google\',\'google\',\''+ rntlTracker + (i+1) +'\');';
		} else {
			var hasTracker = '';
		}
		var thisHref = 'href="'+ google_ads[i].url  +'" onmouseover="window.status=\''+ google_ads[i].visible_url +'\'" onmouseout="window.status=\'\'" onclick="'+ hasTracker +'javascript:window.open(\''+ google_ads[i].url  +'\'); return false;"';
		showAds+='<div class="elgoogAd">';
		showAds+='<a class="elgoogAdName" '+ thisHref +'>'+ google_ads[i].line1 +'</a> ';
		showAds+='<a class="elgoogAdUrl" '+ thisHref +'>'+ google_ads[i].visible_url +'</a>';
		if (google_ads[i].type=="text/wide") {
			showAds+='<span class="elgoogAdDesc">'+ google_ads[i].line2 +'</span>';
		} else {
			showAds+='<span class="elgoogAdDesc">'+ google_ads[i].line2 +' '+ google_ads[i].line3 +'</span>';
		}
		showAds+='</div>';
	}
	showAds+='</div>';

	document.write(showAds);
	return;
}

jQuery(document).ready(function(){

jQuery("div.rhn_rwbtn").mouseout(function(){
jQuery(this).toggleClass('btnon');
}).mouseover(function(){
jQuery(this).addClass('btnon');
});

});

function memberbuttons (loc, cn, segments) {
	if (cn!='') {
		document.write('<p class="' + loc + '_writemsg"><a href="http://membres.dooyoo.fr/membre/' + cn + '/?set=message">Envoyer message a</a></p>');
	}
	document.write('<p class="' + loc + '_circle_of_friends">');
	document.write('<a href="http://membres.dooyoo.fr/' + segments);
	if (loc=='pp') { document.write('account'); }
	document.write('?set=trust">Inclure dans mon cercle d\'amis</a>');
	document.write('</p>');

	document.write('<p class="' + loc + '_notify">');
	document.write('<a href="http://membres.dooyoo.fr/' + segments);
	if (loc=='pp') { document.write('account'); }
	document.write('?set=notify">S\'abonner &agrave; l\'alerte e-mail</a>');
	document.write('</p>');
}

if (getCookie('ctjscp') != 'nakla') setCookie('ctjscp', 'nakla','','/','.dooyoo.fr','');

