$(document).ready(function(){
	mainmenu();
	$("#toolsAccordion").accordion();
	$("#accordionInfo").accordion({ collapsible: true, active: false });

	$(".tiptipFocus").tipTip({activation:"focus",maxWidth:"180px", defaultPosition:"top", edgeOffset:10});
	$(".tiptipHover").tipTip({activation:"hover",maxWidth:"180px", defaultPosition:"top", edgeOffset:5});
	
	$('.tipsySouth').tipsy({gravity: 's', fade: true});
	$('.tipsyEast').tipsy({gravity: 'e', fade: true});
});


//This function provides the selectFirst functionality for the autocomplete. To enable, in the autocomplete setup options, add - selectFirst: true
(function( $ ) {

$( ".ui-autocomplete-input" ).live( "autocompleteopen", function() {
	var autocomplete = $( this ).data( "autocomplete" ),
		menu = autocomplete.menu;

	if ( !autocomplete.options.selectFirst ) {
		return;
	}

	menu.activate( $.Event({ type: "mouseenter" }), menu.element.children().first() );
});

}( jQuery ));

$.fn.focusNextInputField = function() {
	return this.each(function() {
		var fields = $(this).parents('form:eq(0),body').find('button,input,textarea,select');
		var index = fields.index( this );
		if ( index > -1 && ( index + 1 ) < fields.length ) {
			fields.eq( index + 1 ).focus();
		}
		return false;
	});
};

function OpenClose(id, id2){
	ids = $(id).css("display");
	switch (ids)
	{
		case 'block':
			$(id).slideUp(500);
			$(id2).removeClass('sideblockTitleOpen');
			$(id2).addClass('sideblockTitleClosed');				
			break;
		case 'none':
			$(id).slideDown(500);
			$(id2).removeClass('sideblockTitleClosed');
			$(id2).addClass('sideblockTitleOpen');				
			break;
		default:
	}
}

function toggleDisplay(id){
	ids = $(id).css("display");
	switch (ids)
	{
		case 'block':
			$(id).slideUp(500).delay(500).css({display: "none"});
			break;
		case 'none':
			$(id).slideDown(500).delay(500).css({display: "block"});
			break;
		default:
	}
}

function toggleDisplayHandle(id, handle, handleClosed, handleOpen){
	ids = $(id).css("display");
	switch (ids)
	{
		case 'block':
			$(id).slideUp(500).css({display: "none"});
			$(handle).empty().html(handleClosed);
			break;
		case 'none':
			$(id).slideDown(500).css({display: "block"});
			$(handle).empty().html(handleOpen);
			break;
		default:
	}
}


function initiate(){
 
};


function markSelected(id){
	$(id).addClass("selected");
};


function toggleView(id){
	$(id).toggle(1000);
};

function toggleTablesView(){
	 toggleView('#SupremeSafetyAdvantages'); 
	 toggleView('#SupremeFlexibilityAdvantages'); 
	 toggleView('#SupremeCostSavings');
};


function mainmenu(){
$(" #nav ul ").css({display: "none"}); // Opera Fix
$(" #nav li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown("normal");
		},function(){
		$(this).find('ul:first').css({visibility: "hidden",display:"block"});
		});
};
$(function() {
swapValues = [];
$(".swap_value").each(function(i){
	swapValues[i] = $(this).val();
	$(this).focus(function(){
		if ($(this).val() == swapValues[i]) {
			$(this).val("");
		}
	}).blur(function(){
		if ($.trim($(this).val()) == "") {
			$(this).val(swapValues[i]);
		}
	});
});

});

function mysqlTimeStampToDate(timestamp) {
	//function parses mysql datetime string and returns javascript Date object
	//input has to be in this format: 2007-06-05 15:26:02
	var regex=/^([0-9]{2,4})-([0-1][0-9])-([0-3][0-9]) (?:([0-2][0-9]):([0-5][0-9]):([0-5][0-9]))?$/;
	var parts=timestamp.replace(regex,"$1 $2 $3 $4 $5 $6").split(' ');
	return new Date(parts[0],parts[1]-1,parts[2],parts[3],parts[4],parts[5]);
}

function scrollTo(id){
	$('html, body').animate({scrollTop: $(id).offset().top}, 1000);
}

//Font-Size Script
var elems = ['p', 'li', 'td', 'th'];
function changeFontSize(inc){
	for(j=0; j<elems.length; j++){
		if ($('#content').length>0){
	  		var p = $('#content '+elems[j]);
	  	} else {
	  		var p = $('#content_Full '+elems[j]);
	  	}
		for(n=0; n<p.length; n++) {
			if(p[n].style.fontSize) {
				var size = parseInt(p[n].style.fontSize.replace("px", ""));
			} else {
		   		var size = 13;
			}
			p[n].style.fontSize = size+inc + 'px';
		}
	}
}

function resetFontSize(size){
	for(j=0; j<elems.length; j++){
		if ($('#content').length>0){
	  		var p = $('#content '+elems[j]);
	  	} else {
	  		var p = $('#content_Full '+elems[j]);
	  	}
		var p = document.getElementsByTagName(elems[j]);
		for(n=0; n<p.length; n++) {
	    	p[n].style.fontSize = size + 'px';
	    }
   	}
}


// DATE FORMAT //

/*
 * Date Format 1.2.3
 * (c) 2007-2009 Steven Levithan <stevenlevithan.com>
 * MIT license
 *
 * Includes enhancements by Scott Trenda <scott.trenda.net>
 * and Kris Kowal <cixar.com/~kris.kowal/>
 *
 * Accepts a date, a mask, or a date and a mask.
 * Returns a formatted version of the given date.
 * The date defaults to the current date/time.
 * The mask defaults to dateFormat.masks.default.
 */

var dateFormat = function () {
	var	token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,
		timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
		timezoneClip = /[^-+\dA-Z]/g,
		pad = function (val, len) {
			val = String(val);
			len = len || 2;
			while (val.length < len) val = "0" + val;
			return val;
		};

	// Regexes and supporting functions are cached through closure
	return function (date, mask, utc) {
		var dF = dateFormat;

		// You can't provide utc if you skip other args (use the "UTC:" mask prefix)
		if (arguments.length == 1 && Object.prototype.toString.call(date) == "[object String]" && !/\d/.test(date)) {
			mask = date;
			date = undefined;
		}

		// Passing date through Date applies Date.parse, if necessary
		date = date ? new Date(date) : new Date;
		if (isNaN(date)) throw SyntaxError("invalid date");

		mask = String(dF.masks[mask] || mask || dF.masks["default"]);

		// Allow setting the utc argument via the mask
		if (mask.slice(0, 4) == "UTC:") {
			mask = mask.slice(4);
			utc = true;
		}

		var	_ = utc ? "getUTC" : "get",
			d = date[_ + "Date"](),
			D = date[_ + "Day"](),
			m = date[_ + "Month"](),
			y = date[_ + "FullYear"](),
			H = date[_ + "Hours"](),
			M = date[_ + "Minutes"](),
			s = date[_ + "Seconds"](),
			L = date[_ + "Milliseconds"](),
			o = utc ? 0 : date.getTimezoneOffset(),
			flags = {
				d:    d,
				dd:   pad(d),
				ddd:  dF.i18n.dayNames[D],
				dddd: dF.i18n.dayNames[D + 7],
				m:    m + 1,
				mm:   pad(m + 1),
				mmm:  dF.i18n.monthNames[m],
				mmmm: dF.i18n.monthNames[m + 12],
				yy:   String(y).slice(2),
				yyyy: y,
				h:    H % 12 || 12,
				hh:   pad(H % 12 || 12),
				H:    H,
				HH:   pad(H),
				M:    M,
				MM:   pad(M),
				s:    s,
				ss:   pad(s),
				l:    pad(L, 3),
				L:    pad(L > 99 ? Math.round(L / 10) : L),
				t:    H < 12 ? "a"  : "p",
				tt:   H < 12 ? "am" : "pm",
				T:    H < 12 ? "A"  : "P",
				TT:   H < 12 ? "AM" : "PM",
				Z:    utc ? "UTC" : (String(date).match(timezone) || [""]).pop().replace(timezoneClip, ""),
				o:    (o > 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4),
				S:    ["th", "st", "nd", "rd"][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10]
			};

		return mask.replace(token, function ($0) {
			return $0 in flags ? flags[$0] : $0.slice(1, $0.length - 1);
		});
	};
}();

// Some common format strings
dateFormat.masks = {
	"default":      "ddd mmm dd yyyy HH:MM:ss",
	shortDate:      "m/d/yy",
	mediumDate:     "mmm d, yyyy",
	longDate:       "mmmm d, yyyy",
	fullDate:       "dddd, mmmm d, yyyy",
	shortTime:      "h:MM TT",
	mediumTime:     "h:MM:ss TT",
	longTime:       "h:MM:ss TT Z",
	isoDate:        "yyyy-mm-dd",
	isoTime:        "HH:MM:ss",
	isoDateTime:    "yyyy-mm-dd'T'HH:MM:ss",
	isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
};

// Internationalization strings
dateFormat.i18n = {
	dayNames: [
		"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
		"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
	],
	monthNames: [
		"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
		"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
	]
};

// For convenience...
Date.prototype.format = function (mask, utc) {
	return dateFormat(this, mask, utc);
};

//Tracking Plus One button with Google Analytics
function plusone_vote( obj ) {
	_gaq.push(['_trackEvent','plusone',obj.state]);
}

(function($) {
    $.fn.tipsy = function(options) {

        options = $.extend({}, $.fn.tipsy.defaults, options);
        
        return this.each(function() {
            
            var opts = $.fn.tipsy.elementOptions(this, options);
            
            $(this).hover(function() {

                $.data(this, 'cancel.tipsy', true);

                var tip = $.data(this, 'active.tipsy');
                if (!tip) {
                    tip = $('<div class="tipsy"><div class="tipsy-inner"/></div>');
                    tip.css({position: 'absolute', zIndex: 100000});
                    $.data(this, 'active.tipsy', tip);
                }

                if ($(this).attr('title') || typeof($(this).attr('original-title')) != 'string') {
                    $(this).attr('original-title', $(this).attr('title') || '').removeAttr('title');
                }

                var title;
                if (typeof opts.title == 'string') {
                    title = $(this).attr(opts.title == 'title' ? 'original-title' : opts.title);
                } else if (typeof opts.title == 'function') {
                    title = opts.title.call(this);
                }

                tip.find('.tipsy-inner')[opts.html ? 'html' : 'text'](title || opts.fallback);

                var pos = $.extend({}, $(this).offset(), {width: this.offsetWidth, height: this.offsetHeight});
                tip.get(0).className = 'tipsy'; // reset classname in case of dynamic gravity
                tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).appendTo(document.body);
                var actualWidth = tip[0].offsetWidth, actualHeight = tip[0].offsetHeight;
                var gravity = (typeof opts.gravity == 'function') ? opts.gravity.call(this) : opts.gravity;

                switch (gravity.charAt(0)) {
                    case 'n':
                        tip.css({top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}).addClass('tipsy-north');
                        break;
                    case 's':
                        tip.css({top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2}).addClass('tipsy-south');
                        break;
                    case 'e':
                        tip.css({top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth}).addClass('tipsy-east');
                        break;
                    case 'w':
                        tip.css({top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width}).addClass('tipsy-west');
                        break;
                }

                if (opts.fade) {
                    tip.css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: 0.8});
                } else {
                    tip.css({visibility: 'visible'});
                }

            }, function() {
                $.data(this, 'cancel.tipsy', false);
                var self = this;
                setTimeout(function() {
                    if ($.data(this, 'cancel.tipsy')) return;
                    var tip = $.data(self, 'active.tipsy');
                    if (opts.fade) {
                        tip.stop().fadeOut(function() { $(this).remove(); });
                    } else {
                        tip.remove();
                    }
                }, 100);

            });
            
        });
        
    };
    
    // Overwrite this method to provide options on a per-element basis.
    // For example, you could store the gravity in a 'tipsy-gravity' attribute:
    // return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' });
    // (remember - do not modify 'options' in place!)
    $.fn.tipsy.elementOptions = function(ele, options) {
        return $.metadata ? $.extend({}, options, $(ele).metadata()) : options;
    };
    
    $.fn.tipsy.defaults = {
        fade: false,
        fallback: '',
        gravity: 'n',
        html: false,
        title: 'title'
    };
    
    $.fn.tipsy.autoNS = function() {
        return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
    };
    
    $.fn.tipsy.autoWE = function() {
        return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
    };
    
})(jQuery);

/* Map Icon Maker for GMaps V2 */

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3 w={};w.1K=K(h){3 f=h.1a||A;3 b=h.1g||A;3 e=h.P||"#15";3 a=h.13||"#G";3 g=h.20||"#1W";3 d="N://z.L.Q.O/z?R=1B";3 j=d+"&U="+f+"x"+b+"&T="+g.4("#","")+","+e.4("#","")+","+a.4("#","")+"&F=.E";3 c=u 10(Y);c.X=j;c.V=u B(f,b);c.19=u B(y.1e(f*1.6),b);c.14=u H(f/2,b);c.17=u H(f/2,y.1e(b/12));c.18=j+"&J=I";c.1m=j+"&D=S,s,1h"+"&J=I";j=d+"&U="+f+"x"+b+"&T="+g.4("#","")+","+e.4("#","")+","+a.4("#","");c.1l=j+"&D=a,s,1p&F=.E";c.v=[f/2,b,(7/16)*f,(5/8)*b,(5/16)*f,(7/16)*b,(7/A)*f,(5/16)*b,(5/16)*f,(1/8)*b,(1/2)*f,0,(11/16)*f,(1/8)*b,(25/A)*f,(5/16)*b,(11/16)*f,(7/16)*b,(9/16)*f,(5/8)*b];1k(3 i=0;i<c.v.1Z;i++){c.v[i]=Z(c.v[i])}C c};w.1V=K(k){3 h=k.1a||A;3 j=k.1g||A;3 d=k.P||"#15";3 i=k.1T||"#G";3 m=w.W(k.1j)||"";3 c=k.1i||"#G";3 l=k.1S||0;3 s=k.1R||"1f";3 f=(s==="1f")?"1Q":"1d";3 t="N://z.L.Q.O/z?R="+f;3 n=t+"&U="+h+"x"+j+"&T="+d.4("#","")+","+i.4("#","")+"1P,1c"+"&1b="+m+"&1O="+c.4("#","")+","+l;3 e=u 10(Y);e.X=n+"&D=S,s,1M"+"&F=.E";e.V=u B(h,j);e.19=u B(0,0);e.14=u H(h/2,j/2);e.17=u H(h/2,j/2);e.18=n+"&J=I";e.1m=n+"&D=S,s,1h"+"&J=I";e.1l=n+"&D=a,s,1c&F=.E";e.v=[];M(f==="1d"){e.v=[0,0,h,0,h,j,0,j]}1J{3 o=8;3 r=1I/o;3 b=y.1H(h,j)/2;1k(3 a=0;a<(o+1);a++){3 g=r*a*(y.1G/1F);3 p=b+b*y.1E(g);3 q=b+b*y.1D(g);e.v.1A(Z(p),Z(q))}}C e};w.1L=K(k){3 j=k.P||"#1z";3 b=k.13||"#G";3 f=k.1N||"#1y";3 a=k.1x||"#1w";3 e=w.W(k.1j)||"";3 d=k.1i||"#G";3 i=k.1v||1u;3 c=(i)?"1t":"1s";3 h="N://z.L.Q.O/z?R=d&1U=1r&1b=";3 l=h+c+"\'i\\\\"+"\'["+e+"\'-2\'f\\\\"+"1q\'a\\\\]"+"h\\\\]o\\\\"+j.4("#","")+"\'1X\\\\"+d.4("#","")+"\'1Y\\\\"+b.4("#","")+"\'1o\\\\";M(i){l+=f.4("#","")+"\'1C\\\\"+a.4("#","")+"\'1n\\\\"}l+="22\'f\\\\";3 g=u 10(Y);g.X=l+"&F=.E";g.V=(i)?u B(23,29):u B(21,28);C g};w.W=K(a){M(a===27){C 26}a=a.4(/@/,"@@");a=a.4(/\\\\/,"@\\\\");a=a.4(/\'/,"@\'");a=a.4(/\\[/,"@[");a=a.4(/\\]/,"@]");C 24(a)};',62,134,'|||var|replace||||||||||||||||||||||||||new|imageMap|MapIconMaker||Math|chart|32|GSize|return|chf|png|ext|000000|GPoint|gif|chof|function|apis|if|http|com|primaryColor|google|cht|bg|chco|chs|iconSize|escapeUserText_|image|G_DEFAULT_ICON|parseInt|GIcon|||strokeColor|iconAnchor|ff0000||infoWindowAnchor|printImage|shadowSize|width|chl|ffffff01|itr|floor|circle|height|ECECD8|labelColor|label|for|transparent|mozPrintImage|0C|eC|ffffff11|hv|mapsapi|pin|pin_star|false|addStar|0000FF|starStrokeColor|FFFF00|DA7187|push|mm||sin|cos|180|PI|min|360|else|createMarkerIcon|createLabeledMarkerIcon|00000000|starPrimaryColor|chx|ff|it|shape|labelSize|shadowColor|chdp|createFlatIcon|ffffff|fC|tC|length|cornerColor||Lauto||encodeURIComponent||null|undefined|34|39'.split('|'),0,{}))

/* End Map Icon Maker for GMaps V2 */

 /*
 * TipTip
 * Copyright 2010 Drew Wilson
 * www.drewwilson.com
 * code.drewwilson.com/entry/tiptip-jquery-plugin
 *
 * Version 1.3   -   Updated: Mar. 23, 2010
 *
 * This Plug-In will create a custom tooltip to replace the default
 * browser tooltip. It is extremely lightweight and very smart in
 * that it detects the edges of the browser window and will make sure
 * the tooltip stays within the current window size. As a result the
 * tooltip will adjust itself to be displayed above, below, to the left 
 * or to the right depending on what is necessary to stay within the
 * browser window. It is completely customizable as well via CSS.
 *
 * This TipTip jQuery plug-in is dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(function($){$.fn.tipTip=function(options){var defaults={activation:"hover",keepAlive:false,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:false,enter:function(){},exit:function(){}};var opts=$.extend(defaults,options);if($("#tiptip_holder").length<=0){var tiptip_holder=$('<div id="tiptip_holder" style="max-width:'+opts.maxWidth+';"></div>');var tiptip_content=$('<div id="tiptip_content"></div>');var tiptip_arrow=$('<div id="tiptip_arrow"></div>');$("body").append(tiptip_holder.html(tiptip_content).prepend(tiptip_arrow.html('<div id="tiptip_arrow_inner"></div>')))}else{var tiptip_holder=$("#tiptip_holder");var tiptip_content=$("#tiptip_content");var tiptip_arrow=$("#tiptip_arrow")}return this.each(function(){var org_elem=$(this);if(opts.content){var org_title=opts.content}else{var org_title=org_elem.attr(opts.attribute)}if(org_title!=""){if(!opts.content){org_elem.removeAttr(opts.attribute)}var timeout=false;if(opts.activation=="hover"){org_elem.hover(function(){active_tiptip()},function(){if(!opts.keepAlive){deactive_tiptip()}});if(opts.keepAlive){tiptip_holder.hover(function(){},function(){deactive_tiptip()})}}else if(opts.activation=="focus"){org_elem.focus(function(){active_tiptip()}).blur(function(){deactive_tiptip()})}else if(opts.activation=="click"){org_elem.click(function(){active_tiptip();return false}).hover(function(){},function(){if(!opts.keepAlive){deactive_tiptip()}});if(opts.keepAlive){tiptip_holder.hover(function(){},function(){deactive_tiptip()})}}function active_tiptip(){opts.enter.call(this);tiptip_content.html(org_title);tiptip_holder.hide().removeAttr("class").css("margin","0");tiptip_arrow.removeAttr("style");var top=parseInt(org_elem.offset()['top']);var left=parseInt(org_elem.offset()['left']);var org_width=parseInt(org_elem.outerWidth());var org_height=parseInt(org_elem.outerHeight());var tip_w=tiptip_holder.outerWidth();var tip_h=tiptip_holder.outerHeight();var w_compare=Math.round((org_width-tip_w)/2);var h_compare=Math.round((org_height-tip_h)/2);var marg_left=Math.round(left+w_compare);var marg_top=Math.round(top+org_height+opts.edgeOffset);var t_class="";var arrow_top="";var arrow_left=Math.round(tip_w-12)/2;if(opts.defaultPosition=="bottom"){t_class="_bottom"}else if(opts.defaultPosition=="top"){t_class="_top"}else if(opts.defaultPosition=="left"){t_class="_left"}else if(opts.defaultPosition=="right"){t_class="_right"}var right_compare=(w_compare+left)<parseInt($(window).scrollLeft());var left_compare=(tip_w+left)>parseInt($(window).width());if((right_compare&&w_compare<0)||(t_class=="_right"&&!left_compare)||(t_class=="_left"&&left<(tip_w+opts.edgeOffset+5))){t_class="_right";arrow_top=Math.round(tip_h-13)/2;arrow_left=-12;marg_left=Math.round(left+org_width+opts.edgeOffset);marg_top=Math.round(top+h_compare)}else if((left_compare&&w_compare<0)||(t_class=="_left"&&!right_compare)){t_class="_left";arrow_top=Math.round(tip_h-13)/2;arrow_left=Math.round(tip_w);marg_left=Math.round(left-(tip_w+opts.edgeOffset+5));marg_top=Math.round(top+h_compare)}var top_compare=(top+org_height+opts.edgeOffset+tip_h+8)>parseInt($(window).height()+$(window).scrollTop());var bottom_compare=((top+org_height)-(opts.edgeOffset+tip_h+8))<0;if(top_compare||(t_class=="_bottom"&&top_compare)||(t_class=="_top"&&!bottom_compare)){if(t_class=="_top"||t_class=="_bottom"){t_class="_top"}else{t_class=t_class+"_top"}arrow_top=tip_h;marg_top=Math.round(top-(tip_h+5+opts.edgeOffset))}else if(bottom_compare|(t_class=="_top"&&bottom_compare)||(t_class=="_bottom"&&!top_compare)){if(t_class=="_top"||t_class=="_bottom"){t_class="_bottom"}else{t_class=t_class+"_bottom"}arrow_top=-12;marg_top=Math.round(top+org_height+opts.edgeOffset)}if(t_class=="_right_top"||t_class=="_left_top"){marg_top=marg_top+5}else if(t_class=="_right_bottom"||t_class=="_left_bottom"){marg_top=marg_top-5}if(t_class=="_left_top"||t_class=="_left_bottom"){marg_left=marg_left+5}tiptip_arrow.css({"margin-left":arrow_left+"px","margin-top":arrow_top+"px"});tiptip_holder.css({"margin-left":marg_left+"px","margin-top":marg_top+"px"}).attr("class","tip"+t_class);if(timeout){clearTimeout(timeout)}timeout=setTimeout(function(){tiptip_holder.stop(true,true).fadeIn(opts.fadeIn)},opts.delay)}function deactive_tiptip(){opts.exit.call(this);if(timeout){clearTimeout(timeout)}tiptip_holder.fadeOut(opts.fadeOut)}}})}})(jQuery);

/* End Tip Tip */
