/* UPDATED 11/5/09 Thor Ringler *//* DOM ELEMENT PARSERPass single or multiple element IDs to this function to manipulate DOM style properties*/function $() {	var elements = new Array();	for (var i = 0; i < arguments.length; i++) {		var element = arguments[i];		if (typeof element == 'string')			element = document.getElementById(element);		if (arguments.length == 1)			return element;		elements.push(element);	}	return elements;}/* SET HTTP PATH DOM swapouts of background images require an absolute URL in Safari.The Javascript pulldown menus also use this to send out a correct URLs for menu links.This variable allows us to easily reset these when DEV testing etc.*/var http_path = 'http://www.nimblegen.com';//var http_path = 'http://beta.www.nimblegen.com';/* FORM Field HighlighterUse this function to highlight Form elements*/function form_field_wake() {// activates the background color of a form INPUT element when user clicks or tabs into it	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.backgroundColor = 'rgb(241,246,249)';	}}function form_field_sleep() {// returns the background color of a form INPUT element to its default value when user leaves it	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.backgroundColor = 'rgb(255,255,255)';	}}/* RUN MULTIMEDIA PRESENTATIONOpens a new windown containing the file that calls the swf presentation*/function runPresentation() {	aWindow = window.open("http://www.nimblegen.com/training/mmp_v1.0.html","WBT","resizable=0,toolbar=no,scrollbars=no,width=998,height=741,status=no");}  /* BUTTON IMAGE MOUSEOVERSThese functions control image swap mouseovers and mouseouts on buttons throughout the siteAll button images have the name format "xyzbutton_on.png" and "xyzbutton_off.png"The ID of the DOM element (image, input, etc.) is set to "xyzbutton"Where there are multiple images with the same source image the naming convention for the IDs should be as follows: "xyz1button", "xyz2button", "xyz3button", etc.The replace routine in these functions strips out the digits from multiple buttons so that the approriately named image is swapped out*/function mouseover_button() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).src = http_path + '/images/buttons/forms/' + arguments[i].replace(/[0-9]/g,"") + '_on.png';	}}function mouseout_button() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).src = http_path + '/images/buttons/forms/' + arguments[i].replace(/[0-9]/g,"") + '_off.png';	}}/* COOKIE EATERReturns the value of the cookie "myCookie"*/// alert( readCookie("myCookie") ); // used for testing cookiesfunction readCookie(name){  var cookieValue = "";  var search = name + "=";  if(document.cookie.length > 0)  {     offset = document.cookie.indexOf(search);    if (offset != -1)    {       offset += search.length;      end = document.cookie.indexOf(";", offset);      if (end == -1) end = document.cookie.length;      cookieValue = unescape(document.cookie.substring(offset, end))    }  }  return cookieValue;}/* COOKIE BAKER writeCookie("myCookie", "my name", 24,"/path/to"); Stores the string "my name" in the cookie "myCookie" which expires after 24 hours. */function writeCookie(name, value, hours, path){  var expire = "";  if(hours != null)  {    expire = new Date((new Date()).getTime() + hours * 3600000);    expire = "; expires=" + expire.toGMTString();  }  var pathdir = "; path=/";  if(path != null )  {  	pathdir = "; path=" + path;  }  document.cookie = name + "=" + escape(value) + expire + pathdir;}function call_contact( strContact ){	if( strContact != null )	{		writeCookie( 'contact_select_to' , strContact , 0.02 );	}	parent.location = '/contact_message.html' ;}function create_product_cookie( productSelected ){	if( productSelected != null )	{		writeCookie( 'product_selected' , productSelected , 0.02 );	}	parent.location = '/products/quote.html' ;}function MM_reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);function MM_callJS(jsStr) { //v2.0  return eval(jsStr);}/******* SHOW or HIDE CONTENT contained in a DIV ********/// TOGGLE a DIV (from CLOSED to OPEN or OPEN to CLOSED)function toggle_content() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.display = ($(arguments[i]).style.display != 'none' ? 'none' : '' );	}}// OPEN a DIVfunction open_content() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.display = '' ;	}}// CLOSE a DIVfunction close_content() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.display = 'none';	}}/******* EXPANDO MENUS in Product Pages ********/// TOGGLE an EXPANDO MENU (from CLOSED to OPEN or OPEN to CLOSED)function toggle_header() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.borderBottomStyle = ($(arguments[i]).style.borderBottomStyle != 'solid' ? 'solid' : '' );		$(arguments[i]).style.fontWeight = ($(arguments[i]).style.fontWeight != 'normal' ? 'normal' : '' );		$(arguments[i]).style.backgroundImage = ($(arguments[i]).style.backgroundImage != 'url('+ http_path +'/images/buttons/plus_8w8h.gif)' ? 'url('+ http_path +'/images/buttons/plus_8w8h.gif)' : 'url('+ http_path +'/images/buttons/minus_8w8h.gif)' );// Goofy thing here. Mozilla browsers return the backgroundColor in rgb format with a SPACE after the commas. The replace function here strips out the spaces.		$(arguments[i]).style.backgroundColor = (($(arguments[i]).style.backgroundColor).replace(/ /g,"") != 'rgb(255,255,255)' ? 'rgb(255,255,255)' : '' );		$(arguments[i]).style.color = (($(arguments[i]).style.color).replace(/ /g,"") != 'rgb(35,60,136)' ? 'rgb(35,60,136)' : '' );		$(arguments[i]).title = ($(arguments[i]).title != 'Show' ? 'Show' : 'Hide' );	}}// OPEN an EXPANDO MENUfunction open_header() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.borderBottomStyle = '';		$(arguments[i]).style.fontWeight = '';		$(arguments[i]).style.backgroundImage = 'url('+ http_path +'/images/buttons/minus_8w8h.gif)';		$(arguments[i]).style.backgroundColor = '';		$(arguments[i]).style.color = '';		$(arguments[i]).title = 'Hide';	}}// CLOSE an EXPANDO MENUfunction close_header() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.borderBottomStyle = 'solid';		$(arguments[i]).style.fontWeight = 'normal';		$(arguments[i]).style.backgroundImage = 'url('+ http_path +'/images/buttons/plus_8w8h.gif)';		$(arguments[i]).style.backgroundColor = 'rgb(255,255,255)';		$(arguments[i]).style.color = 'rgb(35,60,136)';		$(arguments[i]).title = 'Show' ;		// we activate the HEADER div cursors here.		// the TRY block will fail for IE5 because it doesn't recognize "pointer" as a cursor value it does recognize "hand"		try {			$(arguments[i]).style.cursor = 'pointer';		} catch (oldIEException) {			$(arguments[i]).style.cursor = 'hand';		}	}}/******* EXPANDO SUB-MENUS in Product Pages ********/// TOGGLE an EXPANDO SUB-MENU (from CLOSED to OPEN or OPEN to CLOSED)function toggle_table_header() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.fontWeight = ($(arguments[i]).style.fontWeight != 'normal' ? 'normal' : '' );		$(arguments[i]).style.backgroundImage = ($(arguments[i]).style.backgroundImage != 'url('+ http_path +'/images/buttons/plus_8w8h.gif)' ? 'url('+ http_path +'/images/buttons/plus_8w8h.gif)' : 'url('+ http_path +'/images/buttons/minus_8w8h.gif)' );		// Goofy thing here. Mozilla browsers return the backgroundColor in rgb format with a SPACE after the commas. The replace function here strips out the spaces.		$(arguments[i]).style.backgroundColor = (($(arguments[i]).style.backgroundColor).replace(/ /g,"") != 'rgb(255,255,255)' ? 'rgb(255,255,255)' : '' );		$(arguments[i]).style.color = (($(arguments[i]).style.color).replace(/ /g,"") != 'rgb(126,168,208)' ? 'rgb(126,168,208)' : '' );		$(arguments[i]).title = ($(arguments[i]).title != 'Show' ? 'Show' : 'Hide' );		// activate the table HEADER cursors here		// the TRY block will fail for IE5 because it doesn't recognize "pointer" as a cursor value it does recognize "hand"		try {			$(arguments[i]).style.cursor = 'pointer';		} catch (oldIEException) {			$(arguments[i]).style.cursor = 'hand';		}	}}// OPEN an EXPANDO SUB-MENUfunction open_table_header() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.fontWeight = '';		$(arguments[i]).style.backgroundImage = 'url('+ http_path +'/images/buttons/minus_8w8h.gif)';		$(arguments[i]).style.backgroundColor = '';		$(arguments[i]).style.color = '';		$(arguments[i]).title = 'Hide';	}}// CLOSE an EXPANDO SUB-MENUfunction close_table_header() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.fontWeight = 'normal';		$(arguments[i]).style.backgroundImage = 'url('+ http_path +'/images/buttons/plus_8w8h.gif)';		$(arguments[i]).style.backgroundColor = 'rgb(255,255,255)';		$(arguments[i]).style.color = 'rgb(126,168,208)';		$(arguments[i]).title = 'Show' ;		// we activate the HEADER div cursors here.		// the TRY block will fail for IE5 because it doesn't recognize "pointer" as a cursor value it does recognize "hand"		try {			$(arguments[i]).style.cursor = 'pointer';		} catch (oldIEException) {			$(arguments[i]).style.cursor = 'hand';		}	}}/******* PRODUCT COMPONENT TABS in Kit and Instrument Pages ********/// TOGGLE a PRODUCT COMPONENT TAB (from CLOSED to OPEN or OPEN to CLOSED)function toggle_component_tab() {	for ( var i=0; i < arguments.length; i++ ) {		if ($(arguments[i]).style.borderBottomStyle == 'solid') {			// the Folder Tab is CLOSED so open it			$(arguments[i]).style.borderRightStyle = 'solid';			$(arguments[i]).style.borderBottomStyle = 'none';			$(arguments[i]).style.borderLeftStyle = 'solid';			$(arguments[i]).innerHTML = 'hide list <img src="'+ http_path +'/images/buttons/minus_8w8h_gray.gif" width="8" height="8" hspace="3" vspace="0" border="0">';			$(arguments[i]).style.backgroundColor = '';			$(arguments[i]).title = 'Hide List';		} else {			// the Folder Tab is OPEN so close it			$(arguments[i]).style.borderRightStyle = 'none';			$(arguments[i]).style.borderBottomStyle = 'solid';			$(arguments[i]).style.borderLeftStyle = 'none';			$(arguments[i]).innerHTML = 'show list <img src="'+ http_path +'/images/buttons/plus_8w8h_gray.gif" width="8" height="8" hspace="3" vspace="0" border="0">';			$(arguments[i]).style.backgroundColor = 'rgb(255,255,255)';			$(arguments[i]).title = 'Show List';		}				}}// CLOSE a PRODUCT COMPONENT TABfunction close_component_tab() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.borderRightStyle = 'none';		$(arguments[i]).style.borderBottomStyle = 'solid';		$(arguments[i]).style.borderLeftStyle = 'none';		$(arguments[i]).innerHTML = 'show list <img src="'+ http_path +'/images/buttons/plus_8w8h_gray.gif" width="8" height="8" hspace="3" vspace="0" border="0">';		$(arguments[i]).style.backgroundColor = 'rgb(255,255,255)';		$(arguments[i]).title = 'Show List';		try {			$(arguments[i]).style.cursor = 'pointer';		} catch (oldIEException) {			$(arguments[i]).style.cursor = 'hand';		}	}}/******* STANDARD FOLDER TABS ********/// OPEN a FOLDER TABfunction open_folder_tab() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.borderBottomStyle = 'none';		$(arguments[i]).style.color = '';		$(arguments[i]).style.backgroundColor = '';		$(arguments[i] + "_top").style.backgroundColor = '';		$(arguments[i]).title = '';		$(arguments[i] + "_top").title = '';		$(arguments[i]).style.cursor = 'default';		$(arguments[i] + "_top").style.cursor = 'default';	}}// HIGHLIGHT a FOLDER TABfunction highlight_folder_tab() {	for ( var i=0; i < arguments.length; i++ ) {		if ($(arguments[i]).style.borderBottomStyle == 'none') {			$(arguments[i]).style.backgroundColor = '';			$(arguments[i] + "_top").style.backgroundColor = '';		} else if (($(arguments[i]).style.backgroundColor).replace(/ /g,"") == 'rgb(126,168,208)') {			$(arguments[i]).style.color = 'rgb(0,107,167)';			$(arguments[i]).style.backgroundColor = 'rgb(241,246,249)';			$(arguments[i] + "_top").style.backgroundColor = 'rgb(241,246,249)';		} else {			$(arguments[i]).style.color = 'rgb(241,246,249)';			$(arguments[i]).style.backgroundColor = 'rgb(126,168,208)';			$(arguments[i] + "_top").style.backgroundColor = 'rgb(126,168,208)';			$(arguments[i]).title = $(arguments[i]).innerHTML;			$(arguments[i] + "_top").title = $(arguments[i]).innerHTML;		}				}}// CLOSE a FOLDER TABfunction close_folder_tab() {	for ( var i=0; i < arguments.length; i++ ) {		$(arguments[i]).style.borderBottomStyle = 'solid';		$(arguments[i]).style.color = 'rgb(0,107,167)';		$(arguments[i]).style.backgroundColor = 'rgb(241,246,249)';		$(arguments[i] + "_top").style.backgroundColor = 'rgb(241,246,249)';		$(arguments[i]).title = $(arguments[i]).innerHTML;		try {			$(arguments[i]).style.cursor = 'pointer';		} catch (oldIEException) {			$(arguments[i]).style.cursor = 'hand';		}	}}/* BEGIN ypSlideOutMenu *//* modified 3/15/2001 */ypSlideOutMenu.Registry = []ypSlideOutMenu.aniLen = 300ypSlideOutMenu.hideDelay = 200ypSlideOutMenu.minCPUResolution = 10function ypSlideOutMenu(id, dir, center, offset, top, width, height, write_access) {	// set default values of local to FALSE if it is not declared	write_menu = (typeof write_access == 'undefined') ? true : write_access;if (center == true)	{	var YCoord = 0;	var TheWindowWidth = 0;	if (window.innerWidth)   // if browser supports window.innerWidth (Netscape)		{ 		TheWindowWidth=window.innerWidth		}	else if (document.all)   // else if browser supports document.all (IE 4+)		{		TheWindowWidth=(eval(document.body.clientWidth));		} 	YCoord = TheWindowWidth / 2 - offset; 	} else	{	YCoord = offset;	}this.ie = document.all ? 1 : 0this.ns4 = document.layers ? 1 : 0this.dom = document.getElementById ? 1 : 0if (this.ie || this.ns4 || this.dom) {this.id = idthis.dir = dirthis.orientation = dir == "left" || dir == "right" ? "h" : "v"this.dirType = dir == "right" || dir == "down" ? "-" : "+"this.dim = this.orientation == "h" ? width : heightthis.hideTimer = falsethis.aniTimer = falsethis.open = falsethis.over = falsethis.startTime = 0this.gRef = "ypSlideOutMenu_"+ideval(this.gRef+"=this")ypSlideOutMenu.Registry[id] = thisvar d = document	if (write_menu) {	d.write('<style type="text/css">')	d.write('#' + this.id + 'Container { visibility:hidden; ')	d.write('left:' + YCoord + 'px; ')	d.write('top:' + top + 'px; ')	d.write('overflow:visible; }')	d.write('#' + this.id + 'Container, #' + this.id + 'Content { position:absolute; ')	d.write('width:' + width + 'px; ')	d.write('height:' + height + 'px; ')	d.write('z-index:' + YCoord + '; ')	if (this.ie) d.write('clip:rect(0px ' + width + 'px ' + height + 'px 0px); ')	else  d.write('clip:rect(0px ,' + width + 'px, ' + height + 'px, 0px); ')	d.write('}')	d.write('</style>')	}this.load()}}ypSlideOutMenu.prototype.load = function() {var d = documentvar lyrId1 = this.id + "Container"var lyrId2 = this.id + "Content"var obj1 = this.dom ? d.getElementById(lyrId1) : this.ie ? d.all[lyrId1] : d.layers[lyrId1]if (obj1) var obj2 = this.ns4 ? obj1.layers[lyrId2] : this.ie ? d.all[lyrId2] : d.getElementById(lyrId2)var tempif (!obj1 || !obj2) window.setTimeout(this.gRef + ".load()", 100)else {this.container = obj1this.menu = obj2this.style = this.ns4 ? this.menu : this.menu.stylethis.homePos = eval("0" + this.dirType + this.dim)this.outPos = 0this.accelConst = (this.outPos - this.homePos) / ypSlideOutMenu.aniLen / ypSlideOutMenu.aniLen if (this.ns4) this.menu.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);this.menu.onmouseover = new Function("ypSlideOutMenu.showMenu('" + this.id + "')")this.menu.onmouseout = new Function("ypSlideOutMenu.hideMenu('" + this.id + "')")this.endSlide()}}ypSlideOutMenu.showMenu = function(id){var reg = ypSlideOutMenu.Registryvar obj = ypSlideOutMenu.Registry[id]if (obj.container) {obj.over = truefor (menu in reg) if (id != menu) ypSlideOutMenu.hide(menu)if (obj.hideTimer) { reg[id].hideTimer = window.clearTimeout(reg[id].hideTimer) }if (!obj.open && !obj.aniTimer) reg[id].startSlide(true)}}ypSlideOutMenu.hideMenu = function(id){var obj = ypSlideOutMenu.Registry[id]if (obj.container) {if (obj.hideTimer) window.clearTimeout(obj.hideTimer)obj.hideTimer = window.setTimeout("ypSlideOutMenu.hide('" + id + "')", ypSlideOutMenu.hideDelay);}}ypSlideOutMenu.hide = function(id){var obj = ypSlideOutMenu.Registry[id]obj.over = falseif (obj.hideTimer) window.clearTimeout(obj.hideTimer)obj.hideTimer = 0if (obj.open && !obj.aniTimer) obj.startSlide(false)}ypSlideOutMenu.prototype.startSlide = function(open) {this[open ? "onactivate" : "ondeactivate"]()this.open = openif (open) this.setVisibility(true)this.startTime = (new Date()).getTime() this.aniTimer = window.setInterval(this.gRef + ".slide()", ypSlideOutMenu.minCPUResolution)}ypSlideOutMenu.prototype.slide = function() {var elapsed = (new Date()).getTime() - this.startTimeif (elapsed > ypSlideOutMenu.aniLen) this.endSlide()else {var d = Math.round(Math.pow(ypSlideOutMenu.aniLen-elapsed, 2) * this.accelConst)if (this.open && this.dirType == "-") d = -delse if (this.open && this.dirType == "+") d = -delse if (!this.open && this.dirType == "-") d = -this.dim + delse d = this.dim + dthis.moveTo(d)}}ypSlideOutMenu.prototype.endSlide = function() {this.aniTimer = window.clearTimeout(this.aniTimer)this.moveTo(this.open ? this.outPos : this.homePos)if (!this.open) this.setVisibility(false)if ((this.open && !this.over) || (!this.open && this.over)) {this.startSlide(this.over)}}ypSlideOutMenu.prototype.setVisibility = function(bShow) { var s = this.ns4 ? this.container : this.container.styles.visibility = bShow ? "visible" : "hidden"}ypSlideOutMenu.prototype.moveTo = function(p) { this.style[this.orientation == "h" ? "left" : "top"] = this.ns4 ? p : p + "px"}ypSlideOutMenu.prototype.getPos = function(c) {return parseInt(this.style[c])}ypSlideOutMenu.prototype.onactivate = function() { }ypSlideOutMenu.prototype.ondeactivate = function() { }/* END ypSlideOutMenu *//* BEGIN SWF OBJECT SCRIPT *//*SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:http://www.opensource.org/licenses/mit-license.phpSWFObject is the SWF embed script formerly known as FlashObject. The name was changed for legal reasons. */if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}this.DETECT_KEY=_b?_b:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(c){this.addParam("bgcolor",c);}var q=_8?_8:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",_7);this.setAttribute("doExpressInstall",false);var _d=(_9)?_9:window.location;this.setAttribute("xiRedirectUrl",_d);this.setAttribute("redirectUrl","");if(_a){this.setAttribute("redirectUrl",_a);}};deconcept.SWFObject.prototype={setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16.push(key+"="+_18[key]);}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}return _23;};deconcept.PlayerVersion=function(_27){this.major=_27[0]!=null?parseInt(_27[0]):0;this.minor=_27[1]!=null?parseInt(_27[1]):0;this.rev=_27[2]!=null?parseInt(_27[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_29){var q=document.location.search||document.location.hash;if(q){var _2b=q.substring(1).split("&");for(var i=0;i<_2b.length;i++){if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){return _2b[i].substring((_2b[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}var _2d=document.getElementsByTagName("OBJECT");for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var _30=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();_30();};}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){deconcept.SWFObjectUtil.prepUnload();oldBeforeUnload();};}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}if(Array.prototype.push==null){Array.prototype.push=function(_31){this[this.length]=_31;return this.length;};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;/* END SWF OBJECT SCRIPT *//* BEGIN BROWSER DETECTION SCRIPT *//*jsBrwSniff v0.5A browser sniffer libraryhttp://jsbrwsniff.sf.netReleased under the GNU LGPL licenseAuthor: Pau Garcia i Quiles <paugq AT users DOT sourceforge DOT net> */var jsVer = -1;function getBrowser(obj) {    var b=new Array("unknown", "unknown", "unknown", "unknown");    (isEmpty(obj) ? brs=navigator.userAgent.toLowerCase() : brs=obj);    if (brs.search(/omniweb[\/\s]v?(\d+([\.-]\d)*)/) != -1) {    // Omniweb        b[0]="omniweb";        b[1]=brs.match(/omniweb[\/\s]v?(\d+([\.-]\d)*)/)[1];        (b[1] > 4.5 ? b[2]="khtml" : b[2]="omniweb");        (brs.search(/omniweb[\/\s]((\d+([\.-]\d)*)-)?v(\d+([\.-]\d)*)/) == -1 ?       b[3]=brs.match(/omniweb[\/\s](\d+([\.-]\d)*)/)[1] :        b[3]=brs.match(/omniweb[\/\s]((\d+([\.-]\d)*)-)?v(\d+([\.-]\d)*)/)[4]);        return b;    } else if (brs.search(/opera[\/\s](\d+(\.?\d)*)/) != -1) {    // Opera        b[0]="opera";        b[1]=brs.match(/opera[\/\s](\d+(\.?\d)*)/)[1];        b[2]="opera";        b[3]=b[1];        return b;    } else if (brs.search(/crazy\s?browser\s(\d+(\.?\d)*)/) != -1) {    // Crazy Browser        b[0]="crazy";        b[1]=brs.match(/crazy\s?browser\s(\d+(\.?\d)*)/)[1];        b[2]="msie";        b[3]=getMSIEVersion();        return b;    } else if (brs.search(/myie2/) != -1) {    // MyIE2        b[0]="myie2";        b[2]="msie";        b[3]=brs.match(/msie\s(\d+(\.?\d)*)/)[1];        return b;    } else if (brs.search(/netcaptor/) != -1) {    // NetCaptor        b[0]="netcaptor";        b[1]=brs.match(/netcaptor\s(\d+(\.?\d)*)/)[1];        b[2]="msie";        b[3]=getMSIEVersion();        return b;    } else if (brs.search(/avant\sbrowser/) != -1) {    // Avant Browser        b[0]="avantbrowser";        b[2]="msie";        b[3]=getMSIEVersion();        return b;    } else if (brs.search(/msn\s(\d+(\.?\d)*)/) != -1) {    // MSN Explorer        b[0]="msn";        b[1]=brs.match(/msn\s(\d+(\.?\d)*)/)[1];        b[2]="msie";        b[3]=getMSIEVersion();        return b;    } else if (brs.search(/msie\s(\d+(\.?\d)*)/) != -1) {    // MS Internet Explorer        b[0]="msie";        b[1]=getMSIEVersion();        b[2]="msie";        b[3]=b[1];        return b;    } else if (brs.search(/powermarks\/(\d+(\.?\d)*)/) != -1) {    // PowerMarks        b[0]="powermarks";        b[1]=brs.match(/powermarks\/(\d+(\.?\d)*)/)[1];        b[2]="msie";        try {            b[3]=getMSIEVersion();        } catch (e) { }        return b;} else if (brs.search(/konqueror[\/\s](\d+([\.-]\d)*)/) != -1) {    // Konqueror        b[0]="konqueror";        b[1]=brs.match(/konqueror[\/\s](\d+([\.-]\d)*)/)[1];        b[2]="khtml";        return b;    } else if (brs.search(/safari\/(\d)*/) != -1) {    // Safari        b[0]="safari";        b[1]=brs.match(/safari\/(\d+(\.?\d*)*)/)[1];        b[2]="khtml";        b[3]=brs.match(/applewebkit\/(\d+(\.?\d*)*)/)[1];        return b;    } else if(brs.search(/zyborg/) != -1) {    // Zyborg (SSD)        b[0]="zyborg";        b[1]=brs.match(/zyborg\/(\d+(\.?\d)*)/)[1];        b[2]="robot";        b[3]="-1"        return b;    } else if (brs.search(/netscape6[\/\s](\d+([\.-]\d)*)/) != -1) {    // Netscape 6.x        b[0]="netscape";        b[1]=brs.match(/netscape6[\/\s](\d+([\.-]\d)*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/netscape\/(7\.\d*)/) != -1) {    // Netscape 7.x        b[0]="netscape";        b[1]=brs.match(/netscape\/(7\.\d*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/galeon[\/\s](\d+([\.-]\d)*)/) != -1) {    // Galeon        b[0]="galeon";        b[1]=brs.match(/galeon[\/\s](\d+([\.-]\d)*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/nautilus[\/\s](\d+([\.-]\d)*)/) != -1) {    // Nautilus        b[0]="nautilus";        b[1]=brs.match(/nautilus[\/\s](\d+([\.-]\d)*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/firefox[\/\s](\d+([\.-]\d)*)/) != -1) {    // Firefox        b[0]="firefox";        b[1]=brs.match(/firefox[\/\s](\d+([\.-]\d)*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/k-meleon[\/\s](\d+([\.-]\d)*)/) != -1) {    // K-Meleon        b[0]="kmeleon";        b[1]=brs.match(/k-meleon[\/\s](\d+([\.-]\d)*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/playstation\s3/) != -1) {    // Playstation 3        b[0]="netfront";        b[1]="2.81"; // Taken from the Wikipedia article        b[2]="playstation3"        b[3]=brs.match(/playstation\s3;\s(\d+\.\d+)/)[1];        return b;    } else if (brs.search(/firebird[\/\s](\d+([\.-]\d)*)/) != -1) {    // Firebird        b[0]="firebird";        b[1]=brs.match(/firebird[\/\s](\d+([\.-]\d)*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/phoenix[\/\s](\d+([\.-]\d)*)/) != -1) {    // Phoenix        b[0]="phoenix";        b[1]=brs.match(/phoenix[\/\s](\d+([\.-]\d)*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/camino[\/\s](\d+([\.-]\d)*)/) != -1) {    // Camino        b[0]="camino";        b[1]=brs.match(/camino[\/\s](\d+([\.-]\d)*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/epiphany[\/\s](\d+([\.-]\d)*)/) != -1) {    // Epiphany        b[0]="epiphany";        b[1]=brs.match(/epiphany[\/\s](\d+([\.-]\d)*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/chimera[\/\s](\d+([\.-]\d)*)/) != -1) {    // Chimera        b[0]="chimera";        b[1]=brs.match(/chimera[\/\s](\d+([\.-]\d)*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/icab[\s\/]?(\d+(\.?\d)*)/) !=-1) {    // iCab        b[0]="icab";        b[1]=brs.match(/icab[\s\/]?(\d+(\.?\d)*)/)[1];        b[2]="icab";        b[3]=b[1];        return b;    } else if (brs.search(/netfront\/(\d+([\._]\d)*)/) != -1) {    // NetFront        b[0]="netfront";        b[1]=brs.match(/netfront\/(\d+([\._]\d)*)/)[1];        b[2]="netfront";        b[3]=b[1];        return b;    } else if (brs.search(/netscape4\/(\d+([\.-]\d)*)/) != -1) {    // Netscape 4.x        b[0]="netscape";        b[1]=brs.match(/netscape4\/(\d+([\.-]\d)*)/)[1];        b[2]="mozold";        b[3]=b[1];        return b;    } else if ( (brs.search(/mozilla\/(4.\d*)/) != -1) && (brs.search(/msie\s(\d+(\.?\d)*)/) == -1) ) {        b[0]="netscape";        b[1]=brs.match(/mozilla\/(4.\d*)/)[1];        b[2]="mozold";        b[3]=b[1];        return b;    } else if ((brs.search(/mozilla\/5.0/) != -1) && (brs.search(/gecko\//) != -1)) {    // Mozilla Seamonkey        b[0]="mozsea";        b[1]=brs.match(/rv\x3a(\d+(\.?\d)*)/)[1];        b[2]="gecko";        b[3]=getGeckoVersion();        return b;    } else if (brs.search(/elinks/) != -1) {    // ELinks        b[0]="elinks";        (brs.search(/elinks\/(\d+(\.?\d)*)/) == -1 ?b[1]=brs.match(/elinks\s\x28(\d+(\.?\d)*)/)[1] :b[1]=brs.match(/elinks\/(\d+(\.?\d)*)/)[1]);        b[2]="elinks";        b[3]=b[1];        return b;    } else if (brs.search(/w3m\/(\d+(\.?\d)*)/) != -1) {    // w3m        b[0]="w3m"        b[1]=brs.match(/(^w3m|\sw3m)\/(\d+(\.?\d)*)/)[2];        b[2]="w3m";        b[3]=b[1];        return b;    } else if (brs.search(/links/) != -1) {    // Links        b[0]="links";        (brs.search(/links\/(\d+(\.?\d)*)/) == -1 ? b[1]=brs.match(/links\s\x28(\d+(\.?\d)*)/)[1] : b[1]=brs.match(/links\/(\d+(\.?\d)*)/)[1]);        b[2]="links";        b[3]=b[1];        return b;    } else if (brs.search(/java[\/\s]?(\d+([\._]\d)*)/) != -1) {    // Java (as web-browser)        b[0]="java";        b[1]=brs.match(/java[\/\s]?(\d+([\._]\d)*)/)[1];        b[2]="java";        b[3]=b[1];        return b;    } else if(brs.search(/lynx/) != -1) {    // Lynx (SSD)        b[0]="lynx";        b[1]=brs.match(/lynx\/(\d+(\.?\d)*)/)[1];        b[2]="libwww-fm";        b[3]=brs.match(/libwww-fm\/(\d+(\.?\d)*)/)[1];        return b;    } else if(brs.search(/dillo/) != -1) {    // Dillo (SSD)        b[0]="dillo";        b[1]=brs.match(/dillo\s*\/*(\d+(\.?\d)*)/)[1];        b[2]="dillo";        b[3]=b[1];        return b;    } else if(brs.search(/wget/) != -1) {    // wget (SSD)        b[0]="wget";        b[1]=brs.match(/wget\/(\d+(\.?\d)*)/)[1];        b[2]="robot";        b[3]="-1"        return b;    } else if(brs.search(/googlebot\-image/) != -1) {    // GoogleBot-Image (SSD)        b[0]="googlebotimg";        b[1]=brs.match(/googlebot\-image\/(\d+(\.?\d)*)/)[1];        b[2]="robot";        b[3]="-1"        return b;    } else if(brs.search(/googlebot/) != -1) {    // GoogleBot (SSD)        b[0]="googlebot";        b[1]=brs.match(/googlebot\/(\d+(\.?\d)*)/)[1];        b[2]="robot";        b[3]="-1"        return b;    } else if(brs.search(/msnbot/) != -1) {    // MSNBot (SSD)        b[0]="msnbot";        b[1]=brs.match(/msnbot\/(\d+(\.?\d)*)/)[1];        b[2]="robot";        b[3]="-1"        return b;    } else if(brs.search(/turnitinbot/) != -1) {    // Turnitin (SSD)        b[0]="turnitinbot";        b[1]=brs.match(/turnitinbot\/(\d+(\.?\d)*)/)[1];        b[2]="robot";        b[3]="-1"        return b;    } else {        b[0]="unknown";        return b;    }}// Return browser's (actual) major version or -1 if bad version enteredfunction getMajorVersion(v) {    return (isEmpty(v) ? -1 : (hasDot(v) ? v : v.match(/(\d*)(\.\d*)*/)[1]))}// Return browser's (actual) minor version or -1 if bad version enteredfunction getMinorVersion(v) {    return (!isEmpty(v) ? (!hasDot(v) ? v.match(/\.(\d*([-\.]\d*)*)/)[1] : 0) :-1)}// Return operating system we are running on top offunction getOS(obj) {    var os=new Array("unknown", "unknown");    (isEmpty(obj) ? brs=navigator.userAgent.toLowerCase() : brs=obj);    if (brs.search(/windows\sce/) != -1) {        os[0]="wince";        try {            os[1]=brs.match(/windows\sce\/(\d+(\.?\d)*)/)[1];        } catch (e) { }        return os;    } else if ( (brs.search(/windows/) !=-1) || ((brs.search(/win9\d{1}/) !=-1))) {        os[0]="win";        if (brs.search(/nt\s5\.1/) != -1) {            os[1]="xp";        } else if (brs.search(/nt\s5\.0/) != -1) {            os[1]="2000";        } else if ( (brs.search(/win98/) != -1) || (brs.search(/windows\s98/)!=-1 ) ) {            os[1]="98";        } else if (brs.search(/windows\sme/) != -1) {            os[1]="me";        } else if (brs.search(/nt\s5\.2/) != -1) {            os[1]="win2k3";        } else if ( (brs.search(/windows\s95/) != -1) || (brs.search(/win95/)!=-1 ) ) {            os[1]="95";        } else if ( (brs.search(/nt\s4\.0/) != -1) || (brs.search(/nt4\.0/) ) !=-1) {            os[1]="nt4";        }        return os;    } else if (brs.search(/linux/) !=-1) {        os[0]="linux";        try {            os[1] = brs.match(/linux\s?(\d+(\.?\d)*)/)[1];        } catch (e) { }        return os;    } else if (brs.search(/mac\sos\sx/) !=-1) {        os[0]="macosx";        return os;    } else if (brs.search(/freebsd/) !=-1) {        os[0]="freebsd";        try {            os[1] = brs.match(/freebsd\s(\d(\.\d)*)*/)[1];        } catch (e) { }        return os;    } else if (brs.search(/sunos/) !=-1) {        os[0]="sunos";        try {            os[1]=brs.match(/sunos\s(\d(\.\d)*)*/)[1];        } catch (e) { }        return os;    } else if (brs.search(/irix/) !=-1) {        os[0]="irix";        try {            os[1]=brs.match(/irix\s(\d(\.\d)*)*/)[1];        } catch (e) { }        return os;    } else if (brs.search(/openbsd/) !=-1) {        os[0]="openbsd";        try {            os[1] = brs.match(/openbsd\s(\d(\.\d)*)*/)[1];        } catch (e) { }        return os;    } else if ( (brs.search(/macintosh/) !=-1) || (brs.search(/mac\x5fpowerpc/)!= -1) ) {        os[0]="macclassic";        return os;    } else if (brs.search(/os\/2/) !=-1) {        os[0]="os2";        try {            os[1]=brs.match(/warp\s((\d(\.\d)*)*)/)[1];        } catch (e) { }        return os;    } else if (brs.search(/openvms/) !=-1) {        os[0]="openvms";        try {            os[1]=brs.match(/openvms\sv((\d(\.\d)*)*)/)[1];        } catch (e)  { }        return os;    } else if ( (brs.search(/amigaos/) !=-1) || (brs.search(/amiga/) != -1) ) {        os[0]="amigaos";        try {            os[1]=brs.match(/amigaos\s?(\d(\.\d)*)*/)[1];        } catch (e) { }        return os;    } else if (brs.search(/hurd/) !=-1) {        os[0]="hurd";        return os;    } else if (brs.search(/hp\-ux/) != -1) {        os[0]="hpux";        try {            os[1]=brs.match(/hp\-ux\sb\.[\/\s]?(\d+([\._]\d)*)/)[1];        } catch (e) { }        return os;    } else if ( (brs.search(/unix/) !=-1) || (brs.search(/x11/) != -1 ) ) {        os[0]="unix";        return os;    } else if (brs.search(/cygwin/) !=-1) {        os[0]="cygwin";        return os;    } else if (brs.search(/java[\/\s]?(\d+([\._]\d)*)/) != -1) {        os[0]="java";        try {            os[1]=brs.match(/java[\/\s]?(\d+([\._]\d)*)/)[1];        } catch (e) { }        return os;    } else if (brs.search(/palmos/) != -1) {        os[0]="palmos";        return os;    } else if (brs.search(/symbian\s?os\/(\d+([\._]\d)*)/) != -1) {        os[0]="symbian";        try {            os[1]=brs.match(/symbian\s?os\/(\d+([\._]\d)*)/)[1];        } catch (e) { }        return os;    } else {        os[0]="unknown";        return os;    }}// Return Gecko versionfunction getGeckoVersion() {    return brs.match(/gecko\/([0-9]+)/)[1];}// Return MSIE versionfunction getMSIEVersion() {    return brs.match(/msie\s(\d+(\.?\d)*)/)[1];}// Return full browser UA stringfunction getFullUAString(obj) {    (isEmpty(obj) ? brs=navigator.userAgent.toLowerCase() : brs=obj);    return brs;}// Helper function to detect Javascript versionfunction _jsVersion() {    document.write('<script language="JavaScript1.0">');    document.write('var jsVer=1.0;');    document.write('</script>');    document.write('<script language="JavaScript1.1">');    document.write('var jsVer=1.1;');    document.write('</script>');    document.write('<script language="JavaScript1.2">');    document.write('var jsVer=1.2;');    document.write('</script>');    document.write('<script language="JavaScript1.3">');    document.write('var jsVer=1.3;');    document.write('</script>');    document.write('<script language="JavaScript1.4">');    document.write('var jsVer=1.4;');    document.write('</script>');    document.write('<script language="JavaScript1.5">');    document.write('var jsVer=1.5;');    document.write('</script>');    document.write('<script language="JavaScript1.6">');    document.write('var jsVer=1.6;');    document.write('</script>');    document.write('<script language="JavaScript1.7">');    document.write('var jsVer=1.7;');    document.write('</script>');    document.write('<script language="JavaScript1.8">');    document.write('var jsVer=1.8;');    document.write('</script>');    document.write('<script language="JavaScript2.0">');    document.write('var jsVer=2.0;');    document.write('</script>');}// What is the newest version of Javascript does the browser report as supported?function jsVersion() {   _jsVersion();    return jsVer;}/* FOR INTERNAL USE ONLY. THIS FUNCTIONS ARE SUBJECT TO CHANGE, DON'T TRUST THEM */// Is input empty?function isEmpty(input) {    return (input==null || input =="")}// Does this string contain a dot?function hasDot(input) {    return (input.search(/\./) == -1)}/* END OF FOR INTERNAL USE ONLY FUNCTIONS *//* END BROWSER DETECTION SCRIPT *//* BEGIN LYTEBOX SCRIPT *///***********************************************************************************************************************************///	LyteBox v3.20 Modification//  + EasySave, Click To Close, Resize, Info, Exif, Hint modifications and other changes by Pavel Kuzub////	 Author: Pavel Kuzub//	Webside: http://pavel.kuzub.com/lytebox//     Date: Sept 9, 2007////	 Original Author: Markus F. Hay//  Website: http://www.dolem.com/lytebox//	   Date: July 12, 2007//	License: Creative Commons Attribution 3.0 License (http://creativecommons.org/licenses/by/3.0/)// Browsers: Tested successfully on WinXP with the following browsers (using no DOCTYPE, Strict DOCTYPE, and Transitional DOCTYPE)://				* Firefox: 2.0.0.4, 1.5.0.12//				* Internet Explorer: 7.0, 6.0 SP2, 5.5 SP2//				* Opera: 9.21//// Releases: For up-to-date and complete release information, visit http://www.dolem.com/forum/showthread.php?tid=62//				* v3.20 (07/11/07)//				* v3.10 (05/28/07)//				* v3.00 (05/15/07)//				* v2.02 (11/13/06)////   Credit: LyteBox was originally derived from the Lightbox class (v2.02) that was written by Lokesh Dhakar. For more//			 information please visit http://huddletogether.com/projects/lightbox2///***********************************************************************************************************************************/Array.prototype.removeDuplicates = function () { for (var i = 1; i < this.length; i++){ if (this[i][0] == this[i-1][0]) { this.splice(i,1);	} } };Array.prototype.empty = function () { for (var i = 0; i <= this.length; i++) { this.shift(); } };String.prototype.trim = function () { return this.replace(/^\s+|\s+$/g, ''); };function LyteBox() {	/*** Start Global Configuration ***/		this.theme				= 'blue';	// themes: grey (default), red, green, blue, gold		this.hideFlash			= true;		// controls whether or not Flash objects should be hidden		this.outerBorder		= true;		// controls whether to show the outer grey (or theme) border		this.resizeSpeed		= 8;		// controls the speed of the image resizing (1=slowest and 10=fastest)		this.maxOpacity			= 50;		// higher opacity = darker overlay, lower opacity = lighter overlay		this.navType			= 1;		// 1 = "Prev/Next" buttons on top left and left (default), 2 = "<< prev | next >>" links next to image number		this.autoResize			= false;		// controls whether or not images should be resized if larger than the browser window dimensions		this.doAnimations		= true;		// controls whether or not "animate" Lytebox, i.e. resize transition between images, fade in/out effects, etc.				this.borderSize			= 12;		// if you adjust the padding in the CSS, you will need to update this variable -- otherwise, leave this alone...	/*** End Global Configuration ***/		/*** Configure Slideshow Options ***/		this.slideInterval		= 4000;		// Change value (milliseconds) to increase/decrease the time between "slides" (10000 = 10 seconds)		this.showNavigation		= true;		// true to display Next/Prev buttons/text during slideshow, false to hide		this.showClose			= true;		// true to display the Close button, false to hide. Good to hide if Click to Close is enabled		this.showDetails		= true;		// true to display image details (caption, count), false to hide		this.showPlayPause		= true;		// true to display pause/play buttons next to close button, false to hide		this.autoEnd			= true;		// true to automatically close Lytebox after the last image is reached, false to keep open		this.pauseOnNextClick	= false;	// true to pause the slideshow when the "Next" button is clicked        this.pauseOnPrevClick 	= true;		// true to pause the slideshow when the "Prev" button is clicked	/*** End Slideshow Configuration ***/	/*** Start Addon Configuration ***/		this.easySave			= true;		// true to enable Easy Save (To save image - right click and select Save Target As/Save Link As)		this.clickToClose		= true;		// true to exit Lytebox when clicking on image (if Navigation buttons are not overlapping). navType=1 only.		this.C2CrightSided		= true;		// true to use right side style close area on groups with single image		this.showCloseInFrame	= true;		// true to display the Close button in frame mode despite it is swinched off globaly, false to hide.		this.showHints			= true;		// true to display Hint messages over the buttons. Good to inform user about shortcuts		this.showSave			= false;		// true to display Save button next to close button, false to hide		this.showResize			= true;		// true to display Resize button next to close button, false to hide		this.showInfo			= true;		// true to display info button next to close button, false to hide. Searches Special Parameter for [info]Additional text[/info]		this.showExif			= true;		// true to display exif button next to close button, false to hide. Searches Special Parameter for [exif=true]		this.showBack			= true;		// true to display back button next to close button, false to hide	/*** End Addon Configuration ***/		/*** Start Teg Configuration ***/		this.tagBox				= 'lytebox';	// Catch the following name in Anchor REV parameter for LyteBox 		this.tagShow			= 'lyteshow';	// Catch the following name in Anchor REV parameter for LyteShow		this.tagFrame			= 'lyteframe';	// Catch the following name in Anchor REV parameter for LyteFrame	/*** Start Teg Configuration ***/		/*** Configure Info and Exif Configuration ***/		this.specialParam		= 'rev';				// says to Lytebox, which parameter use to get Info and Exif data		this.linkInfo			= 'info.php?info=';		// This link will be openned in Lyteframe, information string will be added at the end		this.linkExif			= 'exif.php?image=';	// This link will be openned in Lyteframe, filename will be added at the end		this.LyteframeStyle		= 'width: 400px; height: 400px; scrolling: auto';	// Default style of Lyteframe (Not really style, but form for sure)		this.TempFrameStyle		= 'width: 572px; height: 424px; scrolling: auto';	// Default style of Temp Frame to show Info and Exif (Same here)	/*** End Info and Exif Configuration ***/	/*** Start String Configuration ***/		this.hintClose			= "Close";	// Shortcut: 'Escape' or 'X' or 'C'		this.hintPlay			= "Continue SlideShow";		this.hintPause			= "Pause SlideShow";		this.hintNext			= "Next Image. \n";	// Shortcut: 'Right Arrow' or 'N'		this.hintPrev			= "Previous Image. \n";	// Shortcut: 'Left Arrow' or 'P'		this.hintSave			= "Use this button to get link to current image";		this.hintResize			= "Resize this image to fit your screen size OR back to original size. Shortcut: press 'R' or 'S'";		// Shortcut: 'R' or 'S'		this.hintInfo			= "Show additional information about this image. Shortcut: press 'I'";	// Shortcut: 'I'		this.hintExif			= "Show EXIF information about this image. Shortcut: press 'E'";	// Shortcut: 'E'		this.hintBack			= "Return back to image. Shortcut: press Left Arrow or 'P'";	// Shortcut: 'Left Arrow' or 'P'		this.hintEasySave		= "To save Current image - right click and select Save Target As/Save Link As";		this.hintClickToClose	= "Click to Close. \n";		this.textImageNum		= "Image %1 of %2"; // %1 - current, %2 - total		this.textPageNum		= "Page %1 of %2";	// %1 - current, %2 - total		this.textNavPrev		= "« PREV";	// « prev		this.textNavNext		= "NEXT »";	// next »		this.textNavDelim		= "||";	// Separates Prev and Next	/*** End String Configuration ***/	if(this.resizeSpeed > 10) { this.resizeSpeed = 10; }	if(this.resizeSpeed < 1) { resizeSpeed = 1; }	this.resizeDuration = (11 - this.resizeSpeed) * 0.15;	this.resizeWTimerArray		= new Array();	this.resizeWTimerCount		= 0;	this.resizeHTimerArray		= new Array();	this.resizeHTimerCount		= 0;	this.showContentTimerArray	= new Array();	this.showContentTimerCount	= 0;	this.overlayTimerArray		= new Array();	this.overlayTimerCount		= 0;	this.imageTimerArray		= new Array();	this.imageTimerCount		= 0;	this.timerIDArray			= new Array();	this.timerIDCount			= 0;	this.slideshowIDArray		= new Array();	this.slideshowIDCount		= 0;	this.imageArray	 = new Array();	this.activeImage = null;	this.slideArray	 = new Array();	this.activeSlide = null;	this.frameArray	 = new Array();	this.activeFrame = null;	this.checkFrame();	this.isSlideshow = false;	this.isLyteframe = false;	this.isShowTempFrame = false;	this.TempFrame = new Array();	this.HasInfo = false;	this.HasExif = false;	/*@cc_on		/*@if (@_jscript)			this.ie = (document.all && !window.opera) ? true : false;		/*@else @*/			this.ie = false;		/*@end	@*/	this.ie7 = (this.ie && window.XMLHttpRequest);	this.initialize();}LyteBox.prototype.getInfoString = function(string){if (string == null || string == '')	return '';var string = string.replace(/\r\n/g,"<br/>");var string = string.replace(/\n/g,"<br/>");var string = string.replace(/\r/g,"<br/>");var info = /\[info\](.*?)\[\/info\]/i.exec(string);if (info!=null)	return info[1];else	return '';};LyteBox.prototype.getShowExif = function(string){if (string == null || string == '')	return false;var exif = /\[exif=true\]/i.exec(string);if (exif!=null)	return true;else	return false;};LyteBox.prototype.compileSpecialString = function() {	if (arguments.length==0){		return false;	} else if (arguments.length==1){		return arguments[0];	} else {	var items = arguments.length;	var str = arguments[0];		for (i = 1;i < items;i++){		str = str.replace('%' + i,arguments[i]);		}	return str;	}};LyteBox.prototype.initialize = function() {	this.updateLyteboxItems();	var objBody = this.doc.getElementsByTagName("body").item(0);		if (this.doc.getElementById('lbOverlay')) {		objBody.removeChild(this.doc.getElementById("lbOverlay"));		objBody.removeChild(this.doc.getElementById("lbMain"));	}	var objOverlay = this.doc.createElement("div");		objOverlay.setAttribute('id','lbOverlay');		objOverlay.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objOverlay.style.display = 'none';		objBody.appendChild(objOverlay);	var objLytebox = this.doc.createElement("div");		objLytebox.setAttribute('id','lbMain');		objLytebox.style.display = 'none';		objBody.appendChild(objLytebox);	var objOuterContainer = this.doc.createElement("div");		objOuterContainer.setAttribute('id','lbOuterContainer');		objOuterContainer.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objLytebox.appendChild(objOuterContainer);	var objIframeContainer = this.doc.createElement("div");		objIframeContainer.setAttribute('id','lbIframeContainer');		objIframeContainer.style.display = 'none';		objOuterContainer.appendChild(objIframeContainer);	var objIframe = this.doc.createElement("iframe");		objIframe.setAttribute('id','lbIframe');		objIframe.setAttribute('name','lbIframe');		objIframe.setAttribute('frameBorder','0'); // This is fixing issue with frame border in IE		objIframe.style.display = 'none';		objIframeContainer.appendChild(objIframe);	var objImageContainer = this.doc.createElement("div");		objImageContainer.setAttribute('id','lbImageContainer');		objOuterContainer.appendChild(objImageContainer);	var objLyteboxImage = this.doc.createElement("img");		objLyteboxImage.setAttribute('id','lbImage');		objImageContainer.appendChild(objLyteboxImage);	var objLoading = this.doc.createElement("div");		objLoading.setAttribute('id','lbLoading');		objOuterContainer.appendChild(objLoading);	var objDetailsContainer = this.doc.createElement("div");		objDetailsContainer.setAttribute('id','lbDetailsContainer');		objDetailsContainer.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objLytebox.appendChild(objDetailsContainer);	var objDetailsData =this.doc.createElement("div");		objDetailsData.setAttribute('id','lbDetailsData');		objDetailsData.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objDetailsContainer.appendChild(objDetailsData);	var objDetails = this.doc.createElement("div");		objDetails.setAttribute('id','lbDetails');		objDetailsData.appendChild(objDetails);	var objCaption = this.doc.createElement("span");		objCaption.setAttribute('id','lbCaption');		objDetails.appendChild(objCaption);	var objHoverNav = this.doc.createElement((this.easySave ? 'a' : 'div')); // Changed element type from DIV to A. Needed to make Quick Save and Click To Close features		objHoverNav.setAttribute('id','lbHoverNav');		objHoverNav.setAttribute('title',(this.showHints ? ((this.clickToClose ? this.hintClickToClose : '') + (this.easySave ? this.hintEasySave : '')) : ''));		objImageContainer.appendChild(objHoverNav);	var objBottomNav = this.doc.createElement("div");		objBottomNav.setAttribute('id','lbBottomNav');		objDetailsData.appendChild(objBottomNav);	var objPrev = this.doc.createElement("a");		objPrev.setAttribute('id','lbPrev');		objPrev.setAttribute('title',(this.showHints ? (this.hintPrev + (this.easySave ? this.hintEasySave : '')) : ''));		objPrev.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objPrev.setAttribute('href','#');		objHoverNav.appendChild(objPrev);	var objNext = this.doc.createElement("a");		objNext.setAttribute('id','lbNext');		objNext.setAttribute('title',(this.showHints ? (this.hintNext + (this.easySave ? this.hintEasySave : '')) : ''));		objNext.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objNext.setAttribute('href','#');		objHoverNav.appendChild(objNext);	var objC2Cleft = this.doc.createElement("a");		objC2Cleft.setAttribute('id','lbC2Cleft'); // We are creating special field used for Click to Close. Left part will appear on first image/slide in group instead of Prev navigation (navType=1)		objC2Cleft.setAttribute('title',(this.showHints ? ((this.clickToClose ? this.hintClickToClose : '') + (this.easySave ? this.hintEasySave : '')) : ''));		objC2Cleft.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objC2Cleft.setAttribute('href','#'); // In case of single image in image/slide group, either right or left part (depends on settings above) will be used to fill all the natigation area and hide other part.		objHoverNav.appendChild(objC2Cleft);	var objC2Cright = this.doc.createElement("a");		objC2Cright.setAttribute('id','lbC2Cright'); // Right part will appear on last image/slide in group instead of Next navigation (navType=1)		objC2Cright.setAttribute('title',(this.showHints ? ((this.clickToClose ? this.hintClickToClose : '') + (this.easySave ? this.hintEasySave : '')) : ''));		objC2Cright.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objC2Cright.setAttribute('href','#');		objHoverNav.appendChild(objC2Cright);	var objNumberDisplay = this.doc.createElement("span");		objNumberDisplay.setAttribute('id','lbNumberDisplay');		objDetails.appendChild(objNumberDisplay);	var objNavDisplay = this.doc.createElement("span");		objNavDisplay.setAttribute('id','lbNavDisplay');		objNavDisplay.style.display = 'none';		objDetails.appendChild(objNavDisplay);	var objClose = this.doc.createElement("a");		objClose.setAttribute('id','lbClose');		objClose.setAttribute('title',(this.showHints ? this.hintClose : '' ));		objClose.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objClose.setAttribute('href','#');		objBottomNav.appendChild(objClose);	var objPause = this.doc.createElement("a");		objPause.setAttribute('id','lbPause');		objPause.setAttribute('title',(this.showHints ? this.hintPause : ''));		objPause.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objPause.setAttribute('href','#');		objPause.style.display = 'none';		objBottomNav.appendChild(objPause);	var objPlay = this.doc.createElement("a");		objPlay.setAttribute('id','lbPlay');		objPlay.setAttribute('title',(this.showHints ? this.hintPlay : ''));		objPlay.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objPlay.setAttribute('href','#');		objPlay.style.display = 'none';		objBottomNav.appendChild(objPlay);	var objSave = this.doc.createElement("a");		objSave.setAttribute('id','lbSave');		objSave.setAttribute('title',(this.showHints ? this.hintSave : ''));		objSave.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objSave.setAttribute('href','#');		objSave.style.display = 'none';		objBottomNav.appendChild(objSave);	var objResize = this.doc.createElement("a");		objResize.setAttribute('id','lbResize');		objResize.setAttribute('title',(this.showHints ? this.hintResize : ''));		objResize.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objResize.setAttribute('href','#');		objResize.style.display = 'none';		objBottomNav.appendChild(objResize);	var objInfo = this.doc.createElement("a");		objInfo.setAttribute('id','lbInfo');		objInfo.setAttribute('title',(this.showHints ? this.hintInfo : ''));		objInfo.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objInfo.setAttribute('href','#');		objInfo.style.display = 'none';		objBottomNav.appendChild(objInfo);	var objExif = this.doc.createElement("a");		objExif.setAttribute('id','lbExif');		objExif.setAttribute('title',(this.showHints ? this.hintExif : ''));		objExif.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objExif.setAttribute('href','#');		objExif.style.display = 'none';		objBottomNav.appendChild(objExif);	var objBack = this.doc.createElement("a");		objBack.setAttribute('id','lbBack');		objBack.setAttribute('title',(this.showHints ? this.hintBack : ''));		objBack.setAttribute((this.ie ? 'className' : 'class'), this.theme);		objBack.setAttribute('href','#');		objBack.style.display = 'none';		objBottomNav.appendChild(objBack);};LyteBox.prototype.updateLyteboxItems = function() {		var anchors = (this.isFrame) ? window.parent.frames[window.name].document.getElementsByTagName('a') : document.getElementsByTagName('a');	for (var i = 0; i < anchors.length; i++) {		var anchor = anchors[i];		var relAttribute = String(anchor.getAttribute('rel'));		if (anchor.getAttribute('href')) {			if (relAttribute.toLowerCase().match(this.tagBox)) {				anchor.onclick = function () { myLytebox.start(this, false, false); return false; }			} else if (relAttribute.toLowerCase().match(this.tagShow)) {				anchor.onclick = function () { myLytebox.start(this, true, false); return false; }			} else if (relAttribute.toLowerCase().match(this.tagFrame)) {				anchor.onclick = function () { myLytebox.start(this, false, true); return false; }			}		}	}};LyteBox.prototype.start = function(imageLink, doSlide, doFrame) {	if (this.ie && !this.ie7) {	this.toggleSelects('hide');	}	if (this.hideFlash) { this.toggleFlash('hide'); }	this.isLyteframe = (doFrame ? true : false);	this.isShowTempFrame = false;	var pageSize	= this.getPageSize();	var objOverlay	= this.doc.getElementById('lbOverlay');	var objBody		= this.doc.getElementsByTagName("body").item(0);	objOverlay.style.height = pageSize[1] + "px";	objOverlay.style.display = '';	this.appear('lbOverlay', (this.doAnimations ? 0 : this.maxOpacity));	var anchors = (this.isFrame) ? window.parent.frames[window.name].document.getElementsByTagName('a') : document.getElementsByTagName('a');	if (this.isLyteframe) {		this.frameArray = [];		this.frameNum = 0;		if ((imageLink.getAttribute('rel') == this.tagFrame)) {			var rev = imageLink.getAttribute('rev');			this.frameArray.push(new Array(imageLink.getAttribute('href'), imageLink.getAttribute('title'), (rev == null || rev == '' ? this.LyteframeStyle : rev)));		} else {			if (imageLink.getAttribute('rel').indexOf(this.tagFrame) != -1) {				for (var i = 0; i < anchors.length; i++) {					var anchor = anchors[i];					if (anchor.getAttribute('href') && (anchor.getAttribute('rel') == imageLink.getAttribute('rel'))) {						var rev = anchor.getAttribute('rev');						this.frameArray.push(new Array(anchor.getAttribute('href'), anchor.getAttribute('title'), (rev == null || rev == '' ? this.LyteframeStyle : rev)));					}				}				this.frameArray.removeDuplicates();				while(this.frameArray[this.frameNum][0] != imageLink.getAttribute('href')) { this.frameNum++; }			}		}	} else {		this.imageArray = [];		this.imageNum = 0;		this.slideArray = [];		this.slideNum = 0;		if ((imageLink.getAttribute('rel') == this.tagBox)) {			this.imageArray.push(new Array(imageLink.getAttribute('href'), imageLink.getAttribute('title'), this.getInfoString(imageLink.getAttribute(this.specialParam)), this.getShowExif(imageLink.getAttribute(this.specialParam))));		} else {			if (imageLink.getAttribute('rel').indexOf(this.tagBox) != -1) {				for (var i = 0; i < anchors.length; i++) {					var anchor = anchors[i];					if (anchor.getAttribute('href') && (anchor.getAttribute('rel') == imageLink.getAttribute('rel'))) {						this.imageArray.push(new Array(anchor.getAttribute('href'), anchor.getAttribute('title'), this.getInfoString(anchor.getAttribute(this.specialParam)), this.getShowExif(anchor.getAttribute(this.specialParam))));					}				}				this.imageArray.removeDuplicates();				while(this.imageArray[this.imageNum][0] != imageLink.getAttribute('href')) { this.imageNum++; }			}			if (imageLink.getAttribute('rel').indexOf(this.tagShow) != -1) {				for (var i = 0; i < anchors.length; i++) {					var anchor = anchors[i];					if (anchor.getAttribute('href') && (anchor.getAttribute('rel') == imageLink.getAttribute('rel'))) {						this.slideArray.push(new Array(anchor.getAttribute('href'), anchor.getAttribute('title'), this.getInfoString(anchor.getAttribute(this.specialParam)), this.getShowExif(anchor.getAttribute(this.specialParam))));					}				}				this.slideArray.removeDuplicates();				while(this.slideArray[this.slideNum][0] != imageLink.getAttribute('href')) { this.slideNum++; }			}		}	}	var object = this.doc.getElementById('lbMain');		// added 45 px here to push top of lytebox frame below navbar T.R. 2009-06-04		object.style.top = (this.getPageScroll() + (pageSize[3] / 15)) + 45 + "px";		object.style.display = '';	if (!this.outerBorder) {		this.doc.getElementById('lbOuterContainer').style.border	= 'none';		this.doc.getElementById('lbDetailsContainer').style.border	= 'none';	} else {		this.doc.getElementById('lbOuterContainer').style.borderBottom = '';		this.doc.getElementById('lbOuterContainer').setAttribute((this.ie ? 'className' : 'class'), this.theme);	}	this.doc.getElementById('lbOverlay').onclick = function() { myLytebox.end(); return false; };	this.doc.getElementById('lbMain').onclick = function(e) {		var e = e;		if (!e) {			if (window.parent.frames[window.name] && (parent.document.getElementsByTagName('frameset').length <= 0)) {				e = window.parent.window.event;			} else {				e = window.event;			}		}		var id = (e.target ? e.target.id : e.srcElement.id);		if (id == 'lbMain') { myLytebox.end(); return false; }	};	this.doc.getElementById('lbHoverNav').onclick	= function() { return false; };	this.doc.getElementById('lbC2Cleft').onclick	= function() { myLytebox.end(); return false; };	this.doc.getElementById('lbC2Cright').onclick	= function() { myLytebox.end(); return false; };	this.doc.getElementById('lbClose').onclick		= function() { myLytebox.end(); return false; };	this.doc.getElementById('lbPause').onclick		= function() { myLytebox.togglePlayPause("lbPause", "lbPlay"); return false; };	this.doc.getElementById('lbPlay').onclick		= function() { myLytebox.togglePlayPause("lbPlay", "lbPause"); return false; };	this.doc.getElementById('lbSave').onclick		= function() { return false; };	this.doc.getElementById('lbResize').onclick		= function() { myLytebox.resize(); return false; };	this.doc.getElementById('lbInfo').onclick		= function() { myLytebox.info(); return false; };	this.doc.getElementById('lbExif').onclick		= function() { myLytebox.exif(); return false; };	this.doc.getElementById('lbBack').onclick		= function() { myLytebox.back(); return false; };	// Below code is removing selection border when clicking on buttons. EXPERIMENTAL. Can't use just blur() because of issue with shortcuts being inactive then.	this.doc.getElementById('lbHoverNav').onfocus	= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbC2Cleft').onfocus	= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbC2Cright').onfocus	= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbNext').onfocus		= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbPrev').onfocus		= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbClose').onfocus		= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbPause').onfocus		= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbPlay').onfocus		= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbSave').onfocus		= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbResize').onfocus		= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbInfo').onfocus		= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbExif').onfocus		= function() { (!this.ie ? objBody.focus() : blur()); };	this.doc.getElementById('lbBack').onfocus		= function() { (!this.ie ? objBody.focus() : blur()); };	this.isSlideshow = doSlide;	this.isPaused = (this.slideNum != 0 ? true : false);	if (this.isSlideshow && this.showPlayPause && this.isPaused) {		this.doc.getElementById('lbPlay').style.display = '';		this.doc.getElementById('lbPause').style.display = 'none';	}	if (this.isLyteframe) {		this.changeContent(this.frameNum);	} else {		if (this.isSlideshow) {			this.changeContent(this.slideNum);		} else {			this.changeContent(this.imageNum);		}	}};LyteBox.prototype.changeContent = function(imageNum) {	this.clearFrame();	if (this.isSlideshow) {		for (var i = 0; i < this.slideshowIDCount; i++) { window.clearTimeout(this.slideshowIDArray[i]); }	}	this.activeImage = this.activeSlide = this.activeFrame = imageNum;	if (!this.outerBorder) {		this.doc.getElementById('lbOuterContainer').style.border	= 'none';		this.doc.getElementById('lbDetailsContainer').style.border	= 'none';	} else {		this.doc.getElementById('lbOuterContainer').style.borderBottom = '';		this.doc.getElementById('lbOuterContainer').setAttribute((this.ie ? 'className' : 'class'), this.theme);	}	this.doc.getElementById('lbLoading').style.display			= '';	this.doc.getElementById('lbImage').style.display			= 'none';	this.doc.getElementById('lbIframe').style.display			= 'none';	this.doc.getElementById('lbPrev').style.display				= 'none';	this.doc.getElementById('lbNext').style.display				= 'none';	this.doc.getElementById('lbC2Cleft').style.display			= 'none';	this.doc.getElementById('lbC2Cright').style.display			= 'none';	this.doc.getElementById('lbC2Cleft').style.width			= '49.9%';	this.doc.getElementById('lbC2Cright').style.width			= '49.9%';	this.doc.getElementById('lbIframeContainer').style.display	= 'none';	this.doc.getElementById('lbDetailsContainer').style.display	= 'none';	this.doc.getElementById('lbNumberDisplay').style.display	= 'none';	if (this.navType == 2 || this.isLyteframe) {		object = this.doc.getElementById('lbNavDisplay');		object.innerHTML = '   <span id="lbPrev2_Off" style="display: none;" class="' + this.theme + '">' + this.textNavPrev + '</span><a href="#" id="lbPrev2" class="' + this.theme + '" style="display: none;">' + this.textNavPrev + '</a> <b id="lbSpacer" class="' + this.theme + '">' + this.textNavDelim + '</b> <span id="lbNext2_Off" style="display: none;" class="' + this.theme + '">' + this.textNavNext + '</span><a href="#" id="lbNext2" class="' + this.theme + '" style="display: none;">' + this.textNavNext + '</a>';		object.style.display = 'none';	}	if (this.isLyteframe || this.isShowTempFrame) {		var iframe = myLytebox.doc.getElementById('lbIframe');		var styles = (this.isShowTempFrame ? this.TempFrameStyle : this.frameArray[this.activeFrame][2]);		var aStyles = styles.split(';');		for (var i = 0; i < aStyles.length; i++) {			if (aStyles[i].indexOf('width:') >= 0) {				var w = aStyles[i].replace('width:', '');				iframe.width = w.trim();			} else if (aStyles[i].indexOf('height:') >= 0) {				var h = aStyles[i].replace('height:', '');				iframe.height = h.trim();			} else if (aStyles[i].indexOf('scrolling:') >= 0) {				var s = aStyles[i].replace('scrolling:', '');				iframe.scrolling = s.trim();			} else if (aStyles[i].indexOf('border:') >= 0) {				// Not implemented yet, as there are cross-platform issues with setting the border (from a GUI standpoint)				// var b = aStyles[i].replace('border:', '');				// iframe.style.border = b.trim();			}		}		iframe.src = (this.isShowTempFrame ? this.TempFrame[0] : this.frameArray[this.activeFrame][0]);		this.resizeContainer(parseInt(iframe.width), parseInt(iframe.height));	} else {		imgPreloader = new Image();		imgPreloader.onload = function() {			var imageWidth = imgPreloader.width;			var imageHeight = imgPreloader.height;			var pagesize = myLytebox.getPageSize();			var x = pagesize[2] - 150;			var y = pagesize[3] - 150;			if (imageWidth > x) {				myLytebox.canResize = true;			} else if (imageHeight > y) { 				myLytebox.canResize = true;			} else {				myLytebox.canResize = false;			}			if (myLytebox.autoResize && myLytebox.canResize) {				if (imageWidth > x) {					imageHeight = Math.round(imageHeight * (x / imageWidth));					imageWidth = x; 					if (imageHeight > y) { 						imageWidth = Math.round(imageWidth * (y / imageHeight));						imageHeight = y; 					}				} else if (imageHeight > y) { 					imageWidth = Math.round(imageWidth * (y / imageHeight));					imageHeight = y; 					if (imageWidth > x) {						imageHeight = Math.round(imageHeight * (x / imageWidth));						imageWidth = x;					}				}			}			var lbImage = myLytebox.doc.getElementById('lbImage');			lbImage.src = (myLytebox.isSlideshow ? myLytebox.slideArray[myLytebox.activeSlide][0] : myLytebox.imageArray[myLytebox.activeImage][0]);			lbImage.width = imageWidth;			lbImage.height = imageHeight;			myLytebox.resizeContainer(imageWidth, imageHeight);			imgPreloader.onload = function() {};		};		imgPreloader.src = (this.isSlideshow ? this.slideArray[this.activeSlide][0] : this.imageArray[this.activeImage][0]);	}};LyteBox.prototype.resizeContainer = function(imgWidth, imgHeight) {	this.wCur = this.doc.getElementById('lbOuterContainer').offsetWidth;	this.hCur = this.doc.getElementById('lbOuterContainer').offsetHeight;	this.xScale = ((imgWidth  + (this.borderSize * 2)) / this.wCur) * 100;	this.yScale = ((imgHeight  + (this.borderSize * 2)) / this.hCur) * 100;	var wDiff = (this.wCur - this.borderSize * 2) - imgWidth;	var hDiff = (this.hCur - this.borderSize * 2) - imgHeight;	if (!(hDiff == 0)) {		this.hDone = false;		this.resizeH('lbOuterContainer', this.hCur, imgHeight + this.borderSize*2, this.getPixelRate(this.hCur, imgHeight));	} else {		this.hDone = true;	}	if (!(wDiff == 0)) {		this.wDone = false;		this.resizeW('lbOuterContainer', this.wCur, imgWidth + this.borderSize*2, this.getPixelRate(this.wCur, imgWidth));	} else {		this.wDone = true;	}	if ((hDiff == 0) && (wDiff == 0)) {		if (this.ie){ this.pause(250); } else { this.pause(100); } 	}	//this.doc.getElementById('lbPrev').style.height = imgHeight + "px"; // I don't know why this was here. It only makes object shorter than it should really be	//this.doc.getElementById('lbNext').style.height = imgHeight + "px"; // Using CSS we are making height 100%	this.doc.getElementById('lbDetailsContainer').style.width = (imgWidth + (this.borderSize * 2) + (this.ie && this.doc.compatMode == "BackCompat" && this.outerBorder ? 2 : 0)) + "px";	this.showContent();};LyteBox.prototype.showContent = function() {	if (this.wDone && this.hDone) {		for (var i = 0; i < this.showContentTimerCount; i++) { window.clearTimeout(this.showContentTimerArray[i]); }		if (this.outerBorder) {			this.doc.getElementById('lbOuterContainer').style.borderBottom = 'none';		}		this.doc.getElementById('lbLoading').style.display = 'none';		if (this.isShowTempFrame) {			this.doc.getElementById('lbIframe').style.display = '';			this.appear('lbIframe', (this.doAnimations ? 0 : 100));		} else if (this.isLyteframe) {			this.doc.getElementById('lbIframe').style.display = '';			this.appear('lbIframe', (this.doAnimations ? 0 : 100));		} else {			this.doc.getElementById('lbImage').style.display = '';			this.appear('lbImage', (this.doAnimations ? 0 : 100));			this.preloadNeighborImages();		}		if (this.isShowTempFrame){			this.doc.getElementById('lbHoverNav').style.display		= 'none';			this.doc.getElementById('lbClose').style.display		= (this.showCloseInFrame ? '' : 'none');			this.doc.getElementById('lbDetails').style.display		= (this.showDetails ? '' : 'none');			this.doc.getElementById('lbPause').style.display		= 'none';			this.doc.getElementById('lbPlay').style.display			= 'none';			this.doc.getElementById('lbSave').style.display			= 'none';			this.doc.getElementById('lbResize').style.display		= 'none';			this.doc.getElementById('lbNavDisplay').style.display	= 'none';			this.doc.getElementById('lbInfo').style.display			= 'none';			this.doc.getElementById('lbExif').style.display			= 'none';			this.doc.getElementById('lbBack').style.display			= (this.showBack ? '' : 'none');					} else if (this.isSlideshow) {			if(this.activeSlide == (this.slideArray.length - 1)) {				if (this.autoEnd) {					this.slideshowIDArray[this.slideshowIDCount++] = setTimeout("myLytebox.end('slideshow')", this.slideInterval);				}			} else {				if (!this.isPaused) {					this.slideshowIDArray[this.slideshowIDCount++] = setTimeout("myLytebox.changeContent("+(this.activeSlide+1)+")", this.slideInterval);				}			}			this.HasInfo = (this.slideArray[this.activeSlide][2]!='' ? true : false);			this.HasExif = (this.slideArray[this.activeSlide][3] ? true : false);						this.doc.getElementById('lbHoverNav').style.display		= (this.showNavigation && this.navType == 1 ? '' : 'none');			this.doc.getElementById('lbClose').style.display		= (this.showClose ? '' : 'none');			this.doc.getElementById('lbDetails').style.display		= (this.showDetails ? '' : 'none');			this.doc.getElementById('lbPause').style.display		= (this.showPlayPause && !this.isPaused ? '' : 'none');			this.doc.getElementById('lbPlay').style.display			= (this.showPlayPause && !this.isPaused ? 'none' : '');			this.doc.getElementById('lbSave').style.display			= (this.showSave ? '' : 'none');			this.doc.getElementById('lbResize').style.display		= (this.showResize && this.canResize ? '' : 'none');			this.doc.getElementById('lbNavDisplay').style.display	= (this.showNavigation && this.navType == 2 ? '' : 'none');			this.doc.getElementById('lbInfo').style.display			= (this.HasInfo && this.showInfo ? '' : 'none');			this.doc.getElementById('lbExif').style.display			= (this.HasExif && this.showExif ? '' : 'none');			this.doc.getElementById('lbBack').style.display			= 'none';			if (this.showSave) {				this.doc.getElementById('lbSave').href		= this.slideArray[this.activeSlide][0];			}			if (this.easySave) {				this.doc.getElementById('lbHoverNav').href	= this.slideArray[this.activeSlide][0];				this.doc.getElementById('lbPrev').href		= this.slideArray[this.activeSlide][0];				this.doc.getElementById('lbNext').href		= this.slideArray[this.activeSlide][0];				this.doc.getElementById('lbC2Cleft').href	= this.slideArray[this.activeSlide][0];				this.doc.getElementById('lbC2Cright').href	= this.slideArray[this.activeSlide][0];			}					} else {			this.doc.getElementById('lbHoverNav').style.display = (this.navType == 1 && !this.isLyteframe ? '' : 'none');			if ((this.navType == 2 && !this.isLyteframe && this.imageArray.length > 1) || (this.frameArray.length > 1 && this.isLyteframe)) {				this.doc.getElementById('lbNavDisplay').style.display = '';			} else {				this.doc.getElementById('lbNavDisplay').style.display = 'none';			}			this.HasInfo = (this.isLyteframe ? false : (this.imageArray[this.activeImage][2]!='' ? true : false));			this.HasExif = (this.isLyteframe ? false : (this.imageArray[this.activeImage][3] ? true : false));			this.doc.getElementById('lbClose').style.display	= (!this.isLyteframe ? (this.showClose ? '' : 'none') : (this.showCloseInFrame ? '' : 'none'));			this.doc.getElementById('lbDetails').style.display	= (this.showDetails ? '' : 'none');			this.doc.getElementById('lbPause').style.display	= 'none';			this.doc.getElementById('lbPlay').style.display		= 'none';			this.doc.getElementById('lbSave').style.display		= (!this.isLyteframe && this.showSave ? '' : 'none');			this.doc.getElementById('lbResize').style.display	= (!this.isLyteframe && this.showResize && this.canResize ? '' : 'none');			this.doc.getElementById('lbInfo').style.display		= (this.HasInfo && this.showInfo ? '' : 'none');			this.doc.getElementById('lbExif').style.display		= (this.HasExif && this.showExif ? '' : 'none');			this.doc.getElementById('lbBack').style.display		= 'none';			if (!this.isLyteframe && this.showSave) {				this.doc.getElementById('lbSave').href		= this.imageArray[this.activeImage][0];			}			if (!this.isLyteframe && this.easySave) {				this.doc.getElementById('lbHoverNav').href	= this.imageArray[this.activeImage][0];				this.doc.getElementById('lbPrev').href		= this.imageArray[this.activeImage][0];				this.doc.getElementById('lbNext').href		= this.imageArray[this.activeImage][0];				this.doc.getElementById('lbC2Cleft').href	= this.imageArray[this.activeImage][0];				this.doc.getElementById('lbC2Cright').href	= this.imageArray[this.activeImage][0];			}		}		this.doc.getElementById('lbImageContainer').style.display	= (this.isLyteframe || this.isShowTempFrame ? 'none' : '');		this.doc.getElementById('lbIframeContainer').style.display	= (this.isLyteframe || this.isShowTempFrame ? '' : 'none');	} else {		this.showContentTimerArray[this.showContentTimerCount++] = setTimeout("myLytebox.showContent()", 200);	}};LyteBox.prototype.updateDetails = function() {	var object = this.doc.getElementById('lbCaption');	var sTitle = (this.isShowTempFrame ? this.TempFrame[1] : (this.isSlideshow ? this.slideArray[this.activeSlide][1] : (this.isLyteframe ? this.frameArray[this.activeFrame][1] : this.imageArray[this.activeImage][1])));	object.style.display = '';	object.innerHTML = (sTitle == null ? '' : sTitle);	this.updateNav();	this.doc.getElementById('lbDetailsContainer').style.display = '';	object = this.doc.getElementById('lbNumberDisplay');	if (this.isShowTempFrame){		this.doc.getElementById('lbNavDisplay').style.display = 'none';	} else if (this.isSlideshow && this.slideArray.length > 1) {		object.style.display = '';		object.innerHTML = this.compileSpecialString(this.textImageNum, eval(this.activeSlide + 1), this.slideArray.length);		this.doc.getElementById('lbNavDisplay').style.display = (this.navType == 2 && this.showNavigation ? '' : 'none');	} else if (this.imageArray.length > 1 && !this.isLyteframe) {		object.style.display = '';		object.innerHTML = this.compileSpecialString(this.textImageNum, eval(this.activeImage + 1), this.imageArray.length);		this.doc.getElementById('lbNavDisplay').style.display = (this.navType == 2 ? '' : 'none');	} else if (this.frameArray.length > 1 && this.isLyteframe) {		object.style.display = '';		object.innerHTML = this.compileSpecialString(this.textPageNum, eval(this.activeFrame + 1), this.frameArray.length);		this.doc.getElementById('lbNavDisplay').style.display = '';	} else {		this.doc.getElementById('lbNavDisplay').style.display = 'none';	}	this.appear('lbDetailsContainer', (this.doAnimations ? 0 : 100));};LyteBox.prototype.updateNav = function() {	if (this.isSlideshow) {		if (this.activeSlide != 0) { // Displays PREV if it is NOT a First slide			var object = (this.navType == 2 ? this.doc.getElementById('lbPrev2') : this.doc.getElementById('lbPrev'));				object.style.display = '';				object.onclick = function() {					if (myLytebox.pauseOnPrevClick) { myLytebox.togglePlayPause("lbPause", "lbPlay"); }					myLytebox.changeContent(myLytebox.activeSlide - 1); return false;				}		} else { // Don't show PREV in navType = 1 if it IS a First slide			if (this.clickToClose){				if (this.slideArray.length == 1){					this.doc.getElementById('lbC2Cleft').style.width	= (this.C2CrightSided ? '' : '100%');					this.doc.getElementById('lbC2Cleft').style.display	= (this.C2CrightSided ? 'none' : '');				} else {				this.doc.getElementById('lbC2Cleft').style.display	= '';				}			}			if (this.navType == 2) { this.doc.getElementById('lbPrev2_Off').style.display = ''; }		}		if (this.activeSlide != (this.slideArray.length - 1)) { // Displays NEXT if it is NOT a Last slide			var object = (this.navType == 2 ? this.doc.getElementById('lbNext2') : this.doc.getElementById('lbNext'));				object.style.display = '';				object.onclick = function() {					if (myLytebox.pauseOnNextClick) { myLytebox.togglePlayPause("lbPause", "lbPlay"); }					myLytebox.changeContent(myLytebox.activeSlide + 1); return false;				}		} else { // Don't show NEXT in navType = 1 if it IS a Last slide			if (this.clickToClose){				if (this.slideArray.length == 1){					this.doc.getElementById('lbC2Cright').style.width	= (this.C2CrightSided ? '100%' : '');					this.doc.getElementById('lbC2Cright').style.display	= (this.C2CrightSided ? '' : 'none');				} else {					this.doc.getElementById('lbC2Cright').style.display	= '';				}			}			if (this.navType == 2) { this.doc.getElementById('lbNext2_Off').style.display = ''; }		}	} else if (this.isLyteframe) {		if(this.activeFrame != 0) {			var object = this.doc.getElementById('lbPrev2');				object.style.display = '';				object.onclick = function() {					myLytebox.changeContent(myLytebox.activeFrame - 1); return false;				}		} else {			this.doc.getElementById('lbPrev2_Off').style.display = '';		}		if(this.activeFrame != (this.frameArray.length - 1)) {			var object = this.doc.getElementById('lbNext2');				object.style.display = '';				object.onclick = function() {					myLytebox.changeContent(myLytebox.activeFrame + 1); return false;				}		} else {			this.doc.getElementById('lbNext2_Off').style.display = '';		}			} else {		if(this.activeImage != 0) {			var object = (this.navType == 2 ? this.doc.getElementById('lbPrev2') : this.doc.getElementById('lbPrev'));				object.style.display = '';				object.onclick = function() {					myLytebox.changeContent(myLytebox.activeImage - 1); return false;				}		} else {			if (this.clickToClose){				if (this.imageArray.length == 1){					this.doc.getElementById('lbC2Cleft').style.width	= (this.C2CrightSided ? '' : '100%');					this.doc.getElementById('lbC2Cleft').style.display	= (this.C2CrightSided ? 'none' : '');				} else {				this.doc.getElementById('lbC2Cleft').style.display	= '';				}			}			if (this.navType == 2) { this.doc.getElementById('lbPrev2_Off').style.display = ''; }		}		if(this.activeImage != (this.imageArray.length - 1)) {			var object = (this.navType == 2 ? this.doc.getElementById('lbNext2') : this.doc.getElementById('lbNext'));				object.style.display = '';				object.onclick = function() {					myLytebox.changeContent(myLytebox.activeImage + 1); return false;				}		} else {			if (this.clickToClose){				if (this.imageArray.length == 1){					this.doc.getElementById('lbC2Cright').style.width	= (this.C2CrightSided ? '100%' : '');					this.doc.getElementById('lbC2Cright').style.display	= (this.C2CrightSided ? '' : 'none');				} else {					this.doc.getElementById('lbC2Cright').style.display	= '';				}			}			if (this.navType == 2) { this.doc.getElementById('lbNext2_Off').style.display = ''; }		}	}	this.enableKeyboardNav();};LyteBox.prototype.enableKeyboardNav = function() { document.onkeydown = this.keyboardAction; };LyteBox.prototype.disableKeyboardNav = function() { document.onkeydown = ''; };LyteBox.prototype.keyboardAction = function(e) {	var keycode = key = escape = null;	keycode	= (e == null) ? event.keyCode : e.which;	key		= String.fromCharCode(keycode).toLowerCase();	escape  = (e == null) ? 27 : e.DOM_VK_ESCAPE;	if ((key == 'x') || (key == 'c') || (keycode == escape)) {		myLytebox.end();	} else if ((key == 'p') || (keycode == 37)) {		if (myLytebox.isShowTempFrame) {				myLytebox.back();		} else if (myLytebox.isSlideshow) {			if(myLytebox.activeSlide != 0) {				myLytebox.disableKeyboardNav();				myLytebox.changeContent(myLytebox.activeSlide - 1);			}		} else if (myLytebox.isLyteframe) {			if(myLytebox.activeFrame != 0) {				myLytebox.disableKeyboardNav();				myLytebox.changeContent(myLytebox.activeFrame - 1);			}		} else {			if(myLytebox.activeImage != 0) {				myLytebox.disableKeyboardNav();				myLytebox.changeContent(myLytebox.activeImage - 1);			}		}	} else if ((key == 'n') || (keycode == 39)) {		if (myLytebox.isShowTempFrame) {			// ignore		} else if (myLytebox.isSlideshow) {			if(myLytebox.activeSlide != (myLytebox.slideArray.length - 1)) {				myLytebox.disableKeyboardNav();				myLytebox.changeContent(myLytebox.activeSlide + 1);			}		} else if (myLytebox.isLyteframe) {			if(myLytebox.activeFrame != (myLytebox.frameArray.length - 1)) {				myLytebox.disableKeyboardNav();				myLytebox.changeContent(myLytebox.activeFrame + 1);			}		} else {			if(myLytebox.activeImage != (myLytebox.imageArray.length - 1)) {				myLytebox.disableKeyboardNav();				myLytebox.changeContent(myLytebox.activeImage + 1);			}		}	} else if ((key == 'r') || (key == 's')) {		if (!myLytebox.isShowTempFrame && !myLytebox.isLyteframe && myLytebox.canResize) {			myLytebox.disableKeyboardNav();			myLytebox.resize();		}	} else if (key == 'i') {		if (!myLytebox.isShowTempFrame && !myLytebox.isLyteframe && myLytebox.HasInfo) {			myLytebox.disableKeyboardNav();			myLytebox.info();		}	} else if (key == 'e') {		if (!myLytebox.isShowTempFrame && !myLytebox.isLyteframe && myLytebox.HasExif) {			myLytebox.disableKeyboardNav();			myLytebox.exif();		}	}};LyteBox.prototype.preloadNeighborImages = function() {	if (this.isSlideshow) {		if ((this.slideArray.length - 1) > this.activeSlide) {			preloadNextImage = new Image();			preloadNextImage.src = this.slideArray[this.activeSlide + 1][0];		}		if(this.activeSlide > 0) {			preloadPrevImage = new Image();			preloadPrevImage.src = this.slideArray[this.activeSlide - 1][0];		}	} else {		if ((this.imageArray.length - 1) > this.activeImage) {			preloadNextImage = new Image();			preloadNextImage.src = this.imageArray[this.activeImage + 1][0];		}		if(this.activeImage > 0) {			preloadPrevImage = new Image();			preloadPrevImage.src = this.imageArray[this.activeImage - 1][0];		}	}};LyteBox.prototype.togglePlayPause = function(hideID, showID) {	if (this.isSlideshow && hideID == "lbPause") {		for (var i = 0; i < this.slideshowIDCount; i++) { window.clearTimeout(this.slideshowIDArray[i]); }	}	this.doc.getElementById(hideID).style.display = 'none';	this.doc.getElementById(showID).style.display = '';	if (hideID == "lbPlay") {		this.isPaused = false;		if (this.activeSlide == (this.slideArray.length - 1)) {			this.end();		} else {			this.changeContent(this.activeSlide + 1);		}	} else {		this.isPaused = true;	}};LyteBox.prototype.resize = function() {if (this.canResize) {	if (this.autoResize) {		this.autoResize	= false;	} else {		this.autoResize	= true;	}	if (this.isSlideshow) {		this.changeContent(myLytebox.activeSlide);	} else {		this.changeContent(myLytebox.activeImage);	} }this.enableKeyboardNav();};LyteBox.prototype.info = function() {	if (this.isSlideshow) {		var back	= this.activeSlide;		var title	= this.slideArray[this.activeSlide][1];		var info	= this.slideArray[this.activeSlide][2];	} else {		var back	= this.activeImage;		var title	= this.imageArray[this.activeImage][1];		var info	= this.imageArray[this.activeImage][2];	}this.isShowTempFrame = true;this.TempFrame[0] = this.linkInfo + info;this.TempFrame[1] = title;this.TempFrame[2] = back;this.changeContent();};LyteBox.prototype.exif = function() {	if (this.isSlideshow) {		var back	= this.activeSlide;		var title	= this.slideArray[this.activeSlide][1];		var file	= this.slideArray[this.activeSlide][0];	} else {		var back	= this.activeImage;		var title	= this.imageArray[this.activeImage][1];		var file	= this.imageArray[this.activeImage][0];	}this.isShowTempFrame = true;this.TempFrame[0] = this.linkExif + file;this.TempFrame[1] = title;this.TempFrame[2] = back;this.changeContent();};LyteBox.prototype.back = function() {this.isShowTempFrame = false;this.changeContent(this.TempFrame[2]);};LyteBox.prototype.clearFrame = function() {var iframe = myLytebox.doc.getElementById('lbIframe');if (iframe.src != null && iframe.src != '' && iframe.src != 'about:blank')	{		iframe.src = 'about:blank';	}};LyteBox.prototype.end = function(caller) {	var closeClick = (caller == 'slideshow' ? false : true);	if (this.isSlideshow && this.isPaused && !closeClick) { return; }	this.disableKeyboardNav();	this.doc.getElementById('lbMain').style.display = 'none';	this.fade('lbOverlay', (this.doAnimations ? this.maxOpacity : 0));	this.toggleSelects('visible');	if (this.hideFlash) { this.toggleFlash('visible'); }	if (this.isSlideshow) {		for (var i = 0; i < this.slideshowIDCount; i++) { window.clearTimeout(this.slideshowIDArray[i]); }	}	this.clearFrame();};LyteBox.prototype.checkFrame = function() {	if (window.parent.frames[window.name] && (parent.document.getElementsByTagName('frameset').length <= 0)) {		this.isFrame = true;		this.lytebox = "window.parent." + window.name + ".myLytebox";		this.doc = parent.document;	} else {		this.isFrame = false;		this.lytebox = "myLytebox";		this.doc = document;	}};LyteBox.prototype.getPixelRate = function(cur, img) {	var diff = (img > cur) ? img - cur : cur - img;	if (diff >= 0 && diff <= 100) { return 10; }	if (diff > 100 && diff <= 200) { return 15; }	if (diff > 200 && diff <= 300) { return 20; }	if (diff > 300 && diff <= 400) { return 25; }	if (diff > 400 && diff <= 500) { return 30; }	if (diff > 500 && diff <= 600) { return 35; }	if (diff > 600 && diff <= 700) { return 40; }	if (diff > 700) { return 45; }};LyteBox.prototype.appear = function(id, opacity) {	var object = this.doc.getElementById(id).style;	object.opacity = (opacity / 100);	object.MozOpacity = (opacity / 100);	object.KhtmlOpacity = (opacity / 100);	object.filter = "alpha(opacity=" + (opacity + 10) + ")";	if (id == 'lbIframe') {		//object.display = 'none';	} 	if (opacity == 100 && (id == 'lbImage' || id == 'lbIframe')) {		try { object.removeAttribute("filter"); } catch(e) {}	/* Fix added for IE Alpha Opacity Filter bug. */		this.updateDetails();	} else if (opacity >= this.maxOpacity && id == 'lbOverlay') {		for (var i = 0; i < this.overlayTimerCount; i++) { window.clearTimeout(this.overlayTimerArray[i]); }		return;	} else if (opacity >= 100 && id == 'lbDetailsContainer') {		try { object.removeAttribute("filter"); } catch(e) {}	/* Fix added for IE Alpha Opacity Filter bug. */		for (var i = 0; i < this.imageTimerCount; i++) { window.clearTimeout(this.imageTimerArray[i]); }		this.doc.getElementById('lbOverlay').style.height = this.getPageSize()[1] + "px";	} else {		if (id == 'lbOverlay') {			this.overlayTimerArray[this.overlayTimerCount++] = setTimeout("myLytebox.appear('" + id + "', " + (opacity+20) + ")", 1);		} else {			this.imageTimerArray[this.imageTimerCount++] = setTimeout("myLytebox.appear('" + id + "', " + (opacity+10) + ")", 1);		}	}};LyteBox.prototype.fade = function(id, opacity) {	var object = this.doc.getElementById(id).style;	object.opacity = (opacity / 100);	object.MozOpacity = (opacity / 100);	object.KhtmlOpacity = (opacity / 100);	object.filter = "alpha(opacity=" + opacity + ")";	if (opacity <= 0) {		try {			object.display = 'none';		} catch(err) { }	} else if (id == 'lbOverlay') {		this.overlayTimerArray[this.overlayTimerCount++] = setTimeout("myLytebox.fade('" + id + "', " + (opacity-20) + ")", 1);	} else {		this.timerIDArray[this.timerIDCount++] = setTimeout("myLytebox.fade('" + id + "', " + (opacity-10) + ")", 1);	}};LyteBox.prototype.resizeW = function(id, curW, maxW, pixelrate, speed) {	if (!this.hDone) {		this.resizeWTimerArray[this.resizeWTimerCount++] = setTimeout("myLytebox.resizeW('" + id + "', " + curW + ", " + maxW + ", " + pixelrate + ")", 100);		return;	}	var object = this.doc.getElementById(id);	var timer = speed ? speed : (this.resizeDuration/2);	var newW = (this.doAnimations ? curW : maxW);	object.style.width = (newW) + "px";	if (newW < maxW) {		newW += (newW + pixelrate >= maxW) ? (maxW - newW) : pixelrate;	} else if (newW > maxW) {		newW -= (newW - pixelrate <= maxW) ? (newW - maxW) : pixelrate;	}	this.resizeWTimerArray[this.resizeWTimerCount++] = setTimeout("myLytebox.resizeW('" + id + "', " + newW + ", " + maxW + ", " + pixelrate + ", " + (timer+0.02) + ")", timer+0.02);	if (parseInt(object.style.width) == maxW) {		this.wDone = true;		for (var i = 0; i < this.resizeWTimerCount; i++) { window.clearTimeout(this.resizeWTimerArray[i]); }	}};LyteBox.prototype.resizeH = function(id, curH, maxH, pixelrate, speed) {	var timer = speed ? speed : (this.resizeDuration/2);	var object = this.doc.getElementById(id);	var newH = (this.doAnimations ? curH : maxH);	object.style.height = (newH) + "px";	if (newH < maxH) {		newH += (newH + pixelrate >= maxH) ? (maxH - newH) : pixelrate;	} else if (newH > maxH) {		newH -= (newH - pixelrate <= maxH) ? (newH - maxH) : pixelrate;	}	this.resizeHTimerArray[this.resizeHTimerCount++] = setTimeout("myLytebox.resizeH('" + id + "', " + newH + ", " + maxH + ", " + pixelrate + ", " + (timer+.02) + ")", timer+.02);	if (parseInt(object.style.height) == maxH) {		this.hDone = true;		for (var i = 0; i < this.resizeHTimerCount; i++) { window.clearTimeout(this.resizeHTimerArray[i]); }	}};LyteBox.prototype.getPageScroll = function() {	if (self.pageYOffset) {		return this.isFrame ? parent.pageYOffset : self.pageYOffset;	} else if (this.doc.documentElement && this.doc.documentElement.scrollTop){		return this.doc.documentElement.scrollTop;	} else if (document.body) {		return this.doc.body.scrollTop;	}};LyteBox.prototype.getPageSize = function() {		var xScroll, yScroll, windowWidth, windowHeight;	if (window.innerHeight && window.scrollMaxY) {		xScroll = this.doc.scrollWidth;		yScroll = (this.isFrame ? parent.innerHeight : self.innerHeight) + (this.isFrame ? parent.scrollMaxY : self.scrollMaxY);	} else if (this.doc.body.scrollHeight > this.doc.body.offsetHeight){		xScroll = this.doc.body.scrollWidth;		yScroll = this.doc.body.scrollHeight;	} else {		xScroll = this.doc.getElementsByTagName("html").item(0).offsetWidth;		yScroll = this.doc.getElementsByTagName("html").item(0).offsetHeight;		xScroll = (xScroll < this.doc.body.offsetWidth) ? this.doc.body.offsetWidth : xScroll;		yScroll = (yScroll < this.doc.body.offsetHeight) ? this.doc.body.offsetHeight : yScroll;	}	if (self.innerHeight) {		windowWidth = (this.isFrame) ? parent.innerWidth : self.innerWidth;		windowHeight = (this.isFrame) ? parent.innerHeight : self.innerHeight;	} else if (document.documentElement && document.documentElement.clientHeight) {		windowWidth = this.doc.documentElement.clientWidth;		windowHeight = this.doc.documentElement.clientHeight;	} else if (document.body) {		windowWidth = this.doc.getElementsByTagName("html").item(0).clientWidth;		windowHeight = this.doc.getElementsByTagName("html").item(0).clientHeight;		windowWidth = (windowWidth == 0) ? this.doc.body.clientWidth : windowWidth;		windowHeight = (windowHeight == 0) ? this.doc.body.clientHeight : windowHeight;	}	var pageHeight = (yScroll < windowHeight) ? windowHeight : yScroll;	var pageWidth = (xScroll < windowWidth) ? windowWidth : xScroll;	return new Array(pageWidth, pageHeight, windowWidth, windowHeight);};LyteBox.prototype.toggleFlash = function(state) {	var objects = this.doc.getElementsByTagName("object");	for (var i = 0; i < objects.length; i++) {		objects[i].style.visibility = (state == "hide") ? 'hidden' : 'visible';	}	var embeds = this.doc.getElementsByTagName("embed");	for (var i = 0; i < embeds.length; i++) {		embeds[i].style.visibility = (state == "hide") ? 'hidden' : 'visible';	}	if (this.isFrame) {		for (var i = 0; i < parent.frames.length; i++) {			try {				objects = parent.frames[i].window.document.getElementsByTagName("object");				for (var j = 0; j < objects.length; j++) {					objects[j].style.visibility = (state == "hide") ? 'hidden' : 'visible';				}			} catch(e) { }			try {				embeds = parent.frames[i].window.document.getElementsByTagName("embed");				for (var j = 0; j < embeds.length; j++) {					embeds[j].style.visibility = (state == "hide") ? 'hidden' : 'visible';				}			} catch(e) { }		}	}};LyteBox.prototype.toggleSelects = function(state) {	var selects = this.doc.getElementsByTagName("select");	for (var i = 0; i < selects.length; i++ ) {		selects[i].style.visibility = (state == "hide") ? 'hidden' : 'visible';	}	if (this.isFrame) {		for (var i = 0; i < parent.frames.length; i++) {			try {				selects = parent.frames[i].window.document.getElementsByTagName("select");				for (var j = 0; j < selects.length; j++) {					selects[j].style.visibility = (state == "hide") ? 'hidden' : 'visible';				}			} catch(e) { }		}	}};LyteBox.prototype.pause = function(numberMillis) {	var now = new Date();	var exitTime = now.getTime() + numberMillis;	while (true) {		now = new Date();		if (now.getTime() > exitTime) { return; }	}};if (window.addEventListener) {	window.addEventListener("load",initLytebox,false);} else if (window.attachEvent) {	window.attachEvent("onload",initLytebox);} else {	window.onload = function() {initLytebox();}}function initLytebox() { myLytebox = new LyteBox(); }/* END LYTEBOX SCRIPT *//* SWFObject v2.1 <http://code.google.com/p/swfobject/>	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>*/var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();/* BEGIN LYTEBOX LOADER SCRIPTS */// this function checks to if the user can run lytebox// function returns TRUE if they can and FALSE if they can't// currently the function looks for Firefox 1.5 and higher and IE 5.5 and higherfunction vet_browser_lytebox() {	var vetted = false;	var br=new Array(4);	var os=new Array(2);	br=getBrowser();	os=getOS();	version_major=getMajorVersion(br[1]);	version_minor=getMinorVersion(br[1]);	silly_string=version_major + (version_minor.charAt(0)) + '0';	if ((br[0] == 'firefox' && silly_string >= 150) || (br[0] == 'msie' && silly_string >= 550)) {		vetted = true;	}	return vetted;}// use this variable in links to stop javascript execution from taking user to link// those users who pass the vetting will get a lytebox iframe, those who don't will go to the default contact pagevar run_lytebox = vet_browser_lytebox();// this function calls up a general Lytebox page function loadLyteboxDefault(path,width,height) {	var timeoutID = null;	// set default values of width and height if they are not declared	default_width = (typeof width == 'undefined') ? '600' : width;	default_height = (typeof height == 'undefined') ? '600' : height;	if (run_lytebox) {		// user's browser support lytebox so fire it up		if (typeof myLytebox != 'undefined') {			// if the myLytebox object exists, start it up!			var a = document.createElement("a");			a.href = path;			a.rel = "lyteframe";			//a.title = "<span class='Header2'>NimbleGen Array Product Guide</span>";			a.rev = "width: " + default_width + "px; height: " + default_height + "px; scrolling: auto;";			myLytebox.start( a, false, true);		} else {			// wait 1/10th of a second and attempt loading again...			if (timeoutID) { clearTimeout(timeoutID); }			timeoutID = setTimeout('loadLyteboxDefault("'+path+'","'+width+'","'+height+'")', 100);		}	}}// this function calls the Lytebox contact form function loadLytebox(contact,country,state,mailgroup) {	var timeoutID = null;	// set default values of state and territory to '' if they are not declared	querystring_contact = (typeof contact == 'undefined') ? '' : '&contact=' + contact;	querystring_country = (typeof country == 'undefined') ? '' : '&country=' + country;	querystring_state = (typeof state == 'undefined') ? '' : '&state=' + state;	querystring_mailgroup = (typeof mailgroup == 'undefined') ? '' : '&mailgroup=' + mailgroup;	if (run_lytebox) {		// user's browser support lytebox so fire it up		if (typeof myLytebox != 'undefined') {			// if the myLytebox object exists, start it up!			var a = document.createElement("a");			a.href = "../../contact_message_widget.html?" + querystring_contact + querystring_country + querystring_state + querystring_mailgroup;			a.rel = "lyteframe";			// a.title = "<span class='Header2'>Roche NimbleGen Contact Form</span>";			a.rev = "width: 500px; height: 500px; scrolling: auto;";			myLytebox.start( a, false, true);		} else {			// wait 1/10th of a second and attempt loading again...			if (timeoutID) { clearTimeout(timeoutID); }			timeoutID = setTimeout('loadLytebox("'+contact+'")', 100);		}	}}/* END LYTEBOX LOADER SCRIPTS */