try{
  document.domain='dismedgroup.com'
}catch(e){}

function animacion(direccion,ancho,alto){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="'+ancho+'" height="'+alto+'">');
	document.write('<param name="movie" value="'+direccion+'" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="sameDomain" /><param name="quality" value="high" /><embed src="'+direccion+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" width="'+ancho+'" height="'+alto+'" wmode="transparent"></embed></object>');
}

function writeStyle(document){
	if(document.createStyleSheet) {
		document.createStyleSheet('http://www.dismedgroup.com/estilo.css');
	}else{
		var styles = "@import url('http://www.dismedgroup.com/estilo.css');";
		var newSS=document.createElement('link');
		newSS.rel='stylesheet';
		newSS.href='data:text/css,'+escape(styles);
		document.getElementsByTagName("head")[0].appendChild(newSS);
	}
}

function writeFooter(document){
	var html='<center><br><br><div style="width:500px; text-align:center"><a class="pie" href="http://www.dismedgroup.com/empresa.htm">La empresa</a> | <a class="pie" href="http://www.dismedgroup.com/privacidad.htm">Protecci&oacute;n de datos</a> | <a class="pie" href="http://www.dismedgroup.com/devoluciones.htm">Pol&iacute;tica de devoluciones</a> | <a class="pie" href="http://oscarnet.dismedgroup.com/contact_us.aspx">Contacte</a> | <a class="pie" href="http://www.dismedgroup.com/legal.htm">Aviso legal</a>';
	html+='<br><br><a class="pie" href="http://www.dismedgroup.com/promociones.htm">Inicio</a> | <a class="pie" href="http://oscarnet.dismedgroup.com/Logout.aspx">Cerrar sesi&oacute;n</a></div></center><br/>';
	html+='<center><table cellspacing="0" cellpadding="0"><tr>';
	html+='<td align="center" valign="middle" width="60"><img src="http://www.dismedgroup.com/images/tpv/Visa1.jpg"/></td>';
	html+='<td align="center" valign="middle" width="60"><img src="http://www.dismedgroup.com/images/tpv/VisaElectron1.jpg"/></td>';
	html+='<td align="center" valign="middle" width="100"><img style="cursor:pointer" onclick="abrirVisa()" src="http://www.dismedgroup.com/images/tpv/VerifiedByVisaLearnMore1.gif"/></td>';
	html+='<td align="center" valign="middle" width="60"><img src="http://www.dismedgroup.com/images/tpv/MasterCard1.jpg"/></td>';
	html+='<td align="center" valign="middle" width="60"><img src="http://www.dismedgroup.com/images/tpv/Maestro1.jpg"/></td>';
	html+='<td align="center" valign="middle" width="100"><img style="cursor:pointer" onclick="abrirMasterCard()" src="http://www.dismedgroup.com/images/tpv/MastercardSecureCodeLearnMore1.gif"/></td>';
	html+='</tr></table></center><br/>';
	html+='<center><b>Compre&nbsp;&nbsp;con&nbsp;&nbsp;seguridad&nbsp;&nbsp;3D&nbsp;&nbsp;Secure.</b></center>';
	var div=document.createElement("div");
	div.innerHTML=html
	document.body.appendChild(div);
}

function abrirVisa(){
	window.open("https://sis-t.sermepa.es:25443/sis/html/verifiedByVisa1.html","","width=550,height=400")
}

function abrirMasterCard(){
	window.open("http://www.mastercard.com/us/business/en/corporate/securecode/sc_popup.html","","width=550,height=400")
}

function resizeFrame(frame){
	try{
		frame.scrolling='no';
		writeStyle(frame.contentWindow.document);
		writeFooter(frame.contentWindow.document);
		window.scrollTo(0,0);
		frame.style.height=Math.max(frame.contentWindow.document.body.scrollHeight,frame.contentWindow.document.body.offsetHeight)+'px';
		frame.style.width='516px';
		var width=Math.max(frame.contentWindow.document.body.scrollWidth,frame.contentWindow.document.body.offsetWidth);
		if(width>516) width+=10;
		frame.style.width=width+'px';		
	}catch(e){
		frame.scrolling='auto';
		if(frame.style.height!='3200px'){
			frame.style.height='700px';
			frame.style.width='700px';
		}
	}
}

try{
	/*if(top.location.href.indexOf('www.dismedgroup.com')<0){
		if(location.href.indexOf('dismedgroup.oscarnet.es')>=0)
			top.location.href='http://www.dismedgroup.com/default.htm?contenido=http://oscarnet.dismedgroup.com/'+location.href.substring(location.href.indexOf('oscarnet.es')+12);
		else top.location.href='http://www.dismedgroup.com/default.htm?contenido='+location.href;
	}*/
}catch(e){}

