$(document).ready( function(){
	//var path = "http://www.stisantarosa.edu.ph/";
	timex();
	startnewsreel(0);
/*
	if($('.lightbox').length > 0) {
		$('.lightbox').lightBox({fixedNavigation:true,imageBtnClose:path+'public/imgs/lightbox/lightbox-btn-close.gif',imageLoading:path+'public/imgs/lightbox/lightbox-ico-loading.gif',imageBtnPrev:path+'public/imgs/lightbox/lightbox-btn-prev.gif',imageBtnNext:path+'public/imgs/lightbox/lightbox-btn-next.gif',imageBlank:path+'public/imgs/lightbox/lightbox-blank.gif'});
	}
	var newsreel = $.ajax({
	  url: "../wp/sti_newsreel.php",
	  async: false
	 }).responseText;
	//alert(newsreel);
	 if($(".nreel").length > 0) {
		$(".nreel").html(newsreel);
		startnewsreel(0);
	 }
	if($(".openlinksarticle").length > 0) {
		var x = $(".openlinksarticle").attr('class');
		var tmp = [];
		tmp = x.split(" ");
		var news = $.ajax({
		  url: "../wp/sti_announce.php?p=" + tmp[1],
		  async: false
		 }).responseText;
		$(".openlinksarticle").html(news);
		$(".openlinksarticle").removeClass("openlinksarticle");
	}
	if($(".openeventsarticle").length > 0) {
		var x = $(".openeventsarticle").attr('class');
		var tmp = [];
		tmp = x.split(" ");
		var news = $.ajax({
		  url: "../wp/sti_announce.php?p=" + tmp[1],
		  async: false
		 }).responseText;
		$(".openeventsarticle").html(news);
		$(".openeventsarticle").removeClass("openeventsarticle");
	}
	if($(".openmissionarticle").length > 0) {
		var x = $(".openmissionarticle").attr('class');
		var tmp = [];
		tmp = x.split(" ");
		var news = $.ajax({
		  url: "../wp/sti_announce.php?p=" + tmp[1],
		  async: false
		 }).responseText;
		$(".openmissionarticle").html(news);
		$(".openmissionarticle").removeClass("openmissionarticle");
	}
	if($(".openannouncearticle").length > 0) {
		var x = $(".openannouncearticle").attr('class');
		var tmp = [];
		tmp = x.split(" ");
		var news = $.ajax({
		  url: "../wp/sti_announce.php?p=" + tmp[1],
		  async: false
		 }).responseText;
		$(".openannouncearticle").html(news);
		$(".openannouncearticle").removeClass("openannouncearticle");
	}
	if($(".openfeatarticle").length > 0) {
		var x = $(".openfeatarticle").attr('class');
		var tmp = [];
		tmp = x.split(" ");
		var news = $.ajax({
		  url: "../wp/sti_feat.php?p=" + tmp[1],
		  async: false
		 }).responseText;
		$(".openfeatarticle").html(news);
		$(".openfeatarticle").removeClass("openfeatarticle");
	}
	if($(".openarticle").length > 0) {
		var x = $(".openarticle").attr('class');
		var tmp = [];
		tmp = x.split(" ");
		var news = $.ajax({
		  url: "../../../../wp/sti_page.php?p=" + tmp[1],
		  async: false
		 }).responseText;
		$(".openarticle").html(news);
		$(".openarticle").removeClass("openarticle");
	}
	if($(".openpage").length > 0) {	
		var x = $(".openpage").attr('class');
		var tmp = [];
		tmp = x.split(" ");
		var news = $.ajax({
		  url: "../../../../wp/sti_link.php?p=" + tmp[1],
		  async: false
		 }).responseText;
		$(".openpage").html(news);
		$(".openpage").removeClass("openpage");
	}
*/
});

