| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/js/ |
Upload File : |
$(function(){
if (jQuery.browser.msie)
$('#departments img[src$=".png"]').each(function() {
this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.src+",sizingMethod='scale')";
});
var currentMousePos = { x: -1, y: -1 };
var supports_html5_video = supports_video();
$(document).mousemove(function(e){
currentMousePos.x = e.pageX;
currentMousePos.y = e.pageY;
});
var words = $("#intro_text h1").text().split(" ");
var html = "";
$.each(words, function() {
if (this.indexOf(".")>=0)
{
var parts = this.split(".");
$.each(parts, function() {
if (this!="")
{
html += '<span>'+this.substring(0,1)+'</span>'+this.substring(1) + '.';
}
});
}
else
{
if (html!="")
{
html += ' ';
}
html += '<span>'+this.substring(0,1)+'</span>'+this.substring(1);
}
});
$("#intro_text h1").html(html);
$("#body a, #departments a, #navigation ul li ul li a").each(function(){
var normal_color = $(this).css('color');
if (!$(this).parent().hasClass('readmore'))
{
$(this).mouseover(function(){
$(this).css({'color': normal_color});
$(this).stop(true).animate({'color': '#333333'}, 300);
}).mouseout(function(){
$(this).stop(true).animate({'color': normal_color}, 300);
});
}
});
$("#footer a").each(function(){
var normal_color = $(this).css('color');
$(this).mouseover(function(){
$(this).css({'color': normal_color});
$(this).stop(true).animate({'color': '#FFFFFF'}, 300);
}).mouseout(function(){
$(this).stop(true).animate({'color': normal_color}, 300);
});
});
$("#departments li a").hover(function(){
$(this).find("img").stop(true).animate({'top':'-10px'},200);
$(this).parent("li").find("span").stop(true).animate({'opacity':'0.3'},200);
}, function(){
$(this).find("img").stop(true).animate({'top':'0px'},200);
$(this).parent("li").find("span").stop(true).animate({'opacity':'1'},200);
});
$(".tabs ul li a").each(function(){
var first_word = $(this).text().split(/[\s,-.]+/)[0];
$(this).text(first_word);
//$(this).text($(this).text().replace("ανακοινώσεις",""));
});
$(".tabs ul").each(function(){
var this_tab = $(this);
var slide_position;
var slide_width;
var li_position = $(this).find("li:first-child").position();
var li_width = $(this).find("li:first-child").width();
$(this).prepend('<li class="slide" style="position: absolute; z-index: 1; left: '+(li_position.left-4)+'px; top: '+(li_position.top-1)+'px; width: '+(li_width+5)+'px;"></li>');
slide_position = li_position;
slide_width = li_width;
$(this).find("a").click(function(e){
var selected_tab = $(this).attr("class").split(" ")[0];
var li_position = $(this).parent("li").position();
var li_width = $(this).parent("li").width();
if (!$(this).parents(".module").find("div."+selected_tab).is(':visible'))
{
$(this).parents(".module").find("div.module").slideUp(500);
$(this).parents(".module").find("div."+selected_tab).slideDown(500);
}
$(this).parents(".module").find(".slide").stop(true).animate({'left':(li_position.left-4)+'px', 'top':(li_position.top-1)+'px', 'width':(li_width+5)+'px'}, 200);
slide_position = li_position;
slide_width = li_width;
$(this).parents(".tabs").find("ul").find("a").removeClass('active');
$(this).addClass('active');
e.preventDefault();
});
$(this).find("a").hover(function(){
var li_position = $(this).parent("li").position();
var li_width = $(this).parent("li").width();
$(this).parents(".module").find(".slide").stop(true).animate({'left':(li_position.left-4)+'px', 'top':(li_position.top-1)+'px', 'width':(li_width+5)+'px'}, 200);
}, function(){
$(this).parents(".module").find(".slide").delay(500).animate({'left':(slide_position.left-4)+'px', 'top':(slide_position.top-1)+'px', 'width':(slide_width+5)+'px'}, 200);
});
$(window).resize(function() {
var li_position = this_tab.find("a.active").parent("li").position();
var li_width = this_tab.find("a.active").parent("li").width();
slide_position = li_position;
slide_width = li_width;
this_tab.find("li.slide").css({'left':(li_position.left-4)+'px', 'top':(li_position.top-1)+'px', 'width':(li_width+5)+'px'});
});
});
$(".mod_latestnews li").each(function(){
var date_text = $(this).find("span").text().split(" ")[0];
var time_text = $(this).find("span").text().split(" ")[1];
if (time_text!=undefined)
{
time_text = '<em>'+time_text+'</em>';
}
else
time_text = '';
$(this).find("span").html(date_text+' '+time_text);
});
$("#navigation>ul>li").each(function(){
var hideDelay = 500;
var delayTimer = null;
var beingShown = false;
var shown = false;
var submenu = $(this).children("ul");
submenu.hide();
var other_submenus = $(this).siblings("li").children("ul");
$(this).mouseover(function(){
if (delayTimer) clearTimeout(delayTimer);
other_submenus.each(function(){
$(this).stop(true, true).fadeOut({duration: 200, queue: false }).slideUp(200);
});
var nav_top = parseInt($("#navigation").css('top').replace('px',''));
if (!submenu.is(':visible'))
{
if (nav_top>100)
{
submenu.css({'left': '168px'});
}
else // Correct menu position if necessary
{
submenu.show();
var submenu_offset = $(this).offset(); // submenu offset equals to parent's li offset
var header_offset = $("#header").offset();
var header_right_edge = header_offset.left + $("#header").width();
var submenu_right_edge = submenu.width() + submenu_offset.left;
submenu.hide();
if (submenu_right_edge > header_right_edge)
submenu.css({'left': (header_right_edge-submenu_right_edge)+'px'});
else
submenu.css({'left': $(this).css('left')});
}
submenu.fadeIn({duration: 200, queue: false }).css('display', 'none').slideDown(200, function(){submenu.css('opacity', '1')});
}
}).mouseout(function(e){
if (delayTimer) clearTimeout(delayTimer);
delayTimer = setTimeout(function () {submenu.fadeOut({duration: 200, queue: false }).slideUp(200);}, hideDelay);
});
});
$(".mosaic a").hover(function(){
$(this).find("img").stop(true).animate({opacity: 1}, 500);
$(this).siblings("a").find("img").stop(true).animate({opacity: 0.5}, 500);
}, function(){
$(this).parent("div").find("img").stop(true).animate({opacity: 1}, 500);
});
$("#top_buttons ul li a").each(function(){
$(this).attr('title', $(this).text());
});
$("#top_buttons ul li a").hover(function(){
$(this).parent("li").stop(true,true).css({backgroundColor: '#434748'}).animate({backgroundColor: '#000000'}, 300);
}, function(){
$(this).parent("li").stop(true,true).animate({backgroundColor: '#434748'}, 300, function(){$(this).css({backgroundColor:'transparent'});});
});
$(".mod_custom_services .module_body a[title], .mod_calendar table td a[title]").each(function(){
var popup_text = $(this).attr('title');
var popup_height;
$(this).removeAttr('title');
$(this).mouseover(function(e){
$('body').append('<div id="popup" style="position: absolute; z-index: 100; max-width: 200px; opacity: 0; border: 1px solid #A0C7FF; background: url(images/theme/bg_white_95.png); padding: 10px; border-radius: 5px; box-shadow: 0px 2px 5px rgba(0,0,0,0.5); font-size: 12px; color: #666666; line-height: 1.3">'+popup_text+'<div style="position: absolute; left: 20px; bottom: -15px; background: url(images/theme/bubble-tail.png); width: 22px; height: 15px;"></div><div style="clear:both"></div></div>');
$("#popup").find("img").css({'float': 'left', 'margin-right': '7px', 'top': '1px solid #CCCCCC'});
popup_height = $("#popup").height();
$("#popup").css({'left':(e.pageX-30)+'px', 'top':(e.pageY-popup_height-40)+'px'});
$("#popup").animate({'opacity': '1'}, 300);
});
$(this).mousemove(function(e){
$("#popup").css({'left': (e.pageX-30)+'px', 'top': (e.pageY-popup_height-40)+'px'});
})
$(this).mouseout(function(){
$("#popup").remove();
});
});
$("#media_switches a").click(function(e){
$(this).find("img").css({'opacity': '1'});
$(this).parent("li").siblings("li").find("img").css({'opacity': '0.4'}, 0);
e.preventDefault();
if ($(this).attr("id")=="media_photos")
{
if (supports_html5_video) // Αν υποστηρίζεται το video tag
{
$('#video_player video').get(0).pause();
}
else
{
jwplayer('flash_player').pause(true);
}
$("#photo_slider").animate({'opacity': '1'}, 500);
$("#video_player").animate({'opacity': '0'}, 500, function(){$("#video_player").css({'display': 'none'});});
$("#intro_text p").fadeOut(300);
$("#intro_text h1").fadeIn(300);
}
else if ($(this).attr("id")=="media_video" && ($("#video_player").css('top')=='-1000px' || $("#video_player").css('display')=='none'))
{
intro_text_width = $("#intro_text").css('width');
$("#photo_slider").animate({'opacity': '0'}, 500);
var normal_top = $("#photo_slider").css('top');
$("#video_player").css({'top': normal_top});
$("#video_player").css({'display': 'block', 'opacity': '0'}).animate({'opacity': '1'}, 500);
if (supports_html5_video) // Αν υποστηρίζεται το video tag
{
// Αντιμετοπίζει bug του firefox που δίχνει κολλημένο το εικονίδιο play πάνω από το βίντεο
if ($("#video_player video").get(0).currentTime==0)
{
$("#video_player video").get(0).currentTime = 1;
}
$("#video_player video").get(0).play();
}
else
{
jwplayer('flash_player').play(true);
}
$("#intro_text h1").fadeOut(300, function(){$("#intro_text p").html($("#video_player p").html()).fadeIn(300);});
}
});
$("#media_switches a").hover(function(){
$(this).parent("li").stop(true,true).css({backgroundColor: '#E4EAEB'}).animate({backgroundColor: '#FFFFFF'}, 300);
}, function(){
$(this).parent("li").stop(true,true).animate({backgroundColor: '#E4EAEB'}, 300, function(){$(this).css({backgroundColor:'transparent'});});
});
$("#languages").each(function(){
var hideDelay = 300;
var delayTimer = null;
var beingShown = false;
var shown = false;
$(this).mouseover(function(){
if (delayTimer) clearTimeout(delayTimer);
if (beingShown || shown)
{
return;
}
else
{
beingShown = true;
$("#languages").animate({'background-color': '#EEEEEF'}, 300);
$("#languages").prepend('<div id="lang_dialog" style="position: absolute; z-index: -10; white-space: nowrap; right: 0px; top: 20px; height: 0; background: url(images/theme/bg_white_90.png); padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.4); opacity: 0; font-size: 13px; color: #666666;"><div>'+$("#languages div").html()+'</div></div>');
$("#lang_dialog div img").css({'margin-right':'5px'});
$("#lang_dialog a").each(function(){
$(this).css({'font-size': '12px', 'margin-right': '10px'}).append($(this).attr('title'));
});
$("#lang_dialog").animate({'height':'15px', 'opacity':'1'}, 300, function(){
beingShown = false;
shown = true;
$("#lang_dialog a").each(function(){
var normal_color = $(this).css('color');
$(this).mouseover(function(){
$(this).stop(true).animate({'color': '#333333'}, 300);
}).mouseout(function(){
$(this).stop(true).animate({'color': normal_color}, 300);
});
});
});
}
$(this).find("img").stop(true,true).animate({'opacity': '0.9'}, 300);
}).mouseout(function(){
if (delayTimer) clearTimeout(delayTimer);
delayTimer = setTimeout(function(){
$("#lang_dialog").animate({'height':'0px', 'opacity':'0'} ,300, function(){
$(this).remove();
shown = false;
});
$("#languages").find("img").stop(true,true).animate({'opacity': '0.6'}, 300);
$("#languages").animate({'background-color': '#535556'}, 300);
}, hideDelay);
});
});
$("#goto_top a").each(function(){
if ($(window).scrollTop()>100)
$(this).find("img").css({'opacity': '0.6'});
else
$(this).find("img").css({'opacity': '0'});
$(this).hover(function(){
$(this).find("img").stop(true).animate({'opacity': '1'}, 600);
}, function(){
$(this).find("img").stop(true).animate({'opacity': '0.6'}, 300);
});
$("#goto_top a").click(function(e){
$('html, body').animate({ scrollTop: 0 }, 'slow');
e.preventDefault();
});
});
$(window).scroll(function () {
if ($(window).scrollTop()>100)
{
if ($("#goto_top a img").css('opacity')==0)
$("#goto_top a img").stop(true).animate({'opacity': '0.6'}, 600);
}
else
{
if ($("#goto_top a img").css('opacity')>0)
$("#goto_top a img").stop(true).animate({'opacity': '0'}, 300);
}
});
$("#toggle_sitemap").click(function(e){
if ($("#sitemap").is(":hidden"))
{
$("#sitemap").slideDown(600);
$("#toggle_sitemap").find("span").css({'background-position':'0 -217px'});
}
else
{
$("#sitemap").slideUp(600);
$("#toggle_sitemap").find("span").css({'background-position':'0 0px'});
}
e.preventDefault();
});
$("#toggle_sitemap").hover(function(){
$(this).stop(true,true).animate({'color': '#FF9900'}, 300);
$(this).find("span").stop(true,true).animate({'opacity': '1'}, 300);
}, function(){
$(this).stop(true,true).animate({'color': '#CCCCCC'}, 300);
$(this).find("span").stop(true,true).animate({'opacity': '0.7'}, 300);
});
$(".mod_search form").each(function(){
$(this).append('<div class="search_results_popup"></div>');
});
$(".mod_search form input[type=text]").focus(function(){
$(this).parent("fieldset").delay(200).animate({'background-position': '0 -8px'}, 300);
if ($(this).val()!="")
{
$(this).parents("form").find(".search_results_popup").fadeIn(300);
}
});
$(".mod_search form input[type=text]").blur(function(){
$(this).parent("fieldset").delay(200).animate({'background-position': '0 0'}, 300);
});
var typingTimer;
var doneTypingInterval = 1000;
var form = "";
var form_input = "";
var search_query = "";
//on keyup, start the countdown
$(".mod_search form input[type=text]").keyup(function(){
form = $(this).parents("form");
form_input = $(this);
search_query = $(this).val();
clearTimeout(typingTimer);
typingTimer = setTimeout(doneTyping, doneTypingInterval);
});
//on keydown, clear the countdown
$('#myInput').keydown(function(){
clearTimeout(typingTimer);
});
//user is "finished typing," do the job
function doneTyping ()
{
if (search_query.length>=3)
{
if (form.find(".search_results_popup").is(":hidden"))
{
form.find(".search_results_popup").fadeIn(300);
}
form.find(".search_results_popup").html('<div class="loading"><img src="images/core/loading.gif"></div>');
$.post("index.php", form.serializeArray(), function(responseText){
if (form_input.val()==search_query) // Ελέγχουμε αν η τρέχουσα τιμή του query input field δεν έχει αλλάξει λόγω γρήγορης πληκτρολόγησης, ώστε να μην εμφανίζονται αποτελέσματα από ενδιάμεσες πληκτρολογήσεις
{
var max_results = 5; // Το μέγιστο πλήθος αποτελεσμάτων στο popup
var num_of_results = parseInt($(responseText).find("#search_info #num_of_results").text());
var new_html = $(responseText).find("#search_results");
var close_html = '<div style="position: absolute; right: 10px; top: 10px;"><a href="#" class="dialog_close"></a></div>';
if (num_of_results==0)
{
new_html = close_html + '<h4>Κανένα αποτέλεσματα...</h4>'
}
else if (num_of_results<=max_results)
{
new_html = close_html + '<h4>Αποτελέσματα ('+num_of_results+' από '+num_of_results+'):</h4>'+new_html.html();
new_html = new_html + '<div class="readmore"><a href="index.php"><span>Όλα τα αποτελέσματα</span></a></div>';
}
else
{
new_html.find("ol>li").slice(max_results).remove(); // Διαγραφή των πλεονάζοντων αποτελεσμάτων πέραν των max_results
new_html = close_html + '<h4>Αποτελέσματα ('+max_results+' από '+num_of_results+'):</h4>'+new_html.html();
new_html = new_html + '<div class="readmore"><a href="index.php"><span>Όλα τα αποτελέσματα</span></a></div>';
}
form.find(".search_results_popup").html(new_html);
form.find(".search_results_popup a.dialog_close").click(function(e){
form.find(".search_results_popup").hide();
e.preventDefault();
});
form.find(".readmore").find("a").click(function(e){
form.submit();
e.preventDefault();
});
}
});
}
else
{
form.find(".search_results_popup").hide();
}
if (form_input.val()=="" && form.find(".search_results_popup").is(":visible"))
{
form.find(".search_results_popup").hide();
}
}
$(".mod_search form input[type=radio]:checked").each(function(){
$(this).parent("fieldset").find("label").css({'display':'none'});
$(this).next("label").css({'display':'block'});
});
$(".mod_search .search_parameters").each(function(){
var hideDelay = 300;
var delayTimer = null;
var beingShown = false;
var shown = false;
$(this).find("label span").each(function(){
$(this).html($(this).html().replace("στις επαφές","στον Τηλεφωνικό Κατάλογο"));
});
$(this).mouseover(function(){
if (delayTimer) clearTimeout(delayTimer);
if (beingShown || shown)
{
return;
}
else
{
beingShown = true;
$(this).append('<div id="search_in_dialog" style="position: absolute; z-index: 0; white-space: nowrap; right: 0px; top: 24px; background: url(images/theme/bg_white_95.png); padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.4); opacity: 0; font-size: 13px; color: #666666;"><div>'+$(this).html()+'</div></div>');
$("#search_in_dialog").find("input").remove();
$("#search_in_dialog").find("label").css({'display':'block', 'margin-bottom': '5px'}).find("span").css({'display':'inline'});
$("#search_in_dialog").find("img").css({'vertical-align': 'middle', 'margin-right': '5px', 'opacity': '0.5'});
var dialog_height = $("#search_in_dialog").height();
$("#search_in_dialog").css({'height':'0px'})
var normal_color = $("#search_in_dialog label").css('color');
$("#search_in_dialog label").mouseover(function(){
$(this).css({'color': normal_color});
$(this).stop(true).animate({'color': '#333333'}, 300);
}).mouseout(function(){
$(this).stop(true).animate({'color': normal_color}, 300);
});
$("#search_in_dialog").animate({'height':dialog_height, 'opacity':'1'}, 300, function(){
beingShown = false;
shown = true;
$("#search_in_dialog label").hover(function(){
$(this).find("img").stop(true).animate({'opacity': '1'}, 300);
}, function(){
$(this).find("img").stop(true).animate({'opacity': '0.5'}, 300);
});
$("#search_in_dialog label").click(function(){
$(this).parents("form").find(".search_results_popup").hide();
$(this).parents("form").find("input[type=text]").val("");
$(this).parents("fieldset.search_parameters").find("input").attr('checked',false);
$(this).parents("fieldset.search_parameters").find("input[id='"+$(this).attr("for")+"']").attr('checked','checked');
$(this).parents("fieldset.search_parameters").children("label").css({'display':'none'});
$(this).parents("fieldset.search_parameters").children("label[for='"+$(this).attr("for")+"']").css({'display':'block'});
$("#sidebar .mod_search form p").text($(this).find("span").text()+':');
$("#search_in_dialog").animate({'height':'0px', 'opacity':'0'} ,300, function(){
$(this).remove();
shown = false;
});
});
});
}
}).mouseout(function(){
if (delayTimer) clearTimeout(delayTimer);
delayTimer = setTimeout(function(){
$("#search_in_dialog").animate({'height':'0px', 'opacity':'0'} ,300, function(){
$(this).remove();
shown = false;
});
}, hideDelay);
});
});
$(".mod_latestevents").addClass('custom_date');
$(".mod_latestevents ul li").each(function(){
if ($(this).find("span").length>0)
{
var month_text = $(this).find("span").text().split(" ")[0];
var day_of_month = $(this).find("span").text().split(" ")[1];
$(this).find("span").remove();
$(this).prepend("<div><p>"+month_text+"<span>"+day_of_month+"</span></p></div>");
}
});
$(".mod_latestevents ul li a").hover(function(){
$(this).prev("div").find("p").stop(true).animate({'left': '0px'}, 100);
}, function(){
$(this).prev("div").find("p").stop(true).animate({'left': '4px'}, 100);
});
$("a.odigos").fancybox({type:'iframe', width: '90%', height: '90%', padding:15, autoSize:false, openOpacity:true, helpers:{overlay:{opacity:0.6}, title:null}});
$("a.odigos").click(function(e){e.preventDefault();});
$(".pano_map a").fancybox({type:'iframe', width: 1020, height: 630, autoSize:false, openOpacity:true, helpers:{overlay:{opacity:0.6}, title:null}});
$(".pano_map a").each(function(){
var popup_height;
var img_width;
var pano_img = $(this).attr('href').split("/")[1].replace(".html", "_small.jpg");
$(this).hover(function(e){
$(this).find("img").stop(true,true).fadeOut(300);
$('body').append('<div id="popup" style="position: absolute; z-index: 100; width: 200px; opacity: 0; border: 1px solid #A0C7FF; background: url(images/theme/bg_white_95.png); border-radius: 5px; box-shadow: 0px 2px 5px rgba(0,0,0,0.5); font-size: 12px; color: #666666; line-height: 1.3"><div style="position: relative; height: 80px; margin: 10px; overflow: hidden;"><div id="scrolled" style="position: absolute; top:0px; left:0px; width: 1500px"><img src="panorama/'+pano_img+'" style="float: left"></div></div><div style="position: absolute; left: 20px; bottom: -15px; background: url(images/theme/bubble-tail.png); width: 22px; height: 15px;"></div><div style="clear:both"></div></div>');
popup_height = $("#popup").height();
img_width = $("#popup img").width();
$("#popup img").after($("#popup img").clone());
$("#popup").css({'left':(e.pageX-30)+'px', 'top':(e.pageY-popup_height-30)+'px'});
$("#popup").animate({'opacity': '1'}, 300);
$("#popup img").load(function () { // Wait for image to load
scroll();
});
}, function(e){
$(this).find("img").stop(true,true).fadeIn(300);
$("#popup").remove();
});
$(this).mousemove(function(e){
$("#popup").css({'left': (e.pageX-30)+'px', 'top': (e.pageY-popup_height-30)+'px'});
})
function scroll()
{
img_width = $("#popup img").width();
$("#popup #scrolled").css({'left':'0px'}).animate({'left':'-'+img_width+'px'}, 5000, 'linear', scroll);
}
});
$("#footer1 a, #footer2 a").hover(function(){
$(this).find("img").stop(true).animate({'opacity':'1'}, 300);
}, function(){
$(this).find("img").stop(true).animate({'opacity':'0.6'}, 300);
});
$("a.map_popup").fancybox({type:'iframe', width: 960, height: 650, padding:15, autoSize:false, openOpacity:true, href:'content.php?cat_id=14', helpers:{overlay:{opacity:0.6}, title:null}});
$("a.map_popup").click(function(e){e.preventDefault();});
$("a.campus_map_popup").fancybox({type:'iframe', width: 960, height: 560, padding:15, autoSize:false, openOpacity:true, href:'content.php?id=2062', helpers:{overlay:{opacity:0.6}, title:null}});
$("a.campus_map_popup").click(function(e){e.preventDefault();});
$(".readmore a").hover(function(){
var positionXY = $(this).find("span").css('background-position').split(" ");
$(this).stop(true).animate({'background-position': '0px -20px'},200);
$(this).find("span").stop(true).animate({'background-position': '99% '+positionXY[1]}, 200);
}, function(){
var positionXY = $(this).find("span").css('background-position').split(" ");
$(this).stop(true).animate({'background-position': '0px -1px'}, 200);
$(this).find("span").stop(true).animate({'background-position': '97% '+positionXY[1]}, 200);
});
$("#map_topmenu a").click(function(e){
$("#map1, #map2, #map3, #map4").css({'height':'100%'}).fadeOut(300);
$('#'+$(this).attr('class')).fadeIn(300);
$(this).siblings("a").removeClass('active');
$(this).addClass('active');
e.preventDefault();
});
$(".useful_phones h4").click(function(){
if ($(this).next("div").is(':visible'))
{
$(this).next("div").slideUp(300);
$(this).css("background-position","98% 12px");
}
else
{
$(".useful_phones div").slideUp(300);
$(this).next("div").slideDown(300);
$(this).css("background-position","98% -205px");
}
});
$(".showmore").click(function(){
$(".more").slideToggle();
});
});
function supports_video() {
return !!document.createElement('video').canPlayType;
}