function getpg(){
	var href=document.location.href;
	var begin=href.indexOf("pg=");
	var pg=href.substring(begin+3);
	reg=/^(\d+)$/g;
	if(!reg.test(pg)){
	   pg=1;
	}
	return parseInt(pg);
}

function topage(pg){
var href=document.location.href;
var reg=/^(.+)\?(.+)$/g;
href=href.replace(reg,"$1");
document.location.href=href+"?pg="+pg;
}

function vodonephoto(){
var array=[];



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611137789_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611138304_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611138742_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611139211_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611139679_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611140117_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611140586_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611141039_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611141508_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611141992_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611142429_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611142898_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611143367_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611143820_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611144351_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611144804_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611145273_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611145726_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611146695_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611147461_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611148070_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611148508_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611148961_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611149445_443.jpg',summary:''};



array[array.length]={img:'http://photo.vodone.com/images/2009-9-22/20099221253611149914_443.jpg',summary:''};

var pg=getpg();
var l=array.length;
pg=pg>l?1:pg;
pg=pg<1?1:pg;

var to=pg+1;
to=to>l?1:to;
var html='<div class="c_photos">\
                	<div class="c_photos_pic"><img src="'+array[pg-1].img+'" alt="1" title="点击下一张" onclick="topage('+to+')" style="cursor:pointer;"/></div>\
<div style="padding:8px 0 0;text-align:center;">'+array[pg-1].summary+'</div>\
                    <div class="c_photos_pages">';
for(var i=0;i<l;i++){
	if(i==(pg-1)){
		html+='<a href="javascript:topage('+(i+1)+')" class="cur">'+(i+1)+'</a>';
	}else{
		html+='<a  href="javascript:topage('+(i+1)+')">'+(i+1)+'</a>';
	}
}
	html+='</div>\
                    <!--<div class="c_photos_more"><a href="#" title="更多精彩图片"></a></div>-->\
                </div>';
document.write(html);
}
vodonephoto();