// JavaScript Document<script type="text/JavaScript">
<!--
function abreWindow_home(jc) {
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (250 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (250 + 40); //half the screen height minus half the new window height (plus title and status bars).
	var win2 = window.open(jc,"flash","height=500,width=500,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no" + ",scrollbars=false" +  ",resizable=no");
	win2.focus();
}
function abreWindow_acabado(jc) {
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (340 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (350 + 40); //half the screen height minus half the new window height (plus title and status bars).
	var win2 = window.open(jc,"flash","height=700,width=680,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes" + ",scrollbars=true" +  ",resizable=no");
	win2.focus();
}
function openPoupCenter2(theurl,winname,features, mywidth, myheight, iscenter) { //v3.0
	winname = 'popup'
	features = 'scrollbars=yes'
	//mywidth = '700'
	//myheight = '600'
	iscenter = 'true'
	if(window.screen)if(iscenter)if(iscenter=="true"){
		var myleft = (screen.width-mywidth)/2;
		var mytop = (screen.height-myheight)/2;
		features+=(features!='')?',':'';
		features+=',left='+myleft+',top='+mytop;
	}
	window.open(theurl,winname,features+((features!='')?',':'')+'width='+mywidth+',height='+myheight);
}

function openPoupCenter(theurl,winname,features, mywidth, myheight, iscenter) { //v3.0
	//winname = 'popup'
	features = ''
	//mywidth = '700'
	//myheight = '600'
	iscenter = 'true'
	if(window.screen)if(iscenter)if(iscenter=="true"){
		var myleft = (screen.width-mywidth)/2;
		var mytop = (screen.height-myheight)/2;
		features+=(features!='')?',':'';
		features+=',left='+myleft+',top='+mytop;
	}
	window.open(theurl,winname,features+((features!='')?',':'')+'width='+mywidth+',height='+myheight);
}
<!--
/***********************************************
* Gradual Highlight image script-  Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
//-->

var baseopacity=70

function slowhigh(which2){
imgobj=which2
browserdetect=which2.filters? "ie" : typeof which2.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
highlighting=setInterval("gradualfade(imgobj)",10)
}

function slowlow(which2){
cleartimer()
instantset(baseopacity)
}

function instantset(degree){
if (browserdetect=="mozilla")
imgobj.style.MozOpacity=degree/100
else if (browserdetect=="ie")
imgobj.filters.alpha.opacity=degree
}

function cleartimer(){
if (window.highlighting) clearInterval(highlighting)
}

function gradualfade(cur2){
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.1, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

