var isNS4 = false;var isIE4 = false;var isW3C = false;var displayNav = "";var toggle = false;	if (document.layers) {  // NS 4 proprietary DOM	isNS4 = true;	docObj = "document.";	styleObj = "";	}else if (document.all && !document.getElementById) { // IE 4 proprietary DOM	isIE4 = true;	docObj = "document.all.";	styleObj = ".style";	}else if (document.getElementById && document.all) { // W3C standards-compliant DOM	isW3C = true;	docObj = "document.getElementById('";	styleObj = "').style";	}else if (document.getElementById) { // W3C standards-compliant DOM	isW3C = true;	docObj = "document.getElementById('";	styleObj = "').style";	}//////////////////// Pop text ////////////////////////////////////////////////////////////////////////////var sPop = null;document.write("<style type='text/css' id='defaultPopStyle'>");document.write(".cPopText { font-family: Tahoma, Verdana; background-color: #FFFFCC; border: 1px #000000 solid; font-size: 12px; padding-right: 4px; padding-left: 4px; line-height: 18px; padding-top: 2px; padding-bottom: 2px; visibility: hidden; filter: Alpha(Opacity=90)}");document.write("</style>");document.write("<div id='popLayer' style='position:absolute;z-index:1000' class='cPopText'></div>");function showPopupText(event) {	if(event.srcElement) o = event.srcElement; else o = event.target;	if(!o) {		return;	}	MouseX = event.clientX;	MouseY = event.clientY;	if(o.alt != null && o.alt != '') {		o.pop = o.alt;		o.alt = '';	}	if(o.title != null && o.title != '') {		o.pop = o.title;		o.title = '';	}	if(o.pop != sPop) {		sPop = o.pop;		if(sPop == null || sPop == '') {			//$('popLayer').style.visibility = "hidden";			$("#popLayer").css("visibility","hidden");		} else {			popStyle = o.dyclass != null ? o.dyclass : 'cPopText';			//$('popLayer').style.visibility = "visible";			$("#popLayer").css("visibility","visible");			showIt();		}	}}function showIt() {	$('popLayer').className = popStyle;	$('#popLayer').html(sPop.replace(/<(.*)>/g,"&lt;$1&gt;").replace(/\n/g,"<br>"));	var popWidth = $('#popLayer').clientWidth;	var popHeight = $('#popLayer').clientHeight;	var popLeftAdjust = MouseX + 12 + popWidth > document.body.clientWidth ? -popWidth - 24 : 0;	var popTopAdjust = MouseY + 12 + popHeight > document.body.clientHeight ? -popHeight - 24 : 0;	//$('popLayer').style.left = (MouseX + 12 + document.body.scrollLeft + popLeftAdjust) + 'px';	//$('popLayer').style.top = (MouseY + 12 + document.body.scrollTop + popTopAdjust) + 'px';	$('#popLayer').css("left",((MouseX + 12 + document.documentElement.scrollLeft + popLeftAdjust) + 'px'));	$('#popLayer').css("top",((MouseY + 12 + document.documentElement.scrollTop + popTopAdjust) + 'px'));}if(!document.onmouseover) {	document.onmouseover = function(e) {		var event = e ? e : window.event;		showPopupText(event);	};}/** * Confirm plugin 1.1 * * Copyright (c) 2007 Nadia Alramli (http://nadiaspot.com/) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. *//** * For more docs and examples visit: * http://nadiaspot.com/jquery/confirm * For comments, suggestions or bug reporting, * email me at: jquery@nadiaspot.com */jQuery.fn.confirm = function(options) {  options = jQuery.extend({    msg: 'Are you sure?',    stopAfter: 'never',    wrapper: '<span></span>',    eventType: 'click',    dialogShow: 'show',    dialogSpeed: '',    timeout: 0  }, options);  options.stopAfter = options.stopAfter.toLowerCase();  if (!options.stopAfter in ['never', 'once', 'ok', 'cancel']) {    options.stopAfter = 'never';  }  options.buttons = jQuery.extend({    ok: 'Yes',    cancel: 'No',    wrapper:'<a href="#"></a>',    separator: '/'  }, options.buttons);  // Shortcut to eventType.  var type = options.eventType;  return this.each(function() {    var target = this;    var $target = jQuery(target);    var timer;    var saveHandlers = function() {      var events = jQuery.data(target, 'events');      if (!events) {        // There are no handlers to save.        return;      }      target._handlers = new Array();      for (var i in events[type]) {        target._handlers.push(events[type][i]);      }    }        // Create ok button, and bind in to a click handler.    var $ok = jQuery(options.buttons.wrapper)      .append(options.buttons.ok)      .click(function() {      // Check if timeout is set.      if (options.timeout != 0) {        clearTimeout(timer);      }      $target.unbind(type, handler);      $target.show();      $dialog.hide();      // Rebind the saved handlers.      for (i in target._handlers) {        $target.click(target._handlers[i]);      }      // Trigger click event.      $target.click();      if (options.stopAfter != 'ok' && options.stopAfter != 'once') {        $target.unbind(type);        // Rebind the confirmation handler.        $target.one(type, handler);      }      return false;    })    var $cancel = jQuery(options.buttons.wrapper).append(options.buttons.cancel).click(function() {      // Check if timeout is set.      if (options.timeout != 0) {        clearTimeout(timer);      }      if (options.stopAfter != 'cancel' && options.stopAfter != 'once') {        $target.one(type, handler);      }      $target.show();      $dialog.hide();      return false;    });    if (options.buttons.cls) {      $ok.addClass(options.buttons.cls);      $cancel.addClass(options.buttons.cls);    }    var $dialog = jQuery(options.wrapper)    .append(options.msg)    .append($ok)    .append(options.buttons.separator)    .append($cancel);    var handler = function() {      jQuery(this).hide();      // Do this check because of a jQuery bug      if (options.dialogShow != 'show') {        $dialog.hide();      }      $dialog.insertBefore(this);      // Display the dialog.      $dialog[options.dialogShow](options.dialogSpeed);      if (options.timeout != 0) {        // Set timeout        clearTimeout(timer);        timer = setTimeout(function() {$cancel.click(); $target.one(type, handler);}, options.timeout);      }      return false;    };    saveHandlers();    $target.unbind(type);    target._confirm = handler    target._confirmEvent = type;    $target.one(type, handler);  });}
