2011-10-21 06:11:41 +00:00
|
|
|
$(document).ready(function() {
|
2011-12-23 10:34:21 +00:00
|
|
|
|
2012-02-13 05:02:52 +00:00
|
|
|
$('body').prepend("<div id='orbit_bar'/>");
|
2012-02-16 09:52:49 +00:00
|
|
|
ajax_load_proc($('#orbit_bar'), '/load_orbit_bar');
|
2011-12-23 10:34:21 +00:00
|
|
|
|
2011-10-21 06:11:41 +00:00
|
|
|
$.each($(".dymanic_load"),function(){
|
2011-12-23 10:34:21 +00:00
|
|
|
if($(this).attr("path")==''){$(this).html("App setting Failed");}
|
|
|
|
|
|
|
|
if($(this).attr("path")!=''){
|
|
|
|
ajax_load_proc($(this),$(this).attr("path"));
|
2011-10-21 06:11:41 +00:00
|
|
|
}
|
2011-12-23 10:34:21 +00:00
|
|
|
}
|
2011-10-21 06:11:41 +00:00
|
|
|
);
|
2011-11-19 17:26:24 +00:00
|
|
|
$("#main_content").addClass("module");
|
2011-12-23 10:34:21 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
function ajax_load_proc(wapper,url){
|
|
|
|
wapper.load(url,function(respText,textSta,XML){
|
|
|
|
if(textSta == 'error')
|
|
|
|
wapper.html("Loading Failed");
|
|
|
|
});
|
2012-02-10 02:50:03 +00:00
|
|
|
}
|
|
|
|
// Ad Banner FX code [start]
|
|
|
|
function onAfter(e) {
|
|
|
|
var parent = $(this).parent();
|
|
|
|
var time_to_next = $(this).attr('time_to_next');
|
|
|
|
parent.cycle('pause');
|
|
|
|
setTimeout(function(){parent.cycle('resume')},time_to_next);
|
|
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('.slideshow').children('img').click(function()
|
|
|
|
{
|
|
|
|
if($(this).attr('link_open')=='new_window')
|
|
|
|
{
|
|
|
|
window.open($(this).attr('link_url'));
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
document.location.href=$(this).attr('link_url')
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|
|
|
|
// Ad Banner FX code [end]
|