﻿/* Triggers the jQuery ThickBox 3.1 window.
*
* @author Raido Orumets (www.pixmasoft.com)
* @created 2008-12-20
*
* @param "title" = String the title of the thickbox window
* @param "url" = String the url of the page (E: http://test.com/ or index.php http://test.com/index.php?id=2) or the hidden inline content ID (if type is "inline")
* @param "width" = Integer the width of the thickbox window in pixels
* @param "height" = Integer the height of the thickbox window in pixels
* @param "type" = String the type of the thickbox window ("ajax", "inline" or "iframe" / default: "iframe")
* @param "is_modal" = Boolean the activation of the modal window (true = activated, false = not activated)
* @return void
*/
function thickbox(title, url, width, height, type, is_modal){
tb_show(title, ((type == "inline")?'#TB_inline?':(url + ((url.indexOf('?') != -1)?"&":"?"))) + 'KeepThis=true' + ((type == "iframe" || !type)?'&TB_iframe=true':'') + '&height=' + height + '&width=' + width + ((type == "inline")?'&inlineId=' + url:'') + '&modal=' + ((is_modal)?'true':'false'), false); 
}

// thickbox("PixmaSoft", "http://www.pixmasoft.com/", 700, 500, "iframe");
// thickbox("PixmaSoft", "http://www.pixmasoft.com/", 700, 500, "ajax");
// thickbox("PixmaSoft", "login", 700, 500, "inline");


