//-------------------------------------------------------------
//AUTHOR		 : Justin Ferrara (Noam Design Group) © Copyright 2009.
//PURPOSE        : .
//PARAMETERS     : .
//RETURNS        : .
//EXAMPLE		 : .
//-------------------------------------------------------------	

function openTip( val )
{
	var string = 'Click to change';
	
	if( val == 'side-menu' 	) string = 'Click <span style=\'font-weight: bold; font-size: 12px; font-style: italic;\'>(edit) link</span> to change';
	if( val == 'seo-package') string = 'Click to change';
	if( val == 'side-logo'	) string = 'Click to change';
	if( val == 'delete'		) string = 'Click to delete';
	if( val == 'accept'		) string = 'Click to make active';
	if( val == 'menu-move'	) string = 'Click and drag to change order';

	Tip(
		string,
		SHADOW, true,
	 	SHADOWWIDTH, 3, 
		BGIMG, '/lib/images/tool-tip.png',
		BORDERSTYLE, 'none',
		WIDTH, 218, 
		HEIGHT, 7, 
		FOLLOWMOUSE, true,
		OPACITY, '95',
		OFFSETY, 30,
		OFFSETX, 0,
		CENTERMOUSE, true,
		PADDING, 5,
		DELAY, 0 

/*
		TITLE, title,
		TITLEBGCOLOR, '#666666', 
		TITLEFONTCOLOR, '#ffffff', 
		BGCOLOR, '#fcfcdc', 
		BORDERCOLOR, '#666666',
		CLICKCLOSE, true, 
		STICKY, true, 
		CENTERMOUSE, true,
		FADEIN, 350,
		FADEOUT, 350,
*/		 

		);
}

function openShadowBox( w, h, url, sid, id )
{	
//	alert( 'width: ' + w + '\nheight: ' + h );
	var link = url;

	if( sid && sid.length > 0 ) link += '?sid=' + sid;
	if( id  && id.length > 0  ) link += '&id='  + id;

	Shadowbox.open(
					{
						player	: 'iframe', 
						height	: h,
						width	: w,
						content	: link
					}
	);
}


function isUrl(s) {
	var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
	return regexp.test(s);
}

//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------//