",startCloseTag)+1;
if(div_results!="")
{
objResults.innerHTML+=strBloque.substring(index,startOpenTag);
}
try{
eval(strBloque.substring(endOpenTag,startCloseTag));
}catch(e){
alert(e.name + " - "+e.message);
}
index=endCloseTag;
}
if(div_results!="")
{
objResults.innerHTML+=strBloque.substring(index,strBloque.length);
}
}else{
if(div_results!="")
{
objResults.innerHTML+=strBloque;
}
}
}
var ajax_queue_current = 0;
var ajax_queue_running = 0;
var ajax_queue = Array();
var ajax_queues = 0;
var ajax_queue_callback = "";
function LoadContent(parameters,script,form,ret,divsec)
{
ajax_queues = ajax_queues+1;
ajax_queue[ajax_queues] = Array(parameters,script,form,ret,divsec);
if (ajax_queue_callback){ajax_queue[ajax_queues]['callback'] = ajax_queue_callback;ajax_queue_callback = "";}
if (ajax_queue_running == 0){AJAX_NextQueue();}
}
function AJAX_NextQueue()
{
if (ajax_queue_running == 1){
if (ajax_queue[ajax_queue_current]['callback']){eval(ajax_queue[ajax_queue_current]['callback']);}
}
next = ajax_queue_current+1;
if (ajax_queues >= next)
{
ajax_queue_running = 1;
ajax_queue_current = ajax_queue_current + 1;
AJAX_Run(ajax_queue[next][0],ajax_queue[next][1],ajax_queue[next][2],ajax_queue[next][3],ajax_queue[next][4]);
}else{ajax_queue_running = 0;if ($('AjaxStatus')){$('AjaxStatus').innerHTML = "";$('AjaxStatus').style.display ="none";} }
}
function AJAX_Run(parameters,script,form,ret,divsec)
{
if (script.indexOf('.php') > 0 )
{var url = script;}else{var url = "http://www.travelsavvynews.com/management/"+script+".php";}
var params = "aid=ajax&script="+script+parameters;
if (form){params = params + "&" + Form.serialize($(form))}
divid = "Ajax_Table"; if (divsec){divid = divsec;}
if ($('AjaxStatus')){$('AjaxStatus').innerHTML = "Ajax Running "+ajax_queue_current+"/"+ajax_queue.length+". Please be patient...
";$('AjaxStatus').style.display ="";}
new Ajax.Request(url, { method: 'post', parameters: params,
onSuccess: function(transport)
{
if (ret == "noreturn")
{
ajax_queue[ajax_queue_current]['result'] = transport.responseText;
}
else
{
ajax_queue[ajax_queue_current]['result'] = transport.responseText;
ExcecuteSriptsAndReturnText(transport.responseText,divid);
}
AJAX_NextQueue();
}
});
}
function ViewPhoto(gi_id,samewindow)
{
if (samewindow != true)
{
winGP = Dialog.confirm('',{top: 10, width:700,height:500, className: "alphacube", okLabel: "Close" })
winGP.getContent().update($('view_photo_div').innerHTML);
winGP.showCenter();
}
LoadContent('&vid=view_photo&gi_id='+gi_id,'includes/components/gallery/gallery.php','','return','view_photo_div_html');
}
function Gallery_SendComment()
{
var fck = FCKeditorAPI.GetInstance("gco_html");
fck.UpdateLinkedField();
ValidateFirst('COForm','1','V_Run','&vala='+$('gi_id').value);
}
function Gallery_SendComment_AJAX()
{
LoadContent('&vid=send_comment&gi_id='+$('gi_id').value,'includes/components/gallery/gallery.php','COForm','return','view_photo_div_html');
return false;
}
function ViewSinglePhoto(photo,autofit,windowWidth,windowHeight)
{
var newImg = new Image();
newImg.onload=function(photo,autofit,windowWidth,windowHeight)
{
if (autofit == null){autofit = true;}
var photo_final = this.src;
var photo_resize = false;
var photo_width = 0;
if (this.height > 0)
{
if (autofit == true)
{
var height = this.height;
var width = this.width+30;
if (width > (iecompattest().clientWidth - 50) ) {windowWidth = iecompattest().clientWidth - 50; photo_resize = true;} else { windowWidth = width; }
if (height > (iecompattest().clientHeight - 50) ) {windowHeight = iecompattest().clientHeight - 50; photo_resize = true; } else { windowHeight = height + 20;}
if (photo_resize == true){photo_width = windowWidth-50; photo_final = "thumb2.php?file="+this.src+"&mode=width&size="+photo_width;}
}
if (windowWidth == null){windowWidth = 700;}
if (windowHeight == null){windowHeight = 500;}
winGP = Dialog.confirm('',{top: 10, width:windowWidth,height:windowHeight, className: "alphacube", okLabel: "Close" })
$('SinglePhotoDIV_Image').src = photo_final;
winGP.getContent().update($('SinglePhotoDIV').innerHTML);
winGP.showCenter();
}
}
newImg.src = photo;
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function SendComment()
{
var fck = FCKeditorAPI.GetInstance("co_html");
fck.UpdateLinkedField();
ValidateFirst('COForm','1','V_Run','&vala=169');
}
window.onload = function () {
if ($('pngfix')){pngfix.main();}
}
Tis the season of romance, giving,family reunions and get aways. With a little planning, you can take advantage of some tremendous savings now and through next year. The economic situation we find ourselves in works in your favor if you are planning to travel or shop. Plane, train, auto or cruise or retail,. deals are available. Don't jump at the first price, look around. I suggest www.pinpointtravel.com to start your research.
Don't forget to sign up for the designer leather tooled pillow offer exclusively by DESPERADO in the Travel Savvy News SWEEPSTAKES. Drawing is December 15 and winner will be contacted by email. A great accent piece, and if you can't use it yourself, it would make a lovely gift.
HAMLEY & CO., the world famous Cowboy Outfitters in Pendleton, OR. puts everyone in a Holiday mood with it's Ladies Day Sale, December 9 and Mens Day Sale December 16. Deep discounts on many in stock items, plus a give away drawing for $100 credit at HAMLEY'S STEAKHOUSE. (Must be present to win.) You can participate in the sales by calling 877-3HAMLEY if you see your heart's desire on the HAMLEY website.
Regular contributor Barbara Barton Sloane relates her adventures on The Big, Isle, Hawaii, this month. Makes you want to grab a suitcase and go. Check out the story in FEATURED DESTINATION.. Looking for some down time and true pampering---a chance for romance and relaxation. The SEVEN GABLES INN could be just your spot. See details in ONLY IN AMERICA. Branson, Missouri, always a prime destination for family entertainment, really dresses up for the Holidays. You are all invited. Get the scoop in ACROSS THE COUNTRY. OREGON HIGHLIGHTS this month features Portland's historic Union Rail Station. Those of you traveling the West Coast by train should give the station special notice. Avoid the crowded airports and go by rail. It is comfortable and affordable too.
The PLUGGED IN section allows Howard Hian to give you his 'travel smart' secrets. Also, mention of HEIFER INTERNATIONAL, gives you an idea of wonderful giving this season. It feels so good to share. This organization, headquartered in Arkansas, www.heifer.org gives the gift of teaching those less fortunate how to be self sufficient.
I hope this newsletter finds you in good health, and ready to celebrate a wonderful Christmas and Holiday Season.
Happy Trails, Ann Terry Hill