﻿// JScript File

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


var bookmarkurl="http://www.spoter.com" 
var bookmarktitle="Spoter.com" 
function addbookmark(){ 
if (document.all) 
window.external.AddFavorite(bookmarkurl,bookmarktitle) 
} 


function duyuru() {
popup = window.open("duyuru.asp","Duyuru","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizeable=0,width=320,height=220,top=120,left=150")
if (parseInt(navigator.appVersion) >= 4) { popup.window.focus(); }
}


var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){

        if(pos=="random"){
                LeftPosition=(screen.width)?Math.floor(Math.random()*((screen.width-w)-75)):100;
                TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
        if(pos=="center"){
                LeftPosition=(screen.width)?(screen.width-w)/2:100;
                TopPosition=(screen.height)?(screen.height-h)/2:100;}
        else if((pos!="center" && pos!="random") || pos==null){
                LeftPosition=0;
                TopPosition=20}

        settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',+pos+';
        win2=window.open(mypage,myname,settings);
        if(win.focus){win.focus();}}



<!-- Begin
function expandingWindow(website,yukseklik,genislik) {

// Dikine açılma hizi (Yüksek değer=hızlı)
var heightspeed = 20;

// Genişlemesine açılma hizi (Yüksek değer=hızlı)
var widthspeed = 20;

// Soldan Kaç Piksel solda görünecek
var leftdist = 50;

// Yukarıdan Kaç Piksel aşağıda görünecek
var topdist = 120; 

if (document.all) {
var winwidth = genislik;
var winheight = yukseklik;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist + ",width=1,height=1,scrollbars=yes,location=no,status=yes,toolbar=no,menubar=no");
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) {
sizer.resizeTo("1", sizeheight);
}
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed) {
sizer.resizeTo(sizewidth, sizeheight);
}
sizer.location = website;
}
else
window.location = website;
}
