From: "Saved by Windows Internet Explorer 9"
Subject: =?iso-2022-jp?B?UEtLGyRCIUcbKEJuP24gU3VyaXllIHV6YW50P3M/IFBZRCwgcmU=?=
=?iso-2022-jp?B?amltZSBrYXI/PyBtdWhhbGlmbGVybGUgaT9iaXJsaT9pIHlhcGFjYQ==?=
=?iso-2022-jp?B?ayAtIFpBTUFO?=
Date: Tue, 5 Mar 2013 11:15:44 +0900
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_007E_01CE1992.C76DE230"
X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7600.16807
This is a multi-part message in MIME format.
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/dis-haberler_pkknin-suriye-uzantisi-pyd-rejime-karsi-muhaliflerle-isbirligi-yapacak_2055472.html
=EF=BB=BF
Ter=C3=B6r =
=C3=B6rg=C3=BCt=C3=BC KCK-PKK=E2=80=99n=C4=B1n Suriye=20
uzant=C4=B1s=C4=B1 Demokratik Birlik Partisi ile muhalif =C3=96zg=C3=BCr =
Suriye Ordusu aras=C4=B1nda=20
bar=C4=B1=C5=9F anla=C5=9Fmas=C4=B1 imzaland=C4=B1.
=20
11 maddelik anla=C5=9Fmaya g=C3=B6re silahl=C4=B1 gruplar, iktidar =
m=C3=BCcadelesi verdikleri=20
Rasulayn=E2=80=99=C4=B1 terk edecek. Arap ve K=C3=BCrtlerin temsil =
edildi=C4=9Fi ortak =C5=9Fehir y=C3=B6netimi=20
kurulacak, ortak kontrol noktalar=C4=B1 olu=C5=9Fturularak g=C4=B1da =
maddelerinin giri=C5=9Fine izin=20
verilecek. Rejim denetimindeki =C5=9Fehirlerin ele ge=C3=A7irilmesi =
i=C3=A7in de birlikte=20
m=C3=BCcadele edilecek. =C4=B0=C5=9Fbirli=C4=9Fi karar=C4=B1n=C4=B1n =
alt=C4=B1nda muhaliflerin bir=C3=A7ok b=C3=B6lgede=20
kontrol=C3=BC tamamen ele ge=C3=A7irmesi yat=C4=B1yor.
=20
Etraf=C4=B1 muhaliflerce sar=C4=B1lan PYD militanlar=C4=B1 =C3=A7evre =
=C3=BClkelerden destek alam=C4=B1yor.=20
Halep=E2=80=99e ba=C4=9Fl=C4=B1 yo=C4=9Fun K=C3=BCrt n=C3=BCfuslu El =
E=C5=9Frefiye=E2=80=99de ordu birlikleriyle =
=C3=A7at=C4=B1=C5=9Ft=C4=B1=C4=9F=C4=B1=20
i=C3=A7in rejimden de silah deste=C4=9Fi kesilmi=C5=9F durumda. =C4=B0ki =
grup aras=C4=B1nda imzalanan=20
k=C4=B1sa s=C3=BCreli yap=C4=B1lan anla=C5=9Fmalar birka=C3=A7 kez =
bozuldu. =C3=87at=C4=B1=C5=9Fmalarda =C5=9Fu ana kadar her=20
iki taraftan da onlarca ki=C5=9Fi hayat=C4=B1n=C4=B1 =
kaybetti.
=20
=20
YASAL UYARI:Yay=C4=B1nlanan =
k=C3=B6=C5=9Fe yaz=C4=B1s=C4=B1/haberin=20
t=C3=BCm haklar=C4=B1 Feza Gazetecilik=E2=80=99e aittir. Kaynak =
g=C3=B6sterilse dahi k=C3=B6=C5=9Fe=20
yaz=C4=B1s=C4=B1/haberin tamam=C4=B1 =C3=B6zel izin al=C4=B1nmadan =
kullan=C4=B1lamaz. Bu haber veya yaz=C4=B1=20
sadece zaman gazetesi taraf=C4=B1ndan sa=C4=9Flanan RSS verileri =
kullan=C4=B1larak=20
al=C4=B1nt=C4=B1lanabilir.
=20
=20
=20
=20
=20
=
=20
=20
Sonraki Haber=20
=20
=20
=20
=20
=20
B=C3=B6l=C3=BCm=C3=BCn en =C3=A7ok okunan =
haberleri
").append(e.replace(yn,"")).find(i=
):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError =
ajaxSuccess ajaxSend".split(" =
"),function(e,t){v.fn[t]=3Dfunction(e){return =
this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=3Dfunction(e,r,i=
,s){return =
v.isFunction(r)&&(s=3Ds||i,i=3Dr,r=3Dt),v.ajax({type:n,url:e,data:r,succe=
ss:i,dataType:s})}}),v.extend({getScript:function(e,n){return =
v.get(e,t,n,"script")},getJSON:function(e,t,n){return =
v.get(e,t,n,"json")},ajaxSetup:function(e,t){return =
t?Ln(e,v.ajaxSettings):(t=3De,e=3Dv.ajaxSettings),Ln(e,t),e},ajaxSettings=
:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"applica=
tion/x-www-form-urlencoded; =
charset=3DUTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, =
text/xml",html:"text/html",text:"text/plain",json:"application/json, =
text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},res=
ponseFields:{xml:"responseXML",text:"responseText"},converters:{"* =
text":e.String,"text html":!0,"text json":v.parseJSON,"text =
xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),aj=
axTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var =
l,y,b,w,S,T=3Dn;if(E=3D=3D=3D2)return;E=3D2,u&&clearTimeout(u),o=3Dt,i=3D=
a||"",x.readyState=3De>0?4:0,s&&(w=3DAn(c,x,s));if(e>=3D200&&e<300||e=3D=3D=
=3D304)c.ifModified&&(S=3Dx.getResponseHeader("Last-Modified"),S&&(v.last=
Modified[r]=3DS),S=3Dx.getResponseHeader("Etag"),S&&(v.etag[r]=3DS)),e=3D=
=3D=3D304?(T=3D"notmodified",l=3D!0):(l=3DOn(c,w),T=3Dl.state,y=3Dl.data,=
b=3Dl.error,l=3D!b);else{b=3DT;if(!T||e)T=3D"error",e<0&&(e=3D0)}x.status=
=3De,x.statusText=3D(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[=
x,T,b]),x.statusCode(g),g=3Dt,f&&p.trigger("ajax"+(l?"Success":"Error"),[=
x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.a=
ctive||v.event.trigger("ajaxStop"))}typeof =
e=3D=3D"object"&&(n=3De,e=3Dt),n=3Dn||{};var =
r,i,s,o,u,a,f,l,c=3Dv.ajaxSetup({},n),h=3Dc.context||c,p=3Dh!=3D=3Dc&&(h.=
nodeType||h instanceof =
v)?v(h):v.event,d=3Dv.Deferred(),m=3Dv.Callbacks("once =
memory"),g=3Dc.statusCode||{},b=3D{},w=3D{},E=3D0,S=3D"canceled",x=3D{rea=
dyState:0,setRequestHeader:function(e,t){if(!E){var =
n=3De.toLowerCase();e=3Dw[n]=3Dw[n]||e,b[e]=3Dt}return =
this},getAllResponseHeaders:function(){return =
E=3D=3D=3D2?i:null},getResponseHeader:function(e){var =
n;if(E=3D=3D=3D2){if(!s){s=3D{};while(n=3Dpn.exec(i))s[n[1].toLowerCase()=
]=3Dn[2]}n=3Ds[e.toLowerCase()]}return =
n=3D=3D=3Dt?null:n},overrideMimeType:function(e){return =
E||(c.mimeType=3De),this},abort:function(e){return =
e=3De||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=3Dx.done,x.er=
ror=3Dx.fail,x.complete=3Dm.add,x.statusCode=3Dfunction(e){if(e){var =
t;if(E<2)for(t in e)g[t]=3D[g[t],e[t]];else =
t=3De[x.status],x.always(t)}return =
this},c.url=3D((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dat=
aTypes=3Dv.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain=3D=3D=
null&&(a=3Dwn.exec(c.url.toLowerCase()),c.crossDomain=3D!(!a||a[1]=3D=3D=3D=
ln[1]&&a[2]=3D=3D=3Dln[2]&&(a[3]||(a[1]=3D=3D=3D"http:"?80:443))=3D=3D(ln=
[3]||(ln[1]=3D=3D=3D"http:"?80:443)))),c.data&&c.processData&&typeof =
c.data!=3D"string"&&(c.data=3Dv.param(c.data,c.traditional)),kn(Sn,c,n,x)=
;if(E=3D=3D=3D2)return =
x;f=3Dc.global,c.type=3Dc.type.toUpperCase(),c.hasContent=3D!vn.test(c.ty=
pe),f&&v.active++=3D=3D=3D0&&v.event.trigger("ajaxStart");if(!c.hasConten=
t){c.data&&(c.url+=3D(gn.test(c.url)?"&":"?")+c.data,delete =
c.data),r=3Dc.url;if(c.cache=3D=3D=3D!1){var =
N=3Dv.now(),C=3Dc.url.replace(bn,"$1_=3D"+N);c.url=3DC+(C=3D=3D=3Dc.url?(=
gn.test(c.url)?"&":"?")+"_=3D"+N:"")}}(c.data&&c.hasContent&&c.contentTyp=
e!=3D=3D!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentTy=
pe),c.ifModified&&(r=3Dr||c.url,v.lastModified[r]&&x.setRequestHeader("If=
-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-Non=
e-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accept=
s[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=3D=3D"*"?", =
"+Tn+"; q=3D0.01":""):c.accepts["*"]);for(l in =
c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSe=
nd.call(h,x,c)!=3D=3D!1&&E!=3D=3D2){S=3D"abort";for(l =
in{success:1,error:1,complete:1})x[l](c[l]);o=3Dkn(xn,c,n,x);if(!o)T(-1,"=
No =
Transport");else{x.readyState=3D1,f&&p.trigger("ajaxSend",[x,c]),c.async&=
&c.timeout>0&&(u=3DsetTimeout(function(){x.abort("timeout")},c.timeout));=
try{E=3D1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return =
x}return x.abort()},active:0,lastModified:{},etag:{}});var =
Mn=3D[],_n=3D/\?/,Dn=3D/(=3D)\?(?=3D&|$)|\?\?/,Pn=3Dv.now();v.ajaxSetup({=
jsonp:"callback",jsonpCallback:function(){var =
e=3DMn.pop()||v.expando+"_"+Pn++;return =
this[e]=3D!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var =
s,o,u,a=3Dn.data,f=3Dn.url,l=3Dn.jsonp!=3D=3D!1,c=3Dl&&Dn.test(f),h=3Dl&&=
!c&&typeof =
a=3D=3D"string"&&!(n.contentType||"").indexOf("application/x-www-form-url=
encoded")&&Dn.test(a);if(n.dataTypes[0]=3D=3D=3D"jsonp"||c||h)return =
s=3Dn.jsonpCallback=3Dv.isFunction(n.jsonpCallback)?n.jsonpCallback():n.j=
sonpCallback,o=3De[s],c?n.url=3Df.replace(Dn,"$1"+s):h?n.data=3Da.replace=
(Dn,"$1"+s):l&&(n.url+=3D(_n.test(f)?"&":"?")+n.jsonp+"=3D"+s),n.converte=
rs["script json"]=3Dfunction(){return u||v.error(s+" was not =
called"),u[0]},n.dataTypes[0]=3D"json",e[s]=3Dfunction(){u=3Darguments},i=
.always(function(){e[s]=3Do,n[s]&&(n.jsonpCallback=3Dr.jsonpCallback,Mn.p=
ush(s)),u&&v.isFunction(o)&&o(u[0]),u=3Do=3Dt}),"script"}),v.ajaxSetup({a=
ccepts:{script:"text/javascript, application/javascript, =
application/ecmascript, =
application/x-ecmascript"},contents:{script:/javascript|ecmascript/},conv=
erters:{"text script":function(e){return =
v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache=3D=3D=3D=
t&&(e.cache=3D!1),e.crossDomain&&(e.type=3D"GET",e.global=3D!1)}),v.ajaxT=
ransport("script",function(e){if(e.crossDomain){var =
n,r=3Di.head||i.getElementsByTagName("head")[0]||i.documentElement;return=
{send:function(s,o){n=3Di.createElement("script"),n.async=3D"async",e.scr=
iptCharset&&(n.charset=3De.scriptCharset),n.src=3De.url,n.onload=3Dn.onre=
adystatechange=3Dfunction(e,i){if(i||!n.readyState||/loaded|complete/.tes=
t(n.readyState))n.onload=3Dn.onreadystatechange=3Dnull,r&&n.parentNode&&r=
.removeChild(n),n=3Dt,i||o(200,"success")},r.insertBefore(n,r.firstChild)=
},abort:function(){n&&n.onload(0,1)}}}});var =
Hn,Bn=3De.ActiveXObject?function(){for(var e in =
Hn)Hn[e](0,1)}:!1,jn=3D0;v.ajaxSettings.xhr=3De.ActiveXObject?function(){=
return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:=
!!e,cors:!!e&&"withCredentials"in =
e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if=
(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var =
o,u,a=3Dn.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.passw=
ord):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in =
n.xhrFields)a[u]=3Dn.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overr=
ideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Req=
uested-With"]=3D"XMLHttpRequest");try{for(u in =
i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null)=
,r=3Dfunction(e,i){var =
u,f,l,c,h;try{if(r&&(i||a.readyState=3D=3D=3D4)){r=3Dt,o&&(a.onreadystate=
change=3Dv.noop,Bn&&delete =
Hn[o]);if(i)a.readyState!=3D=3D4&&a.abort();else{u=3Da.status,l=3Da.getAl=
lResponseHeaders(),c=3D{},h=3Da.responseXML,h&&h.documentElement&&(c.xml=3D=
h);try{c.text=3Da.responseText}catch(p){}try{f=3Da.statusText}catch(p){f=3D=
""}!u&&n.isLocal&&!n.crossDomain?u=3Dc.text?200:404:u=3D=3D=3D1223&&(u=3D=
204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState=3D=3D=3D4?=
setTimeout(r,0):(o=3D++jn,Bn&&(Hn||(Hn=3D{},v(e).unload(Bn)),Hn[o]=3Dr),a=
.onreadystatechange=3Dr):r()},abort:function(){r&&r(0,1)}}}});var =
qn,Rn,Un=3D/^(?:toggle|show|hide)$/,zn=3Dnew =
RegExp("^(?:([-+])=3D|)("+m+")([a-z%]*)$","i"),Wn=3D/queueHooks$/,Xn=3D[G=
n],Vn=3D{"*":[function(e,t){var =
n,r,i=3Dthis.createTween(e,t),s=3Dzn.exec(t),o=3Di.cur(),u=3D+o||0,a=3D1,=
f=3D20;if(s){n=3D+s[2],r=3Ds[3]||(v.cssNumber[e]?"":"px");if(r!=3D=3D"px"=
&&u){u=3Dv.css(i.elem,e,!0)||n||1;do =
a=3Da||".5",u/=3Da,v.style(i.elem,e,u+r);while(a!=3D=3D(a=3Di.cur()/o)&&a=
!=3D=3D1&&--f)}i.unit=3Dr,i.start=3Du,i.end=3Ds[1]?u+(s[1]+1)*n:n}return =
i}]};v.Animation=3Dv.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=3D=
e,e=3D["*"]):e=3De.split(" ");var =
n,r=3D0,i=3De.length;for(;r-1,f=3D{},l=3D=
{},c,h;a?(l=3Di.position(),c=3Dl.top,h=3Dl.left):(c=3DparseFloat(o)||0,h=3D=
parseFloat(u)||0),v.isFunction(t)&&(t=3Dt.call(e,n,s)),t.top!=3Dnull&&(f.=
top=3Dt.top-s.top+c),t.left!=3Dnull&&(f.left=3Dt.left-s.left+h),"using"in=
=
t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[=
0])return;var =
e=3Dthis[0],t=3Dthis.offsetParent(),n=3Dthis.offset(),r=3Der.test(t[0].no=
deName)?{top:0,left:0}:t.offset();return =
n.top-=3DparseFloat(v.css(e,"marginTop"))||0,n.left-=3DparseFloat(v.css(e=
,"marginLeft"))||0,r.top+=3DparseFloat(v.css(t[0],"borderTopWidth"))||0,r=
.left+=3DparseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,le=
ft:n.left-r.left}},offsetParent:function(){return =
this.map(function(){var =
e=3Dthis.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"pos=
ition")=3D=3D=3D"static")e=3De.offsetParent;return =
e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},=
function(e,n){var r=3D/Y/.test(n);v.fn[e]=3Dfunction(i){return =
v.access(this,function(e,i,s){var o=3Dtr(e);if(s=3D=3D=3Dt)return o?n in =
o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft(=
):s,r?s:v(o).scrollTop()):e[i]=3Ds},e,i,arguments.length,null)}}),v.each(=
{Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,c=
ontent:n,"":"outer"+e},function(r,i){v.fn[i]=3Dfunction(i,s){var =
o=3Darguments.length&&(r||typeof =
i!=3D"boolean"),u=3Dr||(i=3D=3D=3D!0||s=3D=3D=3D!0?"margin":"border");ret=
urn v.access(this,function(n,r,i){var s;return =
v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType=3D=3D=3D9=
?(s=3Dn.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body[=
"offset"+e],s["offset"+e],s["client"+e])):i=3D=3D=3Dt?v.css(n,r,i,u):v.st=
yle(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=3De.$=3Dv,typeof =
define=3D=3D"function"&&define.amd&&define.amd.jQuery&&define("jquery",[]=
,function(){return v})})(window);
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/calendar.js
/* Copyright Mihai Bazon, 2002-2005 | www.bazon.net/mishoo
* -----------------------------------------------------------
*
* The DHTML Calendar, version 1.0 "It is happening again"
*
* Details and latest version at:
* www.dynarch.com/projects/calendar
*
* This script is developed by Dynarch.com. Visit us at =
www.dynarch.com.
*
* This script is distributed under the GNU Lesser General Public =
License.
* Read the entire license text here: =
http://www.gnu.org/licenses/lgpl.html
*/
// $Id: calendar.js,v 1.1 2009/07/31 12:55:10 feride Exp $
/** The Calendar object constructor. */
Calendar =3D function (firstDayOfWeek, dateStr, onSelected, onClose) {
// member variables
this.activeDiv =3D null;
this.currentDateEl =3D null;
this.getDateStatus =3D null;
this.getDateToolTip =3D null;
this.getDateText =3D null;
this.timeout =3D null;
this.onSelected =3D onSelected || null;
this.onClose =3D onClose || null;
this.dragging =3D false;
this.hidden =3D false;
this.minYear =3D 1970;
this.maxYear =3D 2050;
this.dateFormat =3D Calendar._TT["DEF_DATE_FORMAT"];
this.ttDateFormat =3D Calendar._TT["TT_DATE_FORMAT"];
this.isPopup =3D true;
this.weekNumbers =3D true;
this.firstDayOfWeek =3D typeof firstDayOfWeek =3D=3D "number" ? =
firstDayOfWeek : Calendar._FD; // 0 for Sunday, 1 for Monday, etc.
this.showsOtherMonths =3D false;
this.dateStr =3D dateStr;
this.ar_days =3D null;
this.showsTime =3D false;
this.time24 =3D true;
this.yearStep =3D 2;
this.hiliteToday =3D true;
this.multiple =3D null;
// HTML elements
this.table =3D null;
this.element =3D null;
this.tbody =3D null;
this.firstdayname =3D null;
// Combo boxes
this.monthsCombo =3D null;
this.yearsCombo =3D null;
this.hilitedMonth =3D null;
this.activeMonth =3D null;
this.hilitedYear =3D null;
this.activeYear =3D null;
// Information
this.dateClicked =3D false;
// one-time initializations
if (typeof Calendar._SDN =3D=3D "undefined") {
// table of short day names
if (typeof Calendar._SDN_len =3D=3D "undefined")
Calendar._SDN_len =3D 3;
var ar =3D new Array();
for (var i =3D 8; i > 0;) {
ar[--i] =3D Calendar._DN[i].substr(0, Calendar._SDN_len);
}
Calendar._SDN =3D ar;
// table of short month names
if (typeof Calendar._SMN_len =3D=3D "undefined")
Calendar._SMN_len =3D 3;
ar =3D new Array();
for (var i =3D 12; i > 0;) {
ar[--i] =3D Calendar._MN[i].substr(0, Calendar._SMN_len);
}
Calendar._SMN =3D ar;
}
};
// ** constants
/// "static", needed for event handlers.
Calendar._C =3D null;
/// detect a special case of "web browser"
Calendar.is_ie =3D ( /msie/i.test(navigator.userAgent) &&
!/opera/i.test(navigator.userAgent) );
Calendar.is_ie5 =3D ( Calendar.is_ie && /msie =
5\.0/i.test(navigator.userAgent) );
/// detect Opera browser
Calendar.is_opera =3D /opera/i.test(navigator.userAgent);
/// detect KHTML-based browsers
Calendar.is_khtml =3D =
/Konqueror|Safari|KHTML/i.test(navigator.userAgent);
// BEGIN: UTILITY FUNCTIONS; beware that these might be moved into a =
separate
// library, at some point.
Calendar.getAbsolutePos =3D function(el) {
var SL =3D 0, ST =3D 0;
var is_div =3D /^div$/i.test(el.tagName);
if (is_div && el.scrollLeft)
SL =3D el.scrollLeft;
if (is_div && el.scrollTop)
ST =3D el.scrollTop;
var r =3D { x: el.offsetLeft - SL, y: el.offsetTop - ST };
if (el.offsetParent) {
var tmp =3D this.getAbsolutePos(el.offsetParent);
r.x +=3D tmp.x;
r.y +=3D tmp.y;
}
return r;
};
Calendar.isRelated =3D function (el, evt) {
var related =3D evt.relatedTarget;
if (!related) {
var type =3D evt.type;
if (type =3D=3D "mouseover") {
related =3D evt.fromElement;
} else if (type =3D=3D "mouseout") {
related =3D evt.toElement;
}
}
while (related) {
if (related =3D=3D el) {
return true;
}
related =3D related.parentNode;
}
return false;
};
Calendar.removeClass =3D function(el, className) {
if (!(el && el.className)) {
return;
}
var cls =3D el.className.split(" ");
var ar =3D new Array();
for (var i =3D cls.length; i > 0;) {
if (cls[--i] !=3D className) {
ar[ar.length] =3D cls[i];
}
}
el.className =3D ar.join(" ");
};
Calendar.addClass =3D function(el, className) {
Calendar.removeClass(el, className);
el.className +=3D " " + className;
};
// FIXME: the following 2 functions totally suck, are useless and should =
be replaced immediately.
Calendar.getElement =3D function(ev) {
var f =3D Calendar.is_ie ? window.event.srcElement : ev.currentTarget;
while (f.nodeType !=3D 1 || /^div$/i.test(f.tagName))
f =3D f.parentNode;
return f;
};
Calendar.getTargetElement =3D function(ev) {
var f =3D Calendar.is_ie ? window.event.srcElement : ev.target;
while (f.nodeType !=3D 1)
f =3D f.parentNode;
return f;
};
Calendar.stopEvent =3D function(ev) {
ev || (ev =3D window.event);
if (Calendar.is_ie) {
ev.cancelBubble =3D true;
ev.returnValue =3D false;
} else {
ev.preventDefault();
ev.stopPropagation();
}
return false;
};
Calendar.addEvent =3D function(el, evname, func) {
if (el.attachEvent) { // IE
el.attachEvent("on" + evname, func);
} else if (el.addEventListener) { // Gecko / W3C
el.addEventListener(evname, func, true);
} else {
el["on" + evname] =3D func;
}
};
Calendar.removeEvent =3D function(el, evname, func) {
if (el.detachEvent) { // IE
el.detachEvent("on" + evname, func);
} else if (el.removeEventListener) { // Gecko / W3C
el.removeEventListener(evname, func, true);
} else {
el["on" + evname] =3D null;
}
};
Calendar.createElement =3D function(type, parent) {
var el =3D null;
if (document.createElementNS) {
// use the XHTML namespace; IE won't normally get here unless
// _they_ "fix" the DOM2 implementation.
el =3D document.createElementNS("http://www.w3.org/1999/xhtml", type);
} else {
el =3D document.createElement(type);
}
if (typeof parent !=3D "undefined") {
parent.appendChild(el);
}
return el;
};
// END: UTILITY FUNCTIONS
// BEGIN: CALENDAR STATIC FUNCTIONS
/** Internal -- adds a set of events to make some element behave like a =
button. */
Calendar._add_evs =3D function(el) {
with (Calendar) {
addEvent(el, "mouseover", dayMouseOver);
addEvent(el, "mousedown", dayMouseDown);
addEvent(el, "mouseout", dayMouseOut);
if (is_ie) {
addEvent(el, "dblclick", dayMouseDblClick);
el.setAttribute("unselectable", true);
}
}
};
Calendar.findMonth =3D function(el) {
if (typeof el.month !=3D "undefined") {
return el;
} else if (typeof el.parentNode.month !=3D "undefined") {
return el.parentNode;
}
return null;
};
Calendar.findYear =3D function(el) {
if (typeof el.year !=3D "undefined") {
return el;
} else if (typeof el.parentNode.year !=3D "undefined") {
return el.parentNode;
}
return null;
};
Calendar.showMonthsCombo =3D function () {
var cal =3D Calendar._C;
if (!cal) {
return false;
}
var cal =3D cal;
var cd =3D cal.activeDiv;
var mc =3D cal.monthsCombo;
if (cal.hilitedMonth) {
Calendar.removeClass(cal.hilitedMonth, "hilite");
}
if (cal.activeMonth) {
Calendar.removeClass(cal.activeMonth, "active");
}
var mon =3D =
cal.monthsCombo.getElementsByTagName("div")[cal.date.getMonth()];
Calendar.addClass(mon, "active");
cal.activeMonth =3D mon;
var s =3D mc.style;
s.display =3D "block";
if (cd.navtype < 0)
s.left =3D cd.offsetLeft + "px";
else {
var mcw =3D mc.offsetWidth;
if (typeof mcw =3D=3D "undefined")
// Konqueror brain-dead techniques
mcw =3D 50;
s.left =3D (cd.offsetLeft + cd.offsetWidth - mcw) + "px";
}
s.top =3D (cd.offsetTop + cd.offsetHeight) + "px";
};
Calendar.showYearsCombo =3D function (fwd) {
var cal =3D Calendar._C;
if (!cal) {
return false;
}
var cal =3D cal;
var cd =3D cal.activeDiv;
var yc =3D cal.yearsCombo;
if (cal.hilitedYear) {
Calendar.removeClass(cal.hilitedYear, "hilite");
}
if (cal.activeYear) {
Calendar.removeClass(cal.activeYear, "active");
}
cal.activeYear =3D null;
var Y =3D cal.date.getFullYear() + (fwd ? 1 : -1);
var yr =3D yc.firstChild;
var show =3D false;
for (var i =3D 12; i > 0; --i) {
if (Y >=3D cal.minYear && Y <=3D cal.maxYear) {
yr.innerHTML =3D Y;
yr.year =3D Y;
yr.style.display =3D "block";
show =3D true;
} else {
yr.style.display =3D "none";
}
yr =3D yr.nextSibling;
Y +=3D fwd ? cal.yearStep : -cal.yearStep;
}
if (show) {
var s =3D yc.style;
s.display =3D "block";
if (cd.navtype < 0)
s.left =3D cd.offsetLeft + "px";
else {
var ycw =3D yc.offsetWidth;
if (typeof ycw =3D=3D "undefined")
// Konqueror brain-dead techniques
ycw =3D 50;
s.left =3D (cd.offsetLeft + cd.offsetWidth - ycw) + "px";
}
s.top =3D (cd.offsetTop + cd.offsetHeight) + "px";
}
};
// event handlers
Calendar.tableMouseUp =3D function(ev) {
var cal =3D Calendar._C;
if (!cal) {
return false;
}
if (cal.timeout) {
clearTimeout(cal.timeout);
}
var el =3D cal.activeDiv;
if (!el) {
return false;
}
var target =3D Calendar.getTargetElement(ev);
ev || (ev =3D window.event);
Calendar.removeClass(el, "active");
if (target =3D=3D el || target.parentNode =3D=3D el) {
Calendar.cellClick(el, ev);
}
var mon =3D Calendar.findMonth(target);
var date =3D null;
if (mon) {
date =3D new Date(cal.date);
if (mon.month !=3D date.getMonth()) {
date.setMonth(mon.month);
cal.setDate(date);
cal.dateClicked =3D false;
cal.callHandler();
}
} else {
var year =3D Calendar.findYear(target);
if (year) {
date =3D new Date(cal.date);
if (year.year !=3D date.getFullYear()) {
date.setFullYear(year.year);
cal.setDate(date);
cal.dateClicked =3D false;
cal.callHandler();
}
}
}
with (Calendar) {
removeEvent(document, "mouseup", tableMouseUp);
removeEvent(document, "mouseover", tableMouseOver);
removeEvent(document, "mousemove", tableMouseOver);
cal._hideCombos();
_C =3D null;
return stopEvent(ev);
}
};
Calendar.tableMouseOver =3D function (ev) {
var cal =3D Calendar._C;
if (!cal) {
return;
}
var el =3D cal.activeDiv;
var target =3D Calendar.getTargetElement(ev);
if (target =3D=3D el || target.parentNode =3D=3D el) {
Calendar.addClass(el, "hilite active");
Calendar.addClass(el.parentNode, "rowhilite");
} else {
if (typeof el.navtype =3D=3D "undefined" || (el.navtype !=3D 50 && =
(el.navtype =3D=3D 0 || Math.abs(el.navtype) > 2)))
Calendar.removeClass(el, "active");
Calendar.removeClass(el, "hilite");
Calendar.removeClass(el.parentNode, "rowhilite");
}
ev || (ev =3D window.event);
if (el.navtype =3D=3D 50 && target !=3D el) {
var pos =3D Calendar.getAbsolutePos(el);
var w =3D el.offsetWidth;
var x =3D ev.clientX;
var dx;
var decrease =3D true;
if (x > pos.x + w) {
dx =3D x - pos.x - w;
decrease =3D false;
} else
dx =3D pos.x - x;
if (dx < 0) dx =3D 0;
var range =3D el._range;
var current =3D el._current;
var count =3D Math.floor(dx / 10) % range.length;
for (var i =3D range.length; --i >=3D 0;)
if (range[i] =3D=3D current)
break;
while (count-- > 0)
if (decrease) {
if (--i < 0)
i =3D range.length - 1;
} else if ( ++i >=3D range.length )
i =3D 0;
var newval =3D range[i];
el.innerHTML =3D newval;
cal.onUpdateTime();
}
var mon =3D Calendar.findMonth(target);
if (mon) {
if (mon.month !=3D cal.date.getMonth()) {
if (cal.hilitedMonth) {
Calendar.removeClass(cal.hilitedMonth, "hilite");
}
Calendar.addClass(mon, "hilite");
cal.hilitedMonth =3D mon;
} else if (cal.hilitedMonth) {
Calendar.removeClass(cal.hilitedMonth, "hilite");
}
} else {
if (cal.hilitedMonth) {
Calendar.removeClass(cal.hilitedMonth, "hilite");
}
var year =3D Calendar.findYear(target);
if (year) {
if (year.year !=3D cal.date.getFullYear()) {
if (cal.hilitedYear) {
Calendar.removeClass(cal.hilitedYear, "hilite");
}
Calendar.addClass(year, "hilite");
cal.hilitedYear =3D year;
} else if (cal.hilitedYear) {
Calendar.removeClass(cal.hilitedYear, "hilite");
}
} else if (cal.hilitedYear) {
Calendar.removeClass(cal.hilitedYear, "hilite");
}
}
return Calendar.stopEvent(ev);
};
Calendar.tableMouseDown =3D function (ev) {
if (Calendar.getTargetElement(ev) =3D=3D Calendar.getElement(ev)) {
return Calendar.stopEvent(ev);
}
};
Calendar.calDragIt =3D function (ev) {
var cal =3D Calendar._C;
if (!(cal && cal.dragging)) {
return false;
}
var posX;
var posY;
if (Calendar.is_ie) {
posY =3D window.event.clientY + document.body.scrollTop;
posX =3D window.event.clientX + document.body.scrollLeft;
} else {
posX =3D ev.pageX;
posY =3D ev.pageY;
}
cal.hideShowCovered();
var st =3D cal.element.style;
st.left =3D (posX - cal.xOffs) + "px";
st.top =3D (posY - cal.yOffs) + "px";
return Calendar.stopEvent(ev);
};
Calendar.calDragEnd =3D function (ev) {
var cal =3D Calendar._C;
if (!cal) {
return false;
}
cal.dragging =3D false;
with (Calendar) {
removeEvent(document, "mousemove", calDragIt);
removeEvent(document, "mouseup", calDragEnd);
tableMouseUp(ev);
}
cal.hideShowCovered();
};
Calendar.dayMouseDown =3D function(ev) {
var el =3D Calendar.getElement(ev);
if (el.disabled) {
return false;
}
var cal =3D el.calendar;
cal.activeDiv =3D el;
Calendar._C =3D cal;
if (el.navtype !=3D 300) with (Calendar) {
if (el.navtype =3D=3D 50) {
el._current =3D el.innerHTML;
addEvent(document, "mousemove", tableMouseOver);
} else
addEvent(document, Calendar.is_ie5 ? "mousemove" : "mouseover", =
tableMouseOver);
addClass(el, "hilite active");
addEvent(document, "mouseup", tableMouseUp);
} else if (cal.isPopup) {
cal._dragStart(ev);
}
if (el.navtype =3D=3D -1 || el.navtype =3D=3D 1) {
if (cal.timeout) clearTimeout(cal.timeout);
cal.timeout =3D setTimeout("Calendar.showMonthsCombo()", 250);
} else if (el.navtype =3D=3D -2 || el.navtype =3D=3D 2) {
if (cal.timeout) clearTimeout(cal.timeout);
cal.timeout =3D setTimeout((el.navtype > 0) ? =
"Calendar.showYearsCombo(true)" : "Calendar.showYearsCombo(false)", =
250);
} else {
cal.timeout =3D null;
}
return Calendar.stopEvent(ev);
};
Calendar.dayMouseDblClick =3D function(ev) {
Calendar.cellClick(Calendar.getElement(ev), ev || window.event);
if (Calendar.is_ie) {
document.selection.empty();
}
};
Calendar.dayMouseOver =3D function(ev) {
var el =3D Calendar.getElement(ev);
if (Calendar.isRelated(el, ev) || Calendar._C || el.disabled) {
return false;
}
if (el.ttip) {
if (el.ttip.substr(0, 1) =3D=3D "_") {
el.ttip =3D el.caldate.print(el.calendar.ttDateFormat) + =
el.ttip.substr(1);
}
el.calendar.tooltips.innerHTML =3D el.ttip;
}
if (el.navtype !=3D 300) {
Calendar.addClass(el, "hilite");
if (el.caldate) {
Calendar.addClass(el.parentNode, "rowhilite");
}
}
return Calendar.stopEvent(ev);
};
Calendar.dayMouseOut =3D function(ev) {
with (Calendar) {
var el =3D getElement(ev);
if (isRelated(el, ev) || _C || el.disabled)
return false;
removeClass(el, "hilite");
if (el.caldate)
removeClass(el.parentNode, "rowhilite");
if (el.calendar)
el.calendar.tooltips.innerHTML =3D _TT["SEL_DATE"];
return stopEvent(ev);
}
};
/**
* A generic "click" handler :) handles all types of buttons defined in =
this
* calendar.
*/
Calendar.cellClick =3D function(el, ev) {
var cal =3D el.calendar;
var closing =3D false;
var newdate =3D false;
var date =3D null;
if (typeof el.navtype =3D=3D "undefined") {
if (cal.currentDateEl) {
Calendar.removeClass(cal.currentDateEl, "selected");
Calendar.addClass(el, "selected");
closing =3D (cal.currentDateEl =3D=3D el);
if (!closing) {
cal.currentDateEl =3D el;
}
}
cal.date.setDateOnly(el.caldate);
date =3D cal.date;
var other_month =3D !(cal.dateClicked =3D !el.otherMonth);
if (!other_month && !cal.currentDateEl)
cal._toggleMultipleDate(new Date(date));
else
newdate =3D !el.disabled;
// a date was clicked
if (other_month)
cal._init(cal.firstDayOfWeek, date);
} else {
if (el.navtype =3D=3D 200) {
Calendar.removeClass(el, "hilite");
cal.callCloseHandler();
return;
}
date =3D new Date(cal.date);
if (el.navtype =3D=3D 0)
date.setDateOnly(new Date()); // TODAY
// unless "today" was clicked, we assume no date was clicked so
// the selected handler will know not to close the calenar when
// in single-click mode.
// cal.dateClicked =3D (el.navtype =3D=3D 0);
cal.dateClicked =3D false;
var year =3D date.getFullYear();
var mon =3D date.getMonth();
function setMonth(m) {
var day =3D date.getDate();
var max =3D date.getMonthDays(m);
if (day > max) {
date.setDate(max);
}
date.setMonth(m);
};
switch (el.navtype) {
case 400:
Calendar.removeClass(el, "hilite"); =09
var text =3D Calendar._TT["ABOUT"];
if (typeof text !=3D "undefined") {
text +=3D cal.showsTime ? Calendar._TT["ABOUT_TIME"] : "";
} else {
// FIXME: this should be removed as soon as lang files get updated!
// text =3D "Help and about box text is not translated into this =
language.\n" +
// "If you know this language and you feel generous please update\n" =
+
// "the corresponding file in \"lang\" subdir to match =
calendar-en.js\n" +
// "and send it back to to get it into the =
distribution ;-)\n\n" +
// "Thank you!\n" +
// "http://dynarch.com/mishoo/calendar.epl\n";
}
alert(text);
return;
case -2:
if (year > cal.minYear) {
date.setFullYear(year - 1);
}
break;
case -1:
if (mon > 0) {
setMonth(mon - 1);
} else if (year-- > cal.minYear) {
date.setFullYear(year);
setMonth(11);
}
break;
case 1:
if (mon < 11) {
setMonth(mon + 1);
} else if (year < cal.maxYear) {
date.setFullYear(year + 1);
setMonth(0);
}
break;
case 2:
if (year < cal.maxYear) {
date.setFullYear(year + 1);
}
break;
case 100:
cal.setFirstDayOfWeek(el.fdow);
return;
case 50:
var range =3D el._range;
var current =3D el.innerHTML;
for (var i =3D range.length; --i >=3D 0;)
if (range[i] =3D=3D current)
break;
if (ev && ev.shiftKey) {
if (--i < 0)
i =3D range.length - 1;
} else if ( ++i >=3D range.length )
i =3D 0;
var newval =3D range[i];
el.innerHTML =3D newval;
cal.onUpdateTime();
return;
case 0:
// TODAY will bring us here
if ((typeof cal.getDateStatus =3D=3D "function") &&
cal.getDateStatus(date, date.getFullYear(), date.getMonth(), =
date.getDate())) {
return false;
}
break;
}
if (!date.equalsTo(cal.date)) {
cal.setDate(date);
newdate =3D true;
} else if (el.navtype =3D=3D 0)
newdate =3D closing =3D true;
}
if (newdate) {
ev && cal.callHandler();
}
if (closing) {
Calendar.removeClass(el, "hilite");
ev && cal.callCloseHandler();
}
};
// END: CALENDAR STATIC FUNCTIONS
// BEGIN: CALENDAR OBJECT FUNCTIONS
/**
* This function creates the calendar inside the given parent. If _par =
is
* null than it creates a popup calendar inside the BODY element. If =
_par is
* an element, be it BODY, then it creates a non-popup calendar (still
* hidden). Some properties need to be set before calling this =
function.
*/
Calendar.prototype.create =3D function (_par) {
var parent =3D null;
if (! _par) {
// default parent is the document body, in which case we create
// a popup calendar.
parent =3D document.getElementsByTagName("body")[0];
this.isPopup =3D true;
} else {
parent =3D _par;
this.isPopup =3D false;
}
this.date =3D this.dateStr ? new Date(this.dateStr) : new Date();
var table =3D Calendar.createElement("table");
this.table =3D table;
table.cellSpacing =3D 0;
table.cellPadding =3D 0;
table.calendar =3D this;
Calendar.addEvent(table, "mousedown", Calendar.tableMouseDown);
var div =3D Calendar.createElement("div");
this.element =3D div;
div.className =3D "calendar";
if (this.isPopup) {
div.style.position =3D "absolute";
div.style.display =3D "none";
}
div.appendChild(table);
var thead =3D Calendar.createElement("thead", table);
var cell =3D null;
var row =3D null;
var cal =3D this;
var hh =3D function (text, cs, navtype) {
cell =3D Calendar.createElement("td", row);
cell.colSpan =3D cs;
cell.className =3D "button";
if (navtype !=3D 0 && Math.abs(navtype) <=3D 2)
cell.className +=3D " nav";
Calendar._add_evs(cell);
cell.calendar =3D cal;
cell.navtype =3D navtype;
cell.innerHTML =3D "
" + text + "
";
return cell;
};
row =3D Calendar.createElement("tr", thead);
var title_length =3D 6;
(this.isPopup) && --title_length;
(this.weekNumbers) && ++title_length;
hh("?", 1, 400).ttip =3D Calendar._TT["INFO"];
this.title =3D hh("", title_length, 300);
this.title.className =3D "title";
if (this.isPopup) {
this.title.ttip =3D Calendar._TT["DRAG_TO_MOVE"];
this.title.style.cursor =3D "move";
hh("×", 1, 200).ttip =3D Calendar._TT["CLOSE"];
}
row =3D Calendar.createElement("tr", thead);
row.className =3D "headrow";
this._nav_py =3D hh("«", 1, -2);
this._nav_py.ttip =3D Calendar._TT["PREV_YEAR"];
this._nav_pm =3D hh("‹", 1, -1);
this._nav_pm.ttip =3D Calendar._TT["PREV_MONTH"];
this._nav_now =3D hh(Calendar._TT["TODAY"], this.weekNumbers ? 4 : 3, =
0);
this._nav_now.ttip =3D Calendar._TT["GO_TODAY"];
this._nav_nm =3D hh("›", 1, 1);
this._nav_nm.ttip =3D Calendar._TT["NEXT_MONTH"];
this._nav_ny =3D hh("»", 1, 2);
this._nav_ny.ttip =3D Calendar._TT["NEXT_YEAR"];
// day names
row =3D Calendar.createElement("tr", thead);
row.className =3D "daynames";
if (this.weekNumbers) {
cell =3D Calendar.createElement("td", row);
cell.className =3D "name wn";
cell.innerHTML =3D Calendar._TT["WK"];
}
for (var i =3D 7; i > 0; --i) {
cell =3D Calendar.createElement("td", row);
if (!i) {
cell.navtype =3D 100;
cell.calendar =3D this;
Calendar._add_evs(cell);
}
}
this.firstdayname =3D (this.weekNumbers) ? row.firstChild.nextSibling : =
row.firstChild;
this._displayWeekdays();
var tbody =3D Calendar.createElement("tbody", table);
this.tbody =3D tbody;
for (i =3D 6; i > 0; --i) {
row =3D Calendar.createElement("tr", tbody);
if (this.weekNumbers) {
cell =3D Calendar.createElement("td", row);
}
for (var j =3D 7; j > 0; --j) {
cell =3D Calendar.createElement("td", row);
cell.calendar =3D this;
Calendar._add_evs(cell);
}
}
if (this.showsTime) {
row =3D Calendar.createElement("tr", tbody);
row.className =3D "time";
cell =3D Calendar.createElement("td", row);
cell.className =3D "time";
cell.colSpan =3D 2;
cell.innerHTML =3D Calendar._TT["TIME"] || " ";
cell =3D Calendar.createElement("td", row);
cell.className =3D "time";
cell.colSpan =3D this.weekNumbers ? 4 : 3;
(function(){
function makeTimePart(className, init, range_start, range_end) {
var part =3D Calendar.createElement("span", cell);
part.className =3D className;
part.innerHTML =3D init;
part.calendar =3D cal;
part.ttip =3D Calendar._TT["TIME_PART"];
part.navtype =3D 50;
part._range =3D [];
if (typeof range_start !=3D "number")
part._range =3D range_start;
else {
for (var i =3D range_start; i <=3D range_end; ++i) {
var txt;
if (i < 10 && range_end >=3D 10) txt =3D '0' + i;
else txt =3D '' + i;
part._range[part._range.length] =3D txt;
}
}
Calendar._add_evs(part);
return part;
};
var hrs =3D cal.date.getHours();
var mins =3D cal.date.getMinutes();
var t12 =3D !cal.time24;
var pm =3D (hrs > 12);
if (t12 && pm) hrs -=3D 12;
var H =3D makeTimePart("hour", hrs, t12 ? 1 : 0, t12 ? 12 : 23);
var span =3D Calendar.createElement("span", cell);
span.innerHTML =3D ":";
span.className =3D "colon";
var M =3D makeTimePart("minute", mins, 0, 59);
var AP =3D null;
cell =3D Calendar.createElement("td", row);
cell.className =3D "time";
cell.colSpan =3D 2;
if (t12)
AP =3D makeTimePart("ampm", pm ? "pm" : "am", ["am", "pm"]);
else
cell.innerHTML =3D " ";
cal.onSetTime =3D function() {
var pm, hrs =3D this.date.getHours(),
mins =3D this.date.getMinutes();
if (t12) {
pm =3D (hrs >=3D 12);
if (pm) hrs -=3D 12;
if (hrs =3D=3D 0) hrs =3D 12;
AP.innerHTML =3D pm ? "pm" : "am";
}
H.innerHTML =3D (hrs < 10) ? ("0" + hrs) : hrs;
M.innerHTML =3D (mins < 10) ? ("0" + mins) : mins;
};
cal.onUpdateTime =3D function() {
var date =3D this.date;
var h =3D parseInt(H.innerHTML, 10);
if (t12) {
if (/pm/i.test(AP.innerHTML) && h < 12)
h +=3D 12;
else if (/am/i.test(AP.innerHTML) && h =3D=3D 12)
h =3D 0;
}
var d =3D date.getDate();
var m =3D date.getMonth();
var y =3D date.getFullYear();
date.setHours(h);
date.setMinutes(parseInt(M.innerHTML, 10));
date.setFullYear(y);
date.setMonth(m);
date.setDate(d);
this.dateClicked =3D false;
this.callHandler();
};
})();
} else {
this.onSetTime =3D this.onUpdateTime =3D function() {};
}
var tfoot =3D Calendar.createElement("tfoot", table);
row =3D Calendar.createElement("tr", tfoot);
row.className =3D "footrow";
cell =3D hh(Calendar._TT["SEL_DATE"], this.weekNumbers ? 8 : 7, 300);
cell.className =3D "ttip";
if (this.isPopup) {
cell.ttip =3D Calendar._TT["DRAG_TO_MOVE"];
cell.style.cursor =3D "move";
}
this.tooltips =3D cell;
div =3D Calendar.createElement("div", this.element);
this.monthsCombo =3D div;
div.className =3D "combo";
for (i =3D 0; i < Calendar._MN.length; ++i) {
var mn =3D Calendar.createElement("div");
mn.className =3D Calendar.is_ie ? "label-IEfix" : "label";
mn.month =3D i;
mn.innerHTML =3D Calendar._SMN[i];
div.appendChild(mn);
}
div =3D Calendar.createElement("div", this.element);
this.yearsCombo =3D div;
div.className =3D "combo";
for (i =3D 12; i > 0; --i) {
var yr =3D Calendar.createElement("div");
yr.className =3D Calendar.is_ie ? "label-IEfix" : "label";
div.appendChild(yr);
}
this._init(this.firstDayOfWeek, this.date);
parent.appendChild(this.element);
};
/** keyboard navigation, only for popup calendars */
Calendar._keyEvent =3D function(ev) {
var cal =3D window._dynarch_popupCalendar;
if (!cal || cal.multiple)
return false;
(Calendar.is_ie) && (ev =3D window.event);
var act =3D (Calendar.is_ie || ev.type =3D=3D "keypress"),
K =3D ev.keyCode;
if (ev.ctrlKey) {
switch (K) {
case 37: // KEY left
act && Calendar.cellClick(cal._nav_pm);
break;
case 38: // KEY up
act && Calendar.cellClick(cal._nav_py);
break;
case 39: // KEY right
act && Calendar.cellClick(cal._nav_nm);
break;
case 40: // KEY down
act && Calendar.cellClick(cal._nav_ny);
break;
default:
return false;
}
} else switch (K) {
case 32: // KEY space (now)
Calendar.cellClick(cal._nav_now);
break;
case 27: // KEY esc
act && cal.callCloseHandler();
break;
case 37: // KEY left
case 38: // KEY up
case 39: // KEY right
case 40: // KEY down
if (act) {
var prev, x, y, ne, el, step;
prev =3D K =3D=3D 37 || K =3D=3D 38;
step =3D (K =3D=3D 37 || K =3D=3D 39) ? 1 : 7;
function setVars() {
el =3D cal.currentDateEl;
var p =3D el.pos;
x =3D p & 15;
y =3D p >> 4;
ne =3D cal.ar_days[y][x];
};setVars();
function prevMonth() {
var date =3D new Date(cal.date);
date.setDate(date.getDate() - step);
cal.setDate(date);
};
function nextMonth() {
var date =3D new Date(cal.date);
date.setDate(date.getDate() + step);
cal.setDate(date);
};
while (1) {
switch (K) {
case 37: // KEY left
if (--x >=3D 0)
ne =3D cal.ar_days[y][x];
else {
x =3D 6;
K =3D 38;
continue;
}
break;
case 38: // KEY up
if (--y >=3D 0)
ne =3D cal.ar_days[y][x];
else {
prevMonth();
setVars();
}
break;
case 39: // KEY right
if (++x < 7)
ne =3D cal.ar_days[y][x];
else {
x =3D 0;
K =3D 40;
continue;
}
break;
case 40: // KEY down
if (++y < cal.ar_days.length)
ne =3D cal.ar_days[y][x];
else {
nextMonth();
setVars();
}
break;
}
break;
}
if (ne) {
if (!ne.disabled)
Calendar.cellClick(ne);
else if (prev)
prevMonth();
else
nextMonth();
}
}
break;
case 13: // KEY enter
if (act)
Calendar.cellClick(cal.currentDateEl, ev);
break;
default:
return false;
}
return Calendar.stopEvent(ev);
};
/**
* (RE)Initializes the calendar to the given date and firstDayOfWeek
*/
Calendar.prototype._init =3D function (firstDayOfWeek, date) {
var today =3D new Date(),
TY =3D today.getFullYear(),
TM =3D today.getMonth(),
TD =3D today.getDate();
this.table.style.visibility =3D "hidden";
var year =3D date.getFullYear();
if (year < this.minYear) {
year =3D this.minYear;
date.setFullYear(year);
} else if (year > this.maxYear) {
year =3D this.maxYear;
date.setFullYear(year);
}
this.firstDayOfWeek =3D firstDayOfWeek;
this.date =3D new Date(date);
var month =3D date.getMonth();
var mday =3D date.getDate();
var no_days =3D date.getMonthDays();
// calendar voodoo for computing the first day that would actually be
// displayed in the calendar, even if it's from the previous month.
// WARNING: this is magic. ;-)
date.setDate(1);
var day1 =3D (date.getDay() - this.firstDayOfWeek) % 7;
if (day1 < 0)
day1 +=3D 7;
date.setDate(-day1);
date.setDate(date.getDate() + 1);
var row =3D this.tbody.firstChild;
var MN =3D Calendar._SMN[month];
var ar_days =3D this.ar_days =3D new Array();
var weekend =3D Calendar._TT["WEEKEND"];
var dates =3D this.multiple ? (this.datesCells =3D {}) : null;
for (var i =3D 0; i < 6; ++i, row =3D row.nextSibling) {
var cell =3D row.firstChild;
if (this.weekNumbers) {
cell.className =3D "day wn";
cell.innerHTML =3D date.getWeekNumber();
cell =3D cell.nextSibling;
}
row.className =3D "daysrow";
var hasdays =3D false, iday, dpos =3D ar_days[i] =3D [];
for (var j =3D 0; j < 7; ++j, cell =3D cell.nextSibling, =
date.setDate(iday + 1)) {
iday =3D date.getDate();
var wday =3D date.getDay();
cell.className =3D "day";
cell.pos =3D i << 4 | j;
dpos[j] =3D cell;
var current_month =3D (date.getMonth() =3D=3D month);
if (!current_month) {
if (this.showsOtherMonths) {
cell.className +=3D " othermonth";
cell.otherMonth =3D true;
} else {
cell.className =3D "emptycell";
cell.innerHTML =3D " ";
cell.disabled =3D true;
continue;
}
} else {
cell.otherMonth =3D false;
hasdays =3D true;
}
cell.disabled =3D false;
cell.innerHTML =3D this.getDateText ? this.getDateText(date, iday) : =
iday;
if (dates)
dates[date.print("%Y%m%d")] =3D cell;
if (this.getDateStatus) {
var status =3D this.getDateStatus(date, year, month, iday);
if (this.getDateToolTip) {
var toolTip =3D this.getDateToolTip(date, year, month, iday);
if (toolTip)
cell.title =3D toolTip;
}
if (status =3D=3D=3D true) {
cell.className +=3D " disabled";
cell.disabled =3D true;
} else {
if (/disabled/i.test(status))
cell.disabled =3D true;
cell.className +=3D " " + status;
}
}
if (!cell.disabled) {
cell.caldate =3D new Date(date);
cell.ttip =3D "_";
if (!this.multiple && current_month
&& iday =3D=3D mday && this.hiliteToday) {
cell.className +=3D " selected";
this.currentDateEl =3D cell;
}
if (date.getFullYear() =3D=3D TY &&
date.getMonth() =3D=3D TM &&
iday =3D=3D TD) {
cell.className +=3D " today";
cell.ttip +=3D Calendar._TT["PART_TODAY"];
}
if (weekend.indexOf(wday.toString()) !=3D -1)
cell.className +=3D cell.otherMonth ? " oweekend" : " weekend";
}
}
if (!(hasdays || this.showsOtherMonths))
row.className =3D "emptyrow";
}
this.title.innerHTML =3D Calendar._MN[month] + ", " + year;
this.onSetTime();
this.table.style.visibility =3D "visible";
this._initMultipleDates();
// PROFILE
// this.tooltips.innerHTML =3D "Generated in " + ((new Date()) - today) =
+ " ms";
};
Calendar.prototype._initMultipleDates =3D function() {
if (this.multiple) {
for (var i in this.multiple) {
var cell =3D this.datesCells[i];
var d =3D this.multiple[i];
if (!d)
continue;
if (cell)
cell.className +=3D " selected";
}
}
};
Calendar.prototype._toggleMultipleDate =3D function(date) {
if (this.multiple) {
var ds =3D date.print("%Y%m%d");
var cell =3D this.datesCells[ds];
if (cell) {
var d =3D this.multiple[ds];
if (!d) {
Calendar.addClass(cell, "selected");
this.multiple[ds] =3D date;
} else {
Calendar.removeClass(cell, "selected");
delete this.multiple[ds];
}
}
}
};
Calendar.prototype.setDateToolTipHandler =3D function (unaryFunction) {
this.getDateToolTip =3D unaryFunction;
};
/**
* Calls _init function above for going to a certain date (but only if =
the
* date is different than the currently selected one).
*/
Calendar.prototype.setDate =3D function (date) {
if (!date.equalsTo(this.date)) {
this._init(this.firstDayOfWeek, date);
}
};
/**
* Refreshes the calendar. Useful if the "disabledHandler" function is
* dynamic, meaning that the list of disabled date can change at =
runtime.
* Just * call this function if you think that the list of disabled =
dates
* should * change.
*/
Calendar.prototype.refresh =3D function () {
this._init(this.firstDayOfWeek, this.date);
};
/** Modifies the "firstDayOfWeek" parameter (pass 0 for Synday, 1 for =
Monday, etc.). */
Calendar.prototype.setFirstDayOfWeek =3D function (firstDayOfWeek) {
this._init(firstDayOfWeek, this.date);
this._displayWeekdays();
};
/**
* Allows customization of what dates are enabled. The "unaryFunction"
* parameter must be a function object that receives the date (as a JS =
Date
* object) and returns a boolean value. If the returned value is true =
then
* the passed date will be marked as disabled.
*/
Calendar.prototype.setDateStatusHandler =3D =
Calendar.prototype.setDisabledHandler =3D function (unaryFunction) {
this.getDateStatus =3D unaryFunction;
};
/** Customization of allowed year range for the calendar. */
Calendar.prototype.setRange =3D function (a, z) {
this.minYear =3D a;
this.maxYear =3D z;
};
/** Calls the first user handler (selectedHandler). */
Calendar.prototype.callHandler =3D function () {
if (this.onSelected) {
this.onSelected(this, this.date.print(this.dateFormat));
}
};
/** Calls the second user handler (closeHandler). */
Calendar.prototype.callCloseHandler =3D function () {
if (this.onClose) {
this.onClose(this);
}
this.hideShowCovered();
};
/** Removes the calendar object from the DOM tree and destroys it. */
Calendar.prototype.destroy =3D function () {
var el =3D this.element.parentNode;
el.removeChild(this.element);
Calendar._C =3D null;
window._dynarch_popupCalendar =3D null;
};
/**
* Moves the calendar element to a different section in the DOM tree =
(changes
* its parent).
*/
Calendar.prototype.reparent =3D function (new_parent) {
var el =3D this.element;
el.parentNode.removeChild(el);
new_parent.appendChild(el);
};
// This gets called when the user presses a mouse button anywhere in the
// document, if the calendar is shown. If the click was outside the =
open
// calendar this function closes it.
Calendar._checkCalendar =3D function(ev) {
var calendar =3D window._dynarch_popupCalendar;
if (!calendar) {
return false;
}
var el =3D Calendar.is_ie ? Calendar.getElement(ev) : =
Calendar.getTargetElement(ev);
for (; el !=3D null && el !=3D calendar.element; el =3D el.parentNode);
if (el =3D=3D null) {
// calls closeHandler which should hide the calendar.
window._dynarch_popupCalendar.callCloseHandler();
return Calendar.stopEvent(ev);
}
};
/** Shows the calendar. */
Calendar.prototype.show =3D function () {
var rows =3D this.table.getElementsByTagName("tr");
for (var i =3D rows.length; i > 0;) {
var row =3D rows[--i];
Calendar.removeClass(row, "rowhilite");
var cells =3D row.getElementsByTagName("td");
for (var j =3D cells.length; j > 0;) {
var cell =3D cells[--j];
Calendar.removeClass(cell, "hilite");
Calendar.removeClass(cell, "active");
}
}
this.element.style.display =3D "block";
this.hidden =3D false;
if (this.isPopup) {
window._dynarch_popupCalendar =3D this;
Calendar.addEvent(document, "keydown", Calendar._keyEvent);
Calendar.addEvent(document, "keypress", Calendar._keyEvent);
Calendar.addEvent(document, "mousedown", Calendar._checkCalendar);
}
this.hideShowCovered();
};
/**
* Hides the calendar. Also removes any "hilite" from the class of any =
TD
* element.
*/
Calendar.prototype.hide =3D function () {
if (this.isPopup) {
Calendar.removeEvent(document, "keydown", Calendar._keyEvent);
Calendar.removeEvent(document, "keypress", Calendar._keyEvent);
Calendar.removeEvent(document, "mousedown", Calendar._checkCalendar);
}
this.element.style.display =3D "none";
this.hidden =3D true;
this.hideShowCovered();
};
/**
* Shows the calendar at a given absolute position (beware that, =
depending on
* the calendar element style -- position property -- this might be =
relative
* to the parent's containing rectangle).
*/
Calendar.prototype.showAt =3D function (x, y) {
var s =3D this.element.style;
s.left =3D x + "px";
s.top =3D y + "px";
this.show();
};
/** Shows the calendar near a given element. */
Calendar.prototype.showAtElement =3D function (el, opts) {
var self =3D this;
var p =3D Calendar.getAbsolutePos(el);
if (!opts || typeof opts !=3D "string") {
this.showAt(p.x, p.y + el.offsetHeight);
return true;
}
function fixPosition(box) {
if (box.x < 0)
box.x =3D 0;
if (box.y < 0)
box.y =3D 0;
var cp =3D document.createElement("div");
var s =3D cp.style;
s.position =3D "absolute";
s.right =3D s.bottom =3D s.width =3D s.height =3D "0px";
document.body.appendChild(cp);
var br =3D Calendar.getAbsolutePos(cp);
document.body.removeChild(cp);
if (Calendar.is_ie) {
br.y +=3D document.body.scrollTop;
br.x +=3D document.body.scrollLeft;
} else {
br.y +=3D window.scrollY;
br.x +=3D window.scrollX;
}
var tmp =3D box.x + box.width - br.x;
if (tmp > 0) box.x -=3D tmp;
tmp =3D box.y + box.height - br.y;
if (tmp > 0) box.y -=3D tmp;
};
this.element.style.display =3D "block";
Calendar.continuation_for_the_fucking_khtml_browser =3D function() {
var w =3D self.element.offsetWidth;
var h =3D self.element.offsetHeight;
self.element.style.display =3D "none";
var valign =3D opts.substr(0, 1);
var halign =3D "l";
if (opts.length > 1) {
halign =3D opts.substr(1, 1);
}
// vertical alignment
switch (valign) {
case "T": p.y -=3D h; break;
case "B": p.y +=3D el.offsetHeight; break;
case "C": p.y +=3D (el.offsetHeight - h) / 2; break;
case "t": p.y +=3D el.offsetHeight - h; break;
case "b": break; // already there
}
// horizontal alignment
switch (halign) {
case "L": p.x -=3D w; break;
case "R": p.x +=3D el.offsetWidth; break;
case "C": p.x +=3D (el.offsetWidth - w) / 2; break;
case "l": p.x +=3D el.offsetWidth - w; break;
case "r": break; // already there
}
p.width =3D w;
p.height =3D h + 40;
self.monthsCombo.style.display =3D "none";
fixPosition(p);
self.showAt(p.x, p.y);
};
if (Calendar.is_khtml)
setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()", =
10);
else
Calendar.continuation_for_the_fucking_khtml_browser();
};
/** Customizes the date format. */
Calendar.prototype.setDateFormat =3D function (str) {
this.dateFormat =3D str;
};
/** Customizes the tooltip date format. */
Calendar.prototype.setTtDateFormat =3D function (str) {
this.ttDateFormat =3D str;
};
/**
* Tries to identify the date represented in a string. If successful =
it also
* calls this.setDate which moves the calendar to the given date.
*/
Calendar.prototype.parseDate =3D function(str, fmt) {
if (!fmt)
fmt =3D this.dateFormat;
this.setDate(Date.parseDate(str, fmt));
};
Calendar.prototype.hideShowCovered =3D function () {
if (!Calendar.is_ie && !Calendar.is_opera)
return;
function getVisib(obj){
var value =3D obj.style.visibility;
if (!value) {
if (document.defaultView && typeof =
(document.defaultView.getComputedStyle) =3D=3D "function") { // Gecko, =
W3C
if (!Calendar.is_khtml)
value =3D document.defaultView.
getComputedStyle(obj, "").getPropertyValue("visibility");
else
value =3D '';
} else if (obj.currentStyle) { // IE
value =3D obj.currentStyle.visibility;
} else
value =3D '';
}
return value;
};
var tags =3D new Array("applet", "iframe", "select");
var el =3D this.element;
var p =3D Calendar.getAbsolutePos(el);
var EX1 =3D p.x;
var EX2 =3D el.offsetWidth + EX1;
var EY1 =3D p.y;
var EY2 =3D el.offsetHeight + EY1;
for (var k =3D tags.length; k > 0; ) {
var ar =3D document.getElementsByTagName(tags[--k]);
var cc =3D null;
for (var i =3D ar.length; i > 0;) {
cc =3D ar[--i];
p =3D Calendar.getAbsolutePos(cc);
var CX1 =3D p.x;
var CX2 =3D cc.offsetWidth + CX1;
var CY1 =3D p.y;
var CY2 =3D cc.offsetHeight + CY1;
if (this.hidden || (CX1 > EX2) || (CX2 < EX1) || (CY1 > EY2) || (CY2 =
< EY1)) {
if (!cc.__msh_save_visibility) {
cc.__msh_save_visibility =3D getVisib(cc);
}
cc.style.visibility =3D cc.__msh_save_visibility;
} else {
if (!cc.__msh_save_visibility) {
cc.__msh_save_visibility =3D getVisib(cc);
}
cc.style.visibility =3D "hidden";
}
}
}
};
/** Internal function; it displays the bar with the names of the =
weekday. */
Calendar.prototype._displayWeekdays =3D function () {
var fdow =3D this.firstDayOfWeek;
var cell =3D this.firstdayname;
var weekend =3D Calendar._TT["WEEKEND"];
for (var i =3D 0; i < 7; ++i) {
cell.className =3D "day name";
var realday =3D (i + fdow) % 7;
if (i) {
cell.ttip =3D Calendar._TT["DAY_FIRST"].replace("%s", =
Calendar._DN[realday]);
cell.navtype =3D 100;
cell.calendar =3D this;
cell.fdow =3D realday;
Calendar._add_evs(cell);
}
if (weekend.indexOf(realday.toString()) !=3D -1) {
Calendar.addClass(cell, "weekend");
}
cell.innerHTML =3D Calendar._SDN[(i + fdow) % 7];
cell =3D cell.nextSibling;
}
};
/** Internal function. Hides all combo boxes that might be displayed. =
*/
Calendar.prototype._hideCombos =3D function () {
this.monthsCombo.style.display =3D "none";
this.yearsCombo.style.display =3D "none";
};
/** Internal function. Starts dragging the element. */
Calendar.prototype._dragStart =3D function (ev) {
if (this.dragging) {
return;
}
this.dragging =3D true;
var posX;
var posY;
if (Calendar.is_ie) {
posY =3D window.event.clientY + document.body.scrollTop;
posX =3D window.event.clientX + document.body.scrollLeft;
} else {
posY =3D ev.clientY + window.scrollY;
posX =3D ev.clientX + window.scrollX;
}
var st =3D this.element.style;
this.xOffs =3D posX - parseInt(st.left);
this.yOffs =3D posY - parseInt(st.top);
with (Calendar) {
addEvent(document, "mousemove", calDragIt);
addEvent(document, "mouseup", calDragEnd);
}
};
// BEGIN: DATE OBJECT PATCHES
/** Adds the number of days array to the Date object. */
Date._MD =3D new Array(31,28,31,30,31,30,31,31,30,31,30,31);
/** Constants used for time computations */
Date.SECOND =3D 1000 /* milliseconds */;
Date.MINUTE =3D 60 * Date.SECOND;
Date.HOUR =3D 60 * Date.MINUTE;
Date.DAY =3D 24 * Date.HOUR;
Date.WEEK =3D 7 * Date.DAY;
Date.parseDate =3D function(str, fmt) {
var today =3D new Date();
var y =3D 0;
var m =3D -1;
var d =3D 0;
var a =3D str.split(/\W+/);
var b =3D fmt.match(/%./g);
var i =3D 0, j =3D 0;
var hr =3D 0;
var min =3D 0;
for (i =3D 0; i < a.length; ++i) {
if (!a[i])
continue;
switch (b[i]) {
case "%d":
case "%e":
d =3D parseInt(a[i], 10);
break;
case "%m":
m =3D parseInt(a[i], 10) - 1;
break;
case "%Y":
case "%y":
y =3D parseInt(a[i], 10);
(y < 100) && (y +=3D (y > 29) ? 1900 : 2000);
break;
case "%b":
case "%B":
for (j =3D 0; j < 12; ++j) {
if (Calendar._MN[j].substr(0, a[i].length).toLowerCase() =3D=3D =
a[i].toLowerCase()) { m =3D j; break; }
}
break;
case "%H":
case "%I":
case "%k":
case "%l":
hr =3D parseInt(a[i], 10);
break;
case "%P":
case "%p":
if (/pm/i.test(a[i]) && hr < 12)
hr +=3D 12;
else if (/am/i.test(a[i]) && hr >=3D 12)
hr -=3D 12;
break;
case "%M":
min =3D parseInt(a[i], 10);
break;
}
}
if (isNaN(y)) y =3D today.getFullYear();
if (isNaN(m)) m =3D today.getMonth();
if (isNaN(d)) d =3D today.getDate();
if (isNaN(hr)) hr =3D today.getHours();
if (isNaN(min)) min =3D today.getMinutes();
if (y !=3D 0 && m !=3D -1 && d !=3D 0)
return new Date(y, m, d, hr, min, 0);
y =3D 0; m =3D -1; d =3D 0;
for (i =3D 0; i < a.length; ++i) {
if (a[i].search(/[a-zA-Z]+/) !=3D -1) {
var t =3D -1;
for (j =3D 0; j < 12; ++j) {
if (Calendar._MN[j].substr(0, a[i].length).toLowerCase() =3D=3D =
a[i].toLowerCase()) { t =3D j; break; }
}
if (t !=3D -1) {
if (m !=3D -1) {
d =3D m+1;
}
m =3D t;
}
} else if (parseInt(a[i], 10) <=3D 12 && m =3D=3D -1) {
m =3D a[i]-1;
} else if (parseInt(a[i], 10) > 31 && y =3D=3D 0) {
y =3D parseInt(a[i], 10);
(y < 100) && (y +=3D (y > 29) ? 1900 : 2000);
} else if (d =3D=3D 0) {
d =3D a[i];
}
}
if (y =3D=3D 0)
y =3D today.getFullYear();
if (m !=3D -1 && d !=3D 0)
return new Date(y, m, d, hr, min, 0);
return today;
};
/** Returns the number of days in the current month */
Date.prototype.getMonthDays =3D function(month) {
var year =3D this.getFullYear();
if (typeof month =3D=3D "undefined") {
month =3D this.getMonth();
}
if (((0 =3D=3D (year%4)) && ( (0 !=3D (year%100)) || (0 =3D=3D =
(year%400)))) && month =3D=3D 1) {
return 29;
} else {
return Date._MD[month];
}
};
/** Returns the number of day in the year. */
Date.prototype.getDayOfYear =3D function() {
var now =3D new Date(this.getFullYear(), this.getMonth(), =
this.getDate(), 0, 0, 0);
var then =3D new Date(this.getFullYear(), 0, 0, 0, 0, 0);
var time =3D now - then;
return Math.floor(time / Date.DAY);
};
/** Returns the number of the week in year, as defined in ISO 8601. */
Date.prototype.getWeekNumber =3D function() {
var d =3D new Date(this.getFullYear(), this.getMonth(), this.getDate(), =
0, 0, 0);
var DoW =3D d.getDay();
d.setDate(d.getDate() - (DoW + 6) % 7 + 3); // Nearest Thu
var ms =3D d.valueOf(); // GMT
d.setMonth(0);
d.setDate(4); // Thu in Week 1
return Math.round((ms - d.valueOf()) / (7 * 864e5)) + 1;
};
/** Checks date and time equality */
Date.prototype.equalsTo =3D function(date) {
return ((this.getFullYear() =3D=3D date.getFullYear()) &&
(this.getMonth() =3D=3D date.getMonth()) &&
(this.getDate() =3D=3D date.getDate()) &&
(this.getHours() =3D=3D date.getHours()) &&
(this.getMinutes() =3D=3D date.getMinutes()));
};
/** Set only the year, month, date parts (keep existing time) */
Date.prototype.setDateOnly =3D function(date) {
var tmp =3D new Date(date);
this.setDate(1);
this.setFullYear(tmp.getFullYear());
this.setMonth(tmp.getMonth());
this.setDate(tmp.getDate());
};
/** Prints the date in a string according to the given format. */
Date.prototype.print =3D function (str) {
var m =3D this.getMonth();
var d =3D this.getDate();
var y =3D this.getFullYear();
var wn =3D this.getWeekNumber();
var w =3D this.getDay();
var s =3D {};
var hr =3D this.getHours();
var pm =3D (hr >=3D 12);
var ir =3D (pm) ? (hr - 12) : hr;
var dy =3D this.getDayOfYear();
if (ir =3D=3D 0)
ir =3D 12;
var min =3D this.getMinutes();
var sec =3D this.getSeconds();
s["%a"] =3D Calendar._SDN[w]; // abbreviated weekday name [FIXME: I18N]
s["%A"] =3D Calendar._DN[w]; // full weekday name
s["%b"] =3D Calendar._SMN[m]; // abbreviated month name [FIXME: I18N]
s["%B"] =3D Calendar._MN[m]; // full month name
// FIXME: %c : preferred date and time representation for the current =
locale
s["%C"] =3D 1 + Math.floor(y / 100); // the century number
s["%d"] =3D (d < 10) ? ("0" + d) : d; // the day of the month (range 01 =
to 31)
s["%e"] =3D d; // the day of the month (range 1 to 31)
// FIXME: %D : american date style: %m/%d/%y
// FIXME: %E, %F, %G, %g, %h (man strftime)
s["%H"] =3D (hr < 10) ? ("0" + hr) : hr; // hour, range 00 to 23 (24h =
format)
s["%I"] =3D (ir < 10) ? ("0" + ir) : ir; // hour, range 01 to 12 (12h =
format)
s["%j"] =3D (dy < 100) ? ((dy < 10) ? ("00" + dy) : ("0" + dy)) : dy; =
// day of the year (range 001 to 366)
s["%k"] =3D hr; // hour, range 0 to 23 (24h format)
s["%l"] =3D ir; // hour, range 1 to 12 (12h format)
s["%m"] =3D (m < 9) ? ("0" + (1+m)) : (1+m); // month, range 01 to 12
s["%M"] =3D (min < 10) ? ("0" + min) : min; // minute, range 00 to 59
s["%n"] =3D "\n"; // a newline character
s["%p"] =3D pm ? "PM" : "AM";
s["%P"] =3D pm ? "pm" : "am";
// FIXME: %r : the time in am/pm notation %I:%M:%S %p
// FIXME: %R : the time in 24-hour notation %H:%M
s["%s"] =3D Math.floor(this.getTime() / 1000);
s["%S"] =3D (sec < 10) ? ("0" + sec) : sec; // seconds, range 00 to 59
s["%t"] =3D "\t"; // a tab character
// FIXME: %T : the time in 24-hour notation (%H:%M:%S)
s["%U"] =3D s["%W"] =3D s["%V"] =3D (wn < 10) ? ("0" + wn) : wn;
s["%u"] =3D w + 1; // the day of the week (range 1 to 7, 1 =3D MON)
s["%w"] =3D w; // the day of the week (range 0 to 6, 0 =3D SUN)
// FIXME: %x : preferred date representation for the current locale =
without the time
// FIXME: %X : preferred time representation for the current locale =
without the date
s["%y"] =3D ('' + y).substr(2, 2); // year without the century (range =
00 to 99)
s["%Y"] =3D y; // year with the century
s["%%"] =3D "%"; // a literal '%' character
var re =3D /%./g;
if (!Calendar.is_ie5 && !Calendar.is_khtml)
return str.replace(re, function (par) { return s[par] || par; });
var a =3D str.match(re);
for (var i =3D 0; i < a.length; i++) {
var tmp =3D s[a[i]];
if (tmp) {
re =3D new RegExp(a[i], 'g');
str =3D str.replace(re, tmp);
}
}
return str;
};
Date.prototype.__msh_oldSetFullYear =3D Date.prototype.setFullYear;
Date.prototype.setFullYear =3D function(y) {
var d =3D new Date(this);
d.__msh_oldSetFullYear(y);
if (d.getMonth() !=3D this.getMonth())
this.setDate(28);
this.__msh_oldSetFullYear(y);
};
// END: DATE OBJECT PATCHES
// global object that remembers the calendar
window._dynarch_popupCalendar =3D null;
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/calendar-tr.js
/////////////////////////////////////////////////////////////////////////=
/////////////////////
// Turkish Translation by Nuri AKMAN
// Location: Ankara/TURKEY
// e-mail : nuriakman@hotmail.com
// Date : April, 9 2003
//
// Note: if Turkish Characters does not shown on you screen
// please include falowing line your html code:
//
//
//
/////////////////////////////////////////////////////////////////////////=
/////////////////////
// ** I18N
/**/
Calendar._DN =3D new Array
("Pazar",
"Pazartesi",
"Sal=C4=B1",
"=C3=87ar=C5=9Famba",
"Per=C5=9Fembe",
"Cuma",
"Cumartesi",
"Pazar");
Calendar._SDN =3D new Array
("Paz",
"Pzt",
"Sal=C4=B1",
"=C3=87r=C5=9F",
"Pr=C5=9F",
"Cum",
"Cmt",
"Paz");
Calendar._MN =3D new Array
("Ocak",
"=C5=9Eubat",
"Mart",
"Nisan",
"May=C4=B1s",
"Haziran",
"Temmuz",
"A=C4=9Fustos",
"Eyl=C3=BCl",
"Ekim",
"Kas=C4=B1m",
"Aral=C4=B1k");
Calendar._SMN =3D new Array
("Ock",
"=C5=9Ebt",
"Mrt",
"Nsn",
"Mys",
"Hzr",
"Tmz",
"A=C4=9Fs",
"Eyl",
"Ekm",
"Ksm",
"Arl");
/*
Calendar._DN =3D new Array
("07",
"01",
"02",
"03",
"04",
"05",
"06",
"07");
Calendar._SDN =3D new Array
("07",
"01",
"02",
"03",
"04",
"05",
"06",
"07");
Calendar._MN =3D new Array
("1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12");
Calendar._SMN =3D new Array
("01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12");
*/
Calendar._FD =3D 1;
// tooltips
Calendar._TT =3D {};
Calendar._TT["INFO"] =3D "Takvim hakk=C4=B1nda";
Calendar._TT["ABOUT"] =3D
"DHTML Date/Time Selector\n" +
"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate =
this this ;-)
"Son versiyon i=C3=A7in : http://www.dynarch.com/projects/calendar/\n" +
"GNU LGPL alt=C4=B1nda da=C4=9F=C4=B1t=C4=B1lmaktad=C4=B1r. Detaylar =
i=C3=A7in http://gnu.org/licenses/lgpl.html adresini ziyaret ediniz." +
"\n\n" +
"Tarih Se=C3=A7imi:\n" +
"- Y=C4=B1l=C4=B1 se=C3=A7ebilmek i=C3=A7in \xab, \xbb =
d=C3=BC=C4=9Fmelerini kullan=C4=B1n\n" +
"- Ay=C4=B1 se=C3=A7ebilmek i=C3=A7in " + String.fromCharCode(0x2039) + =
", " + String.fromCharCode(0x203a) + " d=C3=BC=C4=9Fmelerini =
kullan=C4=B1n\n" +
"- Daha h=C4=B1zl=C4=B1 bir se=C3=A7im i=C3=A7in yukar=C4=B1daki =
d=C3=BC=C4=9Fmelerden herhangi birini bas=C4=B1l=C4=B1 tutun.";
Calendar._TT["ABOUT_TIME"] =3D "\n\n" +
"Zaman Se=C3=A7imi:\n" +
"- Zaman elemanlar=C4=B1ndan birini art=C4=B1rabilmek i=C3=A7in =
=C3=BCzerine t=C4=B1klay=C4=B1n=C4=B1z\n" +
"- veya Shift-azaltmak i=C3=A7in t=C4=B1klay=C4=B1n=C4=B1z\n" +
"- veya daha h=C4=B1zla se=C3=A7im i=C3=A7in t=C4=B1klay=C4=B1n and =
=C3=A7ekin.";
Calendar._TT["TOGGLE"] =3D "Haftan=C4=B1n ilk g=C3=BCn=C3=BCn=C3=BC =
kayd=C4=B1r";
Calendar._TT["PREV_YEAR"] =3D "=C3=96nceki Y=C4=B1l (Men=C3=BC i=C3=A7in =
bas=C4=B1l=C4=B1 tutunuz)";
Calendar._TT["PREV_MONTH"] =3D "=C3=96nceki Ay (Men=C3=BC i=C3=A7in =
bas=C4=B1l=C4=B1 tutunuz)";
Calendar._TT["GO_TODAY"] =3D "Bug=C3=BCn'e git";
Calendar._TT["NEXT_MONTH"] =3D "Sonraki Ay (Men=C3=BC i=C3=A7in =
bas=C4=B1l=C4=B1 tutunuz)";
Calendar._TT["NEXT_YEAR"] =3D "Sonraki Y=C4=B1l (Men=C3=BC i=C3=A7in =
bas=C4=B1l=C4=B1 tutunuz)";
Calendar._TT["SEL_DATE"] =3D "Tarih se=C3=A7iniz";
Calendar._TT["DRAG_TO_MOVE"] =3D "Ta=C5=9F=C4=B1mak i=C3=A7in =
s=C3=BCr=C3=BCkleyiniz";
Calendar._TT["PART_TODAY"] =3D " (bug=C3=BCn)";
Calendar._TT["MON_FIRST"] =3D "Takvim Pazartesi g=C3=BCn=C3=BCnden =
ba=C5=9Flas=C4=B1n";
Calendar._TT["SUN_FIRST"] =3D "Takvim Pazar g=C3=BCn=C3=BCnden =
ba=C5=9Flas=C4=B1n";
Calendar._TT["CLOSE"] =3D "Kapat";
Calendar._TT["TODAY"] =3D "Bug=C3=BCn";
// date formats
Calendar._TT["DEF_DATE_FORMAT"] =3D "dd.mm.y";
Calendar._TT["TT_DATE_FORMAT"] =3D "%a, %B %e";
Calendar._TT["WK"] =3D "Hafta";
Calendar._TT["WEEKEND"] =3D "0,6";
Calendar._TT["DAY_FIRST"] =3D "1"
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/calendar-setup.js
/* Copyright Mihai Bazon, 2002, 2003 | http://dynarch.com/mishoo/
* =
-------------------------------------------------------------------------=
--
*
* The DHTML Calendar
*
* Details and latest version at:
* http://dynarch.com/mishoo/calendar.epl
*
* This script is distributed under the GNU Lesser General Public =
License.
* Read the entire license text here: =
http://www.gnu.org/licenses/lgpl.html
*
* This file defines helper functions for setting up the calendar. They =
are
* intended to help non-programmers get a working calendar on their site
* quickly. This script should not be seen as part of the calendar. It =
just
* shows you what one can do with the calendar, while in the same time
* providing a quick and simple method for setting it up. If you need
* exhaustive customization of the calendar creation process feel free =
to
* modify this code to suit your needs (this is recommended and much =
better
* than modifying calendar.js itself).
*/
// $Id: calendar-setup.js,v 1.1 2009/07/31 12:55:10 feride Exp $
/**
* This function "patches" an input field (or other element) to use a =
calendar
* widget for date selection.
*
* The "params" is a single object that can have the following =
properties:
*
* prop. name | description
* =
-------------------------------------------------------------------------=
------------------------
* inputField | the ID of an input field to store the date
* displayArea | the ID of a DIV or other element to show the date
* button | ID of a button or other element that will trigger =
the calendar
* eventName | event that will trigger the calendar, without the =
"on" prefix (default: "click")
* ifFormat | date format that will be stored in the input field
* daFormat | the date format that will be used to display the =
date in displayArea
* singleClick | (true/false) wether the calendar is in single click =
mode or not (default: true)
* firstDay | numeric: 0 to 6. "0" means display Sunday first, =
"1" means display Monday first, etc.
* align | alignment (default: "Br"); if you don't know what's =
this see the calendar documentation
* range | array with 2 elements. Default: [1900, 2999] -- =
the range of years available
* weekNumbers | (true/false) if it's true (default) the calendar =
will display week numbers
* flat | null or element ID; if not null the calendar will =
be a flat calendar having the parent with the given ID
* flatCallback | function that receives a JS Date object and returns =
an URL to point the browser to (for flat calendar)
* disableFunc | function that receives a JS Date object and should =
return true if that date has to be disabled in the calendar
* onSelect | function that gets called when a date is selected. =
You don't _have_ to supply this (the default is generally okay)
* onClose | function that gets called when the calendar is =
closed. [default]
* onUpdate | function that gets called after the date is updated =
in the input field. Receives a reference to the calendar.
* date | the date that the calendar will be initially =
displayed to
* showsTime | default: false; if true the calendar will include a =
time selector
* timeFormat | the time format; can be "12" or "24", default is =
"12"
* electric | if true (default) then given fields/date areas are =
updated for each move; otherwise they're updated only on close
* step | configures the step of the years in drop-down =
boxes; default: 2
* position | configures the calendar absolute position; default: =
null
* cache | if "true" (but default: "false") it will reuse the =
same calendar object, where possible
* showOthers | if "true" (but default: "false") it will show days =
from other months too
*
* None of them is required, they all have default values. However, if =
you
* pass none of "inputField", "displayArea" or "button" you'll get a =
warning
* saying "nothing to setup".
*/
Calendar.setup =3D function (params) {
function param_default(pname, def) { if (typeof params[pname] =3D=3D =
"undefined") { params[pname] =3D def; } };
param_default("inputField", null);
param_default("displayArea", null);
param_default("button", null);
param_default("eventName", "click");
param_default("ifFormat", "%Y/%m/%d");
param_default("daFormat", "%Y/%m/%d");
param_default("singleClick", true);
param_default("disableFunc", null);
param_default("dateStatusFunc", params["disableFunc"]); // takes =
precedence if both are defined
param_default("dateText", null);
param_default("firstDay", null);
param_default("align", "Br");
param_default("range", [1900, 2999]);
param_default("weekNumbers", true);
param_default("flat", null);
param_default("flatCallback", null);
param_default("onSelect", null);
param_default("onClose", null);
param_default("onUpdate", null);
param_default("date", null);
param_default("showsTime", false);
param_default("timeFormat", "24");
param_default("electric", true);
param_default("step", 2);
param_default("position", null);
param_default("cache", false);
param_default("showOthers", false);
param_default("multiple", null);
var tmp =3D ["inputField", "displayArea", "button"];
for (var i in tmp) {
if (typeof params[tmp[i]] =3D=3D "string") {
params[tmp[i]] =3D document.getElementById(params[tmp[i]]);
}
}
if (!(params.flat || params.multiple || params.inputField || =
params.displayArea || params.button)) {
alert("Calendar.setup:\n Nothing to setup (no fields found). Please =
check your code");
return false;
}
function onSelect(cal) {
var p =3D cal.params;
var update =3D (cal.dateClicked || p.electric);
if (update && p.inputField) {
p.inputField.value =3D cal.date.print(p.ifFormat);
if (typeof p.inputField.onchange =3D=3D "function")
p.inputField.onchange();
}
if (update && p.displayArea)
p.displayArea.innerHTML =3D cal.date.print(p.daFormat);
if (update && typeof p.onUpdate =3D=3D "function")
p.onUpdate(cal);
if (update && p.flat) {
if (typeof p.flatCallback =3D=3D "function")
p.flatCallback(cal);
}
if (update && p.singleClick && cal.dateClicked)
cal.callCloseHandler();
};
if (params.flat !=3D null) {
if (typeof params.flat =3D=3D "string")
params.flat =3D document.getElementById(params.flat);
if (!params.flat) {
alert("Calendar.setup:\n Flat specified but can't find parent.");
return false;
}
var cal =3D new Calendar(params.firstDay, params.date, params.onSelect =
|| onSelect);
cal.showsOtherMonths =3D params.showOthers;
cal.showsTime =3D params.showsTime;
cal.time24 =3D (params.timeFormat =3D=3D "24");
cal.params =3D params;
cal.weekNumbers =3D params.weekNumbers;
cal.setRange(params.range[0], params.range[1]);
cal.setDateStatusHandler(params.dateStatusFunc);
cal.getDateText =3D params.dateText;
if (params.ifFormat) {
cal.setDateFormat(params.ifFormat);
}
if (params.inputField && typeof params.inputField.value =3D=3D =
"string") {
cal.parseDate(params.inputField.value);
}
cal.create(params.flat);
cal.show();
return false;
}
var triggerEl =3D params.button || params.displayArea || =
params.inputField;
triggerEl["on" + params.eventName] =3D function() {
var dateEl =3D params.inputField || params.displayArea;
var dateFmt =3D params.inputField ? params.ifFormat : params.daFormat;
var mustCreate =3D false;
var cal =3D window.calendar;
if (dateEl)
params.date =3D Date.parseDate(dateEl.value || dateEl.innerHTML, =
dateFmt);
if (!(cal && params.cache)) {
window.calendar =3D cal =3D new Calendar(params.firstDay,
params.date,
params.onSelect || onSelect,
params.onClose || function(cal) { cal.hide(); });
cal.showsTime =3D params.showsTime;
cal.time24 =3D (params.timeFormat =3D=3D "24");
cal.weekNumbers =3D params.weekNumbers;
mustCreate =3D true;
} else {
if (params.date)
cal.setDate(params.date);
cal.hide();
}
if (params.multiple) {
cal.multiple =3D {};
for (var i =3D params.multiple.length; --i >=3D 0;) {
var d =3D params.multiple[i];
var ds =3D d.print("%Y%m%d");
cal.multiple[ds] =3D d;
}
}
cal.showsOtherMonths =3D params.showOthers;
cal.yearStep =3D params.step;
cal.setRange(params.range[0], params.range[1]);
cal.params =3D params;
cal.setDateStatusHandler(params.dateStatusFunc);
cal.getDateText =3D params.dateText;
cal.setDateFormat(dateFmt);
if (mustCreate)
cal.create();
cal.refresh();
if (!params.position)
cal.showAtElement(params.button || params.displayArea || =
params.inputField, params.align);
else
cal.showAt(params.position[0], params.position[1]);
return false;
};
return cal;
};
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/jquery/js-beta/jcarousellite_1.0.1.min.js
(function($){$.fn.jCarouselLite=3Dfunction(o){o=3D$.extend({btnPrev:null,=
btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,=
vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,=
afterEnd:null},o||{});return this.each(function(){var =
b=3Dfalse,animCss=3Do.vertical?"top":"left",sizeCss=3Do.vertical?"height"=
:"width";var =
c=3D$(this),ul=3D$("ul",c),tLi=3D$("li",ul),tl=3DtLi.size(),v=3Do.visible=
;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(=
0,v).clone());o.start+=3Dv}var =
f=3D$("li",ul),itemLength=3Df.size(),curr=3Do.start;c.css("visibility","v=
isible");f.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css=
({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-=
index":"1"});c.css({overflow:"hidden",position:"relative","z-index":"2",l=
eft:"0px"});var g=3Do.vertical?height(f):width(f);var =
h=3Dg*itemLength;var =
j=3Dg*v;f.css({width:f.width(),height:f.height()});ul.css(sizeCss,h+"px")=
.css(animCss,-(curr*g));c.css(sizeCss,j+"px");if(o.btnPrev)$(o.btnPrev).c=
lick(function(){return =
go(curr-o.scroll)});if(o.btnNext)$(o.btnNext).click(function(){return =
go(curr+o.scroll)});if(o.btnGo)$.each(o.btnGo,function(i,a){$(a).mouseove=
r(function(){return =
go(o.circular?o.visible+i:i)})});if(o.mouseWheel&&c.mousewheel)c.mousewhe=
el(function(e,d){return =
d>0?go(curr-o.scroll):go(curr+o.scroll)});if(o.auto)setInterval(function(=
){go(curr+o.scroll)},o.auto+o.speed);function vis(){return =
f.slice(curr).slice(0,v)};function =
go(a){if(!b){if(o.beforeStart)o.beforeStart.call(this,vis());if(o.circula=
r){if(a<=3Do.start-v-1){ul.css(animCss,-((itemLength-(v*2))*g)+"px");curr=
=3Da=3D=3Do.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else =
if(a>=3DitemLength-v+1){ul.css(animCss,-((v)*g)+"px");curr=3Da=3D=3DitemL=
ength-v+1?v+1:v+o.scroll}else =
curr=3Da}else{if(a<0||a>itemLength-v)return;else =
curr=3Da}b=3Dtrue;ul.animate(animCss=3D=3D"left"?{left:-(curr*g)}:{top:-(=
curr*g)},o.speed,o.easing,function(){if(o.afterEnd)o.afterEnd.call(this,v=
is());b=3Dfalse});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass(=
"disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&=
o.btnNext)||[]).addClass("disabled")}}return false}})};function =
css(a,b){return parseInt($.css(a[0],b))||0};function width(a){return =
a[0].offsetWidth+css(a,'marginLeft')+css(a,'marginRight')};function =
height(a){return =
a[0].offsetHeight+css(a,'marginTop')+css(a,'marginBottom')}})(jQuery);
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js
/* SWFObject v2.2 =0A=
is released under the MIT License =
=0A=
*/=0A=
var swfobject=3Dfunction(){var =
D=3D"undefined",r=3D"object",S=3D"Shockwave =
Flash",W=3D"ShockwaveFlash.ShockwaveFlash",q=3D"application/x-shockwave-f=
lash",R=3D"SWFObjectExprInst",x=3D"onreadystatechange",O=3Dwindow,j=3Ddoc=
ument,t=3Dnavigator,T=3Dfalse,U=3D[h],o=3D[],N=3D[],I=3D[],l,Q,E,B,J=3Dfa=
lse,a=3Dfalse,n,G,m=3Dtrue,M=3Dfunction(){var aa=3Dtypeof =
j.getElementById!=3DD&&typeof j.getElementsByTagName!=3DD&&typeof =
j.createElement!=3DD,ah=3Dt.userAgent.toLowerCase(),Y=3Dt.platform.toLowe=
rCase(),ae=3DY?/win/.test(Y):/win/.test(ah),ac=3DY?/mac/.test(Y):/mac/.te=
st(ah),af=3D/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d=
+)?).*$/,"$1")):false,X=3D!+"\v1",ag=3D[0,0,0],ab=3Dnull;if(typeof =
t.plugins!=3DD&&typeof =
t.plugins[S]=3D=3Dr){ab=3Dt.plugins[S].description;if(ab&&!(typeof =
t.mimeTypes!=3DD&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=3Dtru=
e;X=3Dfalse;ab=3Dab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=3DparseInt(a=
b.replace(/^(.*)\..*$/,"$1"),10);ag[1]=3DparseInt(ab.replace(/^.*\.(.*)\s=
.*$/,"$1"),10);ag[2]=3D/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-=
Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=3DD){try{var =
ad=3Dnew =
ActiveXObject(W);if(ad){ab=3Dad.GetVariable("$version");if(ab){X=3Dtrue;a=
b=3Dab.split(" =
")[1].split(",");ag=3D[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[=
2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=3D=
function(){if(!M.w3){return}if((typeof =
j.readyState!=3DD&&j.readyState=3D=3D"complete")||(typeof =
j.readyState=3D=3DD&&(j.getElementsByTagName("body")[0]||j.body))){f()}if=
(!J){if(typeof =
j.addEventListener!=3DD){j.addEventListener("DOMContentLoaded",f,false)}i=
f(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=3D=3D"complete"=
){j.detachEvent(x,arguments.callee);f()}});if(O=3D=3Dtop){(function(){if(=
J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(argu=
ments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/lo=
aded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}=
f()})()}s(f)}}();function f(){if(J){return}try{var =
Z=3Dj.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode=
.removeChild(Z)}catch(aa){return}J=3Dtrue;var X=3DU.length;for(var =
Y=3D0;Y0){for(var af=3D0;af0){var =
ae=3Dc(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(=
ab){aa.success=3Dtrue;aa.ref=3Dz(Y);ab(aa)}}else{if(o[af].expressInstall&=
&A()){var =
ai=3D{};ai.data=3Do[af].expressInstall;ai.width=3Dae.getAttribute("width"=
)||"0";ai.height=3Dae.getAttribute("height")||"0";if(ae.getAttribute("cla=
ss")){ai.styleclass=3Dae.getAttribute("class")}if(ae.getAttribute("align"=
)){ai.align=3Dae.getAttribute("align")}var ah=3D{};var =
X=3Dae.getElementsByTagName("param");var ac=3DX.length;for(var =
ad=3D0;ad'}}aa.outerHTML=3D'";return =
n}function d(m,p,l){var =
k=3Dflashembed.getVersion();f(this,{getContainer:function(){return =
m},getConf:function(){return p},getVersion:function(){return =
k},getFlashvars:function(){return l},getApi:function(){return =
m.firstChild},getHTML:function(){return a(p,l)}});var q=3Dp.version;var =
r=3Dp.expressInstall;var =
o=3D!q||flashembed.isSupported(q);if(o){p.onFail=3Dp.version=3Dp.expressI=
nstall=3Dnull;m.innerHTML=3Da(p,l)}else{if(q&&r&&flashembed.isSupported([=
6,65])){f(p,{src:r});l=3D{MMredirectURL:location.href,MMplayerType:"PlugI=
n",MMdoctitle:document.title};m.innerHTML=3Da(p,l)}else{if(m.innerHTML.re=
place(/\s/g,"")!=3D=3D""){}else{m.innerHTML=3D"
Flash version "+q+" =
or greater is required
"+(k[0]>0?"Your version is "+k:"You have =
no flash plugin installed")+"
");if(m.tagNa=
me=3D=3D"A"){m.onclick=3Dfunction(){location.href=3D"http://www.adobe.com=
/go/getflashplayer"}}}}}if(!o&&p.onFail){var =
n=3Dp.onFail.call(this);if(typeof =
n=3D=3D"string"){m.innerHTML=3Dn}}if(document.all){window[p.id]=3Ddocumen=
t.getElementById(p.id)}}window.flashembed=3Dfunction(l,m,k){if(typeof =
l=3D=3D"string"){var =
n=3Ddocument.getElementById(l);if(n){l=3Dn}else{c(function(){flashembed(l=
,m,k)});return}}if(!l){return}if(typeof m=3D=3D"string"){m=3D{src:m}}var =
o=3Df({},i);f(o,m);return new =
d(l,o,k)};f(window.flashembed,{getVersion:function(){var =
m=3D[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave =
Flash"]=3D=3D"object"){var l=3Dnavigator.plugins["Shockwave =
Flash"].description;if(typeof =
l!=3D"undefined"){l=3Dl.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var =
n=3DparseInt(l.replace(/^(.*)\..*$/,"$1"),10);var =
r=3D/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=3D[n,r]}}els=
e{if(window.ActiveXObject){try{var p=3Dnew =
ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=3Dnew =
ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=3D[6,0];p.AllowScriptA=
ccess=3D"always"}catch(k){if(m[0]=3D=3D6){return m}}try{p=3Dnew =
ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof =
p=3D=3D"object"){l=3Dp.GetVariable("$version");if(typeof =
l!=3D"undefined"){l=3Dl.replace(/^\S+\s+(.*)$/,"$1").split(",");m=3D[pars=
eInt(l[0],10),parseInt(l[2],10)]}}}}return =
m},isSupported:function(k){var m=3Dflashembed.getVersion();var =
l=3D(m[0]>k[0])||(m[0]=3D=3Dk[0]&&m[1]>=3Dk[1]);return =
l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=3Dfunctio=
n(l,k){var =
m=3Dnull;this.each(function(){m=3Dflashembed(this,l,k)});return =
l.api=3D=3D=3Dfalse?this:m}}})();
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/flow-player/flowplayer.ipad-3.2.2.min.js
/*=0A=
* ipad.js 3.2.2. The Flowplayer ipad/iphone fallback.=0A=
*=0A=
* Copyright 2010, 2011 Flowplayer Oy=0A=
* By Thomas Dubois =0A=
*=0A=
* This file is part of Flowplayer.=0A=
*=0A=
* Flowplayer is free software: you can redistribute it and/or modify=0A=
* it under the terms of the GNU General Public License as published by=0A=
* the Free Software Foundation, either version 3 of the License, or=0A=
* (at your option) any later version.=0A=
*=0A=
* Flowplayer is distributed in the hope that it will be useful,=0A=
* but WITHOUT ANY WARRANTY; without even the implied warranty of=0A=
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the=0A=
* GNU General Public License for more details.=0A=
*=0A=
* You should have received a copy of the GNU General Public License=0A=
* along with Flowplayer. If not, see .=0A=
*=0A=
* Date: 2011-01-10 07:50:57 -0500 (Mon, 10 Jan 2011)=0A=
* Revision: 4901=0A=
*/=0A=
$f.addPlugin("ipad",function(t){var L=3D-1;var u=3D0;var v=3D1;var =
J=3D2;var z=3D3;var F=3D4;var g=3D5;var f=3Dthis;var N=3D1;var =
M=3Dfalse;var C=3Dfalse;var q=3Dfalse;var o=3D0;var K=3D[];var =
c=3D{accelerated:false,autoBuffering:false,autoPlay:true,baseUrl:null,buf=
ferLength:3,connectionProvider:null,cuepointMultiplier:1000,cuepoints:[],=
controls:{},duration:0,extension:"",fadeInSpeed:1000,fadeOutSpeed:1000,im=
age:false,linkUrl:null,linkWindow:"_self",live:false,metaData:{},original=
Url:null,position:0,playlist:[],provider:"http",scaling:"scale",seekableO=
nBegin:false,start:0,url:null,urlResolvers:[]};var s=3DL;var m=3DL;var =
p=3D/iPad|iPhone|iPod/i.test(navigator.userAgent);var b=3Dnull;function =
j(R,Q,O){if(Q){for(key in Q){if(key){if(Q[key]&&typeof =
Q[key]=3D=3D"function"&&!O){continue}if(Q[key]&&typeof =
Q[key]=3D=3D"object"&&Q[key].length=3D=3Dundefined){var =
P=3D{};j(P,Q[key]);R[key]=3DP}else{R[key]=3DQ[key]}}}}return R}var =
w=3D{simulateiDevice:false,controlsSizeRatio:1.5,controls:true,debug:fals=
e,validExtensions:/mov|m4v|mp4|avi/gi};j(w,t);function =
e(){if(w.debug){if(p){var O=3D[].splice.call(arguments,0).join(", =
");console.log.apply(console,[O])}else{console.log.apply(console,argument=
s)}}}function i(O){switch(O){case -1:return"UNLOADED";case =
0:return"LOADED";case 1:return"UNSTARTED";case 2:return"BUFFERING";case =
3:return"PLAYING";case 4:return"PAUSED";case =
5:return"ENDED"}return"UNKOWN"}function D(O){var =
P=3D$f.fireEvent(f.id(),"onBefore"+O,o);return P!=3D=3Dfalse}function =
H(O){O.stopPropagation();O.preventDefault();return false}function =
G(P,O){if(s=3D=3DL&&!O){return}m=3Ds;s=3DP;y();if(P=3D=3Dz){l()}e(i(P))}f=
unction x(){b.fp_stop();M=3Dfalse;C=3Dfalse;q=3Dfalse;G(v);G(v)}var =
d=3Dnull;function l(){if(d){return}console.log("starting =
tracker");d=3DsetInterval(A,100);A()}function =
y(){clearInterval(d);d=3Dnull}function A(){var =
P=3DMath.floor(b.fp_getTime()*10)*100;var =
Q=3DMath.floor(b.duration*10)*100;var R=3D(new Date()).time;function =
O(U,S){U=3DU>=3D0?U:Q-Math.abs(U);for(var =
T=3D0;TR){S[T].lastTimeFired=3D-1}el=
se{if(S[T].lastTimeFired+500>R){continue}else{if(U=3D=3DP||(P-500U)=
){S[T].lastTimeFired=3DR;$f.fireEvent(f.id(),"onCuepoint",o,S[T].fnId,S[T=
].parameters)}}}}}$f.each(f.getCommonClip()._cuepoints,O);$f.each(K[o]._c=
uepoints,O)}function B(){x();q=3Dtrue;b.fp_seek(0)}function =
I(O){}function n(){function O(Q){var =
P=3D{};j(P,c);j(P,f.getCommonClip());j(P,Q);if(P.ipadUrl){url=3DdecodeURI=
Component(P.ipadUrl)}else{if(P.url){url=3DP.url}}if(url&&url.indexOf("://=
")=3D=3D-1&&P.baseUrl){url=3DP.baseUrl+"/"+url}P.originalUrl=3DP.url;P.co=
mpleteUrl=3Durl;P.extension=3DP.completeUrl.substr(P.completeUrl.lastInde=
xOf("."));P.type=3D"video";delete P.index;e("fixed clip",P);return =
P}b.fp_play=3Dfunction(S,Q,U){var P=3Dnull;var T=3Dtrue;var =
R=3Dtrue;e("Calling play() "+S,S);if(Q){e("ERROR: inStream clips not yet =
supported");return}if(S!=3D=3Dundefined){if(typeof =
S=3D=3D"number"){if(o>=3DK.length){return}o=3DS;S=3DK[o]}else{if(typeof =
S=3D=3D"string"){S=3D{url:S}}b.fp_setPlaylist(S.length!=3D=3Dundefined?S:=
[S])}if(!w.validExtensions.test(K[o].extension)){if(K.length>1&&o<(K.leng=
th-1)){e("Not last clip in the playlist, moving to next =
one");b.fp_play(++o,false,true)}return}S=3DK[o];P=3DS.completeUrl;if(S.au=
toBuffering!=3D=3Dundefined&&S.autoBuffering=3D=3D=3Dfalse){T=3Dfalse}if(=
S.autoPlay=3D=3D=3Dundefined||S.autoPlay=3D=3D=3Dtrue||U=3D=3D=3Dtrue){T=3D=
true;R=3Dtrue}else{R=3Dfalse}}else{e("clip was not given, simply calling =
video.play, if not already =
buffering");if(s!=3DJ){b.play()}return}e("about to play =
"+P,T,R);x();if(P){e("Changing SRC =
attribute"+P);b.setAttribute("src",P)}if(T){if(!D("Begin")){return =
false}$f.fireEvent(f.id(),"onBegin",o);e("calling =
video.load()");b.load()}if(R){e("calling =
video.play()");b.play()}};b.fp_pause=3Dfunction(){e("pause =
called");if(!D("Pause")){return =
false}b.pause()};b.fp_resume=3Dfunction(){e("resume =
called");if(!D("Resume")){return =
false}b.play()};b.fp_stop=3Dfunction(){e("stop =
called");if(!D("Stop")){return =
false}C=3Dtrue;b.pause();try{b.currentTime=3D0}catch(P){}};b.fp_seek=3Dfu=
nction(P){e("seek called "+P);if(!D("Seek")){return false}var T=3D0;var =
P=3DP+"";if(P.charAt(P.length-1)=3D=3D"%"){var =
Q=3DparseInt(P.substr(0,P.length-1))/100;var =
S=3Db.duration;T=3DS*Q}else{T=3DP}try{b.currentTime=3DT}catch(R){e("Wrong=
seek time")}};b.fp_getTime=3Dfunction(){return =
b.currentTime};b.fp_mute=3Dfunction(){e("mute =
called");if(!D("Mute")){return =
false}N=3Db.volume;b.volume=3D0};b.fp_unmute=3Dfunction(){if(!D("Unmute")=
){return false}b.volume=3DN};b.fp_getVolume=3Dfunction(){return =
b.volume*100};b.fp_setVolume=3Dfunction(P){if(!D("Volume")){return =
false}b.volume=3DP/100};b.fp_toggle=3Dfunction(){e("toggle =
called");if(f.getState()=3D=3Dg){B();return}if(b.paused){b.fp_play()}else=
{b.fp_pause()}};b.fp_isPaused=3Dfunction(){return =
b.paused};b.fp_isPlaying=3Dfunction(){return =
!b.paused};b.fp_getPlugin=3Dfunction(Q){if(Q=3D=3D"canvas"||Q=3D=3D"contr=
ols"){var P=3Df.getConfig();return =
P.plugins&&P.plugins[Q]?P.plugins[Q]:null}e("ERROR: no support for "+Q+" =
plugin on iDevices");return =
null};b.fp_close=3Dfunction(){G(L);b.parentNode.removeChild(b);b=3Dnull};=
b.fp_getStatus=3Dfunction(){var Q=3D0;var =
R=3D0;try{Q=3Db.buffered.start();R=3Db.buffered.end()}catch(P){}return{bu=
fferStart:Q,bufferEnd:R,state:s,time:b.fp_getTime(),muted:b.muted,volume:=
b.fp_getVolume()}};b.fp_getState=3Dfunction(){return =
s};b.fp_startBuffering=3Dfunction(){if(s=3D=3Dv){b.load()}};b.fp_setPlayl=
ist=3Dfunction(Q){e("Setting playlist");o=3D0;for(var =
P=3D0;P1&&o<(K.length-1=
)){e("Not last clip in the playlist, moving to next =
one");b.fp_play(++o,false,true)}};b.addEventListener("ended",V,false);var=
=
U=3Dfunction(ab){G(u,true);$f.fireEvent(f.id(),"onError",o,201);if(w.onFa=
il&&w.onFail instanceof =
Function){w.onFail.apply(f,[])}};b.addEventListener("error",U,false);var =
X=3Dfunction(ab){e("got pause event from =
player"+f.id());if(C){return}if(s=3D=3DJ&&m=3D=3Dv){e("forcing =
play");setTimeout(function(){b.play()},0);return}if(!D("Pause")){b.fp_res=
ume();return =
H(ab)}G(F);$f.fireEvent(f.id(),"onPause",o)};b.addEventListener("pause",X=
,false);var =
aa=3Dfunction(ab){$f.fireEvent(f.id(),"onBeforeSeek",o)};b.addEventListen=
er("seeking",aa,false);var =
S=3Dfunction(ab){if(C){C=3Dfalse;$f.fireEvent(f.id(),"onStop",o)}else{$f.=
fireEvent(f.id(),"onSeek",o)}e("seek done, =
currentState",i(s));if(q){q=3Dfalse;b.fp_play()}else{if(s!=3Dz){b.fp_paus=
e()}}};b.addEventListener("seeked",S,false);var =
W=3Dfunction(ab){$f.fireEvent(f.id(),"onVolume",b.fp_getVolume())};b.addE=
ventListener("volumechange",W,false)}function k(){b.fp_play(0)}function =
r(){}if(p||w.simulateiDevice){if(!window.flashembed.__replaced){var =
h=3Dwindow.flashembed;window.flashembed=3Dfunction(Q,V,R){if(typeof =
Q=3D=3D"string"){Q=3Ddocument.getElementById(Q.replace("#",""))}if(!Q){re=
turn}var U=3Dwindow.getComputedStyle(Q,null);var =
T=3DparseInt(U.width);var =
O=3DparseInt(U.height);while(Q.firstChild){Q.removeChild(Q.firstChild)}va=
r P=3Ddocument.createElement("div");var =
S=3Ddocument.createElement("video");P.appendChild(S);Q.appendChild(P);P.s=
tyle.height=3DO+"px";P.style.width=3DT+"px";P.style.display=3D"block";P.s=
tyle.position=3D"relative";P.style.background=3D"-webkit-gradient(linear,=
left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, =
0.7)))";P.style.cursor=3D"default";P.style.webkitUserDrag=3D"none";S.styl=
e.height=3D"100%";S.style.width=3D"100%";S.style.display=3D"block";S.id=3D=
V.id;S.name=3DV.id;S.style.cursor=3D"pointer";S.style.webkitUserDrag=3D"n=
one";S.type=3D"video/mp4";S.playerConfig=3DR.config;$f.fireEvent(R.config=
.playerId,"onLoad","player")};flashembed.getVersion=3Dh.getVersion;flashe=
mbed.asString=3Dh.asString;flashembed.isSupported=3Dfunction(){return =
true};flashembed.__replaced=3Dtrue}var =
a=3Df._fireEvent;f._fireEvent=3Dfunction(O){if(O[0]=3D=3D"onLoad"&&O[1]=3D=
=3D"player"){b=3Df.getParent().querySelector("video");if(w.controls){b.co=
ntrols=3D"controls"}n();E();G(u,true);b.fp_setPlaylist(b.playerConfig.pla=
ylist);k();a.apply(f,[O])}var P=3Ds!=3DL;if(s=3D=3DL&&typeof =
O=3D=3D"string"){P=3Dtrue}if(P){return =
a.apply(f,[O])}};f._swfHeight=3Dfunction(){return =
parseInt(b.style.height)};f.hasiPadSupport=3Dfunction(){return =
true}}return f});
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/jquery/js/jquery.lightbox-0.5.js
/**
* jQuery lightBox plugin
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh =
Dhakar (http://www.huddletogether.com/projects/lightbox2/)
* and adapted to me for use like a plugin from jQuery.
* @name jquery-lightbox-0.5.js
* @author Leandro Vieira Pinho - http://leandrovieira.com
* @version 0.5
* @date April 11, 2008
* @category jQuery plugin
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
* @license CC Attribution-No Derivative Works 2.5 Brazil - =
http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for =
more informations about this jQuery plugin
*/
// Offering a Custom Alias suport - More info: =
http://docs.jquery.com/Plugins/Authoring#Custom_Alias
(function($) {
/**
* $ is an alias to jQuery object
*
*/
$.fn.lightBox =3D function(settings) {
// Settings to configure the jQuery lightBox plugin how you like
settings =3D jQuery.extend({
// Configuration related to overlay
overlayBgColor: '#000', // (string) Background color to overlay; =
inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the =
hexadecimal values for the red, green, and blue values of the color.
overlayOpacity: 0.8, // (integer) Opacity value to overlay; =
inform: 0.X. Where X are number from 0 to 9
// Configuration related to navigation
fixedNavigation: false, // (boolean) Boolean that informs if the =
navigation (next and prev button) will be fixed or not in the interface.
// Configuration related to images
imageLoading: 'images/lightbox-ico-loading.gif', // (string) Path =
and the name of the loading icon
imageBtnPrev: 'images/lightbox-btn-prev.gif', // (string) Path =
and the name of the prev button image
imageBtnNext: 'images/lightbox-btn-next.gif', // (string) Path =
and the name of the next button image
imageBtnClose: 'images/lightbox-btn-close.gif', // (string) Path =
and the name of the close btn
imageBlank: 'images/lightbox-blank.gif', // (string) Path and =
the name of a blank image (one pixel)
// Configuration related to container image box
containerBorderSize: 10, // (integer) If you adjust the padding in =
the CSS for the container, #lightbox-container-image-box, you will need =
to update this value
containerResizeSpeed: 400, // (integer) Specify the resize duration =
of container image. These number are miliseconds. 400 is default.
// Configuration related to texts in caption. For example: Image 2 of =
8. You can alter either "Image" and "of" texts.
txtImage: 'Image', // (string) Specify text "Image"
txtOf: 'of', // (string) Specify text "of"
// Configuration related to keyboard navigation
keyToClose: 'c', // (string) (c =3D close) Letter to close the =
jQuery lightBox interface. Beyond this letter, the letter X and the =
SCAPE key is used to.
keyToPrev: 'p', // (string) (p =3D previous) Letter to show the =
previous image
keyToNext: 'n', // (string) (n =3D next) Letter to show the next =
image.
// Don=B4t alter these variables in any way
imageArray: [],
activeImage: 0
},settings);
// Caching the jQuery object with all elements matched
var jQueryMatchedObj =3D this; // This, in this context, refer to =
jQuery object
/**
* Initializing the plugin calling the start function
*
* @return boolean false
*/
function _initialize() {
_start(this,jQueryMatchedObj); // This, in this context, refer to =
object (link) which the user have clicked
return false; // Avoid the browser following the link
}
/**
* Start the jQuery lightBox plugin
*
* @param object objClicked The object (link) whick the user have =
clicked
* @param object jQueryMatchedObj The jQuery object with all elements =
matched
*/
function _start(objClicked,jQueryMatchedObj) {
// Hime some elements to avoid conflict with overlay in IE. These =
elements appear above the overlay.
$('embed, object, select').css({ 'visibility' : 'hidden' });
// Call the function to create the markup structure; style some =
elements; assign events in some elements.
_set_interface();
// Unset total images in imageArray
settings.imageArray.length =3D 0;
// Unset image active information
settings.activeImage =3D 0;
// We have an image set? Or just an image? Let=B4s see it.
if ( jQueryMatchedObj.length =3D=3D 1 ) {
settings.imageArray.push(new =
Array(objClicked.getAttribute('href'),objClicked.getAttribute('title')));=
} else {
// Add an Array (as many as we have), with href and title atributes, =
inside the Array that storage the images references =09
for ( var i =3D 0; i < jQueryMatchedObj.length; i++ ) {
settings.imageArray.push(new =
Array(jQueryMatchedObj[i].getAttribute('href'),jQueryMatchedObj[i].getAtt=
ribute('title')));
}
}
while ( settings.imageArray[settings.activeImage][0] !=3D =
objClicked.getAttribute('href') ) {
settings.activeImage++;
}
// Call the function that prepares image exibition
_set_image_to_view();
}
/**
* Create the jQuery lightBox plugin interface
*
* The HTML markup will be like that:
*
*/
function _set_interface() {
// Apply the HTML markup into body tag
$('body').append('
');=09
// Get page sizes
var arrPageSizes =3D ___getPageSize();
// Style overlay and show it
$('#jquery-overlay').css({
backgroundColor: settings.overlayBgColor,
opacity: settings.overlayOpacity,
width: arrPageSizes[0],
height: arrPageSizes[1]
}).fadeIn();
// Get page scroll
var arrPageScroll =3D ___getPageScroll();
// Calculate top and left offset for the jquery-lightbox div object =
and show it
$('#jquery-lightbox').css({
top: arrPageScroll[1] + (arrPageSizes[3] / 10),
left: arrPageScroll[0]
}).show();
// Assigning click events in elements to close overlay
$('#jquery-overlay,#jquery-lightbox').click(function() {
_finish(); =09
});
// Assign the _finish function to lightbox-loading-link and =
lightbox-secNav-btnClose objects
=
$('#lightbox-loading-link,#lightbox-secNav-btnClose').click(function() {
_finish();
return false;
});
// If window was resized, calculate the new overlay dimensions
$(window).resize(function() {
// Get page sizes
var arrPageSizes =3D ___getPageSize();
// Style overlay and show it
$('#jquery-overlay').css({
width: arrPageSizes[0],
height: arrPageSizes[1]
});
// Get page scroll
var arrPageScroll =3D ___getPageScroll();
// Calculate top and left offset for the jquery-lightbox div object =
and show it
$('#jquery-lightbox').css({
top: arrPageScroll[1] + (arrPageSizes[3] / 10),
left: arrPageScroll[0]
});
});
}
/**
* Prepares image exibition; doing a image=B4s preloader to calculate =
it=B4s size
*
*/
function _set_image_to_view() { // show the loading
// Show the loading
$('#lightbox-loading').show();
if ( settings.fixedNavigation ) {
=
$('#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-det=
ails-currentNumber').hide();
} else {
// Hide some elements
=
$('#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnN=
ext,#lightbox-container-image-data-box,#lightbox-image-details-currentNum=
ber').hide();
}
// Image preload process
var objImagePreloader =3D new Image();
objImagePreloader.onload =3D function() {
=
$('#lightbox-image').attr('src',settings.imageArray[settings.activeImage]=
[0]);
// Perfomance an effect in the image container resizing it
=
_resize_container_image_box(objImagePreloader.width,objImagePreloader.hei=
ght);
// clear onLoad, IE behaves irratically with animated gifs otherwise
objImagePreloader.onload=3Dfunction(){};
};
objImagePreloader.src =3D =
settings.imageArray[settings.activeImage][0];
};
/**
* Perfomance an effect in the image container resizing it
*
* @param integer intImageWidth The image=B4s width that will be =
showed
* @param integer intImageHeight The image=B4s height that will be =
showed
*/
function _resize_container_image_box(intImageWidth,intImageHeight) {
// Get current width and height
var intCurrentWidth =3D $('#lightbox-container-image-box').width();
var intCurrentHeight =3D $('#lightbox-container-image-box').height();
// Get the width and height of the selected image plus the padding
var intWidth =3D (intImageWidth + (settings.containerBorderSize * =
2)); // Plus the image=B4s width and the left and right padding value
var intHeight =3D (intImageHeight + (settings.containerBorderSize * =
2)); // Plus the image=B4s height and the left and right padding value
// Diferences
var intDiffW =3D intCurrentWidth - intWidth;
var intDiffH =3D intCurrentHeight - intHeight;
// Perfomance the effect
$('#lightbox-container-image-box').animate({ width: intWidth, height: =
intHeight },settings.containerResizeSpeed,function() { _show_image(); =
});
if ( ( intDiffW =3D=3D 0 ) && ( intDiffH =3D=3D 0 ) ) {
if ( $.browser.msie ) {
___pause(250);
} else {
___pause(100);=09
}
}=20
$('#lightbox-container-image-data-box').css({ width: intImageWidth =
});
$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({ height: =
intImageHeight + (settings.containerBorderSize * 2) });
};
/**
* Show the prepared image
*
*/
function _show_image() {
$('#lightbox-loading').hide();
$('#lightbox-image').fadeIn(function() {
_show_image_data();
_set_navigation();
});
_preload_neighbor_images();
};
/**
* Show the image information
*
*/
function _show_image_data() {
$('#lightbox-container-image-data-box').slideDown('fast');
$('#lightbox-image-details-caption').hide();
if ( settings.imageArray[settings.activeImage][1] ) {
=
$('#lightbox-image-details-caption').html(settings.imageArray[settings.ac=
tiveImage][1]).show();
}
// If we have a image set, display 'Image X of X'
if ( settings.imageArray.length > 1 ) {
$('#lightbox-image-details-currentNumber').html(settings.txtImage + =
' ' + ( settings.activeImage + 1 ) + ' ' + settings.txtOf + ' ' + =
settings.imageArray.length).show();
} =09
}
/**
* Display the button navigations
*
*/
function _set_navigation() {
$('#lightbox-nav').show();
// Instead to define this configuration in CSS file, we define here. =
And it=B4s need to IE. Just.
$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({ 'background' : =
'transparent url(' + settings.imageBlank + ') no-repeat' });
=09
// Show the prev button, if not the first image in set
if ( settings.activeImage !=3D 0 ) {
if ( settings.fixedNavigation ) {
$('#lightbox-nav-btnPrev').css({ 'background' : 'url(' + =
settings.imageBtnPrev + ') left 15% no-repeat' })
.unbind()
.bind('click',function() {
settings.activeImage =3D settings.activeImage - 1;
_set_image_to_view();
return false;
});
} else {
// Show the images button for Next buttons
$('#lightbox-nav-btnPrev').unbind().hover(function() {
$(this).css({ 'background' : 'url(' + settings.imageBtnPrev + ') =
left 15% no-repeat' });
},function() {
$(this).css({ 'background' : 'transparent url(' + =
settings.imageBlank + ') no-repeat' });
}).show().bind('click',function() {
settings.activeImage =3D settings.activeImage - 1;
_set_image_to_view();
return false;
});
}
}
=09
// Show the next button, if not the last image in set
if ( settings.activeImage !=3D ( settings.imageArray.length -1 ) ) {
if ( settings.fixedNavigation ) {
$('#lightbox-nav-btnNext').css({ 'background' : 'url(' + =
settings.imageBtnNext + ') right 15% no-repeat' })
.unbind()
.bind('click',function() {
settings.activeImage =3D settings.activeImage + 1;
_set_image_to_view();
return false;
});
} else {
// Show the images button for Next buttons
$('#lightbox-nav-btnNext').unbind().hover(function() {
$(this).css({ 'background' : 'url(' + settings.imageBtnNext + ') =
right 15% no-repeat' });
},function() {
$(this).css({ 'background' : 'transparent url(' + =
settings.imageBlank + ') no-repeat' });
}).show().bind('click',function() {
settings.activeImage =3D settings.activeImage + 1;
_set_image_to_view();
return false;
});
}
}
// Enable keyboard navigation
_enable_keyboard_navigation();
}
/**
* Enable a support to keyboard navigation
*
*/
function _enable_keyboard_navigation() {
$(document).keydown(function(objEvent) {
_keyboard_action(objEvent);
});
}
/**
* Disable the support to keyboard navigation
*
*/
function _disable_keyboard_navigation() {
$(document).unbind();
}
/**
* Perform the keyboard actions
*
*/
function _keyboard_action(objEvent) {
// To ie
if ( objEvent =3D=3D null ) {
keycode =3D event.keyCode;
escapeKey =3D 27;
// To Mozilla
} else {
keycode =3D objEvent.keyCode;
escapeKey =3D objEvent.DOM_VK_ESCAPE;
}
// Get the key in lower case form
key =3D String.fromCharCode(keycode).toLowerCase();
// Verify the keys to close the ligthBox
if ( ( key =3D=3D settings.keyToClose ) || ( key =3D=3D 'x' ) || ( =
keycode =3D=3D escapeKey ) ) {
_finish();
}
// Verify the key to show the previous image
if ( ( key =3D=3D settings.keyToPrev ) || ( keycode =3D=3D 37 ) ) {
// If we=B4re not showing the first image, call the previous
if ( settings.activeImage !=3D 0 ) {
settings.activeImage =3D settings.activeImage - 1;
_set_image_to_view();
_disable_keyboard_navigation();
}
}
// Verify the key to show the next image
if ( ( key =3D=3D settings.keyToNext ) || ( keycode =3D=3D 39 ) ) {
// If we=B4re not showing the last image, call the next
if ( settings.activeImage !=3D ( settings.imageArray.length - 1 ) ) =
{
settings.activeImage =3D settings.activeImage + 1;
_set_image_to_view();
_disable_keyboard_navigation();
}
}
}
/**
* Preload prev and next images being showed
*
*/
function _preload_neighbor_images() {
if ( (settings.imageArray.length -1) > settings.activeImage ) {
objNext =3D new Image();
objNext.src =3D settings.imageArray[settings.activeImage + 1][0];
}
if ( settings.activeImage > 0 ) {
objPrev =3D new Image();
objPrev.src =3D settings.imageArray[settings.activeImage -1][0];
}
}
/**
* Remove jQuery lightBox plugin HTML markup
*
*/
function _finish() {
$('#jquery-lightbox').remove();
$('#jquery-overlay').fadeOut(function() { =
$('#jquery-overlay').remove(); });
// Show some elements to avoid conflict with overlay in IE. These =
elements appear above the overlay.
$('embed, object, select').css({ 'visibility' : 'visible' });
}
/**
/ THIRD FUNCTION
* getPageSize() by quirksmode.com
*
* @return Array Return an array with page width, height and window =
width, height
*/
function ___getPageSize() {
var xScroll, yScroll;
if (window.innerHeight && window.scrollMaxY) {=09
xScroll =3D window.innerWidth + window.scrollMaxX;
yScroll =3D window.innerHeight + window.scrollMaxY;
} else if (document.body.scrollHeight > document.body.offsetHeight){ =
// all but Explorer Mac
xScroll =3D document.body.scrollWidth;
yScroll =3D document.body.scrollHeight;
} else { // Explorer Mac...would also work in Explorer 6 Strict, =
Mozilla and Safari
xScroll =3D document.body.offsetWidth;
yScroll =3D document.body.offsetHeight;
}
var windowWidth, windowHeight;
if (self.innerHeight) { // all except Explorer
if(document.documentElement.clientWidth){
windowWidth =3D document.documentElement.clientWidth;=20
} else {
windowWidth =3D self.innerWidth;
}
windowHeight =3D self.innerHeight;
} else if (document.documentElement && =
document.documentElement.clientHeight) { // Explorer 6 Strict Mode
windowWidth =3D document.documentElement.clientWidth;
windowHeight =3D document.documentElement.clientHeight;
} else if (document.body) { // other Explorers
windowWidth =3D document.body.clientWidth;
windowHeight =3D document.body.clientHeight;
}=09
// for small pages with total height less then height of the viewport
if(yScroll < windowHeight){
pageHeight =3D windowHeight;
} else {=20
pageHeight =3D yScroll;
}
// for small pages with total width less then width of the viewport
if(xScroll < windowWidth){=09
pageWidth =3D xScroll; =09
} else {
pageWidth =3D windowWidth;
}
arrayPageSize =3D new =
Array(pageWidth,pageHeight,windowWidth,windowHeight);
return arrayPageSize;
};
/**
/ THIRD FUNCTION
* getPageScroll() by quirksmode.com
*
* @return Array Return an array with x,y page scroll values.
*/
function ___getPageScroll() {
var xScroll, yScroll;
if (self.pageYOffset) {
yScroll =3D self.pageYOffset;
xScroll =3D self.pageXOffset;
} else if (document.documentElement && =
document.documentElement.scrollTop) { // Explorer 6 Strict
yScroll =3D document.documentElement.scrollTop;
xScroll =3D document.documentElement.scrollLeft;
} else if (document.body) {// all other Explorers
yScroll =3D document.body.scrollTop;
xScroll =3D document.body.scrollLeft;=09
}
arrayPageScroll =3D new Array(xScroll,yScroll);
return arrayPageScroll;
};
/**
* Stop the code execution from a escified time in milisecond
*
*/
function ___pause(ms) {
var date =3D new Date();=20
curDate =3D null;
do { var curDate =3D new Date(); }
while ( curDate - date < ms);
};
// Return the jQuery object for chaining. The unbind method is used to =
avoid click conflict when the plugin is called more than once
return this.unbind('click').click(_initialize);
};
})(jQuery); // Call and execute the function immediately passing the =
jQuery object
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/jquery/js/jquery.scrollTo.js
/**
* jQuery.ScrollTo
* Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | =
http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* Date: 5/25/2009
*
* @projectDescription Easy element scrolling using jQuery.
* http://flesler.blogspot.com/2007/10/jqueryscrollto.html
* Works with jQuery +1.2.6. Tested on FF 2/3, IE 6/7/8, Opera 9.5/6, =
Safari 3, Chrome 1 on WinXP.
*
* @author Ariel Flesler
* @version 1.4.2
*
* @id jQuery.scrollTo
* @id jQuery.fn.scrollTo
* @param {String, Number, DOMElement, jQuery, Object} target Where to =
scroll the matched elements.
* The different options for target are:
* - A number position (will be applied to all axes).
* - A string position ('44', '100px', '+=3D90', etc ) will be applied =
to all axes
* - A jQuery/DOM element ( logically, child of the element to scroll )
* - A string selector, that will be relative to the element to scroll =
( 'li:eq(2)', etc )
* - A hash { top:x, left:y }, x and y can be any kind of number/string =
like above.
* - A percentage of the container's dimension/s, for example: 50% to go =
to the middle.
* - The string 'max' for go-to-end.=20
* @param {Number} duration The OVERALL length of the animation, this =
argument can be the settings object instead.
* @param {Object,Function} settings Optional set of settings or the =
onAfter callback.
* @option {String} axis Which axis must be scrolled, use 'x', 'y', =
'xy' or 'yx'.
* @option {Number} duration The OVERALL length of the animation.
* @option {String} easing The easing method for the animation.
* @option {Boolean} margin If true, the margin of the target element =
will be deducted from the final position.
* @option {Object, Number} offset Add/deduct from the end position. =
One number for both axes or { top:x, left:y }.
* @option {Object, Number} over Add/deduct the height/width multiplied =
by 'over', can be { top:x, left:y } when using both axes.
* @option {Boolean} queue If true, and both axis are given, the 2nd =
axis will only be animated after the first one ends.
* @option {Function} onAfter Function to be called after the scrolling =
ends.=20
* @option {Function} onAfterFirst If queuing is activated, this =
function will be called after the first scrolling ends.
* @return {jQuery} Returns the same jQuery object, for chaining.
*
* @desc Scroll to a fixed position
* @example $('div').scrollTo( 340 );
*
* @desc Scroll relatively to the actual position
* @example $('div').scrollTo( '+=3D340px', { axis:'y' } );
*
* @dec Scroll using a selector (relative to the scrolled element)
* @example $('div').scrollTo( 'p.paragraph:eq(2)', 500, { =
easing:'swing', queue:true, axis:'xy' } );
*
* @ Scroll to a DOM element (same for jQuery object)
* @example var second_child =3D =
document.getElementById('container').firstChild.nextSibling;
* $('#container').scrollTo( second_child, { duration:500, axis:'x', =
onAfter:function(){
* alert('scrolled!!'); =20
* }});
*
* @desc Scroll on both axes, to different values
* @example $('div').scrollTo( { top: 300, left:'+=3D200' }, { =
axis:'xy', offset:-20 } );
*/
;(function( $ ){
=09
var $scrollTo =3D $.scrollTo =3D function( target, duration, settings =
){
$(window).scrollTo( target, duration, settings );
};
$scrollTo.defaults =3D {
axis:'xy',
duration: parseFloat($.fn.jquery) >=3D 1.3 ? 0 : 1
};
// Returns the element that needs to be animated to scroll the window.
// Kept for backwards compatibility (specially for localScroll & =
serialScroll)
$scrollTo.window =3D function( scope ){
return $(window)._scrollable();
};
// Hack, hack, hack :)
// Returns the real elements to scroll (supports window/iframes, =
documents and regular nodes)
$.fn._scrollable =3D function(){
return this.map(function(){
var elem =3D this,
isWin =3D !elem.nodeName || $.inArray( elem.nodeName.toLowerCase(), =
['iframe','#document','html','body'] ) !=3D -1;
if( !isWin )
return elem;
var doc =3D (elem.contentWindow || elem).document || =
elem.ownerDocument || elem;
=09
return $.browser.safari || doc.compatMode =3D=3D 'BackCompat' ?
doc.body :=20
doc.documentElement;
});
};
$.fn.scrollTo =3D function( target, duration, settings ){
if( typeof duration =3D=3D 'object' ){
settings =3D duration;
duration =3D 0;
}
if( typeof settings =3D=3D 'function' )
settings =3D { onAfter:settings };
=09
if( target =3D=3D 'max' )
target =3D 9e9;
=09
settings =3D $.extend( {}, $scrollTo.defaults, settings );
// Speed is still recognized for backwards compatibility
duration =3D duration || settings.speed || settings.duration;
// Make sure the settings are given right
settings.queue =3D settings.queue && settings.axis.length > 1;
=09
if( settings.queue )
// Let's keep the overall duration
duration /=3D 2;
settings.offset =3D both( settings.offset );
settings.over =3D both( settings.over );
return this._scrollable().each(function(){
var elem =3D this,
$elem =3D $(elem),
targ =3D target, toff, attr =3D {},
win =3D $elem.is('html,body');
switch( typeof targ ){
// A number will pass the regex
case 'number':
case 'string':
if( /^([+-]=3D)?\d+(\.\d+)?(px|%)?$/.test(targ) ){
targ =3D both( targ );
// We are done
break;
}
// Relative selector, no break!
targ =3D $(targ,this);
case 'object':
// DOMElement / jQuery
if( targ.is || targ.style )
// Get the real position of the target=20
toff =3D (targ =3D $(targ)).offset();
}
$.each( settings.axis.split(''), function( i, axis ){
var Pos =3D axis =3D=3D 'x' ? 'Left' : 'Top',
pos =3D Pos.toLowerCase(),
key =3D 'scroll' + Pos,
old =3D elem[key],
max =3D $scrollTo.max(elem, axis);
if( toff ){// jQuery / DOMElement
attr[key] =3D toff[pos] + ( win ? 0 : old - $elem.offset()[pos] );
// If it's a dom element, reduce the margin
if( settings.margin ){
attr[key] -=3D parseInt(targ.css('margin'+Pos)) || 0;
attr[key] -=3D parseInt(targ.css('border'+Pos+'Width')) || 0;
}
=09
attr[key] +=3D settings.offset[pos] || 0;
=09
if( settings.over[pos] )
// Scroll to a fraction of its width/height
attr[key] +=3D targ[axis=3D=3D'x'?'width':'height']() * =
settings.over[pos];
}else{=20
var val =3D targ[pos];
// Handle percentage values
attr[key] =3D val.slice && val.slice(-1) =3D=3D '%' ?=20
parseFloat(val) / 100 * max
: val;
}
// Number or 'number'
if( /^\d+$/.test(attr[key]) )
// Check the limits
attr[key] =3D attr[key] <=3D 0 ? 0 : Math.min( attr[key], max );
// Queueing axes
if( !i && settings.queue ){
// Don't waste time animating, if there's no need.
if( old !=3D attr[key] )
// Intermediate animation
animate( settings.onAfterFirst );
// Don't animate this axis again in the next iteration.
delete attr[key];
}
});
animate( settings.onAfter ); =09
function animate( callback ){
$elem.animate( attr, duration, settings.easing, callback && =
function(){
callback.call(this, target, settings);
});
};
}).end();
};
=09
// Max scrolling position, works on quirks mode
// It only fails (not too badly) on IE, quirks mode.
$scrollTo.max =3D function( elem, axis ){
var Dim =3D axis =3D=3D 'x' ? 'Width' : 'Height',
scroll =3D 'scroll'+Dim;
=09
if( !$(elem).is('html,body') )
return elem[scroll] - $(elem)[Dim.toLowerCase()]();
=09
var size =3D 'client' + Dim,
html =3D elem.ownerDocument.documentElement,
body =3D elem.ownerDocument.body;
return Math.max( html[scroll], body[scroll] )=20
- Math.min( html[size] , body[size] );
=09
};
function both( val ){
return typeof val =3D=3D 'object' ? val : { top:val, left:val };
};
})( jQuery );
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/jquery/js/jquery.smoothDivScroll-0.9-min.js
=EF=BB=BF/**
* jQuery.smoothDivScroll - Smooth div scrolling using jQuery.
* This plugin is for turning a set of HTML elements's into a smooth =
scrolling area.
*
* Copyright (c) 2009 Thomas Kahn - thomas.kahn(at)karnhuset(dot)net
*
* This plugin is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This plugin is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. =
.
*
* Date: 2009-05-23
* @author Thomas Kahn
* @version 0.8
*
* Changelog
* ---------------------------------------------
* 0.9 - Bugfixes: Problem with multiple autoscrollers on the same page - =
the intervals
* where global which resulted in the wrong autoscroller stopping on =
mouseOver or
* mouseDown.
* Error in calculation in autoscrolling mode that made the =
autoscrolling grind
* to a halt after a number of loops.
*
* 0.8 - Major update. New parameter setup. Lots of new autoscrolling =
capabilities and=20
* new parameters for controlling the scrolling speed. Made it =
possible to start=20
* the scroller at a specific element.
*=20
* 0.7 - Added support for autoscrolling after the page has loaded.=20
* Added support for making the hot spots visible at start for X =
number of seconds
* or visible all the time.
*
* 0.6 - First version.
*/
(function($) {=20
jQuery.fn.smoothDivScroll =3D function(options){
var defaults =3D {
scrollingHotSpotLeft: "div.scrollingHotSpotLeft", // The hot spot that =
triggers scrolling left.
scrollingHotSpotRight: "div.scrollingHotSpotRight", // The hot spot =
that triggers scrolling right.
scrollWrapper: "div.scrollWrapper", // The wrapper element that =
surrounds the scrollable area
scrollableArea: "div.scrollableArea", // The actual element that is =
scrolled left or right
hiddenOnStart: false, // True or false. Determines whether the element =
should be visible or hidden on start
ajaxContentURL: "", // Optional. If supplied, content is fetched =
through AJAX using the supplied URL
countOnlyClass: "", // Optional. If supplied, the function that =
calculates the width of the scrollable area will only count elements of =
this class
scrollingSpeed: 25, // A way of controlling the scrolling speed. =
1=3Dslowest and 100=3D fastest.
mouseDownSpeedBooster: 3, // 1 is normal speed (no speed boost), 2 is =
twice as fast, 3 is three times as fast, and so on
autoScroll: "", // Optional. Leave it blank if you don't want any =
autoscroll.=20
// Otherwise use the values "onstart" or "always".=20
// onstart - the scrolling will start automatically after=20
// the page has loaded and scroll according to the method you've =
selected=20
// using the autoScrollDirection parameter. When the user moves =
the mouse=20
// over the left or right hot spot the autoscroll will stop. After =
that=20
// the scrolling will only be triggered by the host spots.
// always - the hot spots are disabled alltogether and the =
scrollable area=20
// will only scroll automatically.
autoScrollDirection: "right", // This parameter controls the =
direction and behavior of the autoscrolling.=09
// Optional. The values are:
// right - autoscrolls right and stops when it reaches the end
// left - autoscrolls left and stops when it reaches the end=20
// (only relevant if you have set the parameter =
startAtElementId).
// backandforth - starts autoscrolling right and when it =
reaches=20
// the end, switches to autoscrolling left and so on. =
Ping-pong style.
// endlessloop - continuous scrolling right. An endless loop =
of elements.
autoScrollSpeed: 1, // 1-2 =3D slow, 3-4 =3D medium, 5-13 =3D fast -- =
anything higher =3D superfast
pauseAutoScroll: "", // Optional. Values mousedown and mouseover. =
Leave blank for no pausing abilities.
visibleHotSpots: "", // Optional. Leave it blank for invisible hot =
spots.=20
// Otherwise use the values "onstart" or "always".=20
// onstart - makes the hot spots visible for X-number of seconds =
// after tha page has loaded and then they become invisible.=20
// always - hot spots are visible all the time.
hotSpotsVisibleTime: 5, // If you have selected "onstart" as the value =
for visibleHotSpots,=20
// you set the number of seconds that you want the hot spots to =
be=20
// visible after the page has loaded. After this time they will =
fade=20
// away and become invisible again.
startAtElementId: "" // Optional. Use this parameter if you want the =
offset of the=20
// scrollable area to be positioned at a specific element =
directly=20
// after the page has loaded. First give your element an ID in =
the=20
// HTML code and then provide this ID as a parameter.
};
options =3D $.extend(defaults, options);
/* Identify global variables so JSLint won't raise errors when =
verifying the code */
/*global autoScrollInterval, autoScroll, clearInterval, doScrollLeft, =
doScrollRight, hideHotSpotBackgrounds, hideHotSpotBackgroundsInterval, =
hideLeftHotSpot, hideRightHotSpot, jQuery, =
makeHotSpotBackgroundsVisible, setHotSpotHeightForIE, setInterval, =
showHideHotSpots, window, windowIsResized */
// Iterate and make each matched element a SmoothDivScroll
return this.each(function() {
=09
// Create a variable for the current "mother element"
var $mom =3D $(this);
=09
// Load the content of the scrollable area using the optional URL.
// If no ajaxContentURL is supplied, we assume that the content of
// the scrolling area is already in place.
if(options.ajaxContentURL.length !=3D=3D 0){
$mom.scrollableAreaWidth =3D 0;
$mom.find(options.scrollableArea).load((options.ajaxContentURL), =
function(){=09
=
$mom.find(options.scrollableArea).children((options.countOnlyClass)).each=
(function() {
$mom.scrollableAreaWidth =3D $mom.scrollableAreaWidth + =
$(this).outerWidth(true);
});
// Set the width of the scrollable area
$mom.find(options.scrollableArea).css("width", =
($mom.scrollableAreaWidth + "px"));
=09
// Hide the mother element if it shouldn't be visible on start
if(options.hiddenOnStart) {
$mom.hide();
}
=09
windowIsResized();
=09
setHotSpotHeightForIE();
}); =09
}
=09
// Some variables used for working with the scrolling
var scrollXpos;
var booster;
=09
// The left offset of the container on which you place=20
// the scrolling behavior.
// This offset is used when calculating the mouse x-position=20
// in relation to scroll hot spots
var motherElementOffset =3D $mom.offset().left;
=09
// A variable used for storing the current hot spot width.
// It is used when calculating the scroll speed
var hotSpotWidth =3D 0;
=09
// Set the booster value to normal (doesn't change until the user
// holds down the mouse button over one of the hot spots)
booster =3D 1;
=09
var hasExtended =3D false;
=09
// Stuff to do once on load
$(window).one("load",function(){
// If the content of the scrolling area is not loaded through ajax,
// we assume it's already there and can run the code to calculate
// the width of the scrolling area, resize it to that width
if(options.ajaxContentURL.length =3D=3D=3D 0) {
$mom.scrollableAreaWidth =3D 0;
$mom.tempStartingPosition =3D 0;
=09
=
$mom.find(options.scrollableArea).children((options.countOnlyClass)).each=
(function() {
=09
// Check to see if the current element in the loop is the one =
where the scrolling should start
if( (options.startAtElementId.length !=3D=3D 0) && =
(($(this).attr("id")) =3D=3D options.startAtElementId) ) {
$mom.tempStartingPosition =3D $mom.scrollableAreaWidth;
}
// Add the width of the current element in the loop to the total =
width
$mom.scrollableAreaWidth =3D $mom.scrollableAreaWidth + =
$(this).outerWidth(true);
=09
});
=09
// Set the width of the scrollableArea to the accumulated width
$mom.find(options.scrollableArea).css("width", =
$mom.scrollableAreaWidth + "px");
=09
// Check to see if the whole thing should be hidden at start
if(options.hiddenOnStart) {
$mom.hide();
}
}
=09
// Set the starting position of the scrollable area. If no =
startAtElementId is set, the starting position
// will be the default value (zero)
=
$mom.find(options.scrollWrapper).scrollLeft($mom.tempStartingPosition);
=09
// If the user has set the option autoScroll, the scollable area =
will
// start scrolling automatically
if(options.autoScroll !=3D=3D "") {
$mom.autoScrollInterval =3D setInterval(autoScroll, 6);
}
// If autoScroll is set to always, the hot spots should be disabled
if(options.autoScroll =3D=3D "always")
{
hideLeftHotSpot();
hideRightHotSpot();
}
=09
// If the user wants to have visible hot spots, here is where it's =
taken care of
switch(options.visibleHotSpots)
{
case "always":
makeHotSpotBackgroundsVisible();
break;
case "onstart":
makeHotSpotBackgroundsVisible();
$mom.hideHotSpotBackgroundsInterval =3D =
setInterval(hideHotSpotBackgrounds, (options.hotSpotsVisibleTime * =
1000));
break;
default:
break;=09
}
=09
});
=09
// If autoScroll is running, here's where it's stopped when the user =
positions the mouse over one of the hot spots
$mom.find(options.scrollingHotSpotRight, =
options.scrollingHotSpotLeft).one('mouseover',function(){
if(options.autoScroll =3D=3D "onstart") {
clearInterval($mom.autoScrollInterval);
}
});=09
=09
// EVENT - window resize
$(window).bind("resize",function(){
windowIsResized();
});
// A function for doing the stuff that needs to be
// done when the browser window is resized
function windowIsResized() {
=09
// If the scrollable area is not hidden on start, reset and =
recalculate the
// width of the scrollable area
if(!(options.hiddenOnStart))
{
$mom.scrollableAreaWidth =3D 0;
=
$mom.find(options.scrollableArea).children((options.countOnlyClass)).each=
(function() {
$mom.scrollableAreaWidth =3D $mom.scrollableAreaWidth + =
$(this).outerWidth(true);
});
=09
$mom.find(options.scrollableArea).css("width", =
$mom.scrollableAreaWidth + 'px');
}
// Reset the left offset of the scroll wrapper
$mom.find(options.scrollWrapper).scrollLeft("0");
=09
// Get the width of the page (body)
var bodyWidth =3D $("body").innerWidth();
=09
// If the scrollable area is shorter than the current
// window width, both scroll hot spots should be hidden.
// Otherwise, check which hot spots should be shown.
if(options.autoScroll !=3D=3D "always")
{
if($mom.scrollableAreaWidth < bodyWidth)
{=09
hideLeftHotSpot();
hideRightHotSpot();
}
else
{
showHideHotSpots();
}
}
}
=09
// HELPER FUNCTIONS FOR SHOWING AND HIDING HOT SPOTS
function hideLeftHotSpot(){
$mom.find(options.scrollingHotSpotLeft).hide();
}
=09
function hideRightHotSpot(){
$mom.find(options.scrollingHotSpotRight).hide();
}
=09
function showLeftHotSpot(){
$mom.find(options.scrollingHotSpotLeft).show();
// Recalculate the hot spot width. Do it here because you can
// be sure that the hot spot is visible and has a width
if(hotSpotWidth <=3D 0) {
hotSpotWidth =3D $mom.find(options.scrollingHotSpotLeft).width();
}
}
=09
function showRightHotSpot(){
$mom.find(options.scrollingHotSpotRight).show();
// Recalculate the hot spot width. Do it here because you can
// be sure that the hot spot is visible and has a width
if(hotSpotWidth <=3D 0) {
hotSpotWidth =3D $mom.find(options.scrollingHotSpotRight).width();
}
}
=09
function setHotSpotHeightForIE()
{
// Some bugfixing for IE 6
jQuery.each(jQuery.browser, function(i, val) {
if(i=3D=3D"msie" && jQuery.browser.version.substr(0,1)=3D=3D"6")
{
$mom.find(options.scrollingHotSpotLeft).css("height", =
($mom.find(options.scrollableArea).innerHeight()));
$mom.find(options.scrollingHotSpotRight).css("height", =
($mom.find(options.scrollableArea).innerHeight())); =09
}
});
}
// **************************************************
// EVENTS - scroll right
// **************************************************
=09
// Check the mouse X position and calculate the relative X position =
inside the right hot spot
=
$mom.find(options.scrollingHotSpotRight).bind('mousemove',function(e){
var x =3D e.pageX - (this.offsetLeft + motherElementOffset);
scrollXpos =3D Math.round((x/hotSpotWidth) * =
options.scrollingSpeed);
if(scrollXpos =3D=3D=3D Infinity) {
scrollXpos =3D 0;
}
});
// mouseover right hot spot
$mom.find(options.scrollingHotSpotRight).bind('mouseover',function(){
if(options.autoScroll =3D=3D "onstart") {
clearInterval($mom.autoScrollInterval);
}
$mom.rightScrollInterval =3D setInterval(doScrollRight, 6);
});=09
=09
// mouseout right hot spot
$mom.find(options.scrollingHotSpotRight).bind('mouseout',function(){
clearInterval($mom.rightScrollInterval);
scrollXpos =3D 0;
});
=09
// scrolling speed booster right
$mom.find(options.scrollingHotSpotRight).bind('mousedown',function(){
booster =3D options.mouseDownSpeedBooster;
});
=09
// stop boosting the scrolling speed
$("*").bind('mouseup',function(){
booster =3D 1;
});
=09
=09
// The function that does the actual scrolling right
var doScrollRight =3D function()
{=09
if(scrollXpos > 0) {
=
$mom.find(options.scrollWrapper).scrollLeft($mom.find(options.scrollWrapp=
er).scrollLeft() + (scrollXpos*booster));
}
showHideHotSpots();
};
=09
// **************************************************
// Autoscrolling
// **************************************************
if(options.pauseAutoScroll =3D=3D "mousedown" && options.autoScroll =
=3D=3D "always")
{
$mom.find(options.scrollWrapper).bind('mousedown',function(){
clearInterval($mom.autoScrollInterval);
});
=09
$mom.find(options.scrollWrapper).bind('mouseup',function(){
$mom.autoScrollInterval =3D setInterval(autoScroll, 6);
});
}
else if(options.pauseAutoScroll =3D=3D "mouseover" && =
options.autoScroll =3D=3D "always")
{
$mom.find(options.scrollWrapper).bind('mouseover',function(){
clearInterval($mom.autoScrollInterval);
});
=09
$mom.find(options.scrollWrapper).bind('mouseout',function(){
$mom.autoScrollInterval =3D setInterval(autoScroll, 6);
});
}
=09
$mom.previousScrollLeft =3D 0;
$mom.pingPongDirection =3D "right";
$mom.swapAt;
$mom.getNextElementWidth =3D true;
// The autoScroll function
var autoScroll =3D function()
{=09
if (options.autoScroll =3D=3D "onstart") {
showHideHotSpots();
}
=09
switch(options.autoScrollDirection)
{
case "right":
=
$mom.find(options.scrollWrapper).scrollLeft($mom.find(options.scrollWrapp=
er).scrollLeft() + options.autoScrollSpeed);
break;
=09
case "left":
=
$mom.find(options.scrollWrapper).scrollLeft($mom.find(options.scrollWrapp=
er).scrollLeft() - options.autoScrollSpeed);
break;
=09
case "backandforth":
// Store the old scrollLeft value to see if the scrolling has =
reached the end
$mom.previousScrollLeft =3D =
$mom.find(options.scrollWrapper).scrollLeft();
=09
if($mom.pingPongDirection =3D=3D "right") {
=
$mom.find(options.scrollWrapper).scrollLeft($mom.find(options.scrollWrapp=
er).scrollLeft() + options.autoScrollSpeed);
}
else {
=
$mom.find(options.scrollWrapper).scrollLeft($mom.find(options.scrollWrapp=
er).scrollLeft() - options.autoScrollSpeed);
}
=09
// If the scrollLeft hasnt't changed it means that the scrolling =
has reached
// the end and the direction should be switched
if($mom.previousScrollLeft =3D=3D=3D =
$mom.find(options.scrollWrapper).scrollLeft())
{
if($mom.pingPongDirection =3D=3D "right") {
$mom.pingPongDirection =3D "left";
}
else {
$mom.pingPongDirection =3D "right";
}
}
break;
=09
case "endlessloop":
// Get the width of the first element. When it has scrolled out of =
view,
// the element swapping should be executed. A true/false variable =
is used
// as a flag variable so the swapAt value doesn't have to be =
recalculated
// in each loop.
if($mom.getNextElementWidth)
{
if(options.startAtElementId !=3D=3D "") {
$mom.swapAt =3D $("#" + options.startAtElementId).outerWidth();
}
else {
$mom.swapAt =3D =
$mom.find(options.scrollableArea).children(":first-child").outerWidth();
}
=09
$mom.getNextElementWidth =3D false;
}
=09
// Do the autoscrolling
=
$mom.find(options.scrollWrapper).scrollLeft($mom.find(options.scrollWrapp=
er).scrollLeft() + options.autoScrollSpeed);
=09
// Check to see if the swap should be done
if(($mom.swapAt <=3D =
$mom.find(options.scrollWrapper).scrollLeft()))
{=20
// Clone the first element and append it last in the =
scrollableArea
=
$mom.find(options.scrollableArea).append($mom.find(options.scrollableArea=
).children(":first-child").clone());
// Compensate for the removal of the first element by
=
$mom.find(options.scrollWrapper).scrollLeft(($mom.find(options.scrollWrap=
per).scrollLeft() - =
$mom.find(options.scrollableArea).children(":first-child").outerWidth()))=
;
=09
// Remove it from its original position as the first element
=
$mom.find(options.scrollableArea).children(":first-child").remove();
=09
$mom.getNextElementWidth =3D true;
}
break;
default:
break;
=09
}
};
=09
=09
// **************************************************
// EVENTS - scroll left
// **************************************************
=09
// Check the mouse X position and calculate the relative X position =
inside the left hot spot
$mom.find(options.scrollingHotSpotLeft).bind('mousemove',function(e){
var x =3D $mom.find(options.scrollingHotSpotLeft).innerWidth() - =
(e.pageX - motherElementOffset);
scrollXpos =3D Math.round((x/hotSpotWidth) * =
options.scrollingSpeed);
if(scrollXpos =3D=3D=3D Infinity)
{
scrollXpos =3D 0;
}
});
=09
// mouseover left hot spot
$mom.find(options.scrollingHotSpotLeft).bind('mouseover',function(){
if(options.autoScroll =3D=3D "onstart") {
clearInterval($mom.autoScrollInterval);
}
=09
$mom.leftScrollInterval =3D setInterval(doScrollLeft, 6);
});=09
=09
// mouseout left hot spot
$mom.find(options.scrollingHotSpotLeft).bind('mouseout',function(){
clearInterval($mom.leftScrollInterval);
scrollXpos =3D 0;
});
=09
// scrolling speed booster left
$mom.find(options.scrollingHotSpotLeft).bind('mousedown',function(){
booster =3D options.mouseDownSpeedBooster;
});
=09
// The function that does the actual scrolling left
var doScrollLeft =3D function()
{=09
if(scrollXpos > 0) {
=
$mom.find(options.scrollWrapper).scrollLeft($mom.find(options.scrollWrapp=
er).scrollLeft() - (scrollXpos*booster));
}
showHideHotSpots();
};
=09
// **************************************************
// Hot spot functions
// **************************************************
=09
// Function for showing and hiding hot spots depending on the
// offset of the scrolling
function showHideHotSpots()
{
// When you can't scroll further left
// the left scroll hot spot should be hidden
// and the right hot spot visible
if($mom.find(options.scrollWrapper).scrollLeft() =3D=3D=3D 0)
{
hideLeftHotSpot();
showRightHotSpot();
}
// When you can't scroll further right
// the right scroll hot spot should be hidden
// and the left hot spot visible
else if(($mom.scrollableAreaWidth) <=3D =
($mom.find(options.scrollWrapper).innerWidth() + =
$mom.find(options.scrollWrapper).scrollLeft()))
{
hideRightHotSpot();
showLeftHotSpot();
}
// If you are somewhere in the middle of your
// scrolling, both hot spots should be visible
else
{
showRightHotSpot();
showLeftHotSpot();
}
}
=09
// Function for making the hot spot background visible
function makeHotSpotBackgroundsVisible()
{
// Alter the CSS (SmoothDivScroll.css) if you want to customize
// the look'n'feel of the visible hot spots
=09
// The left hot spot
=
$mom.find(options.scrollingHotSpotLeft).addClass("scrollingHotSpotLeftVis=
ible");
// The right hot spot
=
$mom.find(options.scrollingHotSpotRight).addClass("scrollingHotSpotRightV=
isible");
}
=09
// Hide the hot spot backgrounds.
function hideHotSpotBackgrounds()
{
clearInterval($mom.hideHotSpotBackgroundsInterval);
=09
// Fade out the left hot spot
$mom.find(options.scrollingHotSpotLeft).fadeTo("slow", 0.0, =
function(){
=
$mom.find(options.scrollingHotSpotLeft).removeClass("scrollingHotSpotLeft=
Visible");
});
// Fade out the right hot spot
$mom.find(options.scrollingHotSpotRight).fadeTo("slow", 0.0, =
function(){
=
$mom.find(options.scrollingHotSpotRight).removeClass("scrollingHotSpotRig=
htVisible");
});
}
=09
});
};
})(jQuery);
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/jquery/js/jquery.tools.min.js
(function($){$.fn.jCarouselLite=3Dfunction(o){o=3D$.extend({btnPrev:null,=
btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,=
vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,=
afterEnd:null},o||{});return this.each(function(){var =
b=3Dfalse,animCss=3Do.vertical?"top":"left",sizeCss=3Do.vertical?"height"=
:"width";var =
c=3D$(this),ul=3D$("ul",c),tLi=3D$("li",ul),tl=3DtLi.size(),v=3Do.visible=
;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(=
0,v).clone());o.start+=3Dv}var =
f=3D$("li",ul),itemLength=3Df.size(),curr=3Do.start;c.css("visibility","v=
isible");f.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css=
({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-=
index":"1"});c.css({overflow:"hidden",position:"relative","z-index":"2",l=
eft:"0px"});var g=3Do.vertical?height(f):width(f);var =
h=3Dg*itemLength;var =
j=3Dg*v;f.css({width:f.width(),height:f.height()});ul.css(sizeCss,h+"px")=
.css(animCss,-(curr*g));c.css(sizeCss,j+"px");if(o.btnPrev)$(o.btnPrev).c=
lick(function(){return =
go(curr-o.scroll)});if(o.btnNext)$(o.btnNext).click(function(){return =
go(curr+o.scroll)});if(o.btnGo)$.each(o.btnGo,function(i,a){$(a).click(fu=
nction(){return =
go(o.circular?o.visible+i:i)})});if(o.mouseWheel&&c.mousewheel)c.mousewhe=
el(function(e,d){return =
d>0?go(curr-o.scroll):go(curr+o.scroll)});if(o.auto)setInterval(function(=
){go(curr+o.scroll)},o.auto+o.speed);function vis(){return =
f.slice(curr).slice(0,v)};function =
go(a){if(!b){if(o.beforeStart)o.beforeStart.call(this,vis());if(o.circula=
r){if(a<=3Do.start-v-1){ul.css(animCss,-((itemLength-(v*2))*g)+"px");curr=
=3Da=3D=3Do.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else =
if(a>=3DitemLength-v+1){ul.css(animCss,-((v)*g)+"px");curr=3Da=3D=3DitemL=
ength-v+1?v+1:v+o.scroll}else =
curr=3Da}else{if(a<0||a>itemLength-v)return;else =
curr=3Da}b=3Dtrue;ul.animate(animCss=3D=3D"left"?{left:-(curr*g)}:{top:-(=
curr*g)},o.speed,o.easing,function(){if(o.afterEnd)o.afterEnd.call(this,v=
is());b=3Dfalse});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass(=
"disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&=
o.btnNext)||[]).addClass("disabled")}}return false}})};function =
css(a,b){return parseInt($.css(a[0],b))||0};function width(a){return =
a[0].offsetWidth+css(a,'marginLeft')+css(a,'marginRight')};function =
height(a){return =
a[0].offsetHeight+css(a,'marginTop')+css(a,'marginBottom')}})(jQuery);
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/jquery/js/jqvertical1.0.1c4.js
/**
* jCarouselLite - jQuery plugin to navigate images/any content in a =
carousel style widget.
* @requires jQuery v1.2 or above
*
* http://gmarwaha.com/jquery/jcarousellite/
*
* Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Version: 1.0.1
* Note: Requires jquery 1.2 or above from version 1.0.1
*/
/**
* Creates a carousel-style navigation widget for images/any-content =
from a simple HTML markup.
*
* The HTML markup that is used to build the carousel can be as simple =
as...
*
*
*
*
*
*
*
*
*
* As you can see, this snippet is nothing but a simple div containing =
an unordered list of images.
* You don't need any special "class" attribute, or a special "css" file =
for this plugin.
* I am using a class attribute just for the sake of explanation here.
*
* To navigate the elements of the carousel, you need some kind of =
navigation buttons.
* For example, you will need a "previous" button to go backward, and a =
"next" button to go forward.
* This need not be part of the carousel "div" itself. It can be any =
element in your page.
* Lets assume that the following elements in your document can be used =
as next, and prev buttons...
*
*
*
*
* Now, all you need to do is call the carousel component on the div =
element that represents it, and pass in the
* navigation buttons as options.
*
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev"
* });
*
* That's it, you would have now converted your raw div, into a =
magnificient carousel.
*
* There are quite a few other options that you can use to customize it =
though.
* Each will be explained with an example below.
*
* @param an options object - You can specify all the options shown =
below as an options object param.
*
* @option btnPrev, btnNext : string - no defaults
* @example
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev"
* });
* @desc Creates a basic carousel. Clicking "btnPrev" navigates =
backwards and "btnNext" navigates forward.
*
* @option btnGo - array - no defaults
* @example
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev",
* btnGo: [".0", ".1", ".2"]
* });
* @desc If you don't want next and previous buttons for navigation, =
instead you prefer custom navigation based on
* the item number within the carousel, you can use this option. Just =
supply an array of selectors for each element
* in the carousel. The index of the array represents the index of the =
element. What i mean is, if the
* first element in the array is ".0", it means that when the element =
represented by ".0" is clicked, the carousel
* will slide to the first element and so on and so forth. This feature =
is very powerful. For example, i made a tabbed
* interface out of it by making my navigation elements styled like tabs =
in css. As the carousel is capable of holding
* any content, not just images, you can have a very simple tabbed =
navigation in minutes without using any other plugin.
* The best part is that, the tab will "slide" based on the provided =
effect. :-)
*
* @option mouseWheel : boolean - default is false
* @example
* $(".carousel").jCarouselLite({
* mouseWheel: true
* });
* @desc The carousel can also be navigated using the mouse wheel =
interface of a scroll mouse instead of using buttons.
* To get this feature working, you have to do 2 things. First, you have =
to include the mouse-wheel plugin from brandon.
* Second, you will have to set the option "mouseWheel" to true. That's =
it, now you will be able to navigate your carousel
* using the mouse wheel. Using buttons and mouseWheel or not mutually =
exclusive. You can still have buttons for navigation
* as well. They complement each other. To use both together, just =
supply the options required for both as shown below.
* @example
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev",
* mouseWheel: true
* });
*
* @option auto : number - default is null, meaning autoscroll is =
disabled by default
* @example
* $(".carousel").jCarouselLite({
* auto: 800,
* speed: 500
* });
* @desc You can make your carousel auto-navigate itself by specfying a =
millisecond value in this option.
* The value you specify is the amount of time between 2 slides. The =
default is null, and that disables auto scrolling.
* Specify this value and magically your carousel will start auto =
scrolling.
*
* @option speed : number - 200 is default
* @example
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev",
* speed: 800
* });
* @desc Specifying a speed will slow-down or speed-up the sliding speed =
of your carousel. Try it out with
* different speeds like 800, 600, 1500 etc. Providing 0, will remove =
the slide effect.
*
* @option easing : string - no easing effects by default.
* @example
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev",
* easing: "bounceout"
* });
* @desc You can specify any easing effect. Note: You need easing plugin =
for that. Once specified,
* the carousel will slide based on the provided easing effect.
*
* @option vertical : boolean - default is false
* @example
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev",
* vertical: true
* });
* @desc Determines the direction of the carousel. true, means the =
carousel will display vertically. The next and
* prev buttons will slide the items vertically as well. The default is =
false, which means that the carousel will
* display horizontally. The next and prev items will slide the items =
from left-right in this case.
*
* @option circular : boolean - default is true
* @example
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev",
* circular: false
* });
* @desc Setting it to true enables circular navigation. This means, if =
you click "next" after you reach the last
* element, you will automatically slide to the first element and vice =
versa. If you set circular to false, then
* if you click on the "next" button after you reach the last element, =
you will stay in the last element itself
* and similarly for "previous" button and first element.
*
* @option visible : number - default is 3
* @example
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev",
* visible: 4
* });
* @desc This specifies the number of items visible at all times within =
the carousel. The default is 3.
* You are even free to experiment with real numbers. Eg: "3.5" will =
have 3 items fully visible and the
* last item half visible. This gives you the effect of showing the user =
that there are more images to the right.
*
* @option start : number - default is 0
* @example
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev",
* start: 2
* });
* @desc You can specify from which item the carousel should start. =
Remember, the first item in the carousel
* has a start of 0, and so on.
*
* @option scrool : number - default is 1
* @example
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev",
* scroll: 2
* });
* @desc The number of items that should scroll/slide when you click the =
next/prev navigation buttons. By
* default, only one item is scrolled, but you may set it to any number. =
Eg: setting it to "2" will scroll
* 2 items when you click the next or previous buttons.
*
* @option beforeStart, afterEnd : function - callbacks
* @example
* $(".carousel").jCarouselLite({
* btnNext: ".next",
* btnPrev: ".prev",
* beforeStart: function(a) {
* alert("Before animation starts:" + a);
* },
* afterEnd: function(a) {
* alert("After animation ends:" + a);
* }
* });
* @desc If you wanted to do some logic in your page before the slide =
starts and after the slide ends, you can
* register these 2 callbacks. The functions will be passed an argument =
that represents an array of elements that
* are visible at the time of callback.
*
*
* @cat Plugins/Image Gallery
* @author Ganeshji Marwaha/ganeshread@gmail.com
*/
(function($) { // Compliant =
with jquery.noConflict()
$.fn.jCarouselLite =3D function(o) {
o =3D $.extend({
btnPrev: null,
btnNext: null,
btnGo: null,
mouseWheel: false,
auto: null,
speed: 200,
easing: null,
vertical: false,
circular: true,
visible: 3,
start: 0,
scroll: 1,
beforeStart: null,
afterEnd: null
}, o || {});
return this.each(function() { // Returns =
the element collection. Chainable.
var running =3D false, animCss=3Do.vertical?"top":"left", =
sizeCss=3Do.vertical?"height":"width";
var div =3D $(this), ul =3D $("ul", div), tLi =3D $("li", ul), =
tl =3D tLi.size(), v =3D o.visible;
if(o.circular) {
ul.prepend(tLi.slice(tl-v-1+1).clone())
.append(tLi.slice(0,v).clone());
o.start +=3D v;
}
var li =3D $("li", ul), itemLength =3D li.size(), curr =3D =
o.start;
div.css("visibility", "visible");
li.css({overflow: "hidden", float: o.vertical ? "none" : =
"left"});
ul.css({margin: "0", padding: "0", position: "relative", =
"list-style-type": "none", "z-index": "1"});
div.css({overflow: "hidden", position: "relative", "z-index": =
"2", left: "0px"});
var liSize =3D o.vertical ? height(li) : width(li); // Full li =
size(incl margin)-Used for animation
var ulSize =3D liSize * itemLength; // size of =
full ul(total length, not just for the visible items)
var divSize =3D liSize * v; // size of =
entire div(total length for just the visible items)
li.css({width: li.width(), height: li.height()});
ul.css(sizeCss, ulSize+"px").css(animCss, -(curr*liSize));
div.css(sizeCss, divSize+"px"); // Width of =
the DIV. length of visible images
if(o.btnPrev)
$(o.btnPrev).click(function() {
return go(curr-o.scroll);
});
if(o.btnNext)
$(o.btnNext).click(function() {
return go(curr+o.scroll);
});
if(o.btnGo)
$.each(o.btnGo, function(i, val) {
$(val).click(function() {
return go(o.circular ? o.visible+i : i);
});
});
if(o.mouseWheel && div.mousewheel)
div.mousewheel(function(e, d) {
return d>0 ? go(curr-o.scroll) : go(curr+o.scroll);
});
if(o.auto)
setInterval(function() {
go(curr+o.scroll);
}, o.auto+o.speed);
function vis() {
return li.slice(curr).slice(0,v);
};
function go(to) {
if(!running) {
if(o.beforeStart)
o.beforeStart.call(this, vis());
if(o.circular) { // If circular we are in =
first or last, then goto the other end
if(to<=3Do.start-v-1) { // If first, then =
goto last
ul.css(animCss, =
-((itemLength-(v*2))*liSize)+"px");
// If "scroll" > 1, then the "to" might not be =
equal to the condition; it can be lesser depending on the number of =
elements.
curr =3D to=3D=3Do.start-v-1 ? =
itemLength-(v*2)-1 : itemLength-(v*2)-o.scroll;
} else if(to>=3DitemLength-v+1) { // If last, then =
goto first
ul.css(animCss, -( (v) * liSize ) + "px" );
// If "scroll" > 1, then the "to" might not be =
equal to the condition; it can be greater depending on the number of =
elements.
curr =3D to=3D=3DitemLength-v+1 ? v+1 : =
v+o.scroll;
} else curr =3D to;
} else { // If non-circular and to =
points to first or last, we just return.
if(to<0 || to>itemLength-v) return;
else curr =3D to;
} // If neither overrides it, =
the curr will still be "to" and we can proceed.
running =3D true;
ul.animate(
animCss =3D=3D "left" ? { left: -(curr*liSize) } : { =
top: -(curr*liSize) } , o.speed, o.easing,
function() {
if(o.afterEnd)
o.afterEnd.call(this, vis());
running =3D false;
}
);
// Disable buttons when the carousel reaches the =
last/first, and enable when not
if(!o.circular) {
$(o.btnPrev + "," + =
o.btnNext).removeClass("disabled");
$( (curr-o.scroll<0 && o.btnPrev)
||
(curr+o.scroll > itemLength-v && o.btnNext)
||
[]
).addClass("disabled");
}
}
return false;
};
});
};
function css(el, prop) {
return parseInt($.css(el[0], prop)) || 0;
};
function width(el) {
return el[0].offsetWidth + css(el, 'marginLeft') + css(el, =
'marginRight');
};
function height(el) {
return el[0].offsetHeight + css(el, 'marginTop') + css(el, =
'marginBottom');
};
})(jQuery);
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Location: http://www.zaman.com.tr/js/equal-div-height.js
function equalHeight(group) {
tallest = 0;
group.each(function() {
thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}
function equalWidth(group) {
largest = 0;
group.each(function() {
thisWidth = $(this).width();
// alert(thisWidth);
if(thisWidth > largest) {
largest = thisWidth;
}
});
group.width(largest);
}
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Location: http://www.zaman.com.tr/js/top-stories.js?v=22
/******************* TOP *********************************/
function updateTopStoriesByAjax(newsId,action){
$.ajax({
type: 'GET',
url: 'topStoriesAction_updateSharing.action',
data: 'shareNewsId='+newsId+'&shareType='+action
});
}
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/jquery/js/jquery.easing.1.3.js
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*=20
* Open source under the BSD License.=20
*=20
* Copyright =C2=A9 2008 George McGinley Smith
* All rights reserved.
*=20
* Redistribution and use in source and binary forms, with or without =
modification,=20
* are permitted provided that the following conditions are met:
*=20
* Redistributions of source code must retain the above copyright =
notice, this list of=20
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright =
notice, this list=20
* of conditions and the following disclaimer in the documentation =
and/or other materials=20
* provided with the distribution.
*=20
* Neither the name of the author nor the names of contributors may be =
used to endorse=20
* or promote products derived from this software without specific prior =
written permission.
*=20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS =
"AS IS" AND ANY=20
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE =
IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. =
IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, =
INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, =
PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS =
INTERRUPTION) HOWEVER CAUSED=20
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT =
LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS =
SOFTWARE, EVEN IF ADVISED=20
* OF THE POSSIBILITY OF SUCH DAMAGE.=20
*
*/
// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] =3D jQuery.easing['swing'];
jQuery.extend( jQuery.easing,
{
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
//alert(jQuery.easing.default);
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
},
easeInQuad: function (x, t, b, c, d) {
return c*(t/=3Dd)*t + b;
},
easeOutQuad: function (x, t, b, c, d) {
return -c *(t/=3Dd)*(t-2) + b;
},
easeInOutQuad: function (x, t, b, c, d) {
if ((t/=3Dd/2) < 1) return c/2*t*t + b;
return -c/2 * ((--t)*(t-2) - 1) + b;
},
easeInCubic: function (x, t, b, c, d) {
return c*(t/=3Dd)*t*t + b;
},
easeOutCubic: function (x, t, b, c, d) {
return c*((t=3Dt/d-1)*t*t + 1) + b;
},
easeInOutCubic: function (x, t, b, c, d) {
if ((t/=3Dd/2) < 1) return c/2*t*t*t + b;
return c/2*((t-=3D2)*t*t + 2) + b;
},
easeInQuart: function (x, t, b, c, d) {
return c*(t/=3Dd)*t*t*t + b;
},
easeOutQuart: function (x, t, b, c, d) {
return -c * ((t=3Dt/d-1)*t*t*t - 1) + b;
},
easeInOutQuart: function (x, t, b, c, d) {
if ((t/=3Dd/2) < 1) return c/2*t*t*t*t + b;
return -c/2 * ((t-=3D2)*t*t*t - 2) + b;
},
easeInQuint: function (x, t, b, c, d) {
return c*(t/=3Dd)*t*t*t*t + b;
},
easeOutQuint: function (x, t, b, c, d) {
return c*((t=3Dt/d-1)*t*t*t*t + 1) + b;
},
easeInOutQuint: function (x, t, b, c, d) {
if ((t/=3Dd/2) < 1) return c/2*t*t*t*t*t + b;
return c/2*((t-=3D2)*t*t*t*t + 2) + b;
},
easeInSine: function (x, t, b, c, d) {
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
},
easeOutSine: function (x, t, b, c, d) {
return c * Math.sin(t/d * (Math.PI/2)) + b;
},
easeInOutSine: function (x, t, b, c, d) {
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
},
easeInExpo: function (x, t, b, c, d) {
return (t=3D=3D0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
},
easeOutExpo: function (x, t, b, c, d) {
return (t=3D=3Dd) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
},
easeInOutExpo: function (x, t, b, c, d) {
if (t=3D=3D0) return b;
if (t=3D=3Dd) return b+c;
if ((t/=3Dd/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
},
easeInCirc: function (x, t, b, c, d) {
return -c * (Math.sqrt(1 - (t/=3Dd)*t) - 1) + b;
},
easeOutCirc: function (x, t, b, c, d) {
return c * Math.sqrt(1 - (t=3Dt/d-1)*t) + b;
},
easeInOutCirc: function (x, t, b, c, d) {
if ((t/=3Dd/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
return c/2 * (Math.sqrt(1 - (t-=3D2)*t) + 1) + b;
},
easeInElastic: function (x, t, b, c, d) {
var s=3D1.70158;var p=3D0;var a=3Dc;
if (t=3D=3D0) return b; if ((t/=3Dd)=3D=3D1) return b+c; if (!p) =
p=3Dd*.3;
if (a < Math.abs(c)) { a=3Dc; var s=3Dp/4; }
else var s =3D p/(2*Math.PI) * Math.asin (c/a);
return -(a*Math.pow(2,10*(t-=3D1)) * Math.sin( (t*d-s)*(2*Math.PI)/p =
)) + b;
},
easeOutElastic: function (x, t, b, c, d) {
var s=3D1.70158;var p=3D0;var a=3Dc;
if (t=3D=3D0) return b; if ((t/=3Dd)=3D=3D1) return b+c; if (!p) =
p=3Dd*.3;
if (a < Math.abs(c)) { a=3Dc; var s=3Dp/4; }
else var s =3D p/(2*Math.PI) * Math.asin (c/a);
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + =
b;
},
easeInOutElastic: function (x, t, b, c, d) {
var s=3D1.70158;var p=3D0;var a=3Dc;
if (t=3D=3D0) return b; if ((t/=3Dd/2)=3D=3D2) return b+c; if (!p) =
p=3Dd*(.3*1.5);
if (a < Math.abs(c)) { a=3Dc; var s=3Dp/4; }
else var s =3D p/(2*Math.PI) * Math.asin (c/a);
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=3D1)) * Math.sin( =
(t*d-s)*(2*Math.PI)/p )) + b;
return a*Math.pow(2,-10*(t-=3D1)) * Math.sin( (t*d-s)*(2*Math.PI)/p =
)*.5 + c + b;
},
easeInBack: function (x, t, b, c, d, s) {
if (s =3D=3D undefined) s =3D 1.70158;
return c*(t/=3Dd)*t*((s+1)*t - s) + b;
},
easeOutBack: function (x, t, b, c, d, s) {
if (s =3D=3D undefined) s =3D 1.70158;
return c*((t=3Dt/d-1)*t*((s+1)*t + s) + 1) + b;
},
easeInOutBack: function (x, t, b, c, d, s) {
if (s =3D=3D undefined) s =3D 1.70158;=20
if ((t/=3Dd/2) < 1) return c/2*(t*t*(((s*=3D(1.525))+1)*t - s)) + b;
return c/2*((t-=3D2)*t*(((s*=3D(1.525))+1)*t + s) + 2) + b;
},
easeInBounce: function (x, t, b, c, d) {
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
},
easeOutBounce: function (x, t, b, c, d) {
if ((t/=3Dd) < (1/2.75)) {
return c*(7.5625*t*t) + b;
} else if (t < (2/2.75)) {
return c*(7.5625*(t-=3D(1.5/2.75))*t + .75) + b;
} else if (t < (2.5/2.75)) {
return c*(7.5625*(t-=3D(2.25/2.75))*t + .9375) + b;
} else {
return c*(7.5625*(t-=3D(2.625/2.75))*t + .984375) + b;
}
},
easeInOutBounce: function (x, t, b, c, d) {
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 =
+ b;
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + =
b;
}
});
/*
*
* TERMS OF USE - EASING EQUATIONS
*=20
* Open source under the BSD License.=20
*=20
* Copyright =C2=A9 2001 Robert Penner
* All rights reserved.
*=20
* Redistribution and use in source and binary forms, with or without =
modification,=20
* are permitted provided that the following conditions are met:
*=20
* Redistributions of source code must retain the above copyright =
notice, this list of=20
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright =
notice, this list=20
* of conditions and the following disclaimer in the documentation =
and/or other materials=20
* provided with the distribution.
*=20
* Neither the name of the author nor the names of contributors may be =
used to endorse=20
* or promote products derived from this software without specific prior =
written permission.
*=20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS =
"AS IS" AND ANY=20
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE =
IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. =
IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, =
INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, =
PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS =
INTERRUPTION) HOWEVER CAUSED=20
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT =
LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS =
SOFTWARE, EVEN IF ADVISED=20
* OF THE POSSIBILITY OF SUCH DAMAGE.=20
*
*/
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/jquery/js-beta/jquery.backgroundSize.js
/*=0A=
* backgroundSize: A jQuery cssHook adding support for "cover" and =
"contain" to IE6,7,8=0A=
*=0A=
* Requirements:=0A=
* - jQuery 1.7.0+=0A=
*=0A=
* Limitations:=0A=
* - doesn't work with multiple backgrounds (use the :after trick)=0A=
* - doesn't work with the "4 values syntax" of background-position=0A=
* - doesn't work with lengths in background-position (only percentages =
and keywords)=0A=
* - doesn't work with "background-repeat: repeat;"=0A=
* - doesn't work with non-default values of =
background-clip/origin/attachment/scroll=0A=
* - you should still test your website in IE!=0A=
*=0A=
* latest version and complete README available on Github:=0A=
* https://github.com/louisremi/jquery.backgroundSize.js=0A=
*=0A=
* Copyright 2012 @louis_remi=0A=
* Licensed under the MIT license.=0A=
*=0A=
* This saved you an hour of work?=0A=
* Send me music http://www.amazon.co.uk/wishlist/HNTU0468LQON=0A=
*=0A=
*/=0A=
(function($,window,document,Math,undefined) {=0A=
=0A=
var div =3D $( "
" )[0],=0A=
rsrc =3D /url\(["']?(.*?)["']?\)/,=0A=
watched =3D [],=0A=
positions =3D {=0A=
top: 0,=0A=
left: 0,=0A=
bottom: 1,=0A=
right: 1,=0A=
center: .5=0A=
};=0A=
=0A=
// feature detection=0A=
if ( "backgroundSize" in div.style && !$.debugBGS ) { return; }=0A=
=0A=
$.cssHooks.backgroundSize =3D {=0A=
set: function( elem, value ) {=0A=
var firstTime =3D !$.data( elem, "bgsImg" ),=0A=
pos,=0A=
$wrapper, $img;=0A=
=0A=
$.data( elem, "bgsValue", value );=0A=
=0A=
if ( firstTime ) {=0A=
// add this element to the 'watched' list so that it's updated on =
resize=0A=
watched.push( elem );=0A=
=0A=
$.refreshBackgroundDimensions( elem, true );=0A=
=0A=
// create wrapper and img=0A=
$wrapper =3D $( "
" ).css({=0A=
position: "absolute",=0A=
zIndex: -1,=0A=
top: 0,=0A=
right: 0,=0A=
left: 0,=0A=
bottom: 0,=0A=
overflow: "hidden"=0A=
});=0A=
=0A=
$img =3D $( "" ).css({=0A=
position: "absolute"=0A=
}).appendTo( $wrapper ),=0A=
=0A=
$wrapper.prependTo( elem );=0A=
=0A=
$.data( elem, "bgsImg", $img[0] );=0A=
=0A=
pos =3D ( =0A=
// Firefox, Chrome (for debug)=0A=
$.css( elem, "backgroundPosition" ) ||=0A=
// IE8=0A=
$.css( elem, "backgroundPositionX" ) + " " + $.css( elem, =
"backgroundPositionY" )=0A=
).split(" ");=0A=
=0A=
// Only compatible with 1 or 2 percentage or keyword values,=0A=
// Not yet compatible with length values and 4 values.=0A=
$.data( elem, "bgsPos", [ =0A=
positions[ pos[0] ] || parseFloat( pos[0] ) / 100, =0A=
positions[ pos[1] ] || parseFloat( pos[1] ) / 100=0A=
]);=0A=
=0A=
// This is the part where we mess with the existing DOM=0A=
// to make sure that the background image is correctly zIndexed=0A=
$.css( elem, "zIndex" ) =3D=3D "auto" && ( elem.style.zIndex =3D 0 );=0A=
$.css( elem, "position" ) =3D=3D "static" && ( elem.style.position =
=3D "relative" );=0A=
=0A=
$.refreshBackgroundImage( elem );=0A=
=0A=
} else {=0A=
$.refreshBackground( elem );=0A=
}=0A=
},=0A=
=0A=
get: function( elem ) {=0A=
return $.data( elem, "bgsValue" ) || "";=0A=
}=0A=
};=0A=
=0A=
// The background should refresh automatically when changing the =
background-image=0A=
$.cssHooks.backgroundImage =3D {=0A=
set: function( elem, value ) {=0A=
// if the element has a backgroundSize, refresh its background=0A=
return $.data( elem, "bgsImg") ?=0A=
$.refreshBackgroundImage( elem, value ) :=0A=
// otherwise set the background-image normally=0A=
value;=0A=
}=0A=
};=0A=
=0A=
$.refreshBackgroundDimensions =3D function( elem, noBgRefresh ) {=0A=
var $elem =3D $(elem),=0A=
currDim =3D {=0A=
width: $elem.innerWidth(),=0A=
height: $elem.innerHeight()=0A=
},=0A=
prevDim =3D $.data( elem, "bgsDim" ),=0A=
changed =3D !prevDim ||=0A=
currDim.width !=3D prevDim.width ||=0A=
currDim.height !=3D prevDim.height;=0A=
=0A=
$.data( elem, "bgsDim", currDim );=0A=
=0A=
if ( changed && !noBgRefresh ) {=0A=
$.refreshBackground( elem );=0A=
}=0A=
};=0A=
=0A=
$.refreshBackgroundImage =3D function( elem, value ) {=0A=
var img =3D $.data( elem, "bgsImg" ),=0A=
currSrc =3D ( rsrc.exec( value || $.css( elem, "backgroundImage" ) ) =
|| [] )[1],=0A=
prevSrc =3D img && img.src,=0A=
changed =3D currSrc !=3D prevSrc,=0A=
imgWidth, imgHeight;=0A=
=0A=
if ( changed ) {=0A=
img.style.height =3D img.style.width =3D "auto";=0A=
=0A=
img.onload =3D function() {=0A=
var dim =3D {=0A=
width: img.width,=0A=
height: img.height=0A=
};=0A=
=0A=
// ignore onload on the proxy image=0A=
if ( dim.width =3D=3D 1 && dim.height =3D=3D 1 ) { return; }=0A=
=0A=
$.data( elem, "bgsImgDim", dim );=0A=
$.data( elem, "bgsConstrain", false );=0A=
=0A=
$.refreshBackground( elem );=0A=
=0A=
img.style.visibility =3D "visible";=0A=
=0A=
img.onload =3D null;=0A=
};=0A=
=0A=
img.style.visibility =3D "hidden";=0A=
img.src =3D currSrc;=0A=
=0A=
if ( img.readyState || img.complete ) {=0A=
img.src =3D =
"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=3D=3D=
";=0A=
img.src =3D currSrc;=0A=
}=0A=
=0A=
elem.style.backgroundImage =3D "none";=0A=
}=0A=
};=0A=
=0A=
$.refreshBackground =3D function( elem ) {=0A=
var value =3D $.data( elem, "bgsValue" ),=0A=
elemDim =3D $.data( elem, "bgsDim" ),=0A=
imgDim =3D $.data( elem, "bgsImgDim" ),=0A=
$img =3D $( $.data( elem, "bgsImg" ) ),=0A=
pos =3D $.data( elem, "bgsPos" ),=0A=
prevConstrain =3D $.data( elem, "bgsConstrain" ),=0A=
currConstrain,=0A=
elemRatio =3D elemDim.width / elemDim.height,=0A=
imgRatio =3D imgDim.width / imgDim.height,=0A=
delta;=0A=
=0A=
if ( value =3D=3D "contain" ) {=0A=
if ( imgRatio > elemRatio ) {=0A=
$.data( elem, "bgsConstrain", ( currConstrain =3D "width" ) );=0A=
=0A=
delta =3D Math.floor( ( elemDim.height - elemDim.width / imgRatio ) * =
pos[1] );=0A=
=0A=
$img.css({=0A=
top: delta=0A=
});=0A=
=0A=
// when switchin from height to with constraint,=0A=
// make sure to release contraint on height and reset left=0A=
if ( currConstrain !=3D prevConstrain ) {=0A=
$img.css({=0A=
width: "100%",=0A=
height: "auto",=0A=
left: 0=0A=
});=0A=
}=0A=
=0A=
} else {=0A=
$.data( elem, "bgsConstrain", ( currConstrain =3D "height" ) );=0A=
=0A=
delta =3D Math.floor( ( elemDim.width - elemDim.height * imgRatio ) * =
pos[0] );=0A=
=0A=
$img.css({=0A=
left: delta=0A=
});=0A=
=0A=
if ( currConstrain !=3D prevConstrain ) {=0A=
$img.css({=0A=
height: "100%",=0A=
width: "auto",=0A=
top: 0=0A=
});=0A=
}=0A=
}=0A=
=0A=
} else if ( value =3D=3D "cover" ) {=0A=
if ( imgRatio > elemRatio ) {=0A=
$.data( elem, "bgsConstrain", ( currConstrain =3D "height" ) );=0A=
=0A=
delta =3D Math.floor( ( elemDim.height * imgRatio - elemDim.width ) * =
pos[0] );=0A=
=0A=
$img.css({=0A=
left: -delta=0A=
});=0A=
=0A=
if ( currConstrain !=3D prevConstrain ) {=0A=
$img.css({=0A=
height:"100%",=0A=
width: "auto",=0A=
top: 0=0A=
});=0A=
}=0A=
=0A=
} else {=0A=
$.data( elem, "bgsConstrain", ( currConstrain =3D "width" ) );=0A=
=0A=
delta =3D Math.floor( ( elemDim.width / imgRatio - elemDim.height ) * =
pos[1] );=0A=
=0A=
$img.css({=0A=
top: -delta=0A=
});=0A=
=0A=
if ( currConstrain !=3D prevConstrain ) {=0A=
$img.css({=0A=
width: "100%",=0A=
height: "auto",=0A=
left: 0=0A=
});=0A=
}=0A=
}=0A=
}=0A=
}=0A=
=0A=
// Built-in throttledresize=0A=
var $event =3D $.event,=0A=
$special,=0A=
dummy =3D {_:0},=0A=
frame =3D 0,=0A=
wasResized, animRunning;=0A=
=0A=
$special =3D $event.special.throttledresize =3D {=0A=
setup: function() {=0A=
$( this ).on( "resize", $special.handler );=0A=
},=0A=
teardown: function() {=0A=
$( this ).off( "resize", $special.handler );=0A=
},=0A=
handler: function( event, execAsap ) {=0A=
// Save the context=0A=
var context =3D this,=0A=
args =3D arguments;=0A=
=0A=
wasResized =3D true;=0A=
=0A=
if ( !animRunning ) {=0A=
$(dummy).animate(dummy, { duration: Infinity, step: function() {=0A=
frame++;=0A=
=0A=
if ( frame > $special.threshold && wasResized || execAsap ) {=0A=
// set correct event type=0A=
event.type =3D "throttledresize";=0A=
$event.dispatch.apply( context, args );=0A=
wasResized =3D false;=0A=
frame =3D 0;=0A=
}=0A=
if ( frame > 9 ) {=0A=
$(dummy).stop();=0A=
animRunning =3D false;=0A=
frame =3D 0;=0A=
}=0A=
}});=0A=
animRunning =3D true;=0A=
}=0A=
},=0A=
threshold: 1=0A=
};=0A=
=0A=
// All backgrounds should refresh automatically when the window is =
resized=0A=
$(window).on("throttledresize", function() {=0A=
$(watched).each(function() {=0A=
$.refreshBackgroundDimensions( this );=0A=
});=0A=
});=0A=
=0A=
})(jQuery,window,document,Math);
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/zaman-beta/hammer.js
/*=0A=
* Hammer.JS=0A=
* version 0.6.4=0A=
* author: Eight Media=0A=
* https://github.com/EightMedia/hammer.js=0A=
* Licensed under the MIT license.=0A=
*/=0A=
function Hammer(element, options, undefined)=0A=
{=0A=
var self =3D this;=0A=
=0A=
var defaults =3D mergeObject({=0A=
// prevent the default event or not... might be buggy when false=0A=
prevent_default : false,=0A=
css_hacks : true,=0A=
=0A=
swipe : true,=0A=
swipe_time : 500, // ms=0A=
swipe_min_distance : 20, // pixels=0A=
=0A=
drag : true,=0A=
drag_vertical : true,=0A=
drag_horizontal : true,=0A=
// minimum distance before the drag event starts=0A=
drag_min_distance : 20, // pixels=0A=
=0A=
// pinch zoom and rotation=0A=
transform : true,=0A=
scale_treshold : 0.1,=0A=
rotation_treshold : 15, // degrees=0A=
=0A=
tap : true,=0A=
tap_double : true,=0A=
tap_max_interval : 300,=0A=
tap_max_distance : 10,=0A=
tap_double_distance: 20,=0A=
=0A=
hold : true,=0A=
hold_timeout : 500,=0A=
=0A=
allow_touch_and_mouse : false=0A=
}, Hammer.defaults || {});=0A=
options =3D mergeObject(defaults, options);=0A=
=0A=
// some css hacks=0A=
(function() {=0A=
if(!options.css_hacks) {=0A=
return false;=0A=
}=0A=
=0A=
var vendors =3D ['webkit','moz','ms','o',''];=0A=
var css_props =3D {=0A=
"userSelect": "none",=0A=
"touchCallout": "none",=0A=
"touchAction": "none",=0A=
"userDrag": "none",=0A=
"tapHighlightColor": "rgba(0,0,0,0)"=0A=
};=0A=
=0A=
var prop =3D '';=0A=
for(var i =3D 0; i < vendors.length; i++) {=0A=
for(var p in css_props) {=0A=
prop =3D p;=0A=
if(vendors[i]) {=0A=
prop =3D vendors[i] + prop.substring(0, =
1).toUpperCase() + prop.substring(1);=0A=
}=0A=
element.style[ prop ] =3D css_props[p];=0A=
}=0A=
}=0A=
})();=0A=
=0A=
// holds the distance that has been moved=0A=
var _distance =3D 0;=0A=
=0A=
// holds the exact angle that has been moved=0A=
var _angle =3D 0;=0A=
=0A=
// holds the direction that has been moved=0A=
var _direction =3D 0;=0A=
=0A=
// holds position movement for sliding=0A=
var _pos =3D { };=0A=
=0A=
// how many fingers are on the screen=0A=
var _fingers =3D 0;=0A=
=0A=
var _first =3D false;=0A=
=0A=
var _gesture =3D null;=0A=
var _prev_gesture =3D null;=0A=
=0A=
var _touch_start_time =3D null;=0A=
var _prev_tap_pos =3D {x: 0, y: 0};=0A=
var _prev_tap_end_time =3D null;=0A=
=0A=
var _hold_timer =3D null;=0A=
=0A=
var _offset =3D {};=0A=
=0A=
// keep track of the mouse status=0A=
var _mousedown =3D false;=0A=
=0A=
var _event_start;=0A=
var _event_move;=0A=
var _event_end;=0A=
=0A=
var _has_touch =3D ('ontouchstart' in window);=0A=
=0A=
var _can_tap =3D false;=0A=
=0A=
=0A=
/**=0A=
* option setter/getter=0A=
* @param string key=0A=
* @param mixed value=0A=
* @return mixed value=0A=
*/=0A=
this.option =3D function(key, val) {=0A=
if(val !=3D=3D undefined) {=0A=
options[key] =3D val;=0A=
}=0A=
=0A=
return options[key];=0A=
};=0A=
=0A=
=0A=
/**=0A=
* angle to direction define=0A=
* @param float angle=0A=
* @return string direction=0A=
*/=0A=
this.getDirectionFromAngle =3D function( angle ) {=0A=
var directions =3D {=0A=
down: angle >=3D 45 && angle < 135, //90=0A=
left: angle >=3D 135 || angle <=3D -135, //180=0A=
up: angle < -45 && angle > -135, //270=0A=
right: angle >=3D -45 && angle <=3D 45 //0=0A=
};=0A=
=0A=
var direction, key;=0A=
for(key in directions){=0A=
if(directions[key]){=0A=
direction =3D key;=0A=
break;=0A=
}=0A=
}=0A=
return direction;=0A=
};=0A=
=0A=
=0A=
/**=0A=
* destroy events=0A=
* @return void=0A=
*/=0A=
this.destroy =3D function() {=0A=
if(_has_touch || options.allow_touch_and_mouse) {=0A=
removeEvent(element, "touchstart touchmove touchend =
touchcancel", handleEvents);=0A=
}=0A=
=0A=
// for non-touch=0A=
if (!_has_touch || options.allow_touch_and_mouse) {=0A=
removeEvent(element, "mouseup mousedown mousemove", =
handleEvents);=0A=
removeEvent(element, "mouseout", handleMouseOut);=0A=
}=0A=
};=0A=
=0A=
=0A=
/**=0A=
* count the number of fingers in the event=0A=
* when no fingers are detected, one finger is returned (mouse =
pointer)=0A=
* @param event=0A=
* @return int fingers=0A=
*/=0A=
function countFingers( event )=0A=
{=0A=
// there is a bug on android (until v4?) that touches is always =
1,=0A=
// so no multitouch is supported, e.g. no, zoom and rotation...=0A=
return event.touches ? event.touches.length : 1;=0A=
}=0A=
=0A=
/**=0A=
* Gets the event xy positions from a mouse event.=0A=
* @param event=0A=
* @return {Array}=0A=
*/=0A=
function getXYMouse(event) {=0A=
var doc =3D document,=0A=
body =3D doc.body;=0A=
=0A=
return [{=0A=
x: event.pageX || event.clientX + ( doc && doc.scrollLeft || =
body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && =
doc.clientLeft || 0 ),=0A=
y: event.pageY || event.clientY + ( doc && doc.scrollTop || =
body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && =
doc.clientTop || 0 )=0A=
}];=0A=
}=0A=
=0A=
/**=0A=
* gets the event xy positions from touch event.=0A=
* @param event=0A=
* @return {Array}=0A=
*/=0A=
function getXYTouch(event) {=0A=
var pos =3D [], src;=0A=
for(var t=3D0, len =3D options.two_touch_max ? Math.min(2, =
event.touches.length) : event.touches.length; t 0) {=0A=
=0A=
_fn =3D getXYTouch;=0A=
}=0A=
} else {=0A=
_fn =3D getXYTouch;=0A=
}=0A=
=0A=
return _fn(event);=0A=
}=0A=
=0A=
=0A=
/**=0A=
* calculate the angle between two points=0A=
* @param object pos1 { x: int, y: int }=0A=
* @param object pos2 { x: int, y: int }=0A=
*/=0A=
function getAngle( pos1, pos2 )=0A=
{=0A=
return Math.atan2(pos2.y - pos1.y, pos2.x - pos1.x) * 180 / =
Math.PI;=0A=
}=0A=
=0A=
/**=0A=
* calculate the distance between two points=0A=
* @param object pos1 { x: int, y: int }=0A=
* @param object pos2 { x: int, y: int }=0A=
*/=0A=
function getDistance( pos1, pos2 )=0A=
{=0A=
var x =3D pos2.x - pos1.x, y =3D pos2.y - pos1.y;=0A=
return Math.sqrt((x * x) + (y * y));=0A=
}=0A=
=0A=
=0A=
/**=0A=
* calculate the scale size between two fingers=0A=
* @param object pos_start=0A=
* @param object pos_move=0A=
* @return float scale=0A=
*/=0A=
function calculateScale(pos_start, pos_move)=0A=
{=0A=
if(pos_start.length =3D=3D 2 && pos_move.length =3D=3D 2) {=0A=
var start_distance =3D getDistance(pos_start[0], =
pos_start[1]);=0A=
var end_distance =3D getDistance(pos_move[0], pos_move[1]);=0A=
return end_distance / start_distance;=0A=
}=0A=
=0A=
return 0;=0A=
}=0A=
=0A=
=0A=
/**=0A=
* calculate the rotation degrees between two fingers=0A=
* @param object pos_start=0A=
* @param object pos_move=0A=
* @return float rotation=0A=
*/=0A=
function calculateRotation(pos_start, pos_move)=0A=
{=0A=
if(pos_start.length =3D=3D 2 && pos_move.length =3D=3D 2) {=0A=
var start_rotation =3D getAngle(pos_start[1], pos_start[0]);=0A=
var end_rotation =3D getAngle(pos_move[1], pos_move[0]);=0A=
return end_rotation - start_rotation;=0A=
}=0A=
=0A=
return 0;=0A=
}=0A=
=0A=
=0A=
/**=0A=
* trigger an event/callback by name with params=0A=
* @param string name=0A=
* @param array params=0A=
*/=0A=
function triggerEvent( eventName, params )=0A=
{=0A=
// return touches object=0A=
params.touches =3D getXYfromEvent(params.originalEvent);=0A=
params.type =3D eventName;=0A=
=0A=
// trigger callback=0A=
if(isFunction(self["on"+ eventName])) {=0A=
self["on"+ eventName].call(self, params);=0A=
}=0A=
}=0A=
=0A=
=0A=
/**=0A=
* cancel event=0A=
* @param object event=0A=
* @return void=0A=
*/=0A=
=0A=
function cancelEvent(event)=0A=
{=0A=
event =3D event || window.event;=0A=
if(event.preventDefault){=0A=
event.preventDefault();=0A=
event.stopPropagation();=0A=
}else{=0A=
event.returnValue =3D false;=0A=
event.cancelBubble =3D true;=0A=
}=0A=
}=0A=
=0A=
=0A=
/**=0A=
* reset the internal vars to the start values=0A=
*/=0A=
function reset()=0A=
{=0A=
_pos =3D {};=0A=
_first =3D false;=0A=
_fingers =3D 0;=0A=
_distance =3D 0;=0A=
_angle =3D 0;=0A=
_gesture =3D null;=0A=
}=0A=
=0A=
=0A=
var gestures =3D {=0A=
// hold gesture=0A=
// fired on touchstart=0A=
hold : function(event)=0A=
{=0A=
// only when one finger is on the screen=0A=
if(options.hold) {=0A=
_gesture =3D 'hold';=0A=
clearTimeout(_hold_timer);=0A=
=0A=
_hold_timer =3D setTimeout(function() {=0A=
if(_gesture =3D=3D 'hold') {=0A=
triggerEvent("hold", {=0A=
originalEvent : event,=0A=
position : _pos.start=0A=
});=0A=
}=0A=
}, options.hold_timeout);=0A=
}=0A=
},=0A=
=0A=
// swipe gesture=0A=
// fired on touchend=0A=
swipe : function(event)=0A=
{=0A=
if (!_pos.move || _gesture =3D=3D=3D "transform") {=0A=
return;=0A=
}=0A=
=0A=
// get the distance we moved=0A=
var _distance_x =3D _pos.move[0].x - _pos.start[0].x;=0A=
var _distance_y =3D _pos.move[0].y - _pos.start[0].y;=0A=
_distance =3D Math.sqrt(_distance_x*_distance_x + =
_distance_y*_distance_y);=0A=
=0A=
// compare the kind of gesture by time=0A=
var now =3D new Date().getTime();=0A=
var touch_time =3D now - _touch_start_time;=0A=
=0A=
if(options.swipe && (options.swipe_time >=3D touch_time) && =
(_distance >=3D options.swipe_min_distance)) {=0A=
// calculate the angle=0A=
_angle =3D getAngle(_pos.start[0], _pos.move[0]);=0A=
_direction =3D self.getDirectionFromAngle(_angle);=0A=
=0A=
_gesture =3D 'swipe';=0A=
=0A=
var position =3D { x: _pos.move[0].x - _offset.left,=0A=
y: _pos.move[0].y - _offset.top };=0A=
=0A=
var event_obj =3D {=0A=
originalEvent : event,=0A=
position : position,=0A=
direction : _direction,=0A=
distance : _distance,=0A=
distanceX : _distance_x,=0A=
distanceY : _distance_y,=0A=
angle : _angle=0A=
};=0A=
=0A=
// normal slide event=0A=
triggerEvent("swipe", event_obj);=0A=
}=0A=
},=0A=
=0A=
=0A=
// drag gesture=0A=
// fired on mousemove=0A=
drag : function(event)=0A=
{=0A=
// get the distance we moved=0A=
var _distance_x =3D _pos.move[0].x - _pos.start[0].x;=0A=
var _distance_y =3D _pos.move[0].y - _pos.start[0].y;=0A=
_distance =3D Math.sqrt(_distance_x * _distance_x + =
_distance_y * _distance_y);=0A=
=0A=
// drag=0A=
// minimal movement required=0A=
if(options.drag && (_distance > options.drag_min_distance) =
|| _gesture =3D=3D 'drag') {=0A=
// calculate the angle=0A=
_angle =3D getAngle(_pos.start[0], _pos.move[0]);=0A=
_direction =3D self.getDirectionFromAngle(_angle);=0A=
=0A=
// check the movement and stop if we go in the wrong =
direction=0A=
var is_vertical =3D (_direction =3D=3D 'up' || =
_direction =3D=3D 'down');=0A=
=0A=
if(((is_vertical && !options.drag_vertical) || =
(!is_vertical && !options.drag_horizontal)) && (_distance > =
options.drag_min_distance)) {=0A=
return;=0A=
}=0A=
=0A=
_gesture =3D 'drag';=0A=
=0A=
var position =3D { x: _pos.move[0].x - _offset.left,=0A=
y: _pos.move[0].y - _offset.top };=0A=
=0A=
var event_obj =3D {=0A=
originalEvent : event,=0A=
position : position,=0A=
direction : _direction,=0A=
distance : _distance,=0A=
distanceX : _distance_x,=0A=
distanceY : _distance_y,=0A=
angle : _angle=0A=
};=0A=
=0A=
// on the first time trigger the start event=0A=
if(_first) {=0A=
triggerEvent("dragstart", event_obj);=0A=
=0A=
_first =3D false;=0A=
}=0A=
=0A=
// normal slide event=0A=
triggerEvent("drag", event_obj);=0A=
=0A=
cancelEvent(event);=0A=
}=0A=
},=0A=
=0A=
=0A=
// transform gesture=0A=
// fired on touchmove=0A=
transform : function(event)=0A=
{=0A=
if(options.transform) {=0A=
var count =3D countFingers(event);=0A=
if (count !=3D=3D 2) {=0A=
return false;=0A=
}=0A=
=0A=
var rotation =3D calculateRotation(_pos.start, =
_pos.move);=0A=
var scale =3D calculateScale(_pos.start, _pos.move);=0A=
=0A=
if (_gesture =3D=3D=3D 'transform' ||=0A=
Math.abs(1 - scale) > options.scale_treshold ||=0A=
Math.abs(rotation) > options.rotation_treshold) {=0A=
=0A=
_gesture =3D 'transform';=0A=
_pos.center =3D {=0A=
x: ((_pos.move[0].x + _pos.move[1].x) / 2) - =
_offset.left,=0A=
y: ((_pos.move[0].y + _pos.move[1].y) / 2) - =
_offset.top=0A=
};=0A=
=0A=
if(_first)=0A=
_pos.startCenter =3D _pos.center;=0A=
=0A=
var _distance_x =3D _pos.center.x - =
_pos.startCenter.x;=0A=
var _distance_y =3D _pos.center.y - =
_pos.startCenter.y;=0A=
_distance =3D Math.sqrt(_distance_x*_distance_x + =
_distance_y*_distance_y);=0A=
=0A=
var event_obj =3D {=0A=
originalEvent : event,=0A=
position : _pos.center,=0A=
scale : scale,=0A=
rotation : rotation,=0A=
distance : _distance,=0A=
distanceX : _distance_x,=0A=
distanceY : _distance_y=0A=
};=0A=
=0A=
// on the first time trigger the start event=0A=
if (_first) {=0A=
triggerEvent("transformstart", event_obj);=0A=
_first =3D false;=0A=
}=0A=
=0A=
triggerEvent("transform", event_obj);=0A=
=0A=
cancelEvent(event);=0A=
=0A=
return true;=0A=
}=0A=
}=0A=
=0A=
return false;=0A=
},=0A=
=0A=
=0A=
// tap and double tap gesture=0A=
// fired on touchend=0A=
tap : function(event)=0A=
{=0A=
// compare the kind of gesture by time=0A=
var now =3D new Date().getTime();=0A=
var touch_time =3D now - _touch_start_time;=0A=
=0A=
// dont fire when hold is fired=0A=
if(options.hold && !(options.hold && options.hold_timeout > =
touch_time)) {=0A=
return;=0A=
}=0A=
=0A=
// when previous event was tap and the tap was max_interval =
ms ago=0A=
var is_double_tap =3D (function(){=0A=
if (_prev_tap_pos &&=0A=
options.tap_double &&=0A=
_prev_gesture =3D=3D 'tap' &&=0A=
_pos.start &&=0A=
(_touch_start_time - _prev_tap_end_time) < =
options.tap_max_interval)=0A=
{=0A=
var x_distance =3D Math.abs(_prev_tap_pos[0].x - =
_pos.start[0].x);=0A=
var y_distance =3D Math.abs(_prev_tap_pos[0].y - =
_pos.start[0].y);=0A=
return (_prev_tap_pos && _pos.start && =
Math.max(x_distance, y_distance) < options.tap_double_distance);=0A=
}=0A=
return false;=0A=
})();=0A=
=0A=
if(is_double_tap) {=0A=
_gesture =3D 'double_tap';=0A=
_prev_tap_end_time =3D null;=0A=
=0A=
triggerEvent("doubletap", {=0A=
originalEvent : event,=0A=
position : _pos.start=0A=
});=0A=
cancelEvent(event);=0A=
}=0A=
=0A=
// single tap is single touch=0A=
else {=0A=
var x_distance =3D (_pos.move) ? Math.abs(_pos.move[0].x =
- _pos.start[0].x) : 0;=0A=
var y_distance =3D (_pos.move) ? =
Math.abs(_pos.move[0].y - _pos.start[0].y) : 0;=0A=
_distance =3D Math.max(x_distance, y_distance);=0A=
=0A=
if(_distance < options.tap_max_distance) {=0A=
_gesture =3D 'tap';=0A=
_prev_tap_end_time =3D now;=0A=
_prev_tap_pos =3D _pos.start;=0A=
=0A=
if(options.tap) {=0A=
triggerEvent("tap", {=0A=
originalEvent : event,=0A=
position : _pos.start=0A=
});=0A=
cancelEvent(event);=0A=
}=0A=
}=0A=
}=0A=
}=0A=
};=0A=
=0A=
=0A=
function handleEvents(event)=0A=
{=0A=
var count;=0A=
switch(event.type)=0A=
{=0A=
case 'mousedown':=0A=
case 'touchstart':=0A=
count =3D countFingers(event);=0A=
_can_tap =3D count =3D=3D=3D 1;=0A=
=0A=
//We were dragging and now we are zooming.=0A=
if (count =3D=3D=3D 2 && _gesture =3D=3D=3D "drag") {=0A=
=0A=
//The user needs to have the dragend to be fired to =
ensure that=0A=
//there is proper cleanup from the drag and move =
onto transforming.=0A=
triggerEvent("dragend", {=0A=
originalEvent : event,=0A=
direction : _direction,=0A=
distance : _distance,=0A=
angle : _angle=0A=
});=0A=
}=0A=
_setup();=0A=
=0A=
if(options.prevent_default) {=0A=
cancelEvent(event);=0A=
}=0A=
break;=0A=
=0A=
case 'mousemove':=0A=
case 'touchmove':=0A=
count =3D countFingers(event);=0A=
=0A=
//The user has gone from transforming to dragging. The=0A=
//user needs to have the proper cleanup of the state and=0A=
//setup with the new "start" points.=0A=
if (!_mousedown && count =3D=3D=3D 1) {=0A=
return false;=0A=
} else if (!_mousedown && count =3D=3D=3D 2) {=0A=
_can_tap =3D false;=0A=
=0A=
reset();=0A=
_setup();=0A=
}=0A=
=0A=
_event_move =3D event;=0A=
_pos.move =3D getXYfromEvent(event);=0A=
=0A=
if(!gestures.transform(event)) {=0A=
gestures.drag(event);=0A=
}=0A=
break;=0A=
=0A=
case 'mouseup':=0A=
case 'mouseout':=0A=
case 'touchcancel':=0A=
case 'touchend':=0A=
var callReset =3D true;=0A=
=0A=
_mousedown =3D false;=0A=
_event_end =3D event;=0A=
=0A=
// swipe gesture=0A=
gestures.swipe(event);=0A=
=0A=
// drag gesture=0A=
// dragstart is triggered, so dragend is possible=0A=
if(_gesture =3D=3D 'drag') {=0A=
triggerEvent("dragend", {=0A=
originalEvent : event,=0A=
direction : _direction,=0A=
distance : _distance,=0A=
angle : _angle=0A=
});=0A=
}=0A=
=0A=
// transform=0A=
// transformstart is triggered, so transformed is =
possible=0A=
else if(_gesture =3D=3D 'transform') {=0A=
// define the transform distance=0A=
var _distance_x =3D _pos.center.x - =
_pos.startCenter.x;=0A=
var _distance_y =3D _pos.center.y - =
_pos.startCenter.y;=0A=
=0A=
triggerEvent("transformend", {=0A=
originalEvent : event,=0A=
position : _pos.center,=0A=
scale : calculateScale(_pos.start, =
_pos.move),=0A=
rotation : calculateRotation(_pos.start, =
_pos.move),=0A=
distance : _distance,=0A=
distanceX : _distance_x,=0A=
distanceY : _distance_y=0A=
});=0A=
=0A=
//If the user goes from transformation to drag there =
needs to be a=0A=
//state reset so that way a dragstart/drag/dragend =
will be properly=0A=
//fired.=0A=
if (countFingers(event) =3D=3D=3D 1) {=0A=
reset();=0A=
_setup();=0A=
callReset =3D false;=0A=
}=0A=
} else if (_can_tap) {=0A=
gestures.tap(_event_start);=0A=
}=0A=
=0A=
_prev_gesture =3D _gesture;=0A=
=0A=
// trigger release event=0A=
// "release" by default doesn't return the co-ords where =
your=0A=
// finger was released. "position" will return "the last =
touched co-ords"=0A=
=0A=
triggerEvent("release", {=0A=
originalEvent : event,=0A=
gesture : _gesture,=0A=
position : _pos.move || _pos.start=0A=
});=0A=
=0A=
// reset vars if this was not a transform->drag touch =
end operation.=0A=
if (callReset) {=0A=
reset();=0A=
}=0A=
break;=0A=
} // end switch=0A=
=0A=
/**=0A=
* Performs a blank setup.=0A=
* @private=0A=
*/=0A=
function _setup() {=0A=
_pos.start =3D getXYfromEvent(event);=0A=
_touch_start_time =3D new Date().getTime();=0A=
_fingers =3D countFingers(event);=0A=
_first =3D true;=0A=
_event_start =3D event;=0A=
=0A=
// borrowed from jquery offset =
https://github.com/jquery/jquery/blob/master/src/offset.js=0A=
var box =3D element.getBoundingClientRect();=0A=
var clientTop =3D element.clientTop || =
document.body.clientTop || 0;=0A=
var clientLeft =3D element.clientLeft || =
document.body.clientLeft || 0;=0A=
var scrollTop =3D window.pageYOffset || element.scrollTop =
|| document.body.scrollTop;=0A=
var scrollLeft =3D window.pageXOffset || element.scrollLeft =
|| document.body.scrollLeft;=0A=
=0A=
_offset =3D {=0A=
top: box.top + scrollTop - clientTop,=0A=
left: box.left + scrollLeft - clientLeft=0A=
};=0A=
=0A=
_mousedown =3D true;=0A=
=0A=
// hold gesture=0A=
gestures.hold(event);=0A=
}=0A=
}=0A=
=0A=
=0A=
function handleMouseOut(event) {=0A=
if(!isInsideHammer(element, event.relatedTarget)) {=0A=
handleEvents(event);=0A=
}=0A=
}=0A=
=0A=
=0A=
// bind events for touch devices=0A=
// except for windows phone 7.5, it doesnt support touch events..!=0A=
if(_has_touch || options.allow_touch_and_mouse) {=0A=
addEvent(element, "touchstart touchmove touchend touchcancel", =
handleEvents);=0A=
}=0A=
=0A=
// for non-touch=0A=
if (!_has_touch || options.allow_touch_and_mouse) {=0A=
addEvent(element, "mouseup mousedown mousemove", handleEvents);=0A=
addEvent(element, "mouseout", handleMouseOut);=0A=
}=0A=
=0A=
=0A=
/**=0A=
* find if element is (inside) given parent element=0A=
* @param object element=0A=
* @param object parent=0A=
* @return bool inside=0A=
*/=0A=
function isInsideHammer(parent, child) {=0A=
// get related target for IE=0A=
if(!child && window.event && window.event.toElement){=0A=
child =3D window.event.toElement;=0A=
}=0A=
=0A=
if(parent =3D=3D=3D child){=0A=
return true;=0A=
}=0A=
=0A=
// loop over parentNodes of child until we find hammer element=0A=
if(child){=0A=
var node =3D child.parentNode;=0A=
while(node !=3D=3D null){=0A=
if(node =3D=3D=3D parent){=0A=
return true;=0A=
}=0A=
node =3D node.parentNode;=0A=
}=0A=
}=0A=
return false;=0A=
}=0A=
=0A=
=0A=
/**=0A=
* merge 2 objects into a new object=0A=
* @param object obj1=0A=
* @param object obj2=0A=
* @return object merged object=0A=
*/=0A=
function mergeObject(obj1, obj2) {=0A=
var output =3D {};=0A=
=0A=
if(!obj2) {=0A=
return obj1;=0A=
}=0A=
=0A=
for (var prop in obj1) {=0A=
if (prop in obj2) {=0A=
output[prop] =3D obj2[prop];=0A=
} else {=0A=
output[prop] =3D obj1[prop];=0A=
}=0A=
}=0A=
return output;=0A=
}=0A=
=0A=
=0A=
/**=0A=
* check if object is a function=0A=
* @param object obj=0A=
* @return bool is function=0A=
*/=0A=
function isFunction( obj ){=0A=
return Object.prototype.toString.call( obj ) =3D=3D "[object =
Function]";=0A=
}=0A=
=0A=
=0A=
/**=0A=
* attach event=0A=
* @param node element=0A=
* @param string types=0A=
* @param object callback=0A=
*/=0A=
function addEvent(element, types, callback) {=0A=
types =3D types.split(" ");=0A=
for(var t=3D 0,len=3Dtypes.length; t 0 ? "." + p(j % 100) : "");=0A=
}=0A=
=0A=
function calculate (divId,date,time)=0A=
{=0A=
time =3D date+' '+time;=0A=
while(time.indexOf("-") !=3D -1)=0A=
{=0A=
time =3D time.replace('-','/'); =0A=
}=0A=
var divToChange =3D document.getElementById(divId);=0A=
var date1 =3D new Date(time);=0A=
var date2 =3D new Date();=0A=
var sec =3D date2.getTime() - date1.getTime();=0A=
=0A=
var second =3D 1000, minute =3D 60 * second, hour =3D 60 * minute, day =
=3D 24 * hour;=0A=
=0A=
var days =3D Math.floor(sec / day);=0A=
sec -=3D days * day;=0A=
var hours =3D Math.floor(sec / hour);=0A=
sec -=3D hours * hour;=0A=
var minutes =3D Math.floor(sec / minute);=0A=
sec -=3D minutes * minute;=0A=
var seconds =3D Math.floor(sec / second);=0A=
if( days =3D=3D 0 )=0A=
{=0A=
if( hours > 0 )=0A=
{=0A=
// divToChange.innerHTML =3D "";=0A=
divToChange.innerHTML =3D "Son G=C3=BCncelleme "+hours + " saat";=0A=
}=0A=
else=0A=
{=0A=
divToChange.innerHTML =3D "Son G=C3=BCncelleme "+minutes + " dk";=0A=
}=0A=
}=0A=
else=0A=
{=0A=
divToChange.innerHTML =3D "";=0A=
}=0A=
}
------=_NextPart_000_007E_01CE1992.C76DE230
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.zaman.com.tr/js/jquery/js-beta/jquery.hyjack.select.min.js?v=22
/**
* Hyjack Select v1.1.2 plugin for jQuery v1.4.4+=20
* Copyright (c) 2011 Brant Wills
* August 31, 2010
*/
(function(a){var =
g=3D0;version=3D"v1.1.2";hyjackable=3D"select";a.hyjack_select=3D{update:=
function(d){if(d){a(".hjsel_container").each(function(){if(a(this).data("=
hyjack.container")=3D=3D=3Da(d).data("hyjacked.index")){a(this).hide();re=
turn false}});a(d).data("is.hyjacked",false).hyjack_select()}else =
a.hyjack_select.update_all()},update_all:function(){a(".hjsel_container")=
.hide();a(":input").filter(hyjackable).each(function(){a(this).data("is.h=
yjacked")&&a(this).data("is.hyjacked",false).hyjack_select()})},dispose:f=
unction(d){if(d){a(".hjsel_container").each(function(){if(a(this).data("h=
yjack.container")=3D=3D=3D =
a(d).data("hyjacked.index")){a(this).hide();return =
false}});a(d).data("is.hyjacked",false).show()}else =
a.hyjack_select.dispose_All()},dispose_All:function(){a(".hjsel_container=
").each(function(){a(this).data("hyjack.container")&&a(this).hide()});a("=
:input").filter(hyjackable).each(function(){a(this).data("is.hyjacked",fa=
lse).show()})}};a.fn.hyjack_select=3Dfunction(d){function =
o(b,c){p(c);q(a(b),c);m(c);c.select.append(c.txtbox).append(c.ddCancel).a=
ppend(c.ddImage);c.container.append(c.select).append(c.options); =
a(document).bind("click",function(e){if(a(e.target).data("hyjack.ddImage"=
)=3D=3D=3Dc.ddImage.data("hyjack.ddImage"))c.options.toggle();else =
if(a(e.target).data("hyjack.ddCancel")=3D=3D=3Dc.ddCancel.data("hyjack.dd=
Cancel"))n(c);else =
a(e.target).data("hyjack.txtbox")=3D=3D=3Dc.txtbox.data("hyjack.txtbox")|=
|a(e.target).parents().data("hyjack.container")=3D=3D=3Dc.container.data(=
"hyjack.container")?c.options.show():i(c);d.restrictSearch&&c.txtbox.val(=
h(a("option:selected",c.selector).text()));k(c)});a(window).load(function=
(){m(c)}); return c.container}function h(b){return =
a("").html(b).text()}function r(b){return =
a("").text(b).html()}function =
s(){switch(d.filter.toLowerCase()){case =
"first":a.expr[":"].hj_contains_first=3Dfunction(b,c,e){return =
jQuery(b).text().toUpperCase().indexOf(e[3].toUpperCase())=3D=3D0};break;=
case =
"words":a.expr[":"].hj_contains_words=3Dfunction(b,c,e){b=3DjQuery(b).tex=
t().toUpperCase();c=3De[3].toUpperCase();var =
f=3Dc.split(/\s+/);if(f.length=3D=3D1)return =
b.indexOf(c)>=3D0;for(c=3D0;e=3Df[c];c++)if(b.indexOf(e)< 0)return =
false;return =
true};break;default:d.filter=3D"like";a.expr[":"].hj_contains_like=3Dfunc=
tion(b,c,e){return =
jQuery(b).text().toUpperCase().indexOf(e[3].toUpperCase())>=3D0}}}functio=
n t(b,c){switch(c.keyCode){case 37:break;case 39:break;case =
16:break;case 17:break;case 18:break;case 19:break;case 20:break;case =
33:break;case 34:break;case 35:break;case 36:break;case 45:break;case =
9:break;case =
13:l(a(".hjsel_options_hover",b.options),b);k(b);i(b);b.selector.change()=
;break;case 38:if(a(".hjsel_noitems", =
b.options).length)break;$dir=3Da(".hjsel_options_hover",b.options).prev()=
;if(b.options.is(":visible"))for(;!$dir.is(":visible");)$dir=3D$dir.prev(=
).attr("val")?$dir.prev():a("li",b.options).last();l($dir,b);break;case =
40:if(a(".hjsel_noitems",b.options).length)break;$dir=3Da(".hjsel_options=
_hover",b.options).next();if(b.options.is(":visible"))for(;!$dir.is(":vis=
ible");)$dir=3D$dir.next().attr("val")?$dir.next():a("li",b.options).firs=
t();l($dir,b);break;case 27:i(b);break;default:var =
e=3D0,f=3D0;a("li",b.options).remove(".hjsel_noitems").removeClass("hjsel=
_options_hover").hide(); =
a("li:hj_contains_"+d.filter+'("'+b.txtbox.val()+'")',b.options).show();a=
("li",b.options).each(function(){a(this).is(":hidden")&&e++;f++});e=3D=3D=
f&&b.options.append(a("").append(d.emptyMessage).addClass("hjsel_noi=
tems"));b.options.scrollTop(0).show()}}function =
l(b,c){if(b!=3Dnull){c.txtbox.val(h(b.text()));c.selector.val(b.attr("val=
"))}a("li",c.options).each(function(e,f){a(f).removeClass("hjsel_options_=
hover");c.selector.val()=3D=3Da(f).attr("val")&&a(f).addClass("hjsel_opti=
ons_hover")})}function n(b){a(".hjsel_options").hide(); =
b.txtbox.val("").focus();b.options.show()}function =
k(b){a("li",b.options).show();a(".hjsel_noitems",b.options).remove()}func=
tion =
i(b){b.options.hide();b.txtbox.val()=3D=3D=3D""&&b.txtbox.val(h(''))}func=
tion =
p(b){b.txtbox.bind("click",function(){n(b)}).bind("keydown",function(c){c=
.keyCode=3D=3D9&&i(b)}).bind("keyup",function(c){t(b,c)}).val(h(a("option=
:selected",b.selector).text()))}function =
m(b){b.txtbox.width(b.selector.width()-(b.ddImage.attr("width")+b.ddCance=
l.attr("width")+ =
d.offset));b.options.width(b.selector.width());b.container.width(b.select=
or.width())}function q(b,c){var =
e=3Da("