// JavaScript Document
$(document).ready(function(){
//Cufon	
$ul = $('#scroller_sec ul');
$ul.css('width',($ul.children().length*176)+"px");

/*********************************************************/

var sudoSlider = $("#banner_wrapp").sudoSlider({
continuous:true,fade:true,auto:true
});
/****************/
var sudoSlider = $(".sloganbox").sudoSlider({
continuous:true,fade:true,auto:true,controlsShow:false,crossFade:false
});
/****************/
var sudoSlider = $(".quoterotator").sudoSlider({
continuous:true,fade:true,auto:true,controlsShow:false,crossFade:false
});
/****************/
$(".search .btn_search") .click (function () {
$(".searchbox") .slideToggle (100);	
});
/******************************************************************************/
$(".newswrapp .btn_readmore") .attr ("href","#") .click(function (){return false; });
$(".toggletext .btn_close") .attr ("href","#") .click(function (){return false; });
$(".newswrapp h4") .click (function (){
$(this) .parents (".newswrapp") .children (".toggletext") .slideToggle();
$(this) .parents (".newswrapp") .find (".btn_readmore") .toggle();
});
$(".newswrapp .btn_readmore") .click (function (){
$(this) .toggle();
$(this) .parents (".newswrapp") .children (".toggletext") .slideToggle();
});
$(".toggletext .btn_close") .click (function (){
$(this) .parents(".toggletext") .slideToggle();
$(this) .parents (".newswrapp") .find (".btn_readmore") .toggle();
});
/*********************************************************/



/**************************************************************************************/

//for text replacement
$('.focusField').focus(function() {
if (this.value == this.defaultValue){ 
this.value = '';
}
if(this.value != this.defaultValue){
this.select();
}
});
$('.focusField').blur(function() {
if ($.trim(this.value) == ''){
this.value = (this.defaultValue ? this.defaultValue : '');
}
});



});



/**/
window.onload = function()  
{
$("#banner").dropShadow({
blur:5,
opacity:0.3,
top:0
});
$("#maparea").dropShadow({
blur:3,
opacity:0.3,
top:11
});
$("#content_inner ").dropShadow({
blur:3,
opacity:0.3,
top:12
});


}

$(function()
{
$('.scroll-pane').jScrollPane(
{
verticalDragMinHeight: 12,
verticalDragMaxHeight: 12,
horizontalDragMinWidth: 88,
horizontalDragMaxWidth: 88
}
);
});
//Tool Tip
$(function() {

$('#scroller_sec li a').tooltip({
track: true,
delay: 0,
showURL: false,
showBody: " - ",
extraClass: "pretty",
right: -140,
top:-55
});

});

$(function() {
	
var galleries = $('.ad-gallery').adGallery();
$(".carousel_gallery li a") .append ("<em></em>")
 });
	
