From: <Guardado por Microsoft Internet Explorer 7>
Subject: Gadgets
Date: Thu, 28 May 2009 10:20:48 +0200
MIME-Version: 1.0
Content-Type: multipart/related;
	type="text/html";
	boundary="----=_NextPart_000_0009_01C9DF7D.F8400120"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579

This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C9DF7D.F8400120
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.my-catalog.at/1098_09_summer_04_es_por/

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Gadgets</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<SCRIPT language=3Djavascript>AC_FL_RunContent =3D 0;</SCRIPT>

<SCRIPT language=3Djavascript=20
src=3D"http://www.my-catalog.at/1098_09_summer_04_es_por/FVX_RunActiveCon=
tent.js"></SCRIPT>

<SCRIPT language=3DJavaScript type=3Dtext/javascript>
<!--
// =
-------------------------------------------------------------------------=
----
// Globals
// Major version of Flash required
var requiredMajorVersion =3D 9;
// Minor version of Flash required
var requiredMinorVersion =3D 0;
// Minor version of Flash required
var requiredRevision =3D 115;
// =
-------------------------------------------------------------------------=
----
// -->
</SCRIPT>

<STYLE type=3Dtext/css>HTML {
	BORDER-RIGHT: medium none; PADDING-RIGHT: 0px; BORDER-TOP: medium none; =
PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: medium =
none; PADDING-TOP: 0px; BORDER-BOTTOM: medium none; HEIGHT: 100%; =
TEXT-ALIGN: center
}
BODY {
	BORDER-RIGHT: medium none; PADDING-RIGHT: 0px; BORDER-TOP: medium none; =
PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: medium =
none; PADDING-TOP: 0px; BORDER-BOTTOM: medium none; HEIGHT: 100%; =
TEXT-ALIGN: center
}
#wrapper {
	BORDER-RIGHT: medium none; PADDING-RIGHT: 0px; BORDER-TOP: medium none; =
PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: medium =
none; PADDING-TOP: 0px; BORDER-BOTTOM: medium none; HEIGHT: 100%; =
TEXT-ALIGN: center
}
#wrapper {
	MARGIN: 0px auto; VERTICAL-ALIGN: middle; WIDTH: 100%; TEXT-ALIGN: left
}
</STYLE>
<LINK=20
href=3D"http://www.my-catalog.at/1098_09_summer_04_es_por/windowfiles/dht=
mlwindow.css"=20
type=3Dtext/css rel=3Dstylesheet>
<SCRIPT=20
src=3D"http://www.my-catalog.at/1098_09_summer_04_es_por/windowfiles/dhtm=
lwindow.js"=20
type=3Dtext/javascript>
/***********************************************
* DHTML Window Widget- ?Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
</SCRIPT>

<SCRIPT language=3Djavascript>
	function openIFrame(URL, title) {
		if (title =3D=3D null || title =3D=3D "") {title =3D "FlipViewer =
Xpress";}iframewin=3Ddhtmlwindow.open("iframbox", "iframe", URL, title, =
"width=3D690px,height=3D450px,resize=3D1,scrolling=3D1,center=3D1", =
"recal");
	}
</SCRIPT>

<META content=3D"MSHTML 6.00.6000.16825" name=3DGENERATOR></HEAD>
<BODY bottomMargin=3D0 bgColor=3D#000000 leftMargin=3D0 topMargin=3D0 =
scroll=3Dno=20
rightMargin=3D0 MARGINWIDTH=3D"0" MARGINHEIGHT=3D"0">
<TABLE id=3Dwrapper cellSpacing=3D0 cellPadding=3D0 border=3D0>
  <TBODY>
  <TR>
    <TD class=3Dstyle2 vAlign=3Dcenter>
      <SCRIPT language=3DJavaScript type=3Dtext/javascript>
<!--

// Version check for the Flash Player that has the ability to start =
Player Product Install (6.0r65)
var hasProductInstall =3D DetectFlashVer(6, 0, 65);

// Version check based upon the values entered above in "Globals"
var hasReqestedVersion =3D DetectFlashVer(requiredMajorVersion, =
requiredMinorVersion, requiredRevision);



// Check to see if a player with Flash Product Install is available and =
the version does not meet the requirements for playback
if ( hasProductInstall && !hasReqestedVersion ) {
	// MMdoctitle is the stored document.title value used by the =
installation process to close the window that started the process
	// This is necessary in order to close browser windows that are still =
utilizing the older version of the player after installation has =
completed
	// DO NOT MODIFY THE FOLLOWING FOUR LINES
	// Location visited after installation is complete if installation is =
required
	var MMPlayerType =3D (isIE =3D=3D true) ? "ActiveX" : "PlugIn";
	var MMredirectURL =3D window.location;
	document.title =3D document.title.slice(0, 47) + " - Flash Player =
Installation";
	var MMdoctitle =3D document.title;

	AC_FL_RunContent(
		"src", "playerProductInstall.swf",
		"FlashVars", =
"MMredirectURL=3D"+MMredirectURL+'&MMplayerType=3D'+MMPlayerType+'&MMdoct=
itle=3D'+MMdoctitle+"",
		"width", "550",
		"height", "300",
		"align", "middle",
		"id", "detectionExample",
		"quality", "high",
		"bgcolor", "#000000",
		"name", "detectionExample",
		"allowScriptAccess","always",
		"type", "application/x-shockwave-flash",
		"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
} else if ( hasReqestedVersion ){

	if (AC_FL_RunContent =3D=3D 0) {

		alert("This page requires AC_RunActiveContent.js.");

	} else {
		var openParms =3D new Object;
		openParms.swfUrl =3D "main.swf";
		openParms.opfUrl =3D "09_summer_04_es.xml";
		openParms.startPageNumber =3D "1";=20
		openParms.language =3D "ENG";=20
		openParms.subid =3D "";
		openParms.groupid =3D "";=20
		openParms.searchKeyword =3D "";=20
		openParms.width =3D "100%";=20
		openParms.height =3D "100%";=20
		openParms.poweredBy =3D false;=20
		openParms.offline=3D "";
		openParms.logo =3D "";=20
=09
		loadMain2(openParms);

	}
} else if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){=20


	var alternateContent =3D ''
	+ '<div align=3D"center"><img src=3D"fvxinstallflash.jpg" width=3D"524" =
height=3D"324" border=3D"0" usemap=3D"#Map">'
	+ '</div><p>'
	+ '<map name=3D"Map">'
	+ '<area shape=3D"rect" coords=3D"306,48,457,71" =
href=3D"http://www.adobe.com/go/getflash/" target=3D"_blank">'
	+ '</map>'
	+ '';
	document.write(alternateContent);  // insert non-flash content


}else {

	if (AC_FL_RunContent =3D=3D 0) {

		alert("This page requires AC_RunActiveContent.js.");

	} else {
	=09
	=09
		var openParms =3D new Object;
		openParms.swfUrl =3D "main.swf";
		openParms.opfUrl =3D "09_summer_04_es.xml";
		openParms.startPageNumber =3D "1";=20
		openParms.language =3D "ENG";=20
		openParms.subid =3D "";
		openParms.groupid =3D "";=20
		openParms.searchKeyword =3D "";=20
		openParms.width =3D "100%";=20
		openParms.height =3D "100%";=20
		openParms.poweredBy =3D false;=20
		openParms.offline=3D "";
		openParms.logo =3D "";=20
=09
		loadMain2(openParms);

	}
}=20
// -->
</SCRIPT>
    </TD></TR></TBODY></TABLE></BODY></HTML>

------=_NextPart_000_0009_01C9DF7D.F8400120
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.my-catalog.at/1098_09_summer_04_es_por/windowfiles/dhtmlwindow.css

.dhtmlwindow {
	BORDER-RIGHT: #dddddd 2px solid; BORDER-TOP: #dddddd 2px solid; =
VISIBILITY: hidden; BORDER-LEFT: #dddddd 2px solid; BORDER-BOTTOM: =
#dddddd 2px solid; POSITION: absolute; BACKGROUND-COLOR: white
}
.drag-handle {
	PADDING-RIGHT: 1px; PADDING-LEFT: 1px; FILTER: =
progid:DXImageTransform.Microsoft.alpha(opacity=3D100); PADDING-BOTTOM: =
1px; FONT: bold 14px Arial; OVERFLOW: hidden; WIDTH: auto; CURSOR: move; =
COLOR: white; TEXT-INDENT: 3px; PADDING-TOP: 1px; BACKGROUND-COLOR: =
#dddddd; -moz-opacity: 1; opacity: 1
}
.drag-handle .drag-controls {
	RIGHT: 1px; CURSOR: pointer; POSITION: absolute; TOP: 2px
}
* HTML .drag-handle {
	WIDTH: 100%
}
.drag-contentarea {
	PADDING-RIGHT: 2px; BORDER-TOP: #dddddd 1px solid; PADDING-LEFT: 2px; =
PADDING-BOTTOM: 2px; OVERFLOW: auto; COLOR: black; PADDING-TOP: 2px; =
HEIGHT: 150px; BACKGROUND-COLOR: white
}
.drag-statusarea {
	BORDER-TOP: gray 1px solid; HEIGHT: 13px; BACKGROUND-COLOR: #dddddd
}
.drag-resizearea {
	FONT-SIZE: 0px; FLOAT: right; WIDTH: 13px; CURSOR: nw-resize; HEIGHT: =
13px
}

------=_NextPart_000_0009_01C9DF7D.F8400120
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.my-catalog.at/1098_09_summer_04_es_por/FVX_RunActiveContent.js

function fvxTrack(pageUrl) {
		pageTracker._trackPageview(pageUrl);
}

function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") !=3D -1) {
		return window[movieName];
	} else {
		return document[movieName];
	}
}

function setFocus() {
	thisMovie("main").focus();
}

function loadMain(swf, opf, lang, pn, subid, groupid, searchwrod, width, =
height) {
=09
	var bookSrc =3D swf + "?opf=3D" + opf=20
			  + "&pn=3D" + pn=20
			  + "&lang=3D" + lang=20
			  + "&groupid=3D" + groupid=20
			  + "&subid=3D" + subid=20
			  + "&search=3D" + searchwrod=20
			  + "&htmlurl=3D" + document.URL;


	bookSrc =3D encodeURI(bookSrc);

	AC_FL_RunContent( 'src', bookSrc, 'movie', bookSrc, 'codebase', =
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#vers=
ion=3D9,0,0,0', 'width', width, 'height', height, 'quality', 'high', =
'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'NO_SCALE', =
'wmode', 'window', 'devicefont', 'false', 'id', 'main', 'bgcolor', =
'#ffffff', 'name', 'main', 'menu', 'true', 'allowFullScreen', 'true', =
'pluginspage', 'http://www.macromedia.com/go/getflashplayer', =
'allowScriptAccess','sameDomain', 'salign', 'LT');
}



function loadMain2(parms) {
=09
	var swf =3D parms.swfUrl;
	var opf =3D parms.opfUrl;

	if (swf =3D=3D null || opf =3D=3D null) {
		alert("Missing Path for FlipViwer Xpress or FlipBook");
		return;
	}
=09
	var pn =3D parms.startPageNumber;
	if (pn =3D=3D null) { pn =3D ""; }

	var lang =3D parms.language;
	if (lang =3D=3D null) { lang =3D ""; }

	var subid =3D parms.subid;
	if (subid =3D=3D null) { subid =3D ""; }

	var groupid =3D parms.groupid;
	if (groupid =3D=3D null) { groupid =3D ""; }

	var search =3D parms.searchKeyword;
	if (search =3D=3D null) { search =3D ""; }else { search =3D =
escape(search); }

	var width =3D parms.width;
	if (width =3D=3D null) { width =3D "100%"; }

	var height =3D parms.height;
	if (height =3D=3D null) { height =3D "100%"; }
=09
	var highlight =3D parms.highlight;
	if (highlight =3D=3D null) {highlight =3D "";} else {highlight =3D =
escape(highlight);}
	=09
	var poweredBy =3D parms.poweredBy;
	if (poweredBy =3D=3D null) {poweredBy =3D "false";}
	=09
	var logo =3D parms.logo;
	if (logo =3D=3D null) {logo =3D "";}
=09
	var offline =3D parms.offline;
	if (offline =3D=3D null) {offline =3D "false";}

	var bookSrc =3D swf + "?opf=3D" + encodeURI(opf)=20
			  + "&pn=3D" + encodeURI(pn)=20
			  + "&lang=3D" + encodeURI(lang)=20
			  + "&groupid=3D" + encodeURI(groupid)
			  + "&subid=3D" + encodeURI(subid)=20
			  + "&search=3D" + encodeURI(search)
			  + "&htmlurl=3D" + encodeURI(document.URL)
			  + "&highlight=3D" + encodeURI(highlight)
			  + "&poweredBy=3D" + encodeURI(poweredBy)
			  + "&offline=3D" + encodeURI(offline)
			  + "&logo=3D" + encodeURI(logo);
	//bookSrc =3D encodeURI(bookSrc);

	AC_FL_RunContent(
			'src', bookSrc, 'movie', bookSrc,
			'codebase', =
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#vers=
ion=3D9,0,0,0',
			'width', width, 'height', height, 'quality', 'high', 'align', =
'middle', 'play', 'true', 'loop', 'true', 'scale', 'NO_SCALE',
			'wmode', 'window', 'devicefont', 'false', 'id', 'main',
			'bgcolor', '#ffffff', 'name', 'main', 'menu', 'true', =
'allowFullScreen', 'true',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'allowScriptAccess','sameDomain', 'salign', 'LT'
			);

}


//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.
var isIE  =3D (navigator.appVersion.indexOf("MSIE") !=3D -1) ? true : =
false;
var isWin =3D (navigator.appVersion.toLowerCase().indexOf("win") !=3D =
-1) ? true : false;
var isOpera =3D (navigator.userAgent.indexOf("Opera") !=3D -1) ? true : =
false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't =
in the registry

	try {
		// version will be set for 7.X or greater players
		axo =3D new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version =3D axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo =3D new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
		=09
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through =
6.0.29,
			// so we have to be careful.=20
		=09
			// default to the first public version
			version =3D "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)	=09
			axo.AllowScriptAccess =3D "always";

			// safe to call for 6.0r47 or greater
			version =3D axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo =3D new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version =3D axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo =3D new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version =3D "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo =3D new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version =3D "WIN 2,0,0,11";
		} catch (e) {
			version =3D -1;
		}
	}
=09
	return version;
}

// JavaScript helper required to detect Flash Player PlugIn version =
information
function GetSwfVer(){
	// NS/Opera version >=3D 3 check for Flash plugin in plugin array
	var flashVer =3D -1;
=09
	if (navigator.plugins !=3D null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || =
navigator.plugins["Shockwave Flash"]) {
			var swVer2 =3D navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : =
"";
			var flashDescription =3D navigator.plugins["Shockwave Flash" + =
swVer2].description;
			var descArray =3D flashDescription.split(" ");
			var tempArrayMajor =3D descArray[2].split(".");		=09
			var versionMajor =3D tempArrayMajor[0];
			var versionMinor =3D tempArrayMajor[1];
			var versionRevision =3D descArray[3];
			if (versionRevision =3D=3D "") {
				versionRevision =3D descArray[4];
			}
			if (versionRevision[0] =3D=3D "d") {
				versionRevision =3D versionRevision.substring(1);
			} else if (versionRevision[0] =3D=3D "r") {
				versionRevision =3D versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision =3D versionRevision.substring(0, =
versionRevision.indexOf("d"));
				}
			}
			var flashVer =3D versionMajor + "." + versionMinor + "." + =
versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") !=3D =
-1) flashVer =3D 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") !=3D =
-1) flashVer =3D 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") !=3D -1) =
flashVer =3D 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer =3D ControlVersion();
	}=09
	return flashVer;
}

// When called with reqMajorVer, reqMinorVer, reqRevision returns true =
if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr =3D GetSwfVer();
	if (versionStr =3D=3D -1 ) {
		return false;
	} else if (versionStr !=3D 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         =3D versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        =3D tempArray[1];			// "2,0,0,11"
			versionArray      =3D tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      =3D versionStr.split(".");
		}
		var versionMajor      =3D versionArray[0];
		var versionMinor      =3D versionArray[1];
		var versionRevision   =3D versionArray[2];

        	// is the major.revision >=3D requested major.revision AND the =
minor version >=3D requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor =3D=3D parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor =3D=3D parseFloat(reqMinorVer)) {
				if (versionRevision >=3D parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') !=3D -1)
    return src.replace(/\?/, ext+'?');=20
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs)=20
{=20
  var str =3D '';
  if (isIE && isWin && !isOpera) {
    str +=3D '<object ';
    for (var i in objAttrs) {
      str +=3D i + '=3D"' + objAttrs[i] + '" ';
    }
    str +=3D '>';
    for (var i in params) {
      str +=3D '<param name=3D"' + i + '" value=3D"' + params[i] + '" /> =
';
    }
    str +=3D '</object>';
  } else {
    str +=3D '<embed ';
    for (var i in embedAttrs) {
      str +=3D i + '=3D"' + embedAttrs[i] + '" ';
    }
    str +=3D '> </embed>';
  }

  document.write(str);
}

function AC_FL_RunContent(){
  var ret =3D AC_GetArgs (arguments, ".swf", "movie", =
"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000", =
"application/x-shockwave-flash");
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}


function AC_SW_RunContent(){
  var ret =3D AC_GetArgs (arguments, ".dcr", "src", =
"clsid:166B1BCA-3F9C-11CF-8075-444553540000" , null);
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}


function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret =3D new Object();
  ret.embedAttrs =3D new Object();
  ret.params =3D new Object();
  ret.objAttrs =3D new Object();
  for (var i=3D0; i < args.length; i=3Di+2){
    var currArg =3D args[i].toLowerCase();   =20

    switch (currArg){=09
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] =3D args[i+1];
        break;
      case "src":
      case "movie":=09
      	var src =3D args[i+1];
				ret.embedAttrs["src"] =3D src;
        ret.params[srcParamName] =3D src;
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblclick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] =3D args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace":=20
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] =3D ret.objAttrs[args[i]] =3D args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] =3D ret.params[args[i]] =3D args[i+1];
    }
  }
  ret.objAttrs["classid"] =3D classid;
  if (mimeType) ret.embedAttrs["type"] =3D mimeType;
  return ret;
}

------=_NextPart_000_0009_01C9DF7D.F8400120
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.my-catalog.at/1098_09_summer_04_es_por/windowfiles/dhtmlwindow.js

// -------------------------------------------------------------------
// DHTML Window Widget- By Dynamic Drive, available at: =
http://www.dynamicdrive.com
// v1.0: Script created Feb 15th, 07'
// v1.01: Feb 21th, 07' (see changelog.txt)
// v1.02: March 26th, 07' (see changelog.txt)
// v1.03: May 5th, 07' (see changelog.txt)
// v1.1:  Oct 29th, 07' (see changelog.txt)
// -------------------------------------------------------------------

var dhtmlwindow=3D{
imagefiles:['windowfiles/min.gif', 'windowfiles/close.gif', =
'windowfiles/restore.gif', 'windowfiles/resize.gif'], //Path to 4 images =
used by script, in that order
ajaxbustcache: true, //Bust caching when fetching a file via Ajax?
ajaxloadinghtml: '<b>Loading Page. Please wait...</b>', //HTML to show =
while window fetches Ajax Content?

minimizeorder: 0,
zIndexvalue:100,
tobjects: [], //object to contain references to dhtml window divs, for =
cleanup purposes
lastactivet: {}, //reference to last active DHTML window

init:function(t){
	var domwindow=3Ddocument.createElement("div") //create dhtml window div
	domwindow.id=3Dt
	domwindow.className=3D"dhtmlwindow"
	var domwindowdata=3D''
	domwindowdata=3D'<div class=3D"drag-handle">'
	domwindowdata+=3D'DHTML Window <div class=3D"drag-controls"><img =
src=3D"'+this.imagefiles[0]+'" title=3D"Minimize" /><img =
src=3D"'+this.imagefiles[1]+'" title=3D"Close" /></div>'
	domwindowdata+=3D'</div>'
	domwindowdata+=3D'<div class=3D"drag-contentarea"></div>'
	domwindowdata+=3D'<div class=3D"drag-statusarea"><div =
class=3D"drag-resizearea" style=3D"background: transparent =
url('+this.imagefiles[3]+') top right no-repeat;">&nbsp;</div></div>'
	domwindowdata+=3D'</div>'
	domwindow.innerHTML=3Ddomwindowdata
	document.getElementById("dhtmlwindowholder").appendChild(domwindow)
	//this.zIndexvalue=3D(this.zIndexvalue)? this.zIndexvalue+1 : 100 =
//z-index value for DHTML window: starts at 0, increments whenever a =
window has focus
	var t=3Ddocument.getElementById(t)
	var divs=3Dt.getElementsByTagName("div")
	for (var i=3D0; i<divs.length; i++){ //go through divs inside dhtml =
window and extract all those with class=3D"drag-" prefix
		if (/drag-/.test(divs[i].className))
			t[divs[i].className.replace(/drag-/, "")]=3Ddivs[i] //take out the =
"drag-" prefix for shorter access by name
	}
	//t.style.zIndex=3Dthis.zIndexvalue //set z-index of this dhtml window
	t.handle._parent=3Dt //store back reference to dhtml window
	t.resizearea._parent=3Dt //same
	t.controls._parent=3Dt //same
	t.onclose=3Dfunction(){return true} //custom event handler "onclose"
	t.onmousedown=3Dfunction(){dhtmlwindow.setfocus(this)} //Increase =
z-index of window when focus is on it
	t.handle.onmousedown=3Ddhtmlwindow.setupdrag //set up drag behavior =
when mouse down on handle div
	t.resizearea.onmousedown=3Ddhtmlwindow.setupdrag //set up drag behavior =
when mouse down on resize div
	t.controls.onclick=3Ddhtmlwindow.enablecontrols
	t.show=3Dfunction(){dhtmlwindow.show(this)} //public function for =
showing dhtml window
	t.hide=3Dfunction(){dhtmlwindow.hide(this)} //public function for =
hiding dhtml window
	t.close=3Dfunction(){dhtmlwindow.close(this)} //public function for =
closing dhtml window (also empties DHTML window content)
	t.setSize=3Dfunction(w, h){dhtmlwindow.setSize(this, w, h)} //public =
function for setting window dimensions
	t.moveTo=3Dfunction(x, y){dhtmlwindow.moveTo(this, x, y)} //public =
function for moving dhtml window (relative to viewpoint)
	t.isResize=3Dfunction(bol){dhtmlwindow.isResize(this, bol)} //public =
function for specifying if window is resizable
	t.isScrolling=3Dfunction(bol){dhtmlwindow.isScrolling(this, bol)} =
//public function for specifying if window content contains scrollbars
	t.load=3Dfunction(contenttype, contentsource, =
title){dhtmlwindow.load(this, contenttype, contentsource, title)} =
//public function for loading content into window
	this.tobjects[this.tobjects.length]=3Dt
	return t //return reference to dhtml window div
},

open:function(t, contenttype, contentsource, title, attr, recalonload){
	var d=3Ddhtmlwindow //reference dhtml window object
	function getValue(Name){
		var config=3Dnew RegExp(Name+"=3D([^,]+)", "i") //get name/value =
config pair (ie: width=3D400px,)
		return (config.test(attr))? parseInt(RegExp.$1) : 0 //return value =
portion (int), or 0 (false) if none found
	}
	if (document.getElementById(t)=3D=3Dnull) //if window doesn't exist =
yet, create it
		t=3Dthis.init(t) //return reference to dhtml window div
	else
		t=3Ddocument.getElementById(t)
	this.setfocus(t)
	t.setSize(getValue(("width")), (getValue("height"))) //Set dimensions =
of window
	var xpos=3DgetValue("center")? "middle" : getValue("left") //Get x =
coord of window
	var ypos=3DgetValue("center")? "middle" : getValue("top") //Get y coord =
of window
	//t.moveTo(xpos, ypos) //Position window
	if (typeof recalonload!=3D"undefined" && recalonload=3D=3D"recal" && =
this.scroll_top=3D=3D0){ //reposition window when page fully loads with =
updated window viewpoints?
		if (window.attachEvent && !window.opera) //In IE, add another 400 =
milisecs on page load (viewpoint properties may return 0 b4 then)
			this.addEvent(window, function(){setTimeout(function(){t.moveTo(xpos, =
ypos)}, 400)}, "load")
		else
			this.addEvent(window, function(){t.moveTo(xpos, ypos)}, "load")
	}
	t.isResize(getValue("resize")) //Set whether window is resizable
	t.isScrolling(getValue("scrolling")) //Set whether window should =
contain scrollbars
	t.style.visibility=3D"visible"
	t.style.display=3D"block"
	t.contentarea.style.display=3D"block"
	t.moveTo(xpos, ypos) //Position window
	t.load(contenttype, contentsource, title)
	if (t.state=3D=3D"minimized" && =
t.controls.firstChild.title=3D=3D"Restore"){ //If window exists and is =
currently minimized?
		t.controls.firstChild.setAttribute("src", dhtmlwindow.imagefiles[0]) =
//Change "restore" icon within window interface to "minimize" icon
		t.controls.firstChild.setAttribute("title", "Minimize")
		t.state=3D"fullview" //indicate the state of the window as being =
"fullview"
	}
	return t
},

setSize:function(t, w, h){ //set window size (min is 150px wide by 100px =
tall)
	t.style.width=3DMath.max(parseInt(w), 150)+"px"
	t.contentarea.style.height=3DMath.max(parseInt(h), 100)+"px"
},

moveTo:function(t, x, y){ //move window. Position includes current =
viewpoint of document
	this.getviewpoint() //Get current viewpoint numbers
	t.style.left=3D(x=3D=3D"middle")? =
this.scroll_left+(this.docwidth-t.offsetWidth)/2+"px" : =
this.scroll_left+parseInt(x)+"px"
	t.style.top=3D(y=3D=3D"middle")? =
this.scroll_top+(this.docheight-t.offsetHeight)/2+"px" : =
this.scroll_top+parseInt(y)+"px"
},

isResize:function(t, bol){ //show or hide resize inteface (part of the =
status bar)
	t.statusarea.style.display=3D(bol)? "block" : "none"
	t.resizeBool=3D(bol)? 1 : 0
},

isScrolling:function(t, bol){ //set whether loaded content contains =
scrollbars
	t.contentarea.style.overflow=3D(bol)? "auto" : "hidden"
},

load:function(t, contenttype, contentsource, title){ //loads content =
into window plus set its title (3 content types: "inline", "iframe", or =
"ajax")
	if (t.isClosed){
		alert("DHTML Window has been closed, so no window to load contents =
into. Open/Create the window again.")
		return
	}
	var contenttype=3Dcontenttype.toLowerCase() //convert string to lower =
case
	if (typeof title!=3D"undefined")
		t.handle.firstChild.nodeValue=3Dtitle
	if (contenttype=3D=3D"inline")
		t.contentarea.innerHTML=3Dcontentsource
	else if (contenttype=3D=3D"div"){
		var inlinedivref=3Ddocument.getElementById(contentsource)
		t.contentarea.innerHTML=3D(inlinedivref.defaultHTML || =
inlinedivref.innerHTML) //Populate window with contents of inline div on =
page
		if (!inlinedivref.defaultHTML)
			inlinedivref.defaultHTML=3Dinlinedivref.innerHTML //save HTML within =
inline DIV
		inlinedivref.innerHTML=3D"" //then, remove HTML within inline DIV (to =
prevent duplicate IDs, NAME attributes etc in contents of DHTML window
		inlinedivref.style.display=3D"none" //hide that div
	}
	else if (contenttype=3D=3D"iframe"){
		t.contentarea.style.overflow=3D"hidden" //disable window scrollbars, =
as iframe already contains scrollbars
		if (!t.contentarea.firstChild || =
t.contentarea.firstChild.tagName!=3D"IFRAME") //If iframe tag doesn't =
exist already, create it first
			t.contentarea.innerHTML=3D'<iframe src=3D"" style=3D"margin:0; =
padding:0; width:100%; height: 100%" =
name=3D"_iframe-'+t.id+'"></iframe>'
		window.frames["_iframe-"+t.id].location.replace(contentsource) //set =
location of iframe window to specified URL
		}
	else if (contenttype=3D=3D"ajax"){
		this.ajax_connect(contentsource, t) //populate window with external =
contents fetched via Ajax
	}
	t.contentarea.datatype=3Dcontenttype //store contenttype of current =
window for future reference
},

setupdrag:function(e){
	var d=3Ddhtmlwindow //reference dhtml window object
	var t=3Dthis._parent //reference dhtml window div
	d.etarget=3Dthis //remember div mouse is currently held down on =
("handle" or "resize" div)
	var e=3Dwindow.event || e
	d.initmousex=3De.clientX //store x position of mouse onmousedown
	d.initmousey=3De.clientY
	d.initx=3DparseInt(t.offsetLeft) //store offset x of window div =
onmousedown
	d.inity=3DparseInt(t.offsetTop)
	d.width=3DparseInt(t.offsetWidth) //store width of window div
	d.contentheight=3DparseInt(t.contentarea.offsetHeight) //store height =
of window div's content div
	if (t.contentarea.datatype=3D=3D"iframe"){ //if content of this window =
div is "iframe"
		t.style.backgroundColor=3D"#F8F8F8" //colorize and hide content div =
(while window is being dragged)
		t.contentarea.style.visibility=3D"hidden"
	}
	document.onmousemove=3Dd.getdistance //get distance travelled by mouse =
as it moves
	document.onmouseup=3Dfunction(){
		if (t.contentarea.datatype=3D=3D"iframe"){ //restore color and =
visibility of content div onmouseup
			t.contentarea.style.backgroundColor=3D"white"
			t.contentarea.style.visibility=3D"visible"
		}
		d.stop()
	}
	return false
},

getdistance:function(e){
	var d=3Ddhtmlwindow
	var etarget=3Dd.etarget
	var e=3Dwindow.event || e
	d.distancex=3De.clientX-d.initmousex //horizontal distance travelled =
relative to starting point
	d.distancey=3De.clientY-d.initmousey
	if (etarget.className=3D=3D"drag-handle") //if target element is =
"handle" div
		d.move(etarget._parent, e)
	else if (etarget.className=3D=3D"drag-resizearea") //if target element =
is "resize" div
		d.resize(etarget._parent, e)
	return false //cancel default dragging behavior
},

getviewpoint:function(){ //get window viewpoint numbers
	var ie=3Ddocument.all && !window.opera
	var domclientWidth=3Ddocument.documentElement && =
parseInt(document.documentElement.clientWidth) || 100000 //Preliminary =
doc width in non IE browsers
	this.standardbody=3D(document.compatMode=3D=3D"CSS1Compat")? =
document.documentElement : document.body //create reference to common =
"body" across doctypes
	this.scroll_top=3D(ie)? this.standardbody.scrollTop : =
window.pageYOffset
	this.scroll_left=3D(ie)? this.standardbody.scrollLeft : =
window.pageXOffset
	this.docwidth=3D(ie)? this.standardbody.clientWidth : =
(/Safari/i.test(navigator.userAgent))? window.innerWidth : =
Math.min(domclientWidth, window.innerWidth-16)
	this.docheight=3D(ie)? this.standardbody.clientHeight: =
window.innerHeight
},

rememberattrs:function(t){ //remember certain attributes of the window =
when it's minimized or closed, such as dimensions, position on page
	this.getviewpoint() //Get current window viewpoint numbers
	t.lastx=3DparseInt((t.style.left || =
t.offsetLeft))-dhtmlwindow.scroll_left //store last known x coord of =
window just before minimizing
	t.lasty=3DparseInt((t.style.top || t.offsetTop))-dhtmlwindow.scroll_top
	t.lastwidth=3DparseInt(t.style.width) //store last known width of =
window just before minimizing/ closing
},

move:function(t, e){
	t.style.left=3Ddhtmlwindow.distancex+dhtmlwindow.initx+"px"
	t.style.top=3Ddhtmlwindow.distancey+dhtmlwindow.inity+"px"
},

resize:function(t, e){
	t.style.width=3DMath.max(dhtmlwindow.width+dhtmlwindow.distancex, =
150)+"px"
	=
t.contentarea.style.height=3DMath.max(dhtmlwindow.contentheight+dhtmlwind=
ow.distancey, 100)+"px"
},

enablecontrols:function(e){
	var d=3Ddhtmlwindow
	var sourceobj=3Dwindow.event? window.event.srcElement : e.target //Get =
element within "handle" div mouse is currently on (the controls)
	if (/Minimize/i.test(sourceobj.getAttribute("title"))) //if this is the =
"minimize" control
		d.minimize(sourceobj, this._parent)
	else if (/Restore/i.test(sourceobj.getAttribute("title"))) //if this is =
the "restore" control
		d.restore(sourceobj, this._parent)
	else if (/Close/i.test(sourceobj.getAttribute("title"))) //if this is =
the "close" control
		d.close(this._parent)
	return false
},

minimize:function(button, t){
	dhtmlwindow.rememberattrs(t)
	button.setAttribute("src", dhtmlwindow.imagefiles[2])
	button.setAttribute("title", "Restore")
	t.state=3D"minimized" //indicate the state of the window as being =
"minimized"
	t.contentarea.style.display=3D"none"
	t.statusarea.style.display=3D"none"
	if (typeof t.minimizeorder=3D=3D"undefined"){ //stack order of minmized =
window on screen relative to any other minimized windows
		dhtmlwindow.minimizeorder++ //increment order
		t.minimizeorder=3Ddhtmlwindow.minimizeorder
	}
	t.style.left=3D"10px" //left coord of minmized window
	t.style.width=3D"200px"
	var windowspacing=3Dt.minimizeorder*10 //spacing (gap) between each =
minmized window(s)
	=
t.style.top=3Ddhtmlwindow.scroll_top+dhtmlwindow.docheight-(t.handle.offs=
etHeight*t.minimizeorder)-windowspacing+"px"
},

restore:function(button, t){
	dhtmlwindow.getviewpoint()
	button.setAttribute("src", dhtmlwindow.imagefiles[0])
	button.setAttribute("title", "Minimize")
	t.state=3D"fullview" //indicate the state of the window as being =
"fullview"
	t.style.display=3D"block"
	t.contentarea.style.display=3D"block"
	if (t.resizeBool) //if this window is resizable, enable the resize icon
		t.statusarea.style.display=3D"block"
	t.style.left=3DparseInt(t.lastx)+dhtmlwindow.scroll_left+"px" =
//position window to last known x coord just before minimizing
	t.style.top=3DparseInt(t.lasty)+dhtmlwindow.scroll_top+"px"
	t.style.width=3DparseInt(t.lastwidth)+"px"
},


close:function(t){
	try{
		var closewinbol=3Dt.onclose()
	}
	catch(err){ //In non IE browsers, all errors are caught, so just run =
the below
		var closewinbol=3Dtrue
 }
	finally{ //In IE, not all errors are caught, so check if variable isn't =
defined in IE in those cases
		if (typeof closewinbol=3D=3D"undefined"){
			alert("An error has occured somwhere inside your \"onclose\" event =
handler")
			var closewinbol=3Dtrue
		}
	}
	if (closewinbol){ //if custom event handler function returns true
		if (t.state!=3D"minimized") //if this window isn't currently minimized
			dhtmlwindow.rememberattrs(t) //remember window's dimensions/position =
on the page before closing
		if (window.frames["_iframe-"+t.id]) //if this is an IFRAME DHTML =
window
			window.frames["_iframe-"+t.id].location.replace("about:blank")
		else
			t.contentarea.innerHTML=3D""
		t.style.display=3D"none"
		t.isClosed=3Dtrue //tell script this window is closed (for detection =
in t.show())
	}
	return closewinbol
},


setopacity:function(targetobject, value){ //Sets the opacity of =
targetobject based on the passed in value setting (0 to 1 and in =
between)
	if (!targetobject)
		return
	if (targetobject.filters && targetobject.filters[0]){ //IE syntax
		if (typeof targetobject.filters[0].opacity=3D=3D"number") //IE6
			targetobject.filters[0].opacity=3Dvalue*100
		else //IE 5.5
			targetobject.style.filter=3D"alpha(opacity=3D"+value*100+")"
		}
	else if (typeof targetobject.style.MozOpacity!=3D"undefined") //Old =
Mozilla syntax
		targetobject.style.MozOpacity=3Dvalue
	else if (typeof targetobject.style.opacity!=3D"undefined") //Standard =
opacity syntax
		targetobject.style.opacity=3Dvalue
},

setfocus:function(t){ //Sets focus to the currently active window
	this.zIndexvalue++
	t.style.zIndex=3Dthis.zIndexvalue
	t.isClosed=3Dfalse //tell script this window isn't closed (for =
detection in t.show())
	this.setopacity(this.lastactivet.handle, 0.5) //unfocus last active =
window
	this.setopacity(t.handle, 1) //focus currently active window
	this.lastactivet=3Dt //remember last active window
},


show:function(t){
	if (t.isClosed){
		alert("DHTML Window has been closed, so nothing to show. Open/Create =
the window again.")
		return
	}
	if (t.lastx) //If there exists previously stored information such as =
last x position on window attributes (meaning it's been minimized or =
closed)
		dhtmlwindow.restore(t.controls.firstChild, t) //restore the window =
using that info
	else
		t.style.display=3D"block"
	this.setfocus(t)
	t.state=3D"fullview" //indicate the state of the window as being =
"fullview"
},

hide:function(t){
	t.style.display=3D"none"
},

ajax_connect:function(url, t){
	var page_request =3D false
	var bustcacheparameter=3D""
	if (window.XMLHttpRequest) // if Mozilla, IE7, Safari etc
		page_request =3D new XMLHttpRequest()
	else if (window.ActiveXObject){ // if IE6 or below
		try {
		page_request =3D new ActiveXObject("Msxml2.XMLHTTP")
		}=20
		catch (e){
			try{
			page_request =3D new ActiveXObject("Microsoft.XMLHTTP")
			}
			catch (e){}
		}
	}
	else
		return false
	t.contentarea.innerHTML=3Dthis.ajaxloadinghtml
	=
page_request.onreadystatechange=3Dfunction(){dhtmlwindow.ajax_loadpage(pa=
ge_request, t)}
	if (this.ajaxbustcache) //if bust caching of external page
		bustcacheparameter=3D(url.indexOf("?")!=3D-1)? "&"+new =
Date().getTime() : "?"+new Date().getTime()
	page_request.open('GET', url+bustcacheparameter, true)
	page_request.send(null)
},

ajax_loadpage:function(page_request, t){
	if (page_request.readyState =3D=3D 4 && (page_request.status=3D=3D200 =
|| window.location.href.indexOf("http")=3D=3D-1)){
	t.contentarea.innerHTML=3Dpage_request.responseText
	}
},


stop:function(){
	dhtmlwindow.etarget=3Dnull //clean up
	document.onmousemove=3Dnull
	document.onmouseup=3Dnull
},

addEvent:function(target, functionref, tasktype){ //assign a function to =
execute to an event handler (ie: onunload)
	var tasktype=3D(window.addEventListener)? tasktype : "on"+tasktype
	if (target.addEventListener)
		target.addEventListener(tasktype, functionref, false)
	else if (target.attachEvent)
		target.attachEvent(tasktype, functionref)
},

cleanup:function(){
	for (var i=3D0; i<dhtmlwindow.tobjects.length; i++){
		=
dhtmlwindow.tobjects[i].handle._parent=3Ddhtmlwindow.tobjects[i].resizear=
ea._parent=3Ddhtmlwindow.tobjects[i].controls._parent=3Dnull
	}
	window.onload=3Dnull
}

} //End dhtmlwindow object

document.write('<div id=3D"dhtmlwindowholder"><span =
style=3D"display:none">.</span></div>') //container that holds all dhtml =
window divs on page
window.onunload=3Ddhtmlwindow.cleanup

------=_NextPart_000_0009_01C9DF7D.F8400120--

