1$(document).ready(function(){ 2 3 if($("a[rel^='gallery']").length != 0 ) 4 { 5 $("a[rel^='gallery']").prettyPhoto(); 6 } 7 8 if($(".end-page").length != 0 ) 9 { 10 $('.end-page').marquee('end-page').mouseover(function () { 11 $(this).trigger('stop'); 12 }).mouseout(function () { 13 $(this).trigger('start'); 14 }); 15 } 16 17 $('.openBox').click(function() { 18 $(this).siblings('.hideBox').show(); 19 $(this).siblings('.closeBox').show(); 20 }); 21 $('.closeBox').click(function() { 22 $(this).siblings('.hideBox').hide(); 23 $(this).hide(); 24 }); 25 26 $('#adtype').change(function(){ 27 if($(".shortad_first") != undefined) 28 $(".bigad_first").html(''); 29 if($(".shortad_first") != undefined) 30 $(".shortad_first").html(''); 31 if ($(this).val() == 1) { 32 $(".shortad").appendTo("#added-fields"); 33 $(".shortad,.button").show(); 34 $(".bigad").hide(); 35 $(".bigad").appendTo("#removed-fields"); 36 } 37 else if ($(this).val() > 1) { 38 $(".bigad").appendTo("#added-fields"); 39 $(".bigad,.button").show(); 40 $(".shortad").hide(); 41 $(".shortad").appendTo("#removed-fields"); 42 } 43 else 44 { 45 46 $(".shortad,.bigad , .button").hide(); 47 48 } 49 }); 50 calendar(); 51 52}); 53 54function login(control) { 55 if (control == 1) {document.getElementById('logBox').style.display='block';} 56 else {document.getElementById('logBox').style.display='none';} 57} 58 59function initialize() 60{ 61 $('#yw0_button').click(); 62 63 var mapOptions = { 64 zoom: 7, 65 maxZoom: 13, 66 minZoom: 5, 67 center: new google.maps.LatLng(42.569264,25.454834), 68 mapTypeId: google.maps.MapTypeId.ROADMAP 69 }; 70 71 var map = new google.maps.Map(document.getElementById('map_canvas'),mapOptions); 72 73 var weatherLayer = new google.maps.weather.WeatherLayer({ 74 temperatureUnits: google.maps.weather.TemperatureUnit.celsius, 75 clickable:true, 76 suppressInfoWindows:true 77 }); 78 var weatherWindow=new google.maps.InfoWindow(); 79 google.maps.event.addListener(weatherLayer,'click',function(e){ 80 weatherWindow.close(); 81 82 var current = e.featureDetails; 83 var currents = e.featureDetails.current; 84 console.log(e); 85 86 var content = document.createElement('div'); 87 content.className="weather"; 88 89 // var pContent = content.appendChild(document.createElement('p')); 90 91 // pContent.innerHTML = current.location; 92 93 content.innerHTML = e.infoWindowHtml; 94 95 /* var listUl = content.appendChild(document.createElement('ul')), 96 weather = e.featureDetails.forecast, 97 unit = '°'+e.featureDetails.temperatureUnit.toUpperCase(); 98 weather.push(e.featureDetails.current); 99 100 // console.log(weather); 101 102 for(var i = 0; i<weather.length-1; ++i){ 103 var item = listUl.appendChild(document.createElement('li')).appendChild(document.createTextNode('')) 104 w = weather[i]; 105 item.data= w.day+'++'+ i +' - '+w.description+'('+w.low+unit+'/'+w.high+unit+')'; 106 } 107 */ 108 weatherWindow.setOptions({position:e.latLng,content:content}); 109 weatherWindow.open(map); 110 }); 111 weatherLayer.setMap(map); 112 113 114} 115//google.maps.event.addDomListener(window,'load',initialize); 116 117function search(control) { 118 if (control == 1) {document.getElementById('homeS').style.display='block';} 119 else {document.getElementById('homeS').style.display='none';} 120} 121 122function showImg(id) { 123 $('.adsgall a').hide(); 124 document.getElementById(id).style.display = 'inline'; 125} 126
127function calendar(){ 128 129 //Variables to be used later. Place holders right now. 130 var padding =""; 131 var totalFeb =""; 132 var i = 1; 133 var testing=""; 134 135 var current = new Date(); 136 var month = current.getMonth(); 137 var day = current.getDate(); 138 var year = current.getFullYear(); 139 var tempMonth = month; //+1; //Used to match up the current month with the correct start date. 140 var prevMonth = month -1; 141 142 //Determing if Feb has 28 or 29 days in it. 143 if (month == 1){ 144 if ( (year%100!=0) && (year%4==0) || (year%400==0)){ 145 totalFeb = 29; 146 }else{ 147 totalFeb = 28; 148 } 149 } 150 151 ////////////////////////////////////////// 152 // Setting up arrays for the name of // 153 // the months, days, and the number of // 154 // days in the month. // 155 ////////////////////////////////////////// 156 157 var monthNames = ["ЯнÑаÑи","ФевÑÑаÑи","ÐаÑÑ","ÐпÑил","Ðай","Юни","Юли","ÐвгÑÑÑ","СепÑемвÑи","ÐкÑомвÑи","ÐоемвÑи", "ÐекемвÑи"]; 158 var dayNames = ["Ðонеделник","ÐÑоÑник","СÑÑда","ЧеÑвÑÑÑÑк","ÐеÑÑк", "СÑбоÑа","ÐеделÑ"]; 159 var totalDays = ["31", ""+totalFeb+"","31","30","31","30","31","31","30","31","30","31"] 160 161 ////////////////////////////////////////// 162 // Temp values to get the number of days// 163 // in current month, and previous month.// 164 // Also getting the day of the week. // 165 ////////////////////////////////////////// 166 167 var tempDate = new Date(parseInt(year), parseInt(tempMonth), parseInt(1)); 168 var tempweekday= tempDate.getDay()-1; 169 if(tempweekday == -1) 170 { 171 tempweekday=6; 172 } 173 var tempweekday2 = tempweekday 174 var dayAmount = totalDays[month]; 175 // var preAmount = totalDays[prevMonth] - tempweekday + 1; 176 177 ////////////////////////////////////////////////// 178 // After getting the first day of the week for // 179 // the month, padding the other days for that // 180 // week with the previous months days. IE, if // 181 // the first day of the week is on a Thursday, // 182 // then this fills in Sun - Wed with the last // 183 // months dates, counting down from the last // 184 // day on Wed, until Sunday. // 185 ////////////////////////////////////////////////// 186 187 while (tempweekday>0){ 188 padding += "<td class='premonth'></td>"; 189 //preAmount++; 190 tempweekday--; 191 } 192 ////////////////////////////////////////////////// 193 // Filling in the calendar with the current // 194 // month days in the correct location along. // 195 ////////////////////////////////////////////////// 196 197 while (i <= dayAmount){ 198
199 ////////////////////////////////////////// 200 // Determining when to start a new row // 201 ////////////////////////////////////////// 202 203 if (tempweekday2 > 6){ 204 tempweekday2 = 0; 205 padding += "</tr><tr>"; 206 } 207 208 ////////////////////////////////////////////////////////////////////////////////////////////////// 209 // checking to see if i is equal to the current day, if so then we are making the color of // 210 //that cell a different color using CSS. Also adding a rollover effect to highlight the // 211 //day the user rolls over. This loop creates the acutal calendar that is displayed. // 212 ////////////////////////////////////////////////////////////////////////////////////////////////// 213 214 if (i == day){ 215 padding +="<td class='currentday' >"+i+"</td>"; 216 }else{ 217 padding +="<td class='currentmonth' >"+i+"</td>"; 218 219 } 220 221 tempweekday2++; 222 i++; 223 } 224 225 ///////////////////////////////////////// 226 // Ouptputing the calendar onto the // 227 // site. Also, putting in the month // 228 // name and days of the week. // 229 ///////////////////////////////////////// 230 231 var calendarTable = "<p>"+monthNames[month]+" <span>"+ year +"</span></p><table class='calendar' border='0' class='calendar' cellpadding='2' cellspacing='0'>"; 232 calendarTable +="<tr class='weekdays'><th>Ð</th><th>Ð</th><th>С</th><th>Ч</th><th>Ð</th><th>С</th><th>Ð</th></tr>"; 233 calendarTable += "<tr>"; 234 calendarTable += padding; 235 calendarTable += "</tr></table>"; 236 document.getElementById("calendar").innerHTML=calendarTable; 237} 238 239function draw_clock(){ 240 canvas = Raphael("clock_id",140, 140); 241 var clock = canvas.circle(70,70,60); 242 clock.attr({"fill":"#f5f5f5","stroke":"#444444","stroke-width":"5"}) 243 var hour_sign; 244 for(i=0;i<12;i++){ 245 var start_x = 70+Math.round(50*Math.cos(30*i*Math.PI/180)); 246 var start_y = 70+Math.round(50*Math.sin(30*i*Math.PI/180)); 247 var end_x = 70+Math.round(60*Math.cos(30*i*Math.PI/180)); 248 var end_y = 70+Math.round(60*Math.sin(30*i*Math.PI/180)); 249 hour_sign = canvas.path("M"+start_x+" "+start_y+"L"+end_x+" "+end_y); 250 } 251 hour_hand = canvas.path("M70 70L70 40"); 252 hour_hand.attr({stroke: "#444444", "stroke-width": 6}); 253 minute_hand = canvas.path("M70 70L70 30"); 254 minute_hand.attr({stroke: "#444444", "stroke-width": 4}); 255 second_hand = canvas.path("M70 70L70 25"); 256 second_hand.attr({stroke: "#ff0000", "stroke-width": 2}); 257 var pin = canvas.circle(70, 70, 5); 258 pin.attr("fill", "#000000"); 259 update_clock() 260 setInterval("update_clock()",1000); 261} 262 263function update_clock(){ 264 var now = new Date(); 265 var hours = now.getHours(); 266 var minutes = now.getMinutes(); 267 var seconds = now.getSeconds(); 268 hour_hand.rotate(30*hours+(minutes/2.5), 70, 70); 269 minute_hand.rotate(6*minutes, 70, 70); 270 second_hand.rotate(6*seconds, 70, 70); 271 272} 273
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.