$(document).ready(function() {

var username='veroscreening'; 
var format='json'; 
var url='http://api.twitter.com/1/statuses/user_timeline/'+username+'.'+format+'?callback=?'; 
	$.getJSON(url,function(tweet){ 
        var date_tweet = new Date(tweet[0].created_at);
        var tweet_html = '<b>Latest Tweet: </b>';
        tweet_html    += '<a class="tweetlink" target="top" href="http://twitter.com/veroscreening/">';
        tweet_html    += tweet[0].text.substring(0, 75) + '.....<\/a>';
        tweet_html    += '&nbsp;&nbsp;&nbsp;['+tweet[0].created_at.substring(0, 16)+']';
		$('#tweet_container').html(tweet_html);
	});
});



$(document).ready(function(){
	$("#pageflip").hover(function() {
		$("#pageflip img , .msg_block").stop()
			.animate({
				width: '307px', 
				height: '319px'
			}, 500); 
		} , function() {
		$("#pageflip img").stop() 
			.animate({
				width: '50px', 
				height: '52px'
			}, 220);
		$(".msg_block").stop() 
			.animate({
				width: '50px', 
				height: '50px'
			}, 200);
	});
});


var win=null;
function printIt(printThis)
{
    win = window.open();
    self.focus();
    win.document.open();
    win.document.write('<'+'html'+'><'+'head'+'><'+'style'+'>');
    win.document.write('body, td { font-family: Verdana; font-size: 10pt;} img{ visibility:hidden}');
    win.document.write('<'+'/'+'style'+'><'+'/'+'head'+'><'+'body'+'>');
    win.document.write(printThis);
    win.document.write('<'+'script'+'><'+'/'+'script'+'>');
    win.document.write('<'+'/'+'body'+'><'+'/'+'html'+'>');
    win.document.close();
    win.print();
    win.close();
}

function ShowMenu(menu)
{
//    var response;
    BaseForm.GetMenu(menu, GetMenu_CallBack);    
}

function ShowR2WMenu(menu)
{

 //   var response;
    BaseForm.GetR2WMenu(menu, GetMenu_CallBack);    
}
    
function GetMenu_CallBack(response)
{
    var response=response.value;
    document.getElementById('SubMenu').innerHTML = response;
}
    
function showContent(what)
{
    $("#pagecontent div.paddedcontent").hide();
    document.getElementById(what).style.display = "block";
}
    
function showHide(obj) {
	var ele = document.getElementById(obj);
	
	if(ele.style.display == "block") {
    		ele.style.display = "none";		
  	}
	else {
		ele.style.display = "block";		
	}
}
     
window.onload = function () { 
try{
applesearch.init(); 
}
catch(err){
}
}
    	
    	
	
