// JavaScript Document
function WriteSwf(img,wsize,hsize){
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+wsize+"\" height=\""+hsize+"\">");
    document.write("<param name=\"movie\" value=\""+img+"\">");
    document.write("<param name=\"quality\" value=\"high\">");
     document.write("<param name=wmode value=transparent>");
    document.write("<embed src=\""+img+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+wsize+"\" height=\""+hsize+"\"></embed>");
	document.write("</object>");
}

//Manejo de Ventanas emergentes

window.onload = initPage;  
// Make sure that no other javscripts assign a fuction to window.onload
// There can be only one window.onload at a time

function initPage() {
  initPopupLinks();
  // place here any other code you wish to run when the page loads.
}

function initPopupLinks()
{
  if (!document.getElementsByTagName) return true;
  var pageLinks = document.getElementsByTagName("a");
  for (var i = 0; i < pageLinks.length; i++) 
  {
    if (((pageLinks[i].className != null) && 
         (pageLinks[i].className != "")) ||
        ((pageLinks[i].parentNode.className != null) && 
         (pageLinks[i].parentNode.className != "")))
    {
      var linkClass = " " + pageLinks[i].className + " ";
      if ((linkClass == "  ") && (pageLinks[i].parentNode.className != ""))
      {
        linkClass = " " + pageLinks[i].parentNode.className + " ";
      }
      for (var theKey in popupLinkConfig) 
      {
        if (linkClass.indexOf(" " + theKey + " ") > -1)
        {
          if ((pageLinks[i].target == "") || (pageLinks[i].target == null))
          {
            pageLinks[i].target = (popupLinkConfig[theKey][0] != "") ? popupLinkConfig[theKey][0] : theKey;
          }
          pageLinks[i].settings = popupLinkConfig[theKey][1];
          pageLinks[i].onclick = popUp;
        }
      }
    }
  }
  return true;
}

function popUp()
{
  newWin = window.open(this.href, this.target, this.settings);
  newWin.focus();
  return false;
}

var popupLinkConfig = new Array;
// Delete/copy/modify the following lines to configure your popup windows.
popupLinkConfig["obra300"] = new Array ( "", "width=300,height=520,top=40,left=250,resizable=no,status=no,scrollbars=no");
popupLinkConfig["obra400"] = new Array ( "", "width=400,height=520,top=40,left=200,resizable=no,status=no,scrollbars=no");
popupLinkConfig["obra500"] = new Array ( "", "width=500,height=520,top=40,left=150,resizable=no,status=no,scrollbars=no");
popupLinkConfig["obra600"] = new Array ( "", "width=600,height=520,top=40,left=100,resizable=no,status=no,scrollbars=no");
popupLinkConfig["obra600a"] = new Array ( "", "width=650,height=470,top=50,left=80,resizable=no,status=no,scrollbars=no");
popupLinkConfig["obra600b"] = new Array ( "", "width=600,height=424,top=80,left=100,resizable=no,status=no,scrollbars=no");
popupLinkConfig["obra700"] = new Array ( "", "width=700,height=520,top=40,left=50,resizable=no,status=no,scrollbars=no");
popupLinkConfig["obra800"] = new Array ( "", "width=800,height=520,top=40,resizable=no,status=no,scrollbars=no");
popupLinkConfig["obra800a"] = new Array ( "", "width=800,height=304,top=150,resizable=no,status=no,scrollbars=no");
popupLinkConfig["obra800b"] = new Array ( "", "width=800,height=389,top=100,resizable=no,status=no,scrollbars=no");