// photostock_pop

function op(pag,nombre){
	
	var pos_y,pos_x,monitor_a,monitor_b;
	
	monitor_a = window.screen.availWidth;
	monitor_b = window.screen.availHeight;
	ancho = monitor_a-10;
	alto = 660;
	pos_x = (parseInt(monitor_a/2) - parseInt(ancho/2));
	pos_y = 0;
	
  	s = window.open(pag,nombre,'top='+pos_y+',left='+pos_x+',width='+ancho+',height='+alto+',scrollbars=yes,resizable=0,menubar=0,location=0,toolbar=0,status=0');

}
function op_royal(pag,nombre){
	
	var pos_y,pos_x,monitor_a,monitor_b;
	
	monitor_a = window.screen.availWidth;
	monitor_b = window.screen.availHeight;
	ancho = monitor_a-10;
	alto = monitor_b-16;
	pos_x = (parseInt(monitor_a/2) - parseInt(ancho/2));
	pos_y = 0;
	
  	s = window.open(pag,nombre,'top='+pos_y+',left='+pos_x+',width='+ancho+',height='+alto+',scrollbars=yes,resizable=0,menubar=0,location=0,toolbar=0,status=0');

}

// arreglos URLs <SELECT>

//function makeArray(){

//var args = makeArray.arguments;
	//for(var i=0;i<args.length;i++){
		//this[i] = args[i];
	//}
	//this.length = args.length;
//}

//var urls = new makeArray("","gente.html","familia.html","sociales.html","deportes.html","trabajo.html");

function vamos(seleccion){
	i = seleccion.temas.selectedIndex;
	window.location.href = seleccion.temas.options[i].value;
}

// cambio paginas 'Royalty Free'

function cambio_pag(uno,dos){
	parent.mid.location.href = uno;
	parent.royalty_foot.location.href = dos;
}

// rollOvers de Imagenes y links

function rollers(identity,front_color,back_color){
	document.getElementById(identity).style.color = front_color;
	document.getElementById(identity).style.backgroundColor = back_color;
}
function portadas(que_imagen,frame_mid,frame_bajo,identity,front_color,back_color,nom){
	
	if(parent.frames[frame_mid].document.images[nom]){
		parent.frames[frame_mid].document.images[nom].src = que_imagen;
	}
		parent.frames[frame_bajo].document.getElementById(identity).style.color = front_color;
		parent.frames[frame_bajo].document.getElementById(identity).style.backgroundColor = back_color;
	
}

// imagen grande final

function img_pop(pag,ancho,alto){
	
	var pos_y,pos_x,monitor_a,monitor_b;
	
	monitor_a = window.screen.availWidth;
	monitor_b = window.screen.availHeight;
	pos_x = (parseInt(monitor_a/2) - parseInt(ancho/2));
	pos_y = (parseInt(monitor_b/2) - parseInt(alto/2));
	
  	a = window.open(pag,'photostock_foto_full','top='+pos_y+',left='+pos_x+',width='+ancho+',height='+alto+',scrollbars=yes,resizable=0,menubar=0,location=0,toolbar=0,status=0');
	
}

//LEGAL

function policy(pag){
	
	var pos_y,pos_x,monitor_a,monitor_b,ancho,alto;
	
	monitor_a = window.screen.availWidth;
	monitor_b = window.screen.availHeight;
	ancho = 700;
	alto = 320;
	pos_x = (parseInt(monitor_a/2) - parseInt(ancho/2));
	pos_y = (parseInt(monitor_b/2) - parseInt(alto/2));
	
  	a = window.open(pag,'nuevo','top='+pos_y+',left='+pos_x+',width='+ancho+',height='+alto+',scrollbars=yes,resizable=0,menubar=0,location=0,toolbar=0,status=0');
	
	
}

//
//function identif(){
//	document.forms["ident"].cont.value = window.name;
//}

//ESTO VA AL FINAL DE LA TABLA
        //</tr>
		//<tr><td height="20" colspan="7" align="center">
			//<form>
			//<select name="temas" size="1" onchange="vamos(this.form);">
			//<option value="gente.html">:::::: todas ::::::</option>
			//<option value="gente_2.html">:: emociones ::</option>
			//<option value="gente_3.html">:: familia ::</option>
			//<option value="gente_4.html">:: sociales ::</option>
			//<option value="gente_5.html">:: deportes ::</option>
			//<option value="gente_6.html">:: trabajo ::</option>
			//</select>
			//</form>
			//</td></tr>